Beruflich Dokumente
Kultur Dokumente
PROJECT REPORT
ON
HOSTEL MANAGEMENT SYSTEM
Submitted By:
Project Guide Pramod Singh Rautela
Dr. M.K.Sharma Prateek Mishra
Professor Priyanka Joshi
AIMCA Pramod Rana
Rahul singh bhoj
CERTIFICATE
Date
Place
Dr.
M.K,Sharma
Professor
AIMCA, Haldwani
(Project Guide)
3
4
ACKNOWLEDGEMENT
Exchange of ideas generate the new object to work in a better way whenever a
person is helped and cooperated by others his heart is bound to pay gratitude
and obligation to them.
To develop a project is not a one-man show. It is essentially a collective work,
where every step taken with all precautions and care.
Therefore our first duty is to THANKS all persons who took pain in completing
this project.
Firstly, we thank our mentor Dr. M.K.Sharma who gave us inspiration to do
work in this project and gave us his precious time whenever needed.
Thanks may be the matter of merely formality but with us it is expression of
heartfelt gratitude to our project supervision.
We are highly indebted for his invaluable suggestions and boosting confidence
to make this successful.
The success of this work is mostly due to his suitable guidance.
We also thank our class fellows and friends, who helped us a lot during our
project work.
For the partial fulfillment of the requirements of the minor project embodies
the work we all are doing during 5th semester of BCA under supervision of the
supervisor from this project.
CANDIDATES DECLARATION
We hereby declare that the work, which is being presented in the report entitled,
HOSTEL MANAGEMENT SYSTEM, in the fulfillment of the requirement
for the award of degree of Bachelor of Computer Applications, Haldwani is an
authentic Record of our work carried out under the supervision of
Dr.M.K.Sharma, Professor, Department of Amrapali Institute Of Management
& Computer Application, Haldwani. The matter embodied in this report has not
been submitted by us for the award of any other degree.
DATE:
Table of Content:
1- INTRODUCTION
2-SYTEM STUDY
2.3FEASIBILITY STUDY
2.3.3DURATION FEASIBILITY
3-SYSTEM ANALYSIS
3.1SYSTEM FLOWCHARTS
3.2E-R DIAGRAMS
4-SYSTEM DESIGN
4.1FILE/DATABASE DESIGN
4.2NORMALIZATION
5-CODING
5.1LIST OF PROGRAMS
5.2 INPUTS
5.3 OUTPUTS
6- SYSTEM TESTING
7- SYSTEM SECURITY
8.1 CONCLUSION
1.1 INTRODUCTION
hostel and avoids the problems which occur when carried manually.
Identification of the drawbacks of the existing system leads to the development of
computerized hostel
management system that will be compatible to the existing system with the system
which is more users
friendly and more GUI oriented. We can improve the efficiency of the system, thus
overcome the drawbacks
of the existing hostel management system.Less human error, Strength and strain of
manual labour can be
reduced, High security, Data redundancy can be avoided to some extent, Data
consistency, Easy to handle,
Easy data updating, Easy record keeping, Backup data can be easily generated.
1.1 Background
This Hostel Management System is developed in favor of the hostel management team
which helps them to
save the records of the students about their rooms and other things. It helps them from
the manual work from
which it is very difficult to find the record of the students and the information about
those ones who had left the
hostel years before.
This solution is developed on the plight of the hostel management team, through this
they cannot require so
efficient person to handle and manage the affairs of the students in the hostel, all you
need to do is to
login as administrator and you can see the information of all the students who have
obtained and registered their
hostel form, click verify to ascertain their eligibility and allocate them to the available
hostel.
12
1.2 Objectives
The main objectives of this project work are that:
Student will no longer apply for their hostels manually.
The warden can see and access the students data.
This also will reduce the manual work of the persons in admin penal.
It helps the admin to know the number of students that can leave in a room and a block.
To ensure that the number of student staying in a room does not exceed specified limit.
Help the admin to disseminate information to students without calling for a meeting or
moving room
b room.
To know the number of items (e.g. bed) given to student staying in the hostel
To ensure that student remit the hostel property given to them before vacating the
hostel.
PROJECT DEFINITION:
This system developed will reduce the manual work and avoid redundant data.
By maintaining the teaching manually, then efficient reports cannot be
generated. The system can generate efficient weekly consolidate report based
on the kids skills. As the data are maintained in registers it has been a tough
task for admin and staff to maintain for long time. Instead the software can
keep long and retrieve the information when needed.
PROJECT OVERVIEW:
Kids learning basically has two main modules for proper functioning
Admin module is has rights for creating any new entry of student details.
User has rights of collect daily marks, generating result.
Result report can be taken by given details of student details, class.
MODULE DESCRIPTION:
The system should be designed in such a way that only authorized people
should be allowed to access some
Particular modules. The records should be modified by only administrators
and no one else. The user should always be in control of the application and
not the vice versa.
PROJECT CATEGORY:
15
For academic purpose only. This project is used for academic purpose only.
Learning of the students can be managed by this system. This can be used by
the institution or any educational department for which it is designed.
16
TOOLS/PLATFORM REQUIRED:
2- SYSTEM STUDY
In the present system all work is done on paper. The whole session Score is
stored in register and at the end of the session the result are generated. We are
not interested in generating result in the middle of the session or as per the
requirement because it takes more time in calculation. At the end of session the
students can see their total performance.
LIMITATIONS
OBJECTIVE
1. Accuracy: - The level of accuracy in the propose system will be higher. All
operation would be done
2. correctly and it ensures that whatever information is coming from the center is
accurate
3. Reliability: - The reliability of the proposed system will be high due to the above
stated reasons. The
4. reason for the increased reliability of the system is that now there would be
proper storage of information.
7. Reports Generation Easy: reports can be easily generated in the proposed system
so user can generate the report as per the requirement (monthly) or in the
middle of the session. User can give the notice to the students about their
performance.
8. Very Less Paper Work: The proposed system requires very less paper work. All
the data is feted into the computer immediately and reports can be generated
through computers. Moreover work became very easy because there is no need to
keep data on paper.
Depending on the results of the initial investigation the survey is now expanded
to a more detailed feasibility study. FEASIBILITY STUDY is a test of system
proposal according to its workability, impact of the organization, ability to meet
needs and effective use of the resources. It focuses on these major questions:
During feasibility analysis for this project, following primary areas of interest
are to be considered. Investigation and generating ideas about a new system
does this.
Steps in feasibility analysis
Eight steps involved in the feasibility analysis are:
The study of resource availability that may affect the ability to achieve an
acceptable system. This evolution determines whether the technology needed
for the proposed system is available or not.
Can the work for the project be done with current equipment existing
software technology &available personal?
3-SYSTEM ANALYSIS
DATA STORE: - The data store represents a logical file. A logical file can
represent either a data store symbol which can represent either
a data structure or a physical file on disk. The data store is used to collect data
at rest or a temporary repository of data.
25
26
1-Level DFD
27
2-Level DFD
29
2.2-Level DFD
30
31
Coding :
Login page :
<?php
session_start();
include('includes/config.php');
if(isset($_POST['login']))
{
$email=$_POST['email'];
$password=$_POST['password'];
$stmt=$mysqli->prepare("SELECT email,password,id
FROM userregistration WHERE email=? and
password=? ");
$stmt-
>bind_param('ss',$email,$password);
$stmt->execute();
$stmt ->
bind_result($email,$password,$id);
$rs=$stmt->fetch();
$stmt->close();
32
$_SESSION['id']=$id;
$_SESSION['login']=$email;
$uip=$_SERVER['REMOTE_ADDR'];
$ldate=date('d/m/
Y h:i:s', time());
if($rs)
{
$uid=$_SESSION['id'];
$uemail=$_SESSION['login'];
$ip=$_SERVER['REMOTE_ADDR'];
$geopluginURL='http://www.geoplugin.net/php.gp?ip=
'.$ip;
$addrDetailsArr =
unserialize(file_get_contents($geopluginURL));
$city = $addrDetailsArr['geoplugin_city'];
$country =
$addrDetailsArr['geoplugin_countryName'];
33
$log="insert into
userLog(userId,userEmail,userIp,city,country)
values('$uid','$uemail','$ip','$city','$country')";
$mysqli->query($log);
if($log)
{
header("location:dashboard.php");
}
}
else
{
echo
"<script>alert('Invalid Username/Email or
password');</script>";
}
}
?>
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta
charset="UTF-8">
34
<meta http-
equiv="X-UA-Compatible" content="IE=edge">
<link
rel="stylesheet" href="css/bootstrap-select.css">
<link
rel="stylesheet" href="css/fileinput.min.css">
<link
rel="stylesheet" href="css/awesome-bootstrap-
checkbox.css">
<link
rel="stylesheet" href="css/style.css">
<script type="text/javascript" src="js/jquery-1.11.3-
jquery.min.js"></script>
<script type="text/javascript"
src="js/validation.min.js"></script>
<script type="text/javascript"
src="http://code.jquery.com/jquery.min.js"></script>
<script type="text/javascript">
function valid()
{
if(document.registration.password.value!=
document.registration.cpassword.value)
{
alert("Password and Re-Type Password Field do not
match !!");
36
document.registration.cpassword.focus();
return false;
}
return true;
}
</script>
</head>
<body>
<?php
include('includes/header.php');?>
<div class="ts-
main-content">
<?php
include('includes/sidebar.php');?>
<div
class="content-wrapper">
<div
class="container-fluid">
<div class="row">
<div class="col-
37
md-12">
<h2
class="page-title">User Login </h2>
<div
class="row">
<div class="col-
md-6 col-md-offset-3">
<div
class="well row pt-2x pb-3x bk-light">
<div
class="col-md-8 col-md-offset-2">
<form
action="" class="mt" method="post">
38
<input
type="text" placeholder="Email" name="email"
class="form-control mb">
<input
type="password" placeholder="Password"
name="password" class="form-control mb">
<input
39
</form>
</div>
</div>
<div
class="text-center text-light">
<a h
ref="forgot-password.php" class="text-light">Forgot
password?</a>
</div>
</div>
</div>
</div>
40
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script
src="js/jquery.min.js"></script>
<script
src="js/bootstrap-select.min.js"></script>
<script
src="js/bootstrap.min.js"></script>
<script
src="js/jquery.dataTables.min.js"></script>
<script
src="js/dataTables.bootstrap.min.js"></script>
<script
src="js/Chart.min.js"></script>
41
<script
src="js/fileinput.js"></script>
<script
src="js/chartData.js"></script>
<script
src="js/main.js"></script>
</body>
</html>
42
Registration page:
<?php
session_start();
include('includes/config.php');
if(isset($_POST['submit']))
{
$regno=$_POST['regno'];
$fname=$_POST['fname'];
$mname=$_POST['mname'];
$lname=$_POST['lname'];
$gender=$_POST['gender'];
$contactno=$_POST['contact'];
$emailid=$_POST['email'];
$password=$_POST['password'];
$query="insert into
userRegistration(regNo,firstName,middleName,lastName,ge
nder,contactNo,email,password) values(?,?,?,?,?,?,?,?)";
$stmt = $mysqli->prepare($query);
$rc=$stmt-
>bind_param('sssssiss',$regno,$fname,$mname,$lname,$gen
der,$contactno,$emailid,$password);
$stmt->execute();
43
echo"<script>alert('Student Succssfully
register');</script>";
}
?>
<!doctype html>
document.registration.cpassword.value)
{
alert("Password and Re-Type Password Field do not match
!!");
document.registration.cpassword.focus();
return false;
}
45
return true;
}
</script>
</head>
<body>
<?php include('includes/header.php');?>
<div class="ts-main-content">
<?php include('includes/sidebar.php');?>
<div class="content-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<h2 class="page-title">Student
Registration </h2>
<div class="row">
<div class="col-md-12">
<div class="panel
panel-primary">
46
<div class="form-group">
<label class="col-sm-2 control-label"> Registration No :
</label>
<div class="col-sm-8">
<input type="text" name="regno" id="regno"
class="form-control" required="required" >
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">First Name : </label>
<div class="col-sm-8">
<input type="text" name="fname" id="fname"
class="form-control" required="required" >
47
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Middle Name :
</label>
<div class="col-sm-8">
<input type="text" name="mname" id="mname"
class="form-control">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Last Name : </label>
<div class="col-sm-8">
<input type="text" name="lname" id="lname"
class="form-control" required="required">
</div>
</div>
<div class="form-group">
48
<div class="form-group">
49
<div class="form-group">
<label class="col-sm-2 control-label">Password: </label>
<div class="col-sm-8">
<input type="password" name="password" id="password"
class="form-control" required="required">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Confirm Password :
</label>
50
<div class="col-sm-8">
<input type="password" name="cpassword"
id="cpassword" class="form-control"
required="required">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
51
</div>
</div>
</div>
</div>
</div>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap-select.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.dataTables.min.js"></script>
<script src="js/dataTables.bootstrap.min.js"></script>
<script src="js/Chart.min.js"></script>
<script src="js/fileinput.js"></script>
<script src="js/chartData.js"></script>
<script src="js/main.js"></script>
</body>
<script>
function checkAvailability() {
$("#loaderIcon").show();
jQuery.ajax({
url: "check_availability.php",
52
data:'emailid='+$("#email").val(),
type: "POST",
success:function(data){
$("#user-availability-status").html(data);
$("#loaderIcon").hide();
},
error:function ()
{
event.preventDefault();
alert('error');
}
});
}
</script>
</html>
53
$emailid=$_POST['email'];
$emcntno=$_POST['econtact'];
$gurname=$_POST['gname'];
$gurrelation=$_POST['grelation'];
$gurcntno=$_POST['gcontact'];
$caddress=$_POST['address'];
$ccity=$_POST['city'];
$cstate=$_POST['state'];
$cpincode=$_POST['pincode'];
$paddress=$_POST['paddress'];
$pcity=$_POST['pcity'];
$pstate=$_POST['pstate'];
$ppincode=$_POST['ppincode'];
$query="insert into
registration(roomno,seater,feespm,foodstatus,stayfrom,duration,c
ourse,regno,firstName,middleName,lastName,gender,contactno,e
mailid,egycontactno,guardianName,guardianRelation,guardianC
ontactno,corresAddress,corresCIty,corresState,corresPincode,pm
ntAddress,pmntCity,pmnatetState,pmntPincode)
values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
$stmt = $mysqli->prepare($query);
$rc=$stmt-
>bind_param('iiiisisissssisississsisssi',$roomno,$seater,$feespm,$f
oodstatus,$stayfrom,$duration,$course,$regno,$fname,$mname,$l
name,$gender,$contactno,$emailid,$emcntno,$gurname,$gurrelat
55
ion,$gurcntno,$caddress,$ccity,$cstate,$cpincode,$paddress,$pcit
y,$pstate,$ppincode);
$stmt->execute();
echo"<script>alert('Student Succssfully register');</script>";
}
?>
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible"
content="IE=edge">
<meta name="viewport" content="width=device-width,
initial-scale=1, minimum-scale=1, maximum-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<meta name="theme-color" content="#3e454c">
<title>Student Hostel Registration</title>
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet"
href="css/dataTables.bootstrap.min.css">>
<link rel="stylesheet" href="css/bootstrap-social.css">
56
$.ajax({
57
type: "POST",
url: "get_seater.php",
data:'rid='+val,
success: function(data){
//alert(data);
$('#fpm').val(data);
}
});
}
</script>
</head>
<body>
<?php include('includes/header.php');?>
<div class="ts-main-content">
<?php include('includes/sidebar.php');?>
<div class="content-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
58
<h2 class="page-
title">Registration </h2>
<div class="row">
<div class="col-md-12">
<div class="panel
panel-primary">
<div class="panel-
heading">Fill all Info</div>
<div class="panel-
body">
<form
method="post" action="" class="form-horizontal">
<?php
$uid=$_SESSION['login'];
$stmt=$mysqli-
>prepare("SELECT emailid FROM registration WHERE
emailid=? ");
$stmt->bind_param('s',$uid);
$stmt->execute();
$stmt -> bind_result($email);
$rs=$stmt->fetch();
$stmt->close();
if($rs)
{ ?>
59
<div class="form-group">
<label class="col-sm-2 control-label">Room no. </label>
<div class="col-sm-8">
<select name="room" id="room"class="form-control"
onChange="getSeater(this.value);" onBlur="checkAvailability()"
required>
<option value="">Select Room</option>
<?php $query ="SELECT * FROM rooms";
$stmt2 = $mysqli->prepare($query);
$stmt2->execute();
$res=$stmt2->get_result();
while($row=$res->fetch_object())
60
{
?>
<option value="<?php echo $row->room_no;?>"> <?php echo
$row->room_no;?></option>
<?php } ?>
</select>
<span id="room-availability-status" style="font-
size:12px;"></span>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Seater</label>
<div class="col-sm-8">
<input type="text" name="seater" id="seater" class="form-
control" >
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Fees Per Month</label>
<div class="col-sm-8">
61
<div class="form-group">
<label class="col-sm-2 control-label">Food Status</label>
<div class="col-sm-8">
<input type="radio" value="0" name="foodstatus"
checked="checked"> Without Food
<input type="radio" value="1" name="foodstatus"> With
Food(Rs 2000.00 Per Month Extra)
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Stay From</label>
<div class="col-sm-8">
<input type="date" name="stayf" id="stayf" class="form-
control" >
</div>
</div>
<div class="form-group">
62
<div class="form-group">
<label class="col-sm-2 control-label">Total Amount</label>
63
<div class="col-sm-8">
<input type="text" name="ta" id="ta" class="result form-
control" >
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label"><h4 style="color: green"
align="left">Personal info </h4> </label>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">course </label>
<div class="col-sm-8">
<select name="course" id="course" class="form-control"
required>
<option value="">Select Course</option>
<?php $query ="SELECT * FROM courses";
$stmt2 = $mysqli->prepare($query);
$stmt2->execute();
$res=$stmt2->get_result();
while($row=$res->fetch_object())
{
64
?>
<option value="<?php echo $row->course_fn;?>"><?php echo
$row->course_fn;?> (<?php echo $row-
>course_sn;?>)</option>
<?php } ?>
</select> </div>
</div>
<?php
$aid=$_SESSION['id'];
$ret="select * from userregistration where id=?";
$stmt= $mysqli->prepare($ret) ;
$stmt->bind_param('i',$aid);
$stmt->execute() ;//ok
$res=$stmt->get_result();
//$cnt=1;
while($row=$res->fetch_object())
{
?>
<div class="form-group">
<label class="col-sm-2 control-label">Registration No : </label>
<div class="col-sm-8">
65
<div class="form-group">
<label class="col-sm-2 control-label">First Name : </label>
<div class="col-sm-8">
<input type="text" name="fname" id="fname" class="form-
control" value="<?php echo $row->firstName;?>" readonly>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Middle Name : </label>
<div class="col-sm-8">
<input type="text" name="mname" id="mname" class="form-
control" value="<?php echo $row->middleName;?>" readonly>
</div>
</div>
<div class="form-group">
66
<div class="form-group">
<label class="col-sm-2 control-label">Gender : </label>
<div class="col-sm-8">
<input type="text" name="gender" value="<?php echo $row-
>gender;?>" class="form-control" readonly>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Contact No : </label>
<div class="col-sm-8">
<input type="text" name="contact" id="contact" value="<?php
echo $row->contactNo;?>" class="form-control" readonly>
</div>
</div>
67
<div class="form-group">
<label class="col-sm-2 control-label">Email id : </label>
<div class="col-sm-8">
<input type="email" name="email" id="email" class="form-
control" value="<?php echo $row->email;?>" readonly>
</div>
</div>
<?php } ?>
<div class="form-group">
<label class="col-sm-2 control-label">Emergency Contact:
</label>
<div class="col-sm-8">
<input type="text" name="econtact" id="econtact"
class="form-control" required="required">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Guardian Name : </label>
<div class="col-sm-8">
<input type="text" name="gname" id="gname" class="form-
control" required="required">
</div>
68
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Guardian Relation :
</label>
<div class="col-sm-8">
<input type="text" name="grelation" id="grelation"
class="form-control" required="required">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Guardian Contact no :
</label>
<div class="col-sm-8">
<input type="text" name="gcontact" id="gcontact"
class="form-control" required="required">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label"><h4 style="color: green"
align="left">Correspondense Address </h4> </label>
</div>
69
<div class="form-group">
<label class="col-sm-2 control-label">Address : </label>
<div class="col-sm-8">
<textarea rows="5" name="address" id="address"
class="form-control" required="required"></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">City : </label>
<div class="col-sm-8">
<input type="text" name="city" id="city" class="form-control"
required="required">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">State </label>
<div class="col-sm-8">
<select name="state" id="state"class="form-control" required>
<option value="">Select State</option>
70
<div class="form-group">
<label class="col-sm-2 control-label">Pincode : </label>
<div class="col-sm-8">
<input type="text" name="pincode" id="pincode" class="form-
control" required="required">
</div>
</div>
<div class="form-group">
71
<div class="form-group">
<label class="col-sm-5 control-label">Permanent Address same
as Correspondense address : </label>
<div class="col-sm-4">
<input type="checkbox" name="adcheck" value="1"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Address : </label>
<div class="col-sm-8">
<textarea rows="5" name="paddress" id="paddress"
class="form-control" required="required"></textarea>
</div>
</div>
<div class="form-group">
72
<div class="form-group">
<label class="col-sm-2 control-label">State </label>
<div class="col-sm-8">
<select name="pstate" id="pstate"class="form-control"
required>
<option value="">Select State</option>
<?php $query ="SELECT * FROM states";
$stmt2 = $mysqli->prepare($query);
$stmt2->execute();
$res=$stmt2->get_result();
while($row=$res->fetch_object())
{
?>
<option value="<?php echo $row->State;?>"><?php echo $row-
>State;?></option>
<?php } ?>
73
</select> </div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Pincode : </label>
<div class="col-sm-8">
<input type="text" name="ppincode" id="ppincode"
class="form-control" required="required">
</div>
</div>
</div>
</div>
</div>
74
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap-select.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.dataTables.min.js"></script>
<script src="js/dataTables.bootstrap.min.js"></script>
<script src="js/Chart.min.js"></script>
<script src="js/fileinput.js"></script>
<script src="js/chartData.js"></script>
<script src="js/main.js"></script>
</body>
<script type="text/javascript">
$(document).ready(function(){
$('input[type="checkbox"]').click(function(){
75
if($(this).prop("checked") == true){
$('#paddress').val( $('#address').val() );
$('#pcity').val( $('#city').val() );
$('#pstate').val( $('#state').val() );
$('#ppincode').val( $('#pincode').val() );
}
});
});
</script>
<script>
function checkAvailability() {
$("#loaderIcon").show();
jQuery.ajax({
url: "check_availability.php",
data:'roomno='+$("#room").val(),
type: "POST",
success:function(data){
$("#room-availability-status").html(data);
$("#loaderIcon").hide();
},
error:function (){}
76
});
}
</script>
<script type="text/javascript">
$(document).ready(function() {
$('#duration').keyup(function(){
var fetch_dbid = $(this).val();
$.ajax({
type:'POST',
url :"ins-amt.php?action=userid",
data :{userinfo:fetch_dbid},
success:function(data){
$('.result').val(data);
}
});
})});
</script>
</html>
77
Profile code:
<?php
session_start();
include('includes/config.php');
date_default_timezone_set('Asia/Kolkata');
include('includes/checklogin.php');
check_login();
$aid=$_SESSION['id'];
if(isset($_POST['update']))
{
$regno=$_POST['regno'];
$fname=$_POST['fname'];
$mname=$_POST['mname'];
$lname=$_POST['lname'];
$gender=$_POST['gender'];
$contactno=$_POST['contact'];
$udate = date('d-m-Y h:i:s', time());
$query="update userRegistration set
regNo=?,firstName=?,middleName=?,lastName=?,gender=?,conta
ctNo=?,updationDate=? where id=?";
$stmt = $mysqli->prepare($query);
78
$rc=$stmt-
>bind_param('sssssisi',$regno,$fname,$mname,$lname,$gender,$
contactno,$udate,$aid);
$stmt->execute();
echo"<script>alert('Profile updated Succssfully');</script>";
}
?>
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible"
content="IE=edge">
<meta name="viewport" content="width=device-width,
initial-scale=1, minimum-scale=1, maximum-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<meta name="theme-color" content="#3e454c">
<title>Profile Updation</title>
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet"
href="css/dataTables.bootstrap.min.css">>
79
</script>
</head>
<body>
<?php include('includes/header.php');?>
<div class="ts-main-content">
<?php include('includes/sidebar.php');?>
<div class="content-wrapper">
<div class="container-fluid">
<?php
$aid=$_SESSION['id'];
$ret="select * from userregistration where id=?";
$stmt= $mysqli->prepare($ret) ;
$stmt->bind_param('i',$aid);
$stmt->execute() ;//ok
$res=$stmt->get_result();
//$cnt=1;
while($row=$res->fetch_object())
{
?>
<div class="row">
<div class="col-md-12">
<h2 class="page-title"><?php
echo $row->firstName;?>'s Profile </h2>
81
<div class="row">
<div class="col-md-12">
<div class="panel
panel-primary">
<div class="panel-
heading">
<div class="panel-body">
<form method="post" action="" name="registration"
class="form-horizontal" onSubmit="return valid();">
<div class="form-group">
<label class="col-sm-2 control-label"> Registration No : </label>
<div class="col-sm-8">
<input type="text" name="regno" id="regno" class="form-
control" required="required" value="<?php echo $row-
>regNo;?>" >
82
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">First Name : </label>
<div class="col-sm-8">
<input type="text" name="fname" id="fname" class="form-
control" value="<?php echo $row->firstName;?>"
required="required" >
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Middle Name : </label>
<div class="col-sm-8">
<input type="text" name="mname" id="mname" class="form-
control" value="<?php echo $row->middleName;?>" >
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Last Name : </label>
83
<div class="col-sm-8">
<input type="text" name="lname" id="lname" class="form-
control" value="<?php echo $row->lastName;?>"
required="required">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Gender : </label>
<div class="col-sm-8">
<select name="gender" class="form-control"
required="required">
<option value="<?php echo $row->gender;?>"><?php echo
$row->gender;?></option>
<option value="male">Male</option>
<option value="female">Female</option>
<option value="others">Others</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Contact No : </label>
84
<div class="col-sm-8">
<input type="text" name="contact" id="contact" class="form-
control" maxlength="10" value="<?php echo $row-
>contactNo;?>" required="required">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Email id: </label>
<div class="col-sm-8">
<input type="email" name="email" id="email" class="form-
control" value="<?php echo $row->email;?>" readonly>
<span id="user-availability-status" style="font-
size:12px;"></span>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap-select.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.dataTables.min.js"></script>
<script src="js/dataTables.bootstrap.min.js"></script>
86
<script src="js/Chart.min.js"></script>
<script src="js/fileinput.js"></script>
<script src="js/chartData.js"></script>
<script src="js/main.js"></script>
</body>
<script type="text/javascript">
$(document).ready(function(){
$('input[type="checkbox"]').click(function(){
if($(this).prop("checked") == true){
$('#paddress').val( $('#address').val() );
$('#pcity').val( $('#city').val() );
$('#pstate').val( $('#state').val() );
$('#ppincode').val( $('#pincode').val() );
}
});
});
</script>
<script>
function checkAvailability() {
$("#loaderIcon").show();
87
jQuery.ajax({
url: "check_availability.php",
data:'emailid='+$("#email").val(),
type: "POST",
success:function(data){
$("#user-availability-status").html(data);
$("#loaderIcon").hide();
},
error:function (){}
});
}
</script>
</html>
88
}
?>
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible"
content="IE=edge">
<meta name="viewport" content="width=device-width,
initial-scale=1, minimum-scale=1, maximum-scale=1">
90
if(document.changepwd.newpassword.value!=
document.changepwd.cpassword.value)
91
{
alert("Password and Re-Type Password Field do not match !!");
document.changepwd.cpassword.focus();
return false;
}
return true;
}
</script>
</head>
<body>
<?php include('includes/header.php');?>
<div class="ts-main-content">
<?php include('includes/sidebar.php');?>
<div class="content-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<h2 class="page-title">Change
Password </h2>
92
<div class="row">
<div class="col-md-
10">
<div class="panel
panel-default">
<div class="panel-
heading">
<?php $result ="SELECT passUdateDate FROM
userregistration WHERE id=?";
$stmt = $mysqli->prepare($result);
$stmt->bind_param('i',$ai);
$stmt->execute();
$stmt -> bind_result($result);
$stmt -> fetch(); ?>
Last Updation
Date: <?php echo $result; ?> </div>
<div class="panel-
body">
<form method="post" class="form-
horizontal" name="changepwd" id="change-pwd"
onSubmit="return valid();">
<?php if(isset($_POST['changepwd']))
{ ?>
93
<p
style="color: red"><?php echo htmlentities($_SESSION['msg']);
?><?php echo htmlentities($_SESSION['msg']=""); ?></p>
<?php } ?>
<div
class="hr-dashed"></div>
<div
class="form-group">
<div class="col-sm-8">
<input type="password" value=""
name="oldpassword" id="oldpassword" class="form-control"
onBlur="checkpass()" required="required">
<span
id="password-availability-status" class="help-block m-b-none"
style="font-size:12px;"></span> </div>
</div>
<div
class="form-group">
<div class="col-sm-8">
94
<input
type="password" class="form-control" name="newpassword"
id="newpassword" value="" required="required">
</div>
</div>
<div class="form-group">
<label class="col-
sm-4 control-label">Confirm Password</label>
<div class="col-
sm-8">
<input type="password" class="form-
control" value="" required="required" id="cpassword"
name="cpassword" >
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
96
</div>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap-select.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.dataTables.min.js"></script>
<script src="js/dataTables.bootstrap.min.js"></script>
<script src="js/Chart.min.js"></script>
<script src="js/fileinput.js"></script>
<script src="js/chartData.js"></script>
<script src="js/main.js"></script>
<script>
function checkpass() {
$("#loaderIcon").show();
jQuery.ajax({
url: "check_availability.php",
data:'oldpassword='+$("#oldpassword").val(),
type: "POST",
success:function(data){
$("#password-availability-status").html(data);
$("#loaderIcon").hide();
97
},
error:function (){}
});
}
</script>
</body>
</html>
98
Admin code:
<?php
session_start();
include('includes/config.php');
if(isset($_POST['login']))
{
$username=$_POST['username'];
$password=$_POST['password'];
$stmt=$mysqli->prepare("SELECT username,email,password,id
FROM admin WHERE (userName=?|| email=?) and password=?
");
$stmt-
>bind_param('sss',$username,$username,$password);
$stmt->execute();
$stmt ->
bind_result($username,$username,$password,$id);
$rs=$stmt->fetch();
$_SESSION['id']=$id;
$uip=$_SERVER['REMOTE_ADDR'];
$ldate=date('d/m/Y h:i:s', time());
if($rs)
{
// $insert="INSERT into
admin(adminid,ip)VALUES(?,?)";
99
// $stmtins = $mysqli->prepare($insert);
// $stmtins->bind_param('sH',$id,$uip);
//$res=$stmtins->execute();
header("location:admin-profile.php");
}
else
{
echo "<script>alert('Invalid
Username/Email or password');</script>";
}
}
?>
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible"
content="IE=edge">
<meta name="viewport" content="width=device-width,
initial-scale=1, minimum-scale=1, maximum-scale=1">
<meta name="description" content="">
100
<title>Admin login</title>
<form action=""
class="mt" method="post">
<label for=""
class="text-uppercase text-sm">Your Username or
Email</label>
<input
type="text" placeholder="Username" name="username"
class="form-control mb">
<label for=""
class="text-uppercase text-sm">Password</label>
<input
type="password" placeholder="Password" name="password"
class="form-control mb">
<input
type="submit" name="login" class="btn btn-primary btn-block"
value="login" >
</form>
102
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap-select.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.dataTables.min.js"></script>
<script src="js/dataTables.bootstrap.min.js"></script>
<script src="js/Chart.min.js"></script>
<script src="js/fileinput.js"></script>
<script src="js/chartData.js"></script>
<script src="js/main.js"></script>
</body>
</html>
103
if(isset($_GET['del']))
{
$id=intval($_GET['del']);
$adn="delete from registration where id=?";
$stmt= $mysqli->prepare($adn);
$stmt->bind_param('i',$id);
$stmt->execute();
$stmt->close();
echo "<script>alert('Data Deleted');</script>" ;
}
?>
<!doctype html>
<html lang="en" class="no-js">
<head>
104
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible"
content="IE=edge">
<meta name="viewport" content="width=device-width,
initial-scale=1, minimum-scale=1, maximum-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<meta name="theme-color" content="#3e454c">
<title>Manage Rooms</title>
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet"
href="css/dataTables.bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-social.css">
<link rel="stylesheet" href="css/bootstrap-select.css">
<link rel="stylesheet" href="css/fileinput.min.css">
<link rel="stylesheet" href="css/awesome-bootstrap-
checkbox.css">
<link rel="stylesheet" href="css/style.css">
<script language="javascript" type="text/javascript">
var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
if(popUpWin)
105
{
if(!popUpWin.closed) popUpWin.close();
}
popUpWin = open(URLStr,'popUpWin',
'toolbar=no,location=no,directories=no,status=no,menubar=no,sc
rollbars=yes,resizable=no,copyhistory=yes,width='+510+',height=
'+430+',left='+left+',
top='+top+',screenX='+left+',screenY='+top+'');
}
</script>
</head>
<body>
<?php include('includes/header.php');?>
<div class="ts-main-content">
<?php include('includes/sidebar.php');?>
<div class="content-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<h2 class="page-title">Manage
Rooms</h2>
106
<th>Sno.</th>
<th>Student Name</th>
<th>Reg no</th>
<th>Contact no </th>
<th>room no </th>
<th>Seater </th>
<th>Action</th>
</tr>
107
</thead>
<tfoot>
<tr>
<th>Sno.</th>
<th>Student Name</th>
<th>Reg no</th>
<th>Contact no </th>
<th>Room no </th>
<th>Seater </th>
<th>Action</th>
</tr>
</tfoot>
<tbody>
<?php
$aid=$_SESSION['id'];
$ret="select * from registration";
108
$stmt= $mysqli->prepare($ret) ;
//$stmt->bind_param('i',$aid);
$stmt->execute() ;//ok
$res=$stmt->get_result();
$cnt=1;
while($row=$res->fetch_object())
{
?>
<tr><td><?php echo $cnt;;?></td>
<td><?php echo $row->firstName;?><?php echo $row-
>middleName;?><?php echo $row->lastName;?></td>
<td><?php echo $row->regno;?></td>
<td><?php echo $row->contactno;?></td>
<td><?php echo $row->roomno;?></td>
<td><?php echo $row->seater;?></td>
<td><?php echo $row->stayfrom;?></td>
<td>
<a href="javascript:void(0);"
onClick="popUpWindow('http://localhost/hostel/admin/full-
profile.php?id=<?php echo $row->id;?>');" title="View Full
Details"><i class="fa fa-desktop"></i></a>
<a href="manage-students.php?del=<?php echo $row->id;?>"
title="Delete Record" onclick="return confirm("Do you want to
delete");"><i class="fa fa-close"></i></a></td>
109
</tr>
<?php
$cnt=$cnt+1;
} ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
110
</body>
</html>
111
if(isset($_GET['del']))
{
$id=intval($_GET['del']);
$adn="delete from registration where id=?";
$stmt= $mysqli->prepare($adn);
$stmt->bind_param('i',$id);
$stmt->execute();
$stmt->close();
echo "<script>alert('Data Deleted');</script>" ;
}
?>
<!doctype html>
<html lang="en" class="no-js">
<head>
112
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible"
content="IE=edge">
<meta name="viewport" content="width=device-width,
initial-scale=1, minimum-scale=1, maximum-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<meta name="theme-color" content="#3e454c">
<title>Manage Rooms</title>
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet"
href="css/dataTables.bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-social.css">
<link rel="stylesheet" href="css/bootstrap-select.css">
<link rel="stylesheet" href="css/fileinput.min.css">
<link rel="stylesheet" href="css/awesome-bootstrap-
checkbox.css">
<link rel="stylesheet" href="css/style.css">
<script language="javascript" type="text/javascript">
var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
if(popUpWin)
113
{
if(!popUpWin.closed) popUpWin.close();
}
popUpWin = open(URLStr,'popUpWin',
'toolbar=no,location=no,directories=no,status=no,menubar=no,sc
rollbars=yes,resizable=no,copyhistory=yes,width='+510+',height=
'+430+',left='+left+',
top='+top+',screenX='+left+',screenY='+top+'');
}
</script>
</head>
<body>
<?php include('includes/header.php');?>
<div class="ts-main-content">
<?php include('includes/sidebar.php');?>
<div class="content-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<h2 class="page-title">Manage
Rooms</h2>
114
<th>Sno.</th>
<th>Student Name</th>
<th>Reg no</th>
<th>Contact no </th>
<th>room no </th>
<th>Seater </th>
<th>Action</th>
</tr>
115
</thead>
<tfoot>
<tr>
<th>Sno.</th>
<th>Student Name</th>
<th>Reg no</th>
<th>Contact no </th>
<th>Room no </th>
<th>Seater </th>
<th>Action</th>
</tr>
</tfoot>
<tbody>
<?php
$aid=$_SESSION['id'];
$ret="select * from registration";
116
$stmt= $mysqli->prepare($ret) ;
//$stmt->bind_param('i',$aid);
$stmt->execute() ;//ok
$res=$stmt->get_result();
$cnt=1;
while($row=$res->fetch_object())
{
?>
<tr><td><?php echo $cnt;;?></td>
<td><?php echo $row->firstName;?><?php echo $row-
>middleName;?><?php echo $row->lastName;?></td>
<td><?php echo $row->regno;?></td>
<td><?php echo $row->contactno;?></td>
<td><?php echo $row->roomno;?></td>
<td><?php echo $row->seater;?></td>
<td><?php echo $row->stayfrom;?></td>
<td>
<a href="javascript:void(0);"
onClick="popUpWindow('http://localhost/hostel/admin/full-
profile.php?id=<?php echo $row->id;?>');" title="View Full
Details"><i class="fa fa-desktop"></i></a>
<a href="manage-students.php?del=<?php echo $row->id;?>"
title="Delete Record" onclick="return confirm("Do you want to
delete");"><i class="fa fa-close"></i></a></td>
117
</tr>
<?php
$cnt=$cnt+1;
} ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
118
</body>
</html>
119
Logout code:
<?php
session_start();
unset($_SESSION['id']);
session_destroy();
header('Location:../index.php');
?>
120
Full-profile code:
<?php
session_start();
include("includes/config.php");
$mysql_hostname = "localhost";
$mysql_user = "root";
$mysql_password = "";
$mysql_database = "hostel";
$prefix = "";
$bd = mysql_connect($mysql_hostname, $mysql_user,
$mysql_password) or die("Could not connect database");
mysql_select_db($mysql_database, $bd) or die("Could not select
database");
?>
<script language="javascript" type="text/javascript">
function f2()
{
window.close();
}
function f3()
{
window.print();
}
121
</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Student Information</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<link href="hostel.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" border="0">
<?php
$ret= mysql_query("SELECT * FROM registration
where id = '".$_GET['id']."'");
while($row=mysql_fetch_array($ret))
{
?>
<tr>
<td colspan="2" align="center"
class="font1"> </td>
122
</tr>
<tr>
<td colspan="2" align="center"
class="font1"> </td>
</tr>
<tr>
<td colspan="2" class="font"><?php echo
ucfirst($row['firstName']);?> <?php echo
ucfirst($row['lastName']);?>'S <span class="font1"> information
»</span> </td>
</tr>
<tr>
<td colspan="2"
class="font">  
;
<div align="right">Reg Date : <span class="comb-
value"><?php echo $row['postingDate'];?></span></div></td>
</tr>
<tr>
<td colspan="2" class="heading" style="color:
red;">Room Related Info » </td>
</tr>
<tr>
123
<tr>
<td width="12%" valign="top"
class="heading">Fees PM : </td>
<td class="comb-value1"><?php echo
$fpm=$row['feespm'];?></td>
</tr>
<tr>
124
</tr>
<tr>
<td width="12%" valign="top"
class="heading">Total Fee: </td>
<td class="comb-value1">
<?php if($row['foodstatus']==1)
{
$fd=2000;
echo (($dr*$fpm)+$fd);
}
else
{
echo $dr*$fpm;
}
?></td>
</tr>
<tr>
<td colspan="2" align="left" class="heading" style="color:
red;">Personal Info » </td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">Course: </td>
<td class="comb-value1"><?php echo $row['course'];?></td>
126
</tr>
<tr>
<td width="12%" valign="top" class="heading">Reg no: </td>
<td class="comb-value1"><?php echo $row['regno'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">First Name:
</td>
<td class="comb-value1"><?php echo $row['firstName'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">Middle name:
</td>
<td class="comb-value1"><?php echo
$row['middleName'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">Last: </td>
<td class="comb-value1"><?php echo $row['lastName'];?></td>
127
</tr>
<tr>
<td width="12%" valign="top" class="heading">Gender: </td>
<td class="comb-value1"><?php echo $row['gender'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">Contact No:
</td>
<td class="comb-value1"><?php echo $row['contactno'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">Email id: </td>
<td class="comb-value1"><?php echo $row['emailid'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">Emergency
Contact: </td>
<td class="comb-value1"><?php echo
$row['egycontactno'];?></td>
128
</tr>
<tr>
<td width="12%" valign="top" class="heading">Guardian
Name: </td>
<td class="comb-value1"><?php echo
$row['guardianName'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">Guardian
Relation: </td>
<td class="comb-value1"><?php echo
$row['guardianRelation'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">Guardian
Contact: </td>
<td class="comb-value1"><?php echo
$row['guardianContactno'];?></td>
</tr>
<tr>
<td colspan="2" class="heading" style="color:
red;">Correspondence Address » </td>
129
</tr>
<tr>
<td width="12%" valign="top" class="heading">Address: </td>
<td class="comb-value1"><?php echo
$row['corresAddress'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">City: </td>
<td class="comb-value1"><?php echo
$row['corresCIty'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">State: </td>
<td class="comb-value1"><?php echo
$row['corresState'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">Pincode: </td>
<td class="comb-value1"><?php echo
$row['corresPincode'];?></td>
</tr>
130
<tr>
<td colspan="2" class="heading" style="color:
red;">Permanent Address » </td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">Address: </td>
<td class="comb-value1"><?php echo
$row['pmntAddress'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">City: </td>
<td class="comb-value1"><?php echo $row['pmntCity'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">State: </td>
<td class="comb-value1"><?php echo
$row['pmnatetState'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">Pincode: </td>
131
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
132
</table></td>
</tr>
<tr>
<td colspan="2" align="right" ><form id="form1"
name="form1" method="post" action="">
<table width="100%" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td width="14%"> </td>
<td width="35%" class="comb-value"><label>
<input name="Submit" type="submit" class="txtbox4"
value="Prints this Document " onClick="return f3();" />
</label></td>
<td width="3%"> </td>
<td width="26%"><label>
<input name="Submit2" type="submit" class="txtbox4"
value="Close this document " onClick="return f2();" />
</label></td>
<td width="8%"> </td>
<td width="14%"> </td>
</tr>
133
</table>
</form> </td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
</table>
</body>
</html>
134
Dashboard code:
<?php
session_start();
include('includes/config.php');
include('includes/checklogin.php');
check_login();
?>
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible"
content="IE=edge">
<meta name="viewport" content="width=device-width,
initial-scale=1, minimum-scale=1, maximum-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<meta name="theme-color" content="#3e454c">
<title>DashBoard</title>
<link rel="stylesheet" href="css/font-awesome.min.css">
135
</head>
<body>
<?php include("includes/header.php");?>
<div class="ts-main-content">
<?php include("includes/sidebar.php");?>
<div class="content-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
136
<h2 class="page-
title">Dashboard</h2>
<div class="row">
<div class="col-md-12">
<div class="row">
<div class="col-
md-3">
<div
class="panel panel-default">
<div
class="panel-body bk-primary text-light">
</div>
</div>
137
<a
href="my-profile.php" class="block-anchor panel-footer">Full
Detail <i class="fa fa-arrow-right"></i></a>
</div>
</div>
<div class="col-
md-3">
<div
class="panel panel-default">
<div
class="panel-body bk-success text-light">
</div>
</div>
<a
href="room-details.php" class="block-anchor panel-footer text-
center">See All <i class="fa fa-arrow-right"></i></a>
</div>
</div>
138
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="js/Chart.min.js"></script>
<script src="js/fileinput.js"></script>
<script src="js/chartData.js"></script>
<script src="js/main.js"></script>
<script>
window.onload = function(){
window.myDoughnut = new
Chart(doctx).Pie(doughnutData, {responsive : true});
}
</script>
</body>
</html>
141
System design:
Login Page:
142
Student Registration:
144
HARDWARE REQUIREMENT:-
RAM:-512MB
Hard Disk:-1 GB
Processor:-Intel Pentium 4 or higher
Operating System:-Windows XP,7,8,10
SOFTWARE REQUIREMENT:-
Microsoft windows
Visual basic 6.0(Front end)
MS Access(Database)
145
4-SYSTEM DESIGN
FORM DESIGN:
149
150
INPUT DESIGN:
OUTPUT:
158
159
5-CODING
Welcome page coding:
Unload Me
End Sub
Form3.Show
Unload Me
End Sub
Form4.Show
End Sub
Form5.Show
End Sub
Form1.Show
162
End Sub
Form6.Show
End Sub
Form9.Show
End Sub
poem9.Show
End Sub
poem10.Show
End Sub
Unload Me
End Sub
163
End Sub
Unload Me
End Sub
poem7.Show
End Sub
poem8.Show
End Sub
Unload Me
End Sub
164
End Sub
Form7.Show
End Sub
Form8.Show
End Sub
Unload Me
End Sub
snt.execute_qry (str1)
Form10.Show
Unload Me
Else
End If
End Sub
Form3.Show
Unload Me
End Sub
End Sub
166
Form7.Show
End Sub
Form8.Show
End Sub
Unload Me
End Sub
poem1.Show
End Sub
poem2.Show
End Sub
poem3.Show
End Sub
167
Unload Me
End Sub
Form3.Show
Unload Me
End Sub
End Sub
poem4.Show
End Sub
poem5.Show
168
End Sub
poem6.Show
End Sub
Unload Me
End Sub
Form3.Show
Unload Me
End Sub
qtype = "english"
169
cnt.execute_qry (str1)
Form11.Show
Unload Me
End Sub
qtype = "math"
cnt.execute_qry (str1)
Form11.Show
Unload Me
End Sub
170
qtype = "hindi"
cnt.execute_qry (str1)
Form11.Show
Unload Me
End Sub
Unload Me
End Sub
cnt.execute_qry (str1)
With cnt.rs
qtype = .Fields("q_type")
End With
str1 = " select * from question where q_type='" & qtype & "'"
cnt.execute_qry (str1)
With cnt.rs
Max = .RecordCount
ans = Opt1.Caption
172
mark = 1
Else
mark = 0
End If
ans = Opt2.Caption
mark = 1
Else
mark = 0
End If
ans = Opt3.Caption
mark = 1
Else
mark = 0
End If
ans = Opt4.Caption
mark = 1
173
Else
mark = 0
End If
Else
mark = 0
End If
cnt2.execute_qry (str1)
Exit For
Else
lblq.Caption = .Fields("q")
Opt1.Caption = .Fields("q_op1")
Opt2.Caption = .Fields("q_op2")
Opt3.Caption = .Fields("q_op3")
Opt4.Caption = .Fields("q_op4")
answ = .Fields("q_ans")
Exit For
End If
174
End If
.MoveNext
Next LOOP1
End With
Form13.Show
Me.Hide
End If
counter = counter + 1
Opt1.Value = False
Opt2.Value = False
Opt3.Value = False
Opt4.Value = False
End Sub
cnt.execute_qry (str1)
175
With cnt.rs
qtype = .Fields("q_type")
End With
str1 = " select * from question where q_type='" & qtype & "'"
cnt.execute_qry (str1)
With cnt.rs
lblq.Caption = .Fields("q")
Opt1.Caption = .Fields("q_op1")
Opt2.Caption = .Fields("q_op2")
Opt3.Caption = .Fields("q_op3")
Opt4.Caption = .Fields("q_op4")
answ = .Fields("q_ans")
End With
counter = counter + 1
Opt1.Value = False
Opt2.Value = False
Opt3.Value = False
Opt4.Value = False
End Sub
176
End Sub
6-SYSTEM TESTING
177
6.1 INTRODUCTION
Once source code has been generated, software must be
tested to uncover as many errors as possible before
delivery to customer. Our goal is to design a
series of test cases that have a high likelihood of finding
errors. To uncover the errors
software techniques are used. These techniques provide
systematic guidance for
designing test that
Unit testing focuses verification effort on the smallest unit of software design-
the software component or module. The unit test is white-box oriented. The unit testing
implemented in every module of student attendance management System. By giving
correct manual input to the system, the data are stored in database and retrieved. If you
want the required module to access input or to get the output from the end user, any
error will accrue the time will provide handler to show what type of error will accrued.
System testing is actually a series of different tests whose primary purpose is to fully exercise
the computer-based system. Below we have described the two types of testing which have been
taken for this project. It is to check all modules worked on input basis .If you want change any
values or inputs will change all information, so specified input is must.
7-SYSTEM SECURITY
181
8.1 CONCLUSION
To conclude, Project Data Grid works like a component which can access all the databases
and picks up different functions. It overcomes the many limitations incorporated in the
learning.
Generate report flexibly.
Easy environment
Implementation.
The project has a very vast scope in future. The project can be implemented on intranet in
future. Project can be updated in near future as and when requirement for the same arises,
as it is very flexible in terms of expansion. With the proposed software of database Space
Manager ready and fully functional the client is now able to manage and hence run the
entire work in a much better, accurate and error free manner. The following are the future
scope for the project.
BIBLIOGRAPHY
References-
1. Internet Help
2. Project Mentor
3. Seniors
4. Teachers
5. Friends