You are on page 1of 108

A

MINI PROJECT REPORT

ON

“Hospital Management System”

SUBMITTED BY,
Tanvi Kumkar (59)
Kishor Patil (20)
Kiran Kiswe (19)

D.Y. PATIL INSTITUTE OF MCA AND MANAGEMENT


AKURDI, PUNE-411044

Academic Year 2021-2022

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: director@dypimca.ac.in
(Approved by AICTE, Recognized by DTE, Mah.; Affiliated to SPPU)

CERTIFICATE
This is to certify that, the Mini Project entitled

“Hospital Management System”

Has been successfully partially completed

By
Tanvi Kumkar (59)
Kishor Patil (20)
Kiran Kiswe (19)
Semester III
Class. SYMCA Div. A
M.C.A. (Master of Computer Application)

Academic Year 2021-2022

Mrs. Nisarga Sabale Dr. Kavita Suryawanshi Dr. K. Nirmala


Project Guide HOD, MCA Director

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

● This project is aimed to automate the hospital management system.


● This project is developed mainly to administrate doctor's appointment
with the patients.
● The purpose of the project entitled as HOSPITAL MANAGEMENT
SYSTEM is to computerize the Front Office Management of Hospital to
develop software which is user friendly, simple, fast, and cost – effective.
● It deals with the collection of patient’s information, diagnosis details, etc.
Traditionally, it was done manually.
● The main function of the system is to register and store patient details and
doctor details and retrieve these details as and when required, and also to
manipulate these details meaningfully.

5
1.1 Project Objectives:

● With growing population and advancement in the medical technology and


increasing expectation of the people especially for quality curative care, it
has now become imperative to provide quality health care services through
the established institutions.
● In most developing countries, provision of basic preventive, primitive
and curative services is a major concern of the Government.
● In public Sector 15,393 allopathic hospitals (Health Information of India
2003) are functioning. In the rural areas, the secondary level care is being
provided through 3222 CHCs (Bulletin on Rural Health Statistics in India
2005) with 30 beds each with specialist services of physicians,
pediatricians, O & G specialists, and surgeons being made available.
● However, these services have not been successful in gaining the faith and
confidence of the people because of lack of specialists, facilities and
accountability, along with the paucity of resources and non-involvement.
● Hospital Management System is a simple yet effective management.
● This system acts for the hospitals to manage the affairs of the hospital.

6
1.2 Existing System and Need of System:

● Hospital currently use a manual system for the management and


maintenance of critical information.
● The current system requires numerous paper forms. With data stores
spread through the hospital management infrastructure.
● Often information is incomplete or does not follow management
standards.
● Forms are often lost in transit between departments requiting a
comprehensive auditing process to ensure that no vital information exist
in the hospital and may lead to inconsistencies in data in various data
stores.

7
1.3 Scope of work:

● The proposed software product is the Hospital Management System


(HMS).
● The system will be used in any Hospital, Clinic, Dispensary or Pathology
labs in any Hospital, Clinic, Dispensary or Pathology labs to get the
information from the patients and then storing that data for future usage
● The current system in use is a paper-based system.
● It is too slow and cannot provide updated lists of patients within a
reasonable timeframe.
● The intentions of the system are to reduce over-time pay and increase the
number of patients that can be treated accurately.
● Requirements statements in this document are both functional and
non-functional.

8
1.4 Operating Environment – Hardware and Software:-

Hardware:

▪ Processor: Pentium IV processor or higher

▪ RAM: 128 MB RAM & above

▪ 40GB HARDDISK

Software:

▪ Windows 7/8/10

▪ JRE Environment 1.5 or Higher

9
1.5 Technology Used:

● JS

● PHP

● MYSQL

10
1.6 Module Specification:

1) Administration:-

-Manage All Accounts

-Verification of Doctors, Hospitals, Pathology Labs.

-All Administration authorities etc.

2) Hospital Management:-

Registration of hospitals: By using registrations of hospital we can add the

details of hospital like as name, address, contact, add hospital specialties etc.

Add available Facilities : In which we can add the ECG service, medical

services, ambulance service, OPD, etc.,

3) Doctors Management:-

Registration : By using registrations of Doctor we can add the details of doctor

like as name, specialist, contact. etc.

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:-

• Registration: By using registrations of Patient we can add the details of

Patient like as patient disease, medicine, Checking date.

• Send Request for appointment : It will send the request to the doctor for

meeting about disease. Patient can uploads its previous reports.

11
Chapter 2: Analysis & Design

2.1 Data Flow Diagram:

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

6) Medical History Table:-

Name Type

Id Int

patientId int

bloodpressure varchar

bloodsugar Varchar

Temperate varchar

Medicalpres varchar

24
weight varchar

Creationdate stamp

25
2.9 Test case:

Test Case Name: Login


Test Case ID: TC01_Log_in
Test Case Prerequisite: User must launch the MED-MET application.

Sr. Test to be Expected Actual Result Test Remark


No Performed Result Pass/Failed
1. Check login with Login successful Login Pass
valid data & should be successful.
open home Page Home page
opened.
2. Check login with Login failed. Login failed. Pass
invalid data Message should Message
be display shown,
“Username or “Username or
Password is Password is
invalid”. invalid”.
3. Check login with Login failed. Login failed, Pass
empty fields. Message should Message
be display shown “Please
“Please fill all fill all the
the fields”. fields”.
4. Check whether Login failed, Login failed Pass
username or Message should message
password is case be displayed shown
sensitive “Username or “Username or
Password is Password is
invalid”. invalid”.

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.

Sr. Test to be Expected Actual Result Test Remark


No Performed Result Pass/Failed
1. Verify whether the Select date and Date and time Pass
patient is able to time for is available
book appointment. appointment. for
appointment
2. Verify whether Appointment Appointment Pass
doctor accepted the booked should be
appointment. successfully or booked
select another successfully or
date and time select another
date and time
3. Verify whether the Only pdf format Only pdf Pass
patient can upload should be should be
report uploaded uploaded
successfully.
4. Check whether the All field details All field Pass
patient has filled all should be valid. details added
the valid details. successfully.
5. Check whether the Record should Record view Pass
patient has select be added before successfully.
date to view existing view.
records.
6. Check whether the Record should Record edited Pass
patient is able to edit be added and successfully.
existing records. view to edit
details.

Test Case Name: Diagnosis Management:


Test Case ID: TC03_ Diagnosis 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.

Test Case Name: Patient Medical History Management


Test Case ID: TC04_ Patient Medical History Management
Test Case Prerequisite: User must launch the MED-MET application.
User must be Login.

Sr. Test to be Expected Actual Result Test Remark


No Performed Result Pass/Failed
1. Check whether Patient can view Patient should Pass
patient can able to record and be able to view
check record and download record
view the medication medication successfully
provided doctor provided by and download
doctor medication
provided by
doctor
successfully.
2. Doctor can upload Medication and Medication Pass
medication report should be and report
according to upload should be
treatment uploaded
successfully

28
Chapter 3: Drawbacks and Limitations

● Software is limited to Window XP only.


● System requires jre installed on the system.
● All options of settings are not included in current version.
● Security options provides only low-level security against beginner
attackers.
● GUI is in English only.

29
Chapter 4: Proposed Enhancement

● This Software can be made for all OS


● Higher Security features can be included in this software.
● Program scheduling can also be included in this software.
● This software can be developed to use as tutorial to teach basic
concepts of OS to new users.
● This system can be implemented with OS to reduce overhead of
installing and running interface of each and every tool at different
place.
● Automatic Shutdown through SMS service can be implemented in
this.

30
Chapter 5: Conclusion

● Window XP operating system is thoroughly studied and used.


Different tools and settings are practiced and implemented in
software.
● Knowledge about control commands and the basic backbone of the
operating system is gained.
● Learnt some concepts regarding operating an operating system
through a programming language.
● Various classes of java are used to run control commands and to
handle processes.
● Currently this software can run on any machine running window XP.

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']))

mysqli_query($con,"update appointment set userStatus='0'


where id = '".$_GET['id']."'");

$_SESSION['msg']="Your appointment canceled !!";

?>

<!DOCTYPE html>

<html lang="en">

<head>

<title>User | Appointment History</title>

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/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.css"
rel="stylesheet" media="screen">

37
<link
href="vendor/bootstrap-timepicker/bootstrap-timepicker.min.css"
rel="stylesheet" media="screen">

<link rel="stylesheet" href="assets/css/styles.css">

<link rel="stylesheet" href="assets/css/plugins.css">

<link rel="stylesheet" href="assets/css/themes/theme-1.css"


id="skin_color" />

</head>

<body>

<div id="app">

<?php include('include/sidebar.php');?>

<div class="app-content">

<?php include('include/header.php');?>

<!-- end: TOP NAVBAR -->

<div class="main-content" >

<div class="wrap-content container"


id="container">

<!-- start: PAGE TITLE -->

<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>

<!-- end: PAGE TITLE -->

<!-- start: BASIC EXAMPLE -->

<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>

<th>Appointment Date / Time </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>

<td><?php echo $row['doctorSpecialization'];?></td>

<td><?php echo $row['consultancyFees'];?></td>

<td><?php echo $row['appointmentDate'];?> / <?php echo

$row['appointmentTime'];?>

</td>

<td><?php echo $row['postingDate'];?></td>

<td>

<?php if(($row['userStatus']==1) && ($row['doctorStatus']==1))

echo "Active";

if(($row['userStatus']==0) && ($row['doctorStatus']==1))

42
{

echo "Cancel by You";

if(($row['userStatus']==1) && ($row['doctorStatus']==0))

echo "Cancel by Doctor";

?></td>

<td
>

<div class="visible-md visible-lg hidden-sm hidden-


xs">

<?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>

<div class="visible-xs visible-sm hidden-md hidden-lg">

<div class="btn-group" dropdown is-open="status.isopen">

<button type="button" class="btn btn-primary btn-o btn-sm


dropdown-toggle" dropdown-toggle>

<i class="fa fa-cog"></i>&nbsp;<span class="caret"></span>

</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>

<!-- end: BASIC EXAMPLE -->

<!-- end: SELECT BOXES -->

</div>

</div>

</div>

<!-- start: FOOTER -->

<?php include('include/footer.php');?>

<!-- end: FOOTER -->

<!-- start: SETTINGS -->

<?php include('include/setting.php');?>

<!-- end: SETTINGS -->

</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>

<!-- end: MAIN JAVASCRIPTS -->

<!-- start: JAVASCRIPTS REQUIRED FOR THIS PAGE ONLY --


>

<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 -->

<!-- start: CLIP-TWO JAVASCRIPTS -->

<script src="assets/js/main.js"></script>

<!-- start: JavaScript Event Handlers for this page -->

<script src="assets/js/form-elements.js"></script>

<script>

jQuery(document).ready(function() {

Main.init();

FormElements.init();

});

</script>

<!-- end: JavaScript Event Handlers for this page -->

<!-- end: CLIP-TWO JAVASCRIPTS -->

</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)

echo "<script>alert('Your appointment successfully


booked');</script>";

?>

50
<!DOCTYPE html>

<html lang="en">

<head>

<title>User | Book Appointment</title>

<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/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"

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">

<link rel="stylesheet" href="assets/css/styles.css">

<link rel="stylesheet" href="assets/css/plugins.css">

<link rel="stylesheet" href="assets/css/themes/theme-1.css"


id="skin_color" />

<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 -->

<div class="main-content" >

<div class="wrap-content container"


id="container">

<!-- start: PAGE TITLE -->

<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 -->

<!-- start: BASIC EXAMPLE -->

<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">Book Appointment</h5>

55
</div>

<div class="panel-body">

<p style="color:red;"><?php
echo htmlentities($_SESSION['msg1']);?>

<?php echo
htmlentities($_SESSION['msg1']="");?></p>

<form role="form" name="book" method="post" >

<div class="form-group">

<label for="DoctorSpecialization">

Doctor Specialization

</label>

56
<select
name="Doctorspecialization" class="form-control"
onChange="getdoctor(this.value);" required="required">

<option value="">Select Specialization</option>

<?php $ret=mysqli_query($con,"select * from doctorspecilization");

while($row=mysqli_fetch_array($ret))

?>

<option value="<?php echo


htmlentities($row['specilization']);?>">

<?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">

<option value="">Select Doctor</option>

</select>

</div>
<div class="form-group">

<label for="consultancyfees">

Consultancy Fees

</label>

<select name="fees" class="form-control"


id="fees" readonly>

</select>
58
</div>

<div class="form-group">

<label for="AppointmentDate">

Date

</label>

<input class="form-control datepicker" name="appdate" required="required"


data-date-format="yyyy-mm-dd">

</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>

<!-- end: BASIC EXAMPLE -->

<!-- end: SELECT BOXES -->

</div>

</div>

</div>

<!-- start: FOOTER -->

<?php include('include/footer.php');?>

<!-- end: FOOTER -->

<!-- start: SETTINGS -->


<?php include('include/setting.php');?>

<!-- end: SETTINGS -->

</div>

<!-- start: MAIN JAVASCRIPTS -->

<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>

<!-- end: MAIN JAVASCRIPTS -->

<!-- start: JAVASCRIPTS REQUIRED FOR THIS PAGE ONLY --


>

<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>

<!-- end: JAVASCRIPTS REQUIRED FOR THIS PAGE ONLY -->

<!-- start: CLIP-TWO JAVASCRIPTS -->

<script src="assets/js/main.js"></script>

<!-- start: JavaScript Event Handlers for this page -->


62
<script src="assets/js/form-elements.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>

<!-- end: JavaScript Event Handlers for this page -->

<!-- end: CLIP-TWO JAVASCRIPTS -->

<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'];

$sql=mysqli_query($con,"Update users set email='$email' where


id='".$_SESSION['id']."'");

if($sql)

$msg="Your email updated Successfully";

?>

<!DOCTYPE html>

<html lang="en">

64
<head>

<title>User | Edit Profile</title>


<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/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.css"
rel="stylesheet" media="screen">

65
<link
href="vendor/bootstrap-timepicker/bootstrap-timepicker.min.css"
rel="stylesheet" media="screen">

<link rel="stylesheet" href="assets/css/styles.css">

<link rel="stylesheet" href="assets/css/plugins.css">

<link rel="stylesheet" href="assets/css/themes/theme-1.css"


id="skin_color" />
</head>

<body>

<div id="app">

<?php include('include/sidebar.php');?>

<div class="app-content">

<?php include('include/header.php');?>

<!-- end: TOP NAVBAR -->

<div class="main-content" >

<div class="wrap-content container"


id="container">

<!-- start: PAGE TITLE -->


<section id="page-title">

<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>

<!-- end: PAGE TITLE -->

<!-- start: BASIC EXAMPLE -->

67
<div class="container-fluid
container-fullw bg-white">

<div class="row">

<div class="col-md-12">

<h5 style="color: green; font-size:18px; ">

<?php if($msg) { echo htmlentities($msg);}?> </h5>

<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">

<form name="registration" id="updatemail"


method="post">

<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>

<button type="submit" name="submit"


id="submit" class="btn btn-o btn-primary">

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>

<!-- end: JAVASCRIPTS REQUIRED


FOR THIS PAGE ONLY -->

<!-- start: CLIP-TWO JAVASCRIPTS --


>

<script src="assets/js/main.js"></script>

<!-- start: JavaScript Event Handlers for


this page -->

<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(); >

return false; <


?
} p
h
else if(document.chngpwd.npass.value!= p
document.chngpwd.cfpass.value) i
n
{ c
l
alert("Password and Confirm Password Field do u
d
not match !!"); e
(
document.chngpwd.cfpass.focus(); '
i
return false; n
c
} l
u
return true; d
e
} /
s
</script> i
79
debar.php');?>

<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>

<form role="form" name="chngpwd" method="post" onSubmit="return


valid();">

<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>

<input type="password" name="npass"


class="form-control" placeholder="New Password">

</div>

<div class="form-group">

<label for="exampleInputPassword1">

84
Confirm Password

</label>

<input
type="password" name="cfpass" class="form-control" placeholder="Confirm
Password">

</div>

<button type="submit" name="submit" class="btn btn-o


btn-primary">

Submit

</button>

</form>
</div>

</div>

</div>

</div>

</div>

</div>

85
</div>

<!-- end: BASIC EXAMPLE -->


<!-- end: SELECT BOXES -->

</div>
</div>

</div>

<!-- start: FOOTER -->

<?php include('include/footer.php');?>

<!-- end: FOOTER -->

<!-- start: SETTINGS -->

<?php include('include/setting.php');?>

<>

<!-- end: SETTINGS -->

</div>

<!-- 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

86
src="vendor/perfect-scrollbar/perfect-scrollbar.min.js"></script>

<script src="vendor/switchery/switchery.min.js"></script>

<!-- end: MAIN JAVASCRIPTS -->

<!-- start: JAVASCRIPTS REQUIRED FOR THIS PAGE ONLY --


><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>

<!-- end: JAVASCRIPTS REQUIRED FOR THIS PAGE ONLY -->

<!-- start: CLIP-TWO JAVASCRIPTS -->

<script src="assets/js/main.js"></script>

<!-- start: JavaScript Event Handlers for this page -->

<script src="assets/js/form-elements.js"></script>

<script>

jQuery(document).ready(function() {

Main.init();

87
FormElements.init();

});
</script>

<!-- end: JavaScript Event Handlers for this page -->

<!-- end: CLIP-TWO JAVASCRIPTS -->

</body>

</html>

<?php

require_once("include/config.php");

if(!empty($_POST["email"])) {

$email= $_POST["email"];

$result =mysqli_query($con,"SELECT email FROM users


WHERE email='$email'");

$count=mysqli_num_rows($result);

if($count>0)

echo "<span style='color:red'> Email already exists

.</span>"; echo

"<script>$('#submit').prop('disabled',true);</script>";
88
} else{

echo "<span style='color:green'> Email available for Registration


.</span>";

echo "<script>$('#submit').prop('disabled',false);</script>";

?>

<?php

function check_login()

if(strlen($_SESSION['login'])==0)

$host = $_SERVER['HTTP_HOST'];

$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');

$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">

<link rel="stylesheet" href="assets/css/styles.css">

<link rel="stylesheet" href="assets/css/plugins.css">


91
<link rel="stylesheet" href="assets/css/themes/theme-1.css"
id="skin_color" />
</head>
<body>

<div id="app">

<?php include('include/sidebar.php');?>

<div class="app-content">

<?php include('include/header.php');?>

<!-- end: TOP NAVBAR -->

<div class="main-content" >

<div class="wrap-content container"


id="container">

<!-- start: PAGE TITLE -->


<section id="page-title">

<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>

<!-- end: PAGE TITLE -->

<!-- start: BASIC EXAMPLE -->


<div class="container-fluid
container-fullw bg-white">

<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">

View Appointment History

</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>

<!-- end: SELECT BOXES -->


96
</div>

</div>

</div>

<!-- start: FOOTER -->

<?php include('include/footer.php');?>

<!-- end: FOOTER -->

<!-- start: SETTINGS -->


<?php include('include/seGng.php');?>

<>

<!-- end: SETTINGS -->

</div>

<!-- 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>

<!-- end: MAIN JAVASCRIPTS -->

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>

<!-- end: JAVASCRIPTS REQUIRED FOR THIS PAGE ONLY


-->

<!-- start: CLIP-TWO JAVASCRIPTS -->

<script src="assets/js/main.js"></script>

<!-- start: JavaScript Event Handlers for this page -->

<script src="assets/js/form-elements.js"></script>

<script>

jQuery(document).ready(function()

{ Main.init();

98
FormElements.init();

});

</script>

<!-- end: JavaScript Event Handlers for this page -->

<!-- end: CLIP-TWO JAVASCRIPTS -->

</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)

$msg="Your Profile updated Successfully";

?>

<!DOCTYPE html>

<html lang="en">

<head>

<title>User | Edit Profile</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" />

<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">

<link rel="stylesheet" href="assets/css/styles.css">

<link rel="stylesheet" href="assets/css/plugins.css">

<link rel="stylesheet" href="assets/css/themes/theme-1.css"


101
id="skin_color" />
</head>

<body>

<div id="app">

<?php
include('include/sidebar.php');?>

<div class="app-content">

<?php include('include/header.php');?>

<!-- end: TOP NAVBAR -->

<div class="main-content" >

<div class="wrap-content container"


id="container">

<!-- start: PAGE TITLE -->

<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>

<!-- end: PAGE TITLE -->

<!-- start: BASIC EXAMPLE -->

<div class="container-fluid
container-fullw bg-white">

<div class="row">

<div class="col-md-12">

<h5 style="color: green; font-size:18px; ">

<?php if($msg) { echo htmlentities($msg);}?> </h5>

<div class="row
margin-top-30">
<div
class="col-lg-8 col-md-12">

103
<div
class="panel panel-white">

<div class="panel-heading">

<h5 class="panel-title">Edit Profile</h5>

</div>

<div class="panel-body">

<?php

$sql=mysqli_query($con,"select * from users where

id='".$_SESSION['id']."'"); while($data=mysqli_fetch_array($sql))

?>

<h4><?php echo htmlentities($data['fullName']);?>'s Profile</h4>

<p><b>Profile Reg. Date: </b><?php echo


htmlentities($data['regDate']);?></p>

<?php if($data['updationDate']){?>

<p><b>Profile Last Updation Date: </b><?php echo


htmlentities($data['updationDate']);?></p>

104
<?php } ?>

<hr />
<form role="form" name="edit" method="post">

<div class="form-group">

<label for="fname">

User Name

</label>

<input type="text" name="fname" class="form-control"


value="<?php echo htmlentities($data['fullName']);?>" >

</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>

<input type="text" name="city" class="form-


control" required="required" value="<?php echo
htmlentities($data['city']);?>" >

</div>

<div class="form-group">

<label for="gender">

Gender

</label>

<select name="gender" class="form-control" required="required" >

<option value="<?php echo htmlentities($data['gender']);?>"><?php echo


htmlentities($data['gender']);?></option>

<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']);?>">

<a href="change-emaild.php">Update your


email id</a>

</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>

<!-- end: BODY -->

</html>

108

You might also like