Final Black Book
Final Black Book
PROJECT REPORT ON
SUBMITTED BY:
MR.SHUBHAM VARTAK
GUIDED BY:
1
MCC, Department of Computer Science, 2021-22
Society Management System
PLAGIARISM REPORT
2
MCC, Department of Computer Science, 2021-22
Society Management System
ACKNOWLEDGEMENT
I like to extend my gratitude to Dr. Sonali Pednekar, our Principal and all
staff of Mulund College of Commerce for providing us moral support,
conducivework environment and the much needed inspiration to complete this
project on time.
I also take this opportunity to thank our Course Coordinator Prof. Reena
Shah and all the faculties of Department of Computer Science for giving us the
most needed guidance and continuous encouragementthroughout the duration of
the Programme.
I would like to convey my special thanks to the Management and all the staff
of the college for providing the required infrastructure and resource to enable the
completion and enrichment of my project.
Finally I thank all my fellow friends who have directly or indirectly helped
me in completing my project.
3
MCC, Department of Computer Science, 2021-22
Society Management System
1 TITLE 5
2 INTRODUCTION 6
3 REQUIREMENT SPECIFICATION 7
5 SYSTEM IMPLEMENTATION 21
6 RESULTS 116
8 CONCLUSION 126
9 REFERENCES 126
10 ANNEXURE 127
4
MCC, Department of Computer Science, 2021-22
Society Management System
1.Title
Title of Project:
Society Management System (SocietyHUB)
Type of Project:
WEBSITE
Developed by:
Shubham Dattatray Vartak
5
MCC, Department of Computer Science, 2021-22
Society Management System
2.Introduction
Society Management System is provided to society members who can get all the updates
related to their society. The members also get notified with notices and events held in society and
can see information about members in society. Members can also post complaints regarding any
issue in society. The only admin has right to modify the database which holds information of
members. Also, the admin can perform tasks that are done by the normal members of this
system.
6
MCC, Department of Computer Science, 2021-22
Society Management System
3. Requirement Specification.
7
MCC, Department of Computer Science, 2021-22
Society Management System
8
MCC, Department of Computer Science, 2021-22
Society Management System
9
MCC, Department of Computer Science, 2021-22
Society Management System
10
MCC, Department of Computer Science, 2021-22
Society Management System
11
MCC, Department of Computer Science, 2021-22
Society Management System
12
MCC, Department of Computer Science, 2021-22
Society Management System
13
MCC, Department of Computer Science, 2021-22
Society Management System
14
MCC, Department of Computer Science, 2021-22
Society Management System
15
MCC, Department of Computer Science, 2021-22
Society Management System
16
MCC, Department of Computer Science, 2021-22
Society Management System
17
MCC, Department of Computer Science, 2021-22
Society Management System
18
MCC, Department of Computer Science, 2021-22
Society Management System
19
MCC, Department of Computer Science, 2021-22
Society Management System
20
MCC, Department of Computer Science, 2021-22
Society Management System
5. System Implementation.
Login.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>SocietyHub</title>
<script src="https://kit.fontawesome.com/2edfbc5391.js"crossorigin="anonymous"></script>
</head>
<body>
<div class="page">
<div class="navbar">
<nav>
<ul>
<li><a href=""class="active">Home</a></li>
</ul>
</nav>
21
MCC, Department of Computer Science, 2021-22
Society Management System
</div>
<div class="row">
<div class="col-1">
</div>
<div class="col-2">
<div class="form-container">
<div class="form-btn">
<span onclick="login()">Login</span>
<span onclick="register()">Register</span>
<hr id="indicator">
</div>
</form>
22
MCC, Department of Computer Science, 2021-22
Society Management System
</form>
</div>
</div>
</div>
</div>
<hr>
<div id="rules">
<hr>
<li>Members and residents are required to keep their flats/homes and nearby premises clean
and habitable.</li>
<li>The residents should also maintain proper cleanliness etiquette while using common
areas, parking lot, etc. and not throw litter from their balconies and windows.</li>
<li>Members must regularly pay the maintenance charges and all other dues necessitated by
the society.</li>
<li>Keeping pets is allowed after submitting the required NOC to the society. But if pets
like dogs are creating any kind of disturbance to other society members then the pets won’t be
allowed.</li>
<li>Every member of the society should park their vehicles in their respective allotted
parking spaces only.</li>
<li> After using the community hall for any event or function it should be cleaned and no
damages should be caused.</li>
23
MCC, Department of Computer Science, 2021-22
Society Management System
<li>No member can occupy the area near their front doors, corridors, passage for their
personal usage.</li>
<li>Salesmen, vendors or any other sellers are not allowed to enter the premises.</li>
</div>
<hr>
<footer>
<div class="main-content">
<h2>About Us</h2>
<div class="content">
<p>
SocietyHUB is webapp where society members can get all the updates related to
their society. The members also get notified with notices and events held in society and can see
information about members in society. Members can also post complaints regarding any issue in
society.
</p>
</div>
</div>
<div class="cen">
<h2>Quick Links</h2>
<ul>
<li><a href="login.html">Home</a></li>
24
MCC, Department of Computer Science, 2021-22
Society Management System
<li><a href="#Loginform">Login</a></li>
</ul>
</div>
</div>
<h2>Address</h2>
<div class="content">
<div class="place">
</div>
<div class="phone">
</div>
<div class="email">
<span class="text">[email protected]</span>
</div>
</div>
</div>
</div>
<div class="copyright">
25
MCC, Department of Computer Science, 2021-22
Society Management System
</div>
</footer>
<script>
var Loginform=document.getElementById("Loginform")
var Regform=document.getElementById("Regform")
var indicator=document.getElementById("indicator")
function register(){
Regform.style.transform= "translateX(0px)";
Loginform.style.transform= "translateX(0px)";
indicator.style.transform= "translateX(80px)";
function login(){
Regform.style.transform= "translateX(300px)";
Loginform.style.transform= "translateX(300px)";
indicator.style.transform= "translateX(0px)";
</script>
</body>
</html>
26
MCC, Department of Computer Science, 2021-22
Society Management System
Register.php
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST'){
$Username = $_POST['username'];
$email = $_POST['email'];
$flatno = $_POST['flatno'];
$mobileno = $_POST['mobno'];
$familymem = $_POST['fammem'];
$Password = $_POST['password'];
// connecting to database
$servername = "localhost";
$username = "root";
$password = "";
$database = "usersregister";
// creating connection
if (!$conn){
27
MCC, Department of Computer Science, 2021-22
Society Management System
else{
// submitting to database
if($result){
window.location.href = 'login.html';
</script>";
else{
window.location.href = 'login.html';
</script>";
?>
28
MCC, Department of Computer Science, 2021-22
Society Management System
login.php
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST'){
$Username = $_POST['username'];
$email = $_POST['email'];
$flatno = $_POST['flatno'];
$Password = $_POST['password'];
// connecting to database
$servername = "localhost";
$username = "root";
$password = "";
$database = "usersregister";
// creating connection
$result = mysqli_query($conn,$sql);
$num = mysqli_num_rows($result);
29
MCC, Department of Computer Science, 2021-22
Society Management System
if ($num == 1){
window.location.href = 'Welcome.php';
</script>";
session_start();
$_SESSION['loggedin']= true;
$_SESSION['username']= $Username;
else{
window.location.href = 'login.html';
</script>"; mysqli_error($conn);
?>
30
MCC, Department of Computer Science, 2021-22
Society Management System
Style1.CSS
*{
margin: 0;
padding: 0;
.page{
height: 110vh;
width: 100%;
background-position: center;
background-size:cover;
padding-left: 5%;
padding-right: 5%;
box-sizing: border-box;
overflow-x: hidden;
position:relative;
.navbar{
width: 150%;
height: 15vh;
margin: auto;
display:flex;
align-items: center;
/* justify-content: space-between; */
31
MCC, Department of Computer Science, 2021-22
Society Management System
.logo{
height: 80px;
width: 80px;
cursor: pointer;
/* padding-top: 20px; */
/* padding-right: 45px; */
border-radius: 60px;
nav{
flex:1;
padding-left: 100px;
/* display: flex;
justify-content: space-between; */
nav ul li{
display: inline-block;
list-style: none;
/* padding-left: 150px; */
position: relative;
nav ul {
padding-left: 246px;
32
MCC, Department of Computer Science, 2021-22
Society Management System
nav ul li::after{
content:"";
height: 3px;
width: 0%;
position: absolute;
left: 0px;
bottom: -5px;
transition: 0.5s;
nav ul li:hover::after{
width: 100%;
nav ul li a{
text-decoration: none;
font-size: 24px;
.navbar h1{
padding-top: 10px;
margin-left: 8px;
font-size: 30px;
33
MCC, Department of Computer Science, 2021-22
Society Management System
cursor: pointer;
/* span{
} */
.row{
display: flex;
flex-wrap: wrap;
margin-top: 5%;
justify-content: space-between;
.col-1{
flex-basis: 40%;
min-width:200px;
margin-bottom: 40px;
.col-1 img{
width: 115%;
height: 110%;
/* padding-right: 20px; */
/* padding-left: 30px; */
border-radius: 40px;
cursor: pointer;
34
MCC, Department of Computer Science, 2021-22
Society Management System
.active::after{
content: "";
height: 3px;
width: 100%;
position: absolute;
left: 0px;
bottom: -5px;
.btn{
margin-left: 1083px;
/* margin-right: 130px; */
margin-top: 0px;
/* background: #fff; */
font-weight: 500px;
border-radius: 60px;
text-decoration: none;
position:absolute;
transition: 0.5s
35
MCC, Department of Computer Science, 2021-22
Society Management System
.btn:hover{
background: #fff;
.form-container{
background: #fff;
width: 300px;
height: 400px;
position: relative;
text-align: center;
padding: 10px 0;
margin: auto;
overflow: hidden;
.col-2{
padding-right: 150px;
padding-top: 32px;
.form-container span{
font-weight: bold;
padding: 0 10px;
color: #555;
cursor: pointer;
width: 50px;
display: inline-block;
36
MCC, Department of Computer Science, 2021-22
Society Management System
.form-btn{
display: inline-block;
padding-top: 21px;
.form-container form{
max-width: 300px;
/* padding: 0 20px; */
position: absolute;
top: 130px;
form input{
width: 80%;
height: 30px;
margin-top: 0px;
margin-bottom: 10px;
padding: 0 10px;
#Loginform{
left:-300px;
top: 110px;
37
MCC, Department of Computer Science, 2021-22
Society Management System
#Regform{
left: 0;
top: 90px;
form a{
font-size: 18px;
display: block;
#indicator{
width: 65px;
border: none;
height: 3px;
margin-top: 8px;
transform: translateX(80px);
.btn-losi{
width: 75%;
font-weight: bold;
cursor: pointer;
display: block;
38
MCC, Department of Computer Science, 2021-22
Society Management System
background:linear-gradient(to right,#a7cceb,#95b1bd);
border: 0;
outline: none;
border-radius: 30px;
.btn-losi:hover{
#rules {
height: 80vh;
width: 100%;
background-size:cover;
box-sizing: border-box;
overflow-x: hidden;
position:relative;
#rules h1{
padding-top: 15px;
padding-bottom: 15px;
padding-left: 523px;
background-color: aliceblue;
#rules li{
list-style:number;
39
MCC, Department of Computer Science, 2021-22
Society Management System
list-style-position:outside;
text-indent: -1em;
font-weight: bold;
padding-top: 15px;
padding-left: 28px;
font-size: 18px;
footer{
position:relative;
width: 100%;
font-family: 'poppins',sans-serif;
color: #d9d9d9;
box-sizing: border-box;
.main-content{
display: flex;
.main-content .box{
flex-basis: 50%;
.box h2{
40
MCC, Department of Computer Science, 2021-22
Society Management System
font-size: 1.125rem;
font-weight: 600;
text-transform: uppercase;
padding-top: 15px;
/* padding-left: 143px; */
.box h2:hover{
.box .content{
margin: 20px 0 0 0;
.left .content p{
text-align: justify;
.content p{
line-height: 20px;
.place{
padding-bottom: 10px;
.phone{
padding-bottom: 10px;
41
MCC, Department of Computer Science, 2021-22
Society Management System
.link{
width: 20%;
ul li{
list-style-type: none;
padding-top: 20px;
ul li a{
color: #fff;
text-decoration: none;
.adjust ul li a:hover{
.cen{
padding-left: 100px;
.copyright h3{
background-color:#416d74;
text-align: center;
font-size: 15px;
height: 23px;
42
MCC, Department of Computer Science, 2021-22
Society Management System
Dashstyle.CSS
body{
margin: 0;
padding: 0;
header{
position:fixed;
background: #22242A;
padding: 20px;
width: 100%;
height: 30px;
.left_area h3{
color: #fff;
margin: 0;
text-transform: uppercase;
font-size: 22px;
font-weight: 900;
.left_area span{
color: #19B3D3;
43
MCC, Department of Computer Science, 2021-22
Society Management System
.logout_btn{
padding: 5px;
background: #19B3D3;
text-decoration: none;
float: right;
margin-top: -30px;
margin-right: 40px;
border-radius: 2px;
font-size: 15px;
font-weight: 600;
color: #fff;
transition: 0.5s;
transition-property: background;
.logout_btn:hover{
background: #0B87A6;
.sidebar {
background: #2f323a;
margin-top: 70px;
padding-top: 30px;
position: fixed;
44
MCC, Department of Computer Science, 2021-22
Society Management System
left: 0;
width: 250px;
height: 100%;
transition: 0.5s;
transition-property: left;
.sidebar .profile_image{
width: 100px;
height: 100px;
border-radius: 100px;
margin-bottom: 10px;
.sidebar h4{
color: #ccc;
margin-top: 0;
margin-bottom: 20px;
.sidebar a{
color: #fff;
display: block;
width: 100%;
line-height: 60px;
45
MCC, Department of Computer Science, 2021-22
Society Management System
text-decoration: none;
padding-left: 40px;
box-sizing: border-box;
/* transition: 0.5s;
transition-property: background; */
.sidebar a:hover{
background: #19B3D3;
.sidebar.active{
background: #19B3D3;
.sidebar i{
padding-right: 10px;
label #sidebar_btn{
z-index: 1;
color: #fff;
position: fixed;
cursor: pointer;
left: 300px;
font-size: 20px;
46
MCC, Department of Computer Science, 2021-22
Society Management System
margin: 5px 0;
transition: 0.5s;
transition-property: color;
label #sidebar_btn:hover{
color: #19B3D3;
#check:checked ~ .sidebar{
left: -190px;
display: none;
#check:checked ~ .sidebar a{
font-size: 20px;
margin-left: 170px;
width: 80px;
.content{
margin-left: 250px;
47
MCC, Department of Computer Science, 2021-22
Society Management System
overflow: auto;
background-position: center;
background-size: cover;
height: 100vh;
transition: 0.5s;
.content h1{
padding-top: 65px;
padding-left: 10px;
.col-div-3{
width: 25%;
float: left;
.box{
width: 85%;
height: 100px;
background-color: #272c4a;
margin-left: 10px;
padding: 10px;
cursor: pointer;
.box p{
font-size: 35px;
48
MCC, Department of Computer Science, 2021-22
Society Management System
color: white;
font-weight: bold;
line-height: 30px;
padding-left: 10px;
margin-top: 20px;
display: inline-block;
.box p span{
font-size: 20px;
font-weight: 400;
color: #818181;
.box-icon{
font-size: 40px!important;
float: right;
margin-top: 35px!important;
color: #818181;
padding-right: 10px;
#check:checked ~ .content{
margin-left: 60px;
#check{
display: none;
49
MCC, Department of Computer Science, 2021-22
Society Management System
Welcome.php
<?php
session_start();
if(!isset($_SESSION['loggedin']) || $_SESSION['loggedin']!=true){
header("location: login.html");
exit;
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Welcome dashboard</title>
<script src="https://kit.fontawesome.com/2edfbc5391.js"crossorigin="anonymous"></script>
<style>
.far{
color:#a7abde;
padding-left: 15px;
50
MCC, Department of Computer Science, 2021-22
Society Management System
.col-div-3 .box p{
font-size: 25px;
.box .fas{
color:#a7abde;
position:absolute;
padding-top: 50px;
color:#a7abde;
padding-left: 20px;
</style>
</head>
<body>
<header>
51
MCC, Department of Computer Science, 2021-22
Society Management System
<label for="check">
</label>
<div class="left_area">
<h3>Society<span>HUB</span></h3>
</div>
<div class="right_area">
</div>
</header>
<!--sidebar start-->
<div class="sidebar">
<center>
</center>
52
MCC, Department of Computer Science, 2021-22
Society Management System
</div>
<!--sidebar end-->
<div class="content">
<h1>Welcome to Dashboard</h1>
<?php
$servername = "localhost";
$username = "root";
$password = "";
$database = "usersregister";
// creating connection
$user_name = $_SESSION['username'];
$result = $conn->query($sql);
if($result->num_rows >0){
while($row = $result->fetch_assoc()){
<div class="box">
<p>'.$row['Username'].'<br><span>Your Username</span></p>
53
MCC, Department of Computer Science, 2021-22
Society Management System
</div>
</div>
<div class="col-div-3">
<div class="box">
<p>'.$row['Flatno'].'
</div>
</div>
<div class="col-div-3">
<div class="box">
</div>
</div>';
}}else {
?>
</div>
</body>
</html>
54
MCC, Department of Computer Science, 2021-22
Society Management System
Noticebrd.php
<?php
session_start();
if(!isset($_SESSION['loggedin']) || $_SESSION['loggedin']!=true){
header("location: login.html");
exit;
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Notice Board</title>
<script src="https://kit.fontawesome.com/2edfbc5391.js"crossorigin="anonymous"></script>
<style>
.content-table {
border-collapse: collapse;
margin-left: 13px;
font-size: 0.9em;
min-width: 400px;
55
MCC, Department of Computer Science, 2021-22
Society Management System
overflow: hidden;
.content-table thead tr {
background-color: #19B3D3;
color: #ffffff;
text-align: left;
font-weight: 900;
.content-table th,
.content-table td {
.content-table tbody tr {
background-color: #f3f3f3;
</style>
</head>
<body>
56
MCC, Department of Computer Science, 2021-22
Society Management System
<header>
<label for="check">
</label>
<div class="left_area">
<h3>Society<span>HUB</span></h3>
</div>
<div class="right_area">
</div>
</header>
<!--sidebar start-->
<div class="sidebar">
<center>
</center>
57
MCC, Department of Computer Science, 2021-22
Society Management System
</div>
<!--sidebar end-->
<div class="content"><br><br><br><br>
<?php
$connection = mysqli_connect("localhost","root","");
$db = mysqli_select_db($connection,'noticeboard');
$query_run = mysqli_query($connection,$query);
?>
<table class="content-table">
<thead>
<tr>
<th>ID</th>
<th>Notice Name</th>
<th>Notice Type</th>
<th>Date</th>
<th>Message</th>
</tr>
</thead>
<?php
if($query_run)
58
MCC, Department of Computer Science, 2021-22
Society Management System
while($row = mysqli_fetch_array($query_run))
?>
<tbody>
<tr>
</tr>
</tbody>
<?php
else
?>
</table>
</div>
</body>
</html>
59
MCC, Department of Computer Science, 2021-22
Society Management System
Complaint.php
<?php
session_start();
if(!isset($_SESSION['loggedin']) || $_SESSION['loggedin']!=true){
header("location: login.html");
exit;
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Register complaint</title>
<script src="https://kit.fontawesome.com/2edfbc5391.js"crossorigin="anonymous"></script>
<style>
/* .container:after{
content: '';
position: absolute;
60
MCC, Department of Computer Science, 2021-22
Society Management System
width: 100%;
height: 90%;
left: 0;
top: 0; */
/* background-size: cover; */
/* filter: blur(50px);
z-index: -1; */
.contact-box{
max-width: 850px;
display: grid;
justify-content: center;
align-items: center;
text-align: center;
background-color: #fff;
.right{
61
MCC, Department of Computer Science, 2021-22
Society Management System
h2{
position: relative;
margin-bottom: 45px;
font-size: 35px;
/* h2:after{
content: '';
position: absolute;
left: 50%;
bottom: 0;
transform: translateX(-50%);
height: 4px;
width: 50px;
border-radius: 2px;
background-color: #19B3D3;
} */
.field{
width: 50%;
outline: none;
background-color: white;
62
MCC, Department of Computer Science, 2021-22
Society Management System
font-size: 1.1rem;
margin-bottom: 22px;
transition: .3s;
.field:hover{
background-color: #f5f5f7;
textarea{
min-height: 170px;
.btn{
width: 25%;
background-color: #19B3D3;
color: #fff;
font-size: 1.1rem;
border: none;
outline: none;
cursor: pointer;
transition: .3s;
.btn:hover{
63
MCC, Department of Computer Science, 2021-22
Society Management System
background-color: #0B87A6;
.field:focus{
background-color: #fff;
</style>
</head>
<body>
<header>
<label for="check">
</label>
<div class="left_area">
<h3>Society<span>HUB</span></h3>
</div>
<div class="right_area">
</div>
</header>
<!--sidebar start-->
64
MCC, Department of Computer Science, 2021-22
Society Management System
<div class="sidebar">
<center>
</center>
</div>
<!--sidebar end-->
<div class="content"><br><br><br>
<div class="container">
<div class="contact-box">
<div class="right">
</form>
65
MCC, Department of Computer Science, 2021-22
Society Management System
</div>
</div>
</div>
</div>
</body>
</html>
<?php
if(isset($_POST['lcomplaint'])){
$connection = mysqli_connect("localhost","root","");
$db = mysqli_select_db($connection,"complaints");
$query_run = mysqli_query($connection,$query);
if($query_run){
window.location.href = 'Welcome.php';
</script>";
else{
window.location.href = 'complaint.php';
</script>";
?>
66
MCC, Department of Computer Science, 2021-22
Society Management System
Userphoto.php
<?php
session_start();
if(!isset($_SESSION['loggedin']) || $_SESSION['loggedin']!=true){
header("location: login.html");
exit;
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Photo add</title>
<script src="https://kit.fontawesome.com/2edfbc5391.js"crossorigin="anonymous"></script>
<style>
.Table_btn{
padding: 5px;
background: #0B87A6;
67
MCC, Department of Computer Science, 2021-22
Society Management System
text-decoration: none;
padding-bottom: 5px;
margin-top: 25px;
margin-right: 616px;
border-radius: 8px;
font-size: 15px;
font-weight: 600;
color: #fff;
transition: 0.5s;
transition-property: background;
.Table_btn:hover{
background: #19B3D3;
.content h2{
position: relative;
margin-bottom: 45px;
font-size: 35px;
.content p{
text-align: center;
68
MCC, Department of Computer Science, 2021-22
Society Management System
.main{
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
min-height:55vh;
.alb{
width: 200px;
height: 200px;
padding: 20px;
.alb img{
width: 114%;
height: 130%;
</style>
</head>
<body>
<header>
69
MCC, Department of Computer Science, 2021-22
Society Management System
<label for="check">
</label>
<div class="left_area">
<h3>Society<span>HUB</span></h3>
</div>
<div class="right_area">
</div>
</header>
<!--sidebar start-->
<div class="sidebar">
<center>
</center>
</div>
<!--sidebar end-->
70
MCC, Department of Computer Science, 2021-22
Society Management System
<div class="content"><br><br><br><br>
<div class="main">
<?php if (isset($_GET['error'])):?>
</form>
<?php
$res = mysqli_query($conn,$sql);
<div class="alb">
</div>
<?php } }?>
</div>
</div>
</body>
</html>
71
MCC, Department of Computer Science, 2021-22
Society Management System
Picadd.php
<?php
include "db_conn.php";
echo "<pre>";
print_r($_FILES['my_image']);
echo "</pre>";
$img_name = $_FILES['my_image']['name'];
$img_size = $_FILES['my_image']['size'];
$tmp_name = $_FILES['my_image']['tmp_name'];
$error = $_FILES['my_image']['error'];
header("Location: photo.php?error=$em");
}else{
$img_ex_lc = strtolower($img_ex);
$allowed_exs = array("jpg","jpeg","png");
if(in_array($img_ex_lc,$allowed_exs)){
$new_img_name = uniqid("IMG-",true).'.'.$img_ex_lc;
$img_upload_path = 'img/'.$new_img_name;
72
MCC, Department of Computer Science, 2021-22
Society Management System
move_uploaded_file($tmp_name, $img_upload_path);
VALUES('$new_img_name')";
mysqli_query($conn, $sql);
header("Location: photo.php");
}else{
header("Location: photo.php?error=$em");
}else{
header("Location: managemem.php?error=$em");
}else{
header("Location: managemem.php");
73
MCC, Department of Computer Science, 2021-22
Society Management System
Adminlogin.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Adminlogin</title>
<script src="https://kit.fontawesome.com/2edfbc5391.js"crossorigin="anonymous"></script>
<style>
.form-container1{
background:#fff;
width: 300px;
height: 300px;
position: relative;
text-align: center;
padding: 10px 0;
margin: auto;
overflow: hidden;
.adminfbtn h1{
font-size: 25px;
74
MCC, Department of Computer Science, 2021-22
Society Management System
.form-container1 .admimg {
width: 130px;
height: 100px;
border-radius: 100px;
/* margin-bottom: 8px; */
</style>
</head>
<body>
<div class="page">
<div class="navbar">
<nav>
<ul>
<li><a href=""class="active">Home</a></li>
</ul>
</nav>
</div>
<div class="row">
<div class="col-1">
75
MCC, Department of Computer Science, 2021-22
Society Management System
</div>
<div class="col-2">
<div class="form-container1">
<div class="adminfbtn">
<h1>Admin Login</h1>
</div>
</form>
</div>
</div>
</div>
</div>
<hr>
<div id="rules">
<hr>
<li>Members and residents are required to keep their flats/homes and nearby premises clean
and habitable.</li>
<li>The residents should also maintain proper cleanliness etiquette while using common
areas, parking lot, etc. and not throw litter from their balconies and windows.</li>
76
MCC, Department of Computer Science, 2021-22
Society Management System
<li>Members must regularly pay the maintenance charges and all other dues necessitated by
the society.</li>
<li>Keeping pets is allowed after submitting the required NOC to the society. But if pets
like dogs are creating any kind of disturbance to other society members then the pets won’t be
allowed.</li>
<li>Every member of the society should park their vehicles in their respective allotted
parking spaces only.</li>
<li> After using the community hall for any event or function it should be cleaned and no
damages should be caused.</li>
<li>No member can occupy the area near their front doors, corridors, passage for their
personal usage.</li>
<li>Salesmen, vendors or any other sellers are not allowed to enter the premises.</li>
</div>
<hr>
<footer>
<div class="main-content">
<h2>About Us</h2>
<div class="content">
<p>
SocietyHUB is webapp where society members can get all the updates related to
their society. The members also get notified with notices and events held in society and can see
information about members in society. Members can also post complaints regarding any issue in
society.
</p>
</div>
</div>
77
MCC, Department of Computer Science, 2021-22
Society Management System
<div class="cen">
<h2>Quick Links</h2>
<ul>
<li><a href="login.html">Home</a></li>
<li><a href="#Loginform">Login</a></li>
</ul>
</div>
</div>
<h2>Address</h2>
<div class="content">
<div class="place">
</div>
<div class="phone">
</div>
<div class="email">
<span class="text">[email protected]</span>
</div>
78
MCC, Department of Computer Science, 2021-22
Society Management System
</div>
</div>
</div>
<div class="copyright">
</div>
</footer>
</body>
</html>
<?php
if(isset($_POST['logina'])){
$user = $_POST['username'];
$adcode = $_POST['admincode'];
window.location.href ='managemem.php';
</script>";
else{
</script>";
?>
79
MCC, Department of Computer Science, 2021-22
Society Management System
Managemem.php
<?php
session_start();
// if(!isset($_SESSION['loggedin']) || $_SESSION['loggedin']!=true){
// header("location: Adminlogin.php");
// exit;
// }
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Manage Member</title>
<script src="https://kit.fontawesome.com/2edfbc5391.js"crossorigin="anonymous"></script>
<style>
.content-table {
border-collapse: collapse;
margin: 25px 0;
margin-left: 13px;
font-size: 0.9em;
min-width: 400px;
80
MCC, Department of Computer Science, 2021-22
Society Management System
/* overflow: hidden; */
.content-table thead tr {
background-color: #19B3D3;
color: #ffffff;
text-align: left;
font-weight: 900;
.content-table th,
.content-table td {
.content-table tbody tr {
background-color: #f3f3f3;
.Table_btn{
padding: 5px;
81
MCC, Department of Computer Science, 2021-22
Society Management System
background: #0B87A6;
text-decoration: none;
float: right;
margin-top: -3px;
margin-right: 40px;
border-radius: 8px;
font-size: 15px;
font-weight: 600;
color: #fff;
transition: 0.5s;
transition-property: background;
.Table_btn:hover{
background: #19B3D3;
.Table_btn1{
padding: 8px;
background: #0B87A6;
text-decoration: none;
float: left;
margin-top: -1px;
margin-left: 15px;
margin-right: 40px;
border-radius: 5px;
82
MCC, Department of Computer Science, 2021-22
Society Management System
font-size: 15px;
font-weight: 600;
color: #fff;
transition: 0.5s;
transition-property: background;
.Table_btn1:hover{
background: #19B3D3;
</style>
</head>
<body>
<header>
<label for="check">
</label>
<div class="left_area">
<h3>Society<span>HUB</span></h3>
</div>
<div class="right_area">
</div>
83
MCC, Department of Computer Science, 2021-22
Society Management System
</header>
<!--sidebar start-->
<div class="sidebar">
<center>
</center>
</div>
<!--sidebar end-->
<div class="content"><br><br><br><br><br><br>
<?php
$connection = mysqli_connect("localhost","root","");
$db = mysqli_select_db($connection,'usersregister');
$query_run = mysqli_query($connection,$query);
?>
84
MCC, Department of Computer Science, 2021-22
Society Management System
<table class="content-table">
<thead>
<tr>
<th>ID</th>
<th>Name</th>
<th>Email</th>
<th>Flat No.</th>
<th>Mobile No.</th>
<th>Update</th>
<th>Delete</th>
</tr>
</thead>
<?php
if($query_run)
while($row = mysqli_fetch_array($query_run))
?>
<tbody>
<tr>
85
MCC, Department of Computer Science, 2021-22
Society Management System
</form>
</form>
</tr>
</tbody>
<?php
else
?>
</table>
</div>
</body>
</html>
86
MCC, Department of Computer Science, 2021-22
Society Management System
Addnotice.php
<?php
session_start();
// if(!isset($_SESSION['loggedin']) || $_SESSION['loggedin']!=true){
// header("location: Adminlogin.php");
// exit;
// }
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Add notice</title>
<script src="https://kit.fontawesome.com/2edfbc5391.js"crossorigin="anonymous"></script>
<style>
/* .container:after{
content: '';
position: absolute;
87
MCC, Department of Computer Science, 2021-22
Society Management System
width: 100%;
height: 90%;
left: 0;
top: 0; */
/* background-size: cover; */
/* filter: blur(50px);
z-index: -1; */
.contact-box{
max-width: 850px;
display: grid;
justify-content: center;
align-items: center;
text-align: center;
background-color: #fff;
.right{
88
MCC, Department of Computer Science, 2021-22
Society Management System
h2{
position: relative;
margin-bottom: 10px;
font-size: 35px;
/* h2:after{
content: '';
position: absolute;
left: 50%;
bottom: 0;
transform: translateX(-50%);
height: 4px;
width: 50px;
border-radius: 2px;
background-color: #19B3D3;
} */
.field{
width: 50%;
outline: none;
background-color: white;
89
MCC, Department of Computer Science, 2021-22
Society Management System
font-size: 1.1rem;
margin-bottom: 22px;
transition: .3s;
.field:hover{
background-color: #f5f5f7;
textarea{
min-height: 150px;
.btn{
width: 50%;
background-color: #19B3D3;
color: #fff;
font-size: 1.1rem;
border: none;
outline: none;
cursor: pointer;
transition: .3s;
.btn:hover{
90
MCC, Department of Computer Science, 2021-22
Society Management System
background-color: #0B87A6;
.field:focus{
background-color: #fff;
</style>
</head>
<body>
<header>
<label for="check">
</label>
<div class="left_area">
<h3>Society<span>HUB</span></h3>
</div>
<div class="right_area">
</div>
</header>
<!--sidebar start-->
<div class="sidebar">
91
MCC, Department of Computer Science, 2021-22
Society Management System
<center>
</center>
</div>
<!--sidebar end-->
<div class="content"><br><br><br>
<div class="container">
<div class="contact-box">
<div class="right">
<h2>Create Notice</h2>
92
MCC, Department of Computer Science, 2021-22
Society Management System
</form>
</div>
</div>
</div>
</div>
</body>
</html>
<?php
if(isset($_POST['send_notice'])){
$connection = mysqli_connect("localhost","root","");
$db = mysqli_select_db($connection,"noticeboard");
$query_run = mysqli_query($connection,$query);
if($query_run){
window.location.href = 'managemem.php';
</script>";
else{
window.location.href = 'addnotice.php';
</script>";
?>
93
MCC, Department of Computer Science, 2021-22
Society Management System
Viewcomplaints.php
<?php
session_start();
// if(!isset($_SESSION['loggedin']) || $_SESSION['loggedin']!=true){
// header("location: Adminlogin.php");
// exit;
// }
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>View complaints</title>
<script src="https://kit.fontawesome.com/2edfbc5391.js"crossorigin="anonymous"></script>
<style>
.content-table {
border-collapse: collapse;
margin-left: 13px;
94
MCC, Department of Computer Science, 2021-22
Society Management System
font-size: 0.9em;
min-width: 400px;
overflow: hidden;
.content-table thead tr {
background-color: #19B3D3;
color: #ffffff;
text-align: left;
font-weight: 900;
.content-table th,
.content-table td {
.content-table tbody tr {
background-color: #f3f3f3;
95
MCC, Department of Computer Science, 2021-22
Society Management System
</style>
</head>
<body>
<header>
<label for="check">
</label>
<div class="left_area">
<h3>Society<span>HUB</span></h3>
</div>
<div class="right_area">
</div>
</header>
<!--sidebar start-->
<div class="sidebar">
<center>
</center>
96
MCC, Department of Computer Science, 2021-22
Society Management System
</div>
<!--sidebar end-->
<div class="content"><br><br><br><br>
<?php
$connection = mysqli_connect("localhost","root","");
$db = mysqli_select_db($connection,'complaints');
$query_run = mysqli_query($connection,$query);
?>
<table class="content-table">
<thead>
<tr>
<th>ID</th>
<th>Title</th>
<th>Complaint</th>
</tr>
</thead>
97
MCC, Department of Computer Science, 2021-22
Society Management System
<?php
if($query_run)
while($row = mysqli_fetch_array($query_run))
?>
<tbody>
<tr>
</tr>
</tbody>
<?php
else
?>
</table>
</div>
</body>
</html>
98
MCC, Department of Computer Science, 2021-22
Society Management System
Photo.php
<?php
session_start();
// if(!isset($_SESSION['loggedin']) || $_SESSION['loggedin']!=true){
// header("location: login.html");
// exit;
// }
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Photo add</title>
<script src="https://kit.fontawesome.com/2edfbc5391.js"crossorigin="anonymous"></script>
<style>
.Table_btn{
padding: 5px;
background: #0B87A6;
text-decoration: none;
padding-bottom: 5px;
margin-top: 25px;
99
MCC, Department of Computer Science, 2021-22
Society Management System
margin-right: 616px;
border-radius: 8px;
font-size: 15px;
font-weight: 600;
color: #fff;
transition: 0.5s;
transition-property: background;
.Table_btn:hover{
background: #19B3D3;
.content h2{
position: relative;
margin-bottom: 45px;
font-size: 35px;
.content p{
text-align: center;
.main{
display: flex;
justify-content: center;
100
MCC, Department of Computer Science, 2021-22
Society Management System
align-items: center;
flex-wrap: wrap;
min-height:55vh;
.alb{
width: 200px;
height: 200px;
padding: 20px;
.alb img{
width: 114%;
height: 130%;
</style>
</head>
<body>
<header>
<label for="check">
</label>
101
MCC, Department of Computer Science, 2021-22
Society Management System
<div class="left_area">
<h3>Society<span>HUB</span></h3>
</div>
<div class="right_area">
</div>
</header>
<!--sidebar start-->
<div class="sidebar">
<center>
</center>
</div>
<!--sidebar end-->
<div class="content"><br><br><br><br>
102
MCC, Department of Computer Science, 2021-22
Society Management System
<div class="main">
<?php if (isset($_GET['error'])):?>
</form>
<?php
$res = mysqli_query($conn,$sql);
<div class="alb">
</div>
<?php } }?>
</div>
</div>
</body>
</html>
103
MCC, Department of Computer Science, 2021-22
Society Management System
Insertuser.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Add member</title>
<style>
.Add_btn{
padding: 5px;
background: #0B87A6;
text-decoration: none;
/* float: right; */
margin-top: -1px;
margin-right: 2px;
border-radius: 8px;
font-size: 15px;
font-weight: 600;
color: #fff;
transition: 0.5s;
104
MCC, Department of Computer Science, 2021-22
Society Management System
transition-property: background;
.Add_btn:hover{
background: #19B3D3;
.container{
background:#b7f7d7;
width: 550px;
height: 420px;
margin-top: 90px;
margin-left: 400px;
position: relative;
text-align: center;
padding: 20px 0;
/* margin: auto; */
overflow: hidden;
.container form{
max-width: 400px;
padding: 0 70px;
position: absolute;
top: 100px;
105
MCC, Department of Computer Science, 2021-22
Society Management System
form input{
width: 100%;
height: 40px;
margin-top: 0px;
margin-bottom: 10px;
padding: 0 10px;
</style>
</head>
<body>
<div class="container">
<h1>Add Member</h1>
</form>
</div>
</body>
106
MCC, Department of Computer Science, 2021-22
Society Management System
</html>
Insertfile.php
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST'){
$Username = $_POST['username'];
$email = $_POST['email'];
$flatno = $_POST['flatno'];
$mobileno = $_POST['mobno'];
$familymem = $_POST['fammem'];
$Password = $_POST['password'];
// connecting to database
$servername = "localhost";
$username = "root";
$password = "";
$database = "usersregister";
// creating connection
if (!$conn){
107
MCC, Department of Computer Science, 2021-22
Society Management System
else{
// submitting to database
if($result){
window.location.href = 'managemem.php';
</script>";
else{
window.location.href = 'insertuser.php';
</script>";
?>
108
MCC, Department of Computer Science, 2021-22
Society Management System
Updateuser.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>updateuser</title>
<style>
.Add_btn{
padding: 5px;
background: #0B87A6;
text-decoration: none;
/* float: right; */
margin-top: -1px;
margin-right: 2px;
border-radius: 8px;
font-size: 15px;
font-weight: 600;
color: #fff;
transition: 0.5s;
transition-property: background;
109
MCC, Department of Computer Science, 2021-22
Society Management System
.Add_btn:hover{
background: #19B3D3;
.container{
background:#b7f7d7;
width: 550px;
height: 320px;
margin-top: 90px;
margin-left: 400px;
position: relative;
text-align: center;
padding: 20px 0;
/* margin: auto; */
overflow: hidden;
.container form{
max-width: 400px;
padding: 0 70px;
position: absolute;
top: 100px;
form input{
width: 100%;
110
MCC, Department of Computer Science, 2021-22
Society Management System
height: 40px;
margin-top: 0px;
margin-bottom: 10px;
padding: 0 10px;
</style>
</head>
<body>
<?php
$connection = mysqli_connect("localhost","root","");
$db = mysqli_select_db($connection,'usersregister');
$Id = $_POST['Id'];
$query_run = mysqli_query($connection,$query);
if($query_run)
while($row = mysqli_fetch_array($query_run))
?>
111
MCC, Department of Computer Science, 2021-22
Society Management System
<div class="container">
<h1>Update Member</h1>
</form>
<?php
if(isset($_POST['update']))
$Username = $_POST['username'];
$email = $_POST['email'];
$flatno = $_POST['flatno'];
$mobileno = $_POST['mobno'];
$familymem = $_POST['fammem'];
$query_run = mysqli_query($connection,$query);
112
MCC, Department of Computer Science, 2021-22
Society Management System
if($query_run)
window.location.href = 'managemem.php';
</script>";
else
window.location.href = 'updateuser.php';
</script>";
?>
</div>
<?php
else
?>
</body>
113
MCC, Department of Computer Science, 2021-22
Society Management System
</html>
Deleteuser.php
<?php
$connection = mysqli_connect("localhost","root","");
$db = mysqli_select_db($connection,'usersregister');
if(isset($_POST['delete']))
$Id = $_POST['Id'];
$query_run = mysqli_query($connection,$query);
if($query_run)
window.location.href = 'managemem.php';
</script>";
else
window.location.href = 'deleteuser.php';
</script>";
114
MCC, Department of Computer Science, 2021-22
Society Management System
?>
Logout.php
<?php
session_start();
session_unset();
session_destroy();
header("Location: login.html");
?>
115
MCC, Department of Computer Science, 2021-22
Society Management System
6. Results
6.1 Validation and Naming Conventions:
116
MCC, Department of Computer Science, 2021-22
Society Management System
6.2 Screenshots:
Home page
117
MCC, Department of Computer Science, 2021-22
Society Management System
118
MCC, Department of Computer Science, 2021-22
Society Management System
119
MCC, Department of Computer Science, 2021-22
Society Management System
120
MCC, Department of Computer Science, 2021-22
Society Management System
Admin Add member page (when Admin clicks on add member button).
121
MCC, Department of Computer Science, 2021-22
Society Management System
122
MCC, Department of Computer Science, 2021-22
Society Management System
123
MCC, Department of Computer Science, 2021-22
Society Management System
6.3 Reports:
Registration table is created where all the registered members details has been stored.
This table contains Id, Username, Email, Flatno, MobileNo, nno of family members,
Password.
This data is retrieved from database through php and mysql.
The retrieved data from this table is displayed on the website in manage member page.
Notice table is created where all the notices has been stored.
This table contains ID, Name, Type, Noticedate, Message.
This data is retrieved from database through php and mysql.
The retrieved data from this table is displayed on the website in noticeboard
page.
124
MCC, Department of Computer Science, 2021-22
Society Management System
Complaint table is created where all the complaints by user has been stored.
This table contains id, title, complaint.
This data is retrieved from database through php and mysql.
The retrieved data from this table is displayed on the website in view complaint page.
125
MCC, Department of Computer Science, 2021-22
Society Management System
7. Future Enhancement
This project can be enhanced further by adding online maintenance payment and receipt
for that should be generated for every member to reduce the extra work of admin.
Message and email alerts for various happenings in the society can be added to the
system so that users do not miss the updates and happenings of the society.
Parking management should be added to reduce parking issues.
Guest entry for every flat should be registered so that there will be no security issues.
Attending meeting online should be added to avoid get-together at meeting.
8. Conclusion
In the current phase of pandemic, systems like society management system are required
to maintain society functioning smoothly.
This project reduces the manual work for managing society members records, passing
notices to each member and also registering complaints.
9. References
https://www.w3schools.com/php/
https://www.youtube.com/
https://www.tutorialspoint.com/
https://www.javatpoint.com/php-tutorial
https://www.w3schools.com/php/
126
MCC, Department of Computer Science, 2021-22
Society Management System
10. Annexure
127
MCC, Department of Computer Science, 2021-22