FINAL REPORT Hospital Management System
FINAL REPORT Hospital Management System
FINAL REPORT Hospital Management System
ON
SUBMITTED BY,
Tanvi Kumkar (59)
Kishor Patil (20)
Kiran Kiswe (19)
1
Dr. D. Y. Patil Pratishthan’s
D.Y. Patil Institute of Master of Computer Applications
And Management
Sector No.29, Behind Akurdi Railway Station, Pradhikaran, Nigdi, Pune – 411044
Tel No: 020-27640998, 202737393, Fax no: 27653054, Website: www.dypimca.ac.in,
Email: [email protected]
(Approved by AICTE, Recognized by DTE, Mah.; Affiliated to SPPU)
CERTIFICATE
This is to certify that, the Mini Project entitled
By
Tanvi Kumkar (59)
Kishor Patil (20)
Kiran Kiswe (19)
Semester III
Class. SYMCA Div. A
M.C.A. (Master of Computer Application)
2
Acknowledgement
I would take the opportunity to thank Dr. K. Nirmala, Director, DYPIMCA and
Management for her support, extended to me throughout the course.
I would like to thank Dr. Kavita Suryawanshi, HOD, for her scholarly disposition, timely
guidance, support and cooperation.
I would like to thank Prof. Mrs Nisarga Sable for her kind guidance, keen interest, continuous
encouragement and inspiration throughout the project work.
Finally, I gratefully thank all the faculty members of DYPIMCA and Management for their
cooperation and support.
I also thankful to get constant encouragement, support and guidance from all Teaching and
Non- Teaching Staff for their timely support which helped us in successfully completion of
our project work.
TANVI KUMKAR(59)
MCA III, A
3
INDEX
Sr. Chapter Name Page
No. No.
1 Chapter 1: Introduction 5
1.1 Project Objectives 6
1.2 Existing System and Need of System 7
1.3 Scope of work 8
1.4 Operating Environment-Hardware and 9
Software
1.5 Technology Used 10
1.6 Module Specification 11
2 Chapter 2: Analysis & Design 12
2.1 Data Flow Diagram 12
2.2 Entity Relationship Diagram 13
2.3 Activity Diagram 14
2.4 Use Case Diagram 15
2.5 Sequence Diagram 16
2.6 Class Diagram 17
2.7 User Interface Screens 18
2.8 Table Structure 21
2.9 Test Case 26
3 Drawbacks and Limitations 29
4 Proposed Enhancement 30
5 Conclusion 31
6 Bibliography 32
7 ANNEXURE 1: USER INTERFACE SCREENS 33
(All GUI Screenshots including Validation &
Report generation)
8 ANNEXURE 2: SAMPLE PROGRAM CODE 36
(which will prove sufficient development is
done by the student)
4
Chapter 1: Introduction
5
1.1 Project Objectives:
6
1.2 Existing System and Need of System:
7
1.3 Scope of work:
8
1.4 Operating Environment – Hardware and Software:-
Hardware:
▪ 40GB HARDDISK
Software:
▪ Windows 7/8/10
9
1.5 Technology Used:
● JS
● PHP
● MYSQL
10
1.6 Module Specification:
1) Administration:-
2) Hospital Management:-
details of hospital like as name, address, contact, add hospital specialties etc.
Add available Facilities : In which we can add the ECG service, medical
3) Doctors Management:-
Add Working Status: Available appointment time. We will give the authority to
the doctor it will check the previous patient record like as patient disease,
medicine.
4) Patient Management:-
• Send Request for appointment : It will send the request to the doctor for
11
Chapter 2: Analysis & Design
12
2.2 Entity Relationship Diagram:
Fig: ER DIAGRAM
13
2.3 Activity Diagram:
14
2.4 Use Case Diagram:
15
2.5 Sequence Diagram:
16
2.6 Class Diagram:
17
2.7 USER INTERFACE SCREENS
Database:-
FRONT PAGE:
ADMIN PANEL:
18
MANAGE DOCTORS
MANAGE PATIENTS
19
MANAGE APPOINTMENTS
20
2.8 Table Structure:
List of tables :-
1) Patient Table:-
Name Type
Id Int
DocId Int
PatientName Varchar
PatientContno Bigint
PatientEmail Varchr
PatientGender Varchar
PatientAdd Varchar
PatientAge Int
CreationDate Timestamp
UpdationDate timestamp
21
2) Admin Table:-
Name Type
Id Int
username varchar
Password Varchar
Updationdate varchar
3) Appointment Table:-
Name Type
Id Int
DocId Int
Appointmenydate Varchar
appointmenttime varchar
Docspecialization varchar
Userid Int
Consultancyfees int
22
Postingdate Timestamp
Userstatus Int
Doctorstatus Int
Updationdate timestamp
4) Doctors Table:-
Name Type
Id Int
contactno bigint
docname Varchar
address varchar
specialization varchar
docemail varchar
docfees int
Password varchar
Creationdate timestamp
Updationdate timestamp
23
5) Doctors specialization Table:-
Name Type
Id Int
specialization varchar
CreationDate Timrstamp
Updationdate Timestamp
Name Type
Id Int
patientId int
bloodpressure varchar
bloodsugar Varchar
Temperate varchar
Medicalpres varchar
24
weight varchar
Creationdate stamp
25
2.9 Test case:
26
Test Case Name: Appointment Management
Test Case ID: TC02_ Appointment Management
Test Case Prerequisite: User must launch the MED-MET application.
User must be Login.
27
Sr. Test to be Expected Actual Result Test Remark
No Performed Result Pass/Failed
1. Verify whether the Only pdf should pdf uploaded Pass
patient upload be uploaded successfully.
medical history.
2. Check whether the All field details All field Pass
patient has filled all should be valid. details added
the valid details. successfully.
3. Check whether Medical history Medical Pass
doctor can view all should be visible history viewed
medical history successfully.
4. View the medication Record should Record view Pass
provided by doctor be added successfully.
28
Chapter 3: Drawbacks and Limitations
29
Chapter 4: Proposed Enhancement
30
Chapter 5: Conclusion
31
Chapter 6: Bibliography
URL :-
● https://www.google.com/
● Hypertext Mark-up Language, Introduction.
http://www.w3schools.com/html/html_intro.asp
● JavaScript programming language, JS tutorial.
http://www.w3schools.com/js/
● MySQL, Open source database.
https://dev.mysql.com/doc/refman/5.7/en/what-is-mysql.html
32
ANNEXURE 1 : USER INTERFACE SCREENS
Database:-
FRONT PAGE:
33
ADMIN PANEL:
MANAGE DOCTORS
MANAGE PATIENTS
34
MANAGE APPOINTMENTS
35
ANNEXURE 2: SAMPLE PROGRAM CODE
HOME PAGE CODING
<?php
session_start();
error_reporting(0);
include('include/config.php');
include('include/checklogin.php');
check_login();
if(isset($_GET['cancel']))
?>
<!DOCTYPE html>
<html lang="en">
<head>
36
<link
href="http://fonts.googleapis.com/css?family=Lato:300,400,400italic,600,700|
Raleway:300,400,500,600,700|Crete+Round:400italic" rel="stylesheet"
type="text/css" />
<link rel="stylesheet"
href="vendor/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet"
href="vendor/fontawesome/css/font-awesome.min.css">
<link rel="stylesheet"
href="vendor/themify-icons/themify-icons.min.css">
<link href="vendor/perfect-scrollbar/perfect-scrollbar.min.css"
rel="stylesheet" media="screen">
<link
href="vendor/bootstrap-touchspin/jquery.bootstrap-touchspin.min.css"
rel="stylesheet" media="screen">
<link
href="vendor/bootstrap-datepicker/bootstrap-datepicker3.standalone.min.css"
rel="stylesheet" media="screen">
37
<link
href="vendor/bootstrap-timepicker/bootstrap-timepicker.min.css"
rel="stylesheet" media="screen">
</head>
<body>
<div id="app">
<?php include('include/sidebar.php');?>
<div class="app-content">
<?php include('include/header.php');?>
<section id="page-title">
<div class="row">
38
<div class="col-sm-8">
<h1
class="mainTitle">User | Appointment History</h1>
</div>
<ol class="breadcrumb">
<li>
<span>User
</span>
</li>
<li class="active">
<span>Appointment History</span>
</li>
</ol>
</div>
</section>
<div class="container-fluid
container-fullw bg-white">
39
<div class="row">
<div class="col-md-12">
<p
style="color:red;"><?php echo htmlentities($_SESSION['msg']);?>
<?php echo
htmlentities($_SESSION['msg']="");?></p>
<table class="table
table-hover" id="sample-table-1">
<thead>
<tr>
<th
class="center">#</th>
<th
class="hidden-xs">Doctor Name</th>
<th>Specialization</th>
<th>Consultancy Fee</th>
40
<th>Appointment Creation Date </th>
<th>Current Status</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
$sql=mysqli_query($con,"select doctors.doctorName as
docname,appointment.* from appointment join doctors on
doctors.id=appointment.doctorId where
appointment.userId='".$_SESSION['id']."'");
$cnt=1;
while($row=mysqli_fetch_array($sql))
?>
<tr>
41
<td
class="center"><?php echo $cnt;?>.</td>
<td
class="hidden-xs"><?php echo $row['docname'];?></td>
$row['appointmentTime'];?>
</td>
<td>
echo "Active";
42
{
?></td>
<td
>
<?php if(($row['userStatus']==1)
&&
($row['doctorStatus']==1))
{ ?>
43
<a href="appointment-history.php?id=<?php echo
$row['id']?>&cancel=update" onClick="return confirm('Are you sure you want
to cancel this appointment ?')"class="btn btn-transparent btn-xs tooltips"
title="Cancel Appointment" tooltip-placement="top"
tooltip="Remove">Cancel</a>
<?php } else {
echo "Canceled";
} ?>
</div>
</button>
44
<ul class="dropdown-menu pull-right dropdown-light"
role="menu">
<li>
<a href="#">
Edit
</a>
</li>
<li>
<a href="#">
Share
</a>
</li>
45
<li>
<a href="#">
Remove
</a>
</li>
</ul>
</div>
</div></td>
</tr>
<?php
$cnt=$cnt+1;
}?>
46
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include('include/footer.php');?>
<?php include('include/setting.php');?>
</div>
47
<!-- start: MAIN JAVASCRIPTS -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="vendor/modernizr/modernizr.js"></script>
<script src="vendor/jquery-cookie/jquery.cookie.js"></script>
<script
src="vendor/perfect-scrollbar/perfect-scrollbar.min.js"></script>
<script src="vendor/switchery/switchery.min.js"></script>
<script
src="vendor/maskedinput/jquery.maskedinput.min.js"></script>
<script
src="vendor/bootstrap-touchspin/jquery.bootstrap-touchspin.min.js"></script>
<script src="vendor/autosize/autosize.min.js"></script>
<script src="vendor/selectFx/classie.js"></script>
<script src="vendor/selectFx/selectFx.js"></script>
<script src="vendor/select2/select2.min.js"></script>
<script
src="vendor/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script
src="vendor/bootstrap-timepicker/bootstrap-timepicker.min.js"></script>
48
<!-- end: JAVASCRIPTS REQUIRED FOR THIS PAGE ONLY -->
<script src="assets/js/main.js"></script>
<script src="assets/js/form-elements.js"></script>
<script>
jQuery(document).ready(function() {
Main.init();
FormElements.init();
});
</script>
</body>
</html>
<?php
session_start();
//error_reporting(0);
include('include/config.php');
include('include/checklogin.php');
check_login();
49
if(isset($_POST['submit']))
$specilization=$_POST['Doctorspecialization'];
$doctorid=$_POST['doctor'];
$userid=$_SESSION['id'];
$fees=$_POST['fees'];
$appdate=$_POST['appdate'];
$time=$_POST['apptime'];
$userstatus=1;
$docstatus=1;
$query=mysqli_query($con,"insert into
appointment(doctorSpecialization,doctorId,userId,consultancyFees,appointme
ntDate,appointmentTime,userStatus,doctorStatus)
values('$specilization','$doctorid','$userid','$fees','$appdate','$time','$userstat
us','$docstatus')");
if($query)
?>
50
<!DOCTYPE html>
<html lang="en">
<head>
<link
href="http://fonts.googleapis.com/css?family=Lato:300,400,400italic,600,700|
Raleway:300,400,500,600,700|Crete+Round:400italic" rel="stylesheet"
type="text/css" />
<link rel="stylesheet"
href="vendor/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet"
href="vendor/fontawesome/css/font-awesome.min.css">
<link rel="stylesheet"
href="vendor/themify-icons/themify-icons.min.css">
<link href="vendor/perfect-scrollbar/perfect-scrollbar.min.css"
rel="stylesheet" media="screen">
<link
href="vendor/bootstrap-touchspin/jquery.bootstrap-touchspin.min.css"
rel="stylesheet" media="screen">
51
media="screen">
<link
href="vendor/bootstrap-datepicker/bootstrap-datepicker3.standalone.min.css"
rel="stylesheet" media="screen">
<link
href="vendor/bootstrap-timepicker/bootstrap-timepicker.min.css"
rel="stylesheet" media="screen">
<script>
function getdoctor(val) {
$.ajax({
type: "POST",
url: "get_doctor.php",
data:'specilizationid='+val,
success: function(data){
$("#doctor").html(data);
});
</script>
<script>
52
function getfee(val) {
$.ajax({
type: "POST",
url: "get_doctor.php",
data:'doctor='+val,
success: function(data){
$("#fees").html(data);
});
</script>
</head>
<body>
<div id="app">
<?php include('include/sidebar.php');?>
<div class="app-content">
<?php include('include/header.php');?>
53
<!-- end: TOP NAVBAR -->
<section id="page-title">
<div class="row">
<div class="col-sm-8">
<h1
class="mainTitle">User | Book Appointment</h1>
</div>
<ol class="breadcrumb">
<li>
<span>User</span>
</li>
<li class="active">
<span>Book
Appointment</span>
</li>
</ol>
</section>
54
<!-- end: PAGE TITLE -->
<div class="container-fluid
container-fullw bg-white">
<div class="row">
<div class="col-md-12">
<div class="row
margin-top-30">
<div
class="col-lg-8 col-md-12">
<div
class="panel panel-white">
<div class="panel-heading">
55
</div>
<div class="panel-body">
<p style="color:red;"><?php
echo htmlentities($_SESSION['msg1']);?>
<?php echo
htmlentities($_SESSION['msg1']="");?></p>
<div class="form-group">
<label for="DoctorSpecialization">
Doctor Specialization
</label>
56
<select
name="Doctorspecialization" class="form-control"
onChange="getdoctor(this.value);" required="required">
while($row=mysqli_fetch_array($ret))
?>
<?php echo
htmlentities($row['specilization']);?>
</option>
<?php } ?>
</select>
57
</div>
<div class="form-group">
<label for="doctor">
Doctors
</label>
<select name="doctor"
class="form-control" id="doctor" onChange="getfee(this.value);"
required="required">
</select>
</div>
<div class="form-group">
<label for="consultancyfees">
Consultancy Fees
</label>
</select>
58
</div>
<div class="form-group">
<label for="AppointmentDate">
Date
</label>
</div>
<div class="form-group">
<label for="Appointmenttime">
Time
</label>
<input class="form-control" name="apptime"
id="timepicker1" required="required">eg : 10:00 PM
</div>
59
<button type="submit" name="submit" class="btn btn-o
btn-primary">
Submit
</button>
</form>
</div>
</div>
</div>
</div>
</div>
60
</div>
</div>
</div>
</div>
</div>
<?php include('include/footer.php');?>
</div>
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
61
<script src="vendor/modernizr/modernizr.js"></script>
<script src="vendor/jquery-cookie/jquery.cookie.js"></script>
<script
src="vendor/perfect-scrollbar/perfect-scrollbar.min.js"></script>
<script src="vendor/switchery/switchery.min.js"></script>
<script
src="vendor/maskedinput/jquery.maskedinput.min.js"></script>
<script
src="vendor/bootstrap-touchspin/jquery.bootstrap-touchspin.min.js"></script>
<script src="vendor/autosize/autosize.min.js"></script>
<script src="vendor/selectFx/classie.js"></script>
<script src="vendor/selectFx/selectFx.js"></script>
<script src="vendor/select2/select2.min.js"></script>
<script
src="vendor/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script
src="vendor/bootstrap-timepicker/bootstrap-timepicker.min.js"></script>
<script src="assets/js/main.js"></script>
<script>
jQuery(document).ready(function() {
Main.init();
FormElements.init();
});
$('.datepicker').datepicker({
format: 'yyyy-mm-dd',
startDate: '-3d'
});
</script>
<script type="text/javascript">
$('#timepicker1').timepicker();
</script>
<script
src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
</body>
</html>
63
<?php
session_start();
error_reporting(0);
include('include/config.php');
include('include/checklogin.php');
check_login();
if(isset($_POST['submit']))
$email=$_POST['email'];
if($sql)
?>
<!DOCTYPE html>
<html lang="en">
64
<head>
<link rel="stylesheet"
href="vendor/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet"
href="vendor/fontawesome/css/font-awesome.min.css">
<link rel="stylesheet"
href="vendor/themify-icons/themify-icons.min.css">
<link href="vendor/perfect-scrollbar/perfect-scrollbar.min.css"
rel="stylesheet" media="screen">
<link
href="vendor/bootstrap-touchspin/jquery.bootstrap-touchspin.min.css"
rel="stylesheet" media="screen">
<link
href="vendor/bootstrap-datepicker/bootstrap-datepicker3.standalone.min.css"
rel="stylesheet" media="screen">
65
<link
href="vendor/bootstrap-timepicker/bootstrap-timepicker.min.css"
rel="stylesheet" media="screen">
<body>
<div id="app">
<?php include('include/sidebar.php');?>
<div class="app-content">
<?php include('include/header.php');?>
<div class="row">
<div class="col-sm-8">
66
<h1
class="mainTitle">User | Edit Profile</h1>
</div>
<ol class="breadcrumb">
<li>
<span>User
</span>
</li>
<li class="active">
<span>Edit
Profile</span>
</li>
</ol>
</div>
</section>
67
<div class="container-fluid
container-fullw bg-white">
<div class="row">
<div class="col-md-12">
<div class="row
margin-top-30">
<div
class="col-lg-8 col-md-12">
<div
class="panel panel-white">
<div class="panel-heading">
<h5 class="panel-title">Edit
Profile</h5>
</div>
<div class="panel-body">
<div class="form-
group">
68
<label for="fess"> </di
v>
User Email
</label>
<input type="email"
class="form-control"
name="email"
id="email" onBlur="userAvailability()"
placeholder="Email" required>
<
s
p
a
n
id="user-availability-status1" style="font-
size:12px;"></span>
</div>
Update
</button>
</form>
69
"
c <
o /
l d
- i
l v
g >
-
1 <
2 !
-
col-md-12">
-
s
< t
d a
i r
v t
class="panel panel-white"> :
</div> F
O
</div> O
T
</div> E
R
</ -
div -
> >
<?p
hp
<!-- end: incl
BASIC ude(
EXAMPLE --> 'incl
ude/
<!-- end: foot
SELECT er.p
BOXES --> hp');
?>
</div> <?p
hp
</div> incl
ude(
70
'include/setting.php');?> touchspin.
min.js"></
script>
div> <
s
<!-- start: MAIN JAVASCRIPTS --> c
r
<script i
src="vendor/jquery/jquery.min.js"></scri p
pt> t
s
<script r
src="vendor/bootstrap/js/bootstrap.min.js c
"></script> =
"
<script v
src="vendor/modernizr/modernizr.js"></ e
script> n
d
<script src="vendor/jquery- o
cookie/jquery.cookie.js"></script> r
/
<script a
u
src="vendor/perfect-scrollbar/perfect-
t
scrollbar.min.js"></script>
o
s
<script
i
src="vendor/switchery/switchery.min.js"
z
></script>
e
/
<!-- end: MAIN JAVASCRIPTS -->
a
u
<!-- start: JAVASCRIPTS REQUIRED
t
FOR THIS PAGE ONLY -->
o
s
<script
i
src="vendor/maskedinput/jquery.mask z
e
edinput.min.js"></script>
.
m
<script
i
src="vendor/bootstrap-touchspin/jquery.bootstrap- n
71
.js"></script>
<script
src="vendor/selectFx/classie.js"></script
>
<script
src="vendor/selectFx/selectFx.js"></scri
pt>
<script
src="vendor/select2/select2.min.js"></sc
ript>
<script
src="vendor/bootstrap-datepicker/bootstrap-
datepicker.min.js"></script>
<script
src="vendor/bootstrap-timepicker/bootstrap-
timepicker.min.js"></script>
<script src="assets/js/main.js"></script>
<script src="assets/js/form-
elements.js"></script>
<script>
jQuery(do
cum
ent).
72
init( "
); ,
For d
mEl a
eme t
nts.i a
nit() :
; '
}); e
</script> m
<script> a
function userAvailability() { i
$("#loader l
Icon").sho =
w(); '
jQuery.aja +
x({ $
url: (
"chec "
k_ava #
ilabili e
ty.php m
73
ail").v s
al(), e
type: s
"POS s
T", i
success:function(data){ o
$("#user-availability-status1").html(data); n
$("#loaderIcon").hide(); _
}, s
error:function (){} t
}); a
} r
</script> t
</body> )
</html> ;
/
<
e
?
r
p
r
h
o
p
74
r_reportin $
g(0); n
include('in u
clude/con m
fig.php'); =
include('in m
clude/chec y
klogin.ph s
p'); q
check_log l
in(); i
date_default_timezone_set('Asia/Kolkata');// change _
according timezone
f
$currentTime = date( 'd-m-
e
Y h:i:s A', time () );
t
if(isset($_POST['submit'])
c
)
h
{
_
$sql=mysqli_query($con,"SELECT password
a
FROM
users r
where r
password='".md5($_POST['cpass'])."' &&
a
id='".$_SESSION['id']."'");
75
y($sql); href="htt
p://fonts.g
if($num>
oogleapis.
0)
com/css?f
{ amily=La
to:300,40
$con=mysqli_query($con,"update
0,400itali
c,600,700
users
|
Raleway:
set password='".md5($_POST['npass'])."',
300,400,
updationDate='$currentTime' where
500,600,
id='".$_SESSION['id']."'");
700|Crete
$_SESSION['msg1']="Password Changed
+Round:
Successfully !!";
400italic"
}
else rel="style
sheet"
{
type="te
$_SESSION['msg1']="Old Password not match !!";
xt/css" />
}
<
l
}
i
n
?>
k
<!DOCTYPE html>
r
<html lang="en">
e
l
<head>
=
"
<title>User | change Password</title>
s
t
<link
76
ylesheet" href="ven
href="vendor/bootstrap/css/bootstrap.min.css"> dor/bootst
rap-
<link
datepicker
rel="stylesheet"
/bootstrap
href="vendor/fontawesome/css/font- -
awesome.min.css">
datepicker
<link
3.standalo
rel="stylesheet" ne.min.cs
href="vendor/themify-icons/themify-icons.min.css"> s"
rel="style
<link
sheet"
href="vendor/animate.css/animate.min.css"
media="s
rel="stylesheet" media="screen">
creen">
<link href="vendor/perfect-
<
scrollbar/perfect-scrollbar.min.css" rel="stylesheet" l
media="screen"> i
n
<link k
href="vendor/switchery/switchery.min.css" href=
rel="stylesheet" media="screen"> "ven
dor/b
<link
ootstr
href="vendor/bootstrap-
ap-
touchspin/jquery.bootstrap-
timep
touchspin.min.css" rel="stylesheet"
icker/
media="screen">
boots
<link href="vendor/select2/select2.min.css" trap-
rel="stylesheet" media="screen"> timep
<link icker.
77
min.css" rel="stylesheet" media="screen"> P
<link rel="stylesheet" a
href="assets/css/styles.css">
s
<link rel="stylesheet"
href="assets/css/plugins.css"> s
<link rel="stylesheet" w
href="assets/css/themes/theme- o
1.css" id="skin_color" />
r
<script
d
type="text
F
/javascript
i
">
l
function
e
valid()
d
{
i
if(document.chngpwd.cpass.value=="")
s
{
E
alert("Current Password Filed is Empty !!");
m
document.chngpwd.cpass.focus();
p
return false;
t
}
y
else if(document.chngpwd.npass.value=="")
!
{
!
alert("New
78
"); </he
ad>
document.ch
<bo
ngpwd.npass. dy>
focus(); <
d
return false; i
v
} i
d
else if(document.chngpwd.cfpass.value=="") =
"
{ a
p
alert("Confirm Password Filed is Empty !!"); p
"
document.chngpwd.cfpass.focus(); >
<div class="app-content">
class="mai
nTitle">U
ser |
Change
<?php
Password<
include('include
/h1>
/header.php');?
>
<
/
d
<!-- end: TOP NAVBAR -->
i
v
<div class="main-content" >
>
<div
class="wra
p-content container"
id="container">
<!-- start:
PAGE TITLE -
->
<section id="page-title">
<div class="row">
<d
iv
cla
ss
="
col
-
sm
-
8" <
> l
i
< >
80
<
/
<span>User</span> l
i
< >
/
l
i
>
<
l
i
c
l
a
s
s
=
"
a
c
t
i
v
e
"
>
<
s
p
a
n
>
C
h
a
n
g
e
Password</span>
81
TITLE -->
<!-- start:
BASIC
margin-
EXAMPLE -->
top-30">
<div
class="containe
r-fluid
container-fullw bg-white">
class="col
-lg-8 col-
<div md-12">
class="ro
w">
class="pan
<d el panel-
iv white">
cla
ss
=" <div
col class="pan
- el-
md heading">
-
12
"> <h5
clas
s="p
anel
-
< title
d ">C
i han
v ge
Pass
c wor
l d</h
a 5>
s
s
= </div>
"
82
<div
<div class="panel-body">
<p style="color:red;"><?php
echo htmlentities($_SESSION['msg1']);?>
<?php echo
htmlentities($_SESSION['msg1']="");?></p>
<div class="form-group">
<label for="exampleInputEmail1">
Current Password
83
</label>
<input type="password"
name="cpass" class="form-control" placeholder="Enter Current Password">
</div>
<div class="form-group">
<label for="exampleInputPassword1">
New Password
</label>
</div>
<div class="form-group">
<label for="exampleInputPassword1">
84
Confirm Password
</label>
<input
type="password" name="cfpass" class="form-control" placeholder="Confirm
Password">
</div>
Submit
</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
85
</div>
</div>
</div>
</div>
<?php include('include/footer.php');?>
<?php include('include/setting.php');?>
<>
</div>
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="vendor/modernizr/modernizr.js"></script>
<script src="vendor/jquery-cookie/jquery.cookie.js"></script>
<script
86
src="vendor/perfect-scrollbar/perfect-scrollbar.min.js"></script>
<script src="vendor/switchery/switchery.min.js"></script>
<script src="vendor/autosize/autosize.min.js"></script>
<script src="vendor/selectFx/classie.js"></script>
<script src="vendor/selectFx/selectFx.js"></script>
<script src="vendor/select2/select2.min.js"></script>
<script
src="vendor/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script
src="vendor/bootstrap-timepicker/bootstrap-timepicker.min.js"></script>
<script src="assets/js/main.js"></script>
<script src="assets/js/form-elements.js"></script>
<script>
jQuery(document).ready(function() {
Main.init();
87
FormElements.init();
});
</script>
</body>
</html>
<?php
require_once("include/config.php");
if(!empty($_POST["email"])) {
$email= $_POST["email"];
$count=mysqli_num_rows($result);
if($count>0)
.</span>"; echo
"<script>$('#submit').prop('disabled',true);</script>";
88
} else{
echo "<script>$('#submit').prop('disabled',false);</script>";
?>
<?php
function check_login()
if(strlen($_SESSION['login'])==0)
$host = $_SERVER['HTTP_HOST'];
$extra="../admin.php";
$_SESSION["login"]="";
header("Location: h†p://$host$uri/$extra");
}
89
}
?>
<?php
session_start();
//error_reporting(0);
include('include/config.php');
include('include/checklogin.php');
check_login();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>User | Dashboard</title>
<link
href="h†p://fonts.googleapis.com/css?family=Lato:300,400,400italic,600,70
0
|Raleway:300,400,500,600,700|Crete+Round:400italic"
rel="stylesheet
" type="text/css" />
90
<link rel="stylesheet"
href="vendor/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet"
href="vendor/fontawesome/css/font-awesome.min.css">
<link rel="stylesheet"
href="vendor/themify-icons/themify-icons.min.css">
<link href="vendor/animate.css/animate.min.css"
rel="stylesheet" media="screen">
<link href="vendor/perfect-scrollbar/perfect-
scrollbar.min.css" rel="stylesheet" media="screen">
<link
href="vendor/switchery/switchery.min.css
" rel="stylesheet" media="screen">
<link
href="vendor/bootstrap-touchspin/jquery.bootstrap-
touchspin.min.css" rel="stylesheet" media="screen">
<link href="vendor/select2/select2.min.css"
rel="stylesheet" media="screen">
<link
href="vendor/bootstrap-datepicker/bootstrap-
datepicker3.standalone.min.cs s" rel="stylesheet" media="screen">
<link
href="vendor/bootstrap-timepicker/bootstrap-
timepicker.min.css" rel="stylesheet" media="screen">
<div id="app">
<?php include('include/sidebar.php');?>
<div class="app-content">
<?php include('include/header.php');?>
<div class="row">
<div class="col-sm-8">
<h1
class="mainTitle">User | Dashboard</h1>
</div>
<ol class="breadcrumb">
<li>
92
<span>User</span>
</li>
<li class="active">
<span>Dashboard</span>
</li>
</ol>
</div>
</section>
<div class="row">
<div class="col-sm-4">
<div class="panel
panel-white no-radius text-center">
<div
class="panel-body">
<span
class="fa-stack fa-2x"> <i class="fa fa-square fa-stack-2x text-
primary"></i> <i class="fa fa-smile-o fa-stack-1x fa-inverse"></i> </span>
93
<h2
class="StepTitle">My Profile</h2>
<p
class="links cl-effect-1">
<a
href="edit-profile.php">
Update Profile
</a>
</p>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="panel
panel-white no-radius text-center">
<div
class="panel-body">
<span
class="fa-stack fa-2x"> <i class="fa fa-square fa-stack-2x text-
primary"></i> <i class="fa fa-paperclip fa-stack-1x fa-inverse"></i>
</span>
94
<h2
class="StepTitle">My Appointments</h2>
<p
class="cl-effect-1">
<a
href="appointment-history.php">
</a>
</p></div>
</div>
</div>
<div class="col-sm-4">
<div class="panel
panel-white no-radius text-center">
<div
class="panel-body">
<span
class="fa-stack fa-2x"> <i class="fa fa-square fa-stack-2x text-
primary"></i> <i class="fa fa-terminal fa-stack-1x fa-inverse"></i> </span>
<h2
95
class="StepTitle"> Book My Appointment</h2>
<p
class="links cl-effect-1">
<a
href="book-
appointment.php">
Book Appointment
</a>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include('include/footer.php');?>
<>
</div>
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="vendor/modernizr/modernizr.js"></script>
<script src="vendor/jquery-cookie/jquery.cookie.js"></script>
<script
src="vendor/perfect-scrollbar/perfect-scrollbar.min.js"></script>
<script src="vendor/switchery/switchery.min.js"></script>
97
<!-- start: JAVASCRIPTS REQUIRED FOR THIS PAGE
ONLY -->
<script
src="vendor/maskedinput/jquery.maskedinput.min.js"></scrip
t>
<script
src="vendor/bootstrap-touchspin/jquery.bootstrap-
touchspin.min.js"></scrip t>
<script src="vendor/autosize/autosize.min.js"></script>
<script src="vendor/selectFx/classie.js"></script>
<script src="vendor/selectFx/selectFx.js"></script>
<script src="vendor/select2/select2.min.js"></script>
<script
src="vendor/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script
src="vendor/bootstrap-timepicker/bootstrap-timepicker.min.js"></script>
<script src="assets/js/main.js"></script>
<script src="assets/js/form-elements.js"></script>
<script>
jQuery(document).ready(function()
{ Main.init();
98
FormElements.init();
});
</script>
</body>
</html>
<?php
session_start();
//error_reporting(0);
include('include/config.php');
include('include/checklogin.php');
check_login();
if(isset($_POST['submit']))
$fname=$_POST['fname'];
$address=$_POST['address'];
$city=$_POST['city'];
$gender=$_POST['gender'];
99
$sql=mysqli_query($con,"Update users set
fullName='$fname',address='$address',city='$city',gender='$gender'
where id='".$_SESSION['id']."'");
if($sql)
?>
<!DOCTYPE html>
<html lang="en">
<head>
<link
href="h†p://fonts.googleapis.com/css?family=Lato:300,400,400italic,600,70
0
|Raleway:300,400,500,600,700|Crete+Round:400italic"
rel="stylesheet
" type="text/css" />
<link rel="stylesheet"
100
href="vendor/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet"
href="vendor/fontawesome/css/font-awesome.min.css">
<link rel="stylesheet"
href="vendor/themify-icons/themify-icons.min.css">
<link href="vendor/animate.css/animate.min.css"
rel="stylesheet" media="screen">
<link href="vendor/perfect-scrollbar/perfect-
scrollbar.min.css" rel="stylesheet" media="screen">
<link
href="vendor/switchery/switchery.min.css
" rel="stylesheet" media="screen">
<link
href="vendor/bootstrap-touchspin/jquery.bootstrap-
touchspin.min.css" rel="stylesheet" media="screen">
<link href="vendor/select2/select2.min.css"
rel="stylesheet" media="screen">
<link
href="vendor/bootstrap-datepicker/bootstrap-
datepicker3.standalone.min.cs s" rel="stylesheet" media="screen">
<link
href="vendor/bootstrap-timepicker/bootstrap-
timepicker.min.css" rel="stylesheet" media="screen">
<body>
<div id="app">
<?php
include('include/sidebar.php');?>
<div class="app-content">
<?php include('include/header.php');?>
<section id="page-title">
<div class="row">
<div class="col-sm-8">
<h1
class="mainTitle">User | Edit Profile</h1>
</div>
<ol
class="breadcrumb"><li>
102
<span>User
</span>
</li>
<li class="active">
<span>Edit
Profile</span>
</li>
</ol>
</div>
</section>
<div class="container-fluid
container-fullw bg-white">
<div class="row">
<div class="col-md-12">
<div class="row
margin-top-30">
<div
class="col-lg-8 col-md-12">
103
<div
class="panel panel-white">
<div class="panel-heading">
</div>
<div class="panel-body">
<?php
id='".$_SESSION['id']."'"); while($data=mysqli_fetch_array($sql))
?>
<?php if($data['updationDate']){?>
104
<?php } ?>
<hr />
<form role="form" name="edit" method="post">
<div class="form-group">
<label for="fname">
User Name
</label>
</div>
<div class="form-group">
<label for="address">
Address
</label>
<textarea name="address"
class="form-control"><?php echo
htmlentities($data['address']);?></textarea>
</div>
<div class="form-group">
105
<label for="city">
City
</label>
</div>
<div class="form-group">
<label for="gender">
Gender
</label>
<option value="male">Male</option>
<option value="female">Female</option>
<option value="other">Other</option>
</select>
</div>
106
<div class="form-group">
<label for="fess">
User Email
</label>
<input type="email" name="uemail"
class="form-control" readonly="readonly" value="<?php echo
htmlentities($data['email']);?>">
</div>
<bu†on type="submit" name="submit" class="btn btn-o
btn-primary">
Update
</bu†on>
</form>
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="vendor/modernizr/modernizr.js"></script>
<script src="vendor/jquery-cookie/jquery.cookie.js"></script>
<script
src="vendor/perfect-scrollbar/perfect-
scrollbar.min.js"></script>
107
<script src="vendor/switchery/switchery.min.js"></script>
<script
src="vendor/jquery-
validation/jquery.validate.min.js"></script>
<script src="assets/js/main.js"></script>
<script src="assets/js/login.js"></script>
<script>
jQuery(document).ready(function()
{ Main.init();
Login.init();
});
</script>
</body>
</html>
108