You are on page 1of 118

HOSPITAL MANAGEMENT SYSTEM

1
HOSPITAL MANAGEMENT SYSTEM

The main objective of hospital management system is to manage the details of Admin,
Doctor, patients. The purpose of the project is to remove manual work for management the
admin, doctor and patients. It manages all the information of the hospital, test. The project
is totally built at administrative end and thus only the administrator is guaranteed the
access the purpose of the project is to build an application program to reduce the manual
work for managing the hospital, doctor, and patient. It tracks all the details about the
patients, test.

Hospital management system also manages the doctor’s details, patient details. Shows the
information and description of the admin, doctor, patients. It deals with monitoring the
information and Editing, adding and updating of records is improved which results in
proper resource management of hospital data.

2
HOSPITAL MANAGEMENT SYSTEM

3
HOSPITAL MANAGEMENT SYSTEM

The project entitled “HOSPITAL MANAGEMENT SYSTEM” is a software that is an excellent


software tool that can be used to store all types of details of hospital departments, Doctor
Details and patient details etc., Through this software helps to view all details of the
hospital by Administration that can be manage their loyalty programs of hospital in an
effective way.

The project aims to develop a web application is for HOSPITAL MANAGEMENT SYSTEM. The
proposed method is to create the admin to view all information related to doctors and
patient, doctor to view the details of the appointments and patient information and patient
can Book there appointment with doctors and they can create a their own profile to check
out the details of their health, to continue with the operation with the system developed.
Experiment results demonstrate the presented GUI is helpful for the admin, doctor and
patient to interact with the system and used back end as MYSQL to maintain details.

The Hospital Management System is developed under the hospital admin, doctor and
patient view is developed in as the front end and as the back end .In the HMS there are
number of modules where lot of details is maintained. The HMS is developed to maintain
the following modules.

 Patient Details

 Doctor Details

 Admin Details

4
HOSPITAL MANAGEMENT SYSTEM

5
HOSPITAL MANAGEMENT SYSTEM

 The main aim of hospital management system is to reduce the manual work.

 It helps to manage all sections of hospital like Admin, doctors and patients details
management etc…,

 It aims to improve the processing efficiency.

 Hospital management system helps in providing the details of admin, doctor and
patient orderly.

 It promotes the development of high quality hospital services and community health
care.

 The main aim to make the software easily accessible as user friendly

6
HOSPITAL MANAGEMENT SYSTEM

Software Requirements:

 Operating Systems:
 Windows 10

 Front End Tool:


 HTML, CSS, JAVA SCRIPT
 PHP

 Back End Tool:


 MS Sql Server

Hardware Requirements:

Processor : Intel Core Duo 2.0 GHz or more


RAM : 1 GB or More
Hard disk : 80GB or more
Monitor : 15” CRT, or LCD monitor
Keyboard : Normal or Multimedia
Mouse : Compatible mouse

7
HOSPITAL MANAGEMENT SYSTEM

This Project is designed for creating an efficient, user friendly Application Software to
perform various Hospital Management Tasks. Etc.… The “Hospital management system” has
been developed to override the problem in the prevailing in the practicing manual system.
The software is supported to eliminate and in some cases reduce the hardships faced by
this existing system. Moreover this system is designed for the particular need of the
hospital to carry out operations in a smooth and effective manner.

The application is reduced as much as possible to avoid errors while entering the data.
It also provide error message while entering invalid data. Only the Administrator can view
All details of Doctors and patients, doctor and patient can make an account and check
Out the appointment history they can use easily this applications in any system. Hospital
Management, as described above, can lead to error free, secure, reliable and fast
management system. It can assist the administrator and doctor can concentrate on their
other activities rather to concentrate on the record keeping. Thus it will help organization in
better utilization of resources.

This is a software system that incorporates various factors needed for smooth working and
management of a hospital details. The Project "Hospital Management system Project” Allows
administrator to add details like Doctor Details, Patient details. This includes Normal
accommodation/Special accommodation as well as patient data. The system also stores the
doctor data and patient data in a well-defined manner.

8
HOSPITAL MANAGEMENT SYSTEM

Classical waterfall model is the basic software development life cycle model.
It is very simple but idealistic. Earlier this model was very popular but nowadays it is not
used. But it is very important because all the other software development life cycle models
are based on the classical waterfall model .Classical waterfall model divides the life cycle
into a set of phases. This model considers that one phase can be started after completion of
the previous phase. That is the output of one phase will be the input to the next phase.
Thus the development process can be considered as a sequential flow in the waterfall. Here
the phases do not overlap with each other. The different sequential phases of the classical
waterfall model are shown in the below figure:

9
HOSPITAL MANAGEMENT SYSTEM

Water fall model states that which phases are organized in liner order and the
activities are performed in the sequence order. I.e. learning with maturity and involves
minimum easy method for the customer as well as the development firms. Following are
The typical uses of water fall model.

 Easy to understand, easy to use


 Provide structure to inexperience staffs
 Milestones are well understand
 Sets requirements stability
 Good for management control
 Works well when quality is more important than cost or schedule.

10
HOSPITAL MANAGEMENT SYSTEM

In this, we present a review of the Software Used While Implementing the Project.
The Software is HTML, JAVA SCRIPT, CSS and PHP as Front End Tool and MYSQL as Back End.
Thus, we will take an overlook on this Software.

Mainly Hospital Management System Project Is Having Following Modules.

 Patient
 View appointment list and status with doctors
 View medication from doctor
 View doctor list
 Manage own profile
 Doctor Details
 Create, manage appointment with patient
 Provide medication details to patient
 Manage own profile
 Admin
 Patient
 Manage Patient Details
 Doctors
 Doctors Specialization
 Add Doctors
 Manage Doctors
 View Appointment of Doctor’s
 Doctors Session Logs
 User Session Logs

11
HOSPITAL MANAGEMENT SYSTEM

HTML:

HTML or Hypertext Markup Language is the standard markup language used to


create web pages.

HTML is written in the form of HTML elements consisting of tags enclosed in angle
brackets (like <html>). HTML tags most commonly come in pairs like <h1> and </h1>,
although some tags represent empty elements and so are unpaired, for example <img>.
The first tag in a pair is the start tag, and the second tag is the end tag (they are also
called opening tags and closing tags). Though not always necessary, it is best practice to
append a slash to tags which are not paired with a closing tag.

The purpose of a web browser is to read HTML documents and compose them into visible or
audible web pages. The browser does not display the HTML tags, but uses the tags to
interpret the content of the page. HTML describes the structure of a website
semantically along with cues for presentation, making it a markup language rather than
a programming language.

HTML elements form the building blocks of all websites. HTML allows images and objects to
be embedded and can be used to create interactive forms. It provides a means to
create structured documents by denoting structural semantics for text such as headings,
paragraphs, lists, links, quotes and other items. It can embed scripts written in languages
such as JavaScript which affect the behavior of HTML web pages.

12
HOSPITAL MANAGEMENT SYSTEM

CASCADING STYLE SHEETS (CSS):

It is a style sheet language used for describing the look and formatting of a
document written in a markup language. While most often used to style web pages
and interfaces written in HTML and XHTML, the language can be applied to any kind
of XML document, including plain XML, SVG and XUL. CSS is a cornerstone specification
of the web and almost all web pages use CSS style sheets to describe their presentation.

CSS is designed primarily to enable the separation of document content from document
presentation, including elements such as the layout, colors, and fonts.[1] This separation can
improve content accessibility, provide more flexibility and control in the specification of
presentation characteristics, enable multiple pages to share formatting, and reduce
complexity and repetition in the structural content.

CSS can also allow the same markup page to be presented in different styles for different
rendering methods, such as on-screen, in print, by voice (when read out by a speech-based
browser or screen reader) and on Braille-based, tactile devices. It can also be used to allow
the web page to display differently depending on the screen size or device on which it is
being viewed. While the author of a document typically links that document to a CSS file,
readers can use a different style sheet, perhaps one on their own computer, to override the
one the author has specified. However if the author or the reader did not link the document
to a specific style sheet the default style of the browser will be applied.

13
HOSPITAL MANAGEMENT SYSTEM

JAVASCRIPT:

JavaScript is the scripting language of the Web. All modern HTML pages are using
JavaScript. A scripting language is a lightweight programming language. JavaScript code can
be inserted into any HTML page, and it can be executed by all types of web browsers.
JavaScript is easy to learn.

WHY TO USE JAVASCRIPT:

JavaScript is one of the 3 languages all web developers must learn:


1. HTML to define the content of web pages
2. CSS to specify the layout of web pages
3. JavaScript to specify the behavior of web pages

Example

x = document.getElementById("demo"); //Find the HTML element with id="demo"


x.innerHTML = "Hello JavaScript"; //Change the content of the HTML element
document.getElementById() is one of the most commonly used HTML DOM methods.

OTHER USES OF JAVASCRIPT:


 Delete HTML elements
 Create new HTML elements
 Copy HTML elements

 In HTML, JavaScript is a sequence of statements that can be executed by the web


browser.

14
HOSPITAL MANAGEMENT SYSTEM

JAVASCRIPT STATEMENTS:

 JavaScript statements are "commands" to the browser.


 The purpose of the statements is to tell the browser what to do.
 This JavaScript statement tells the browser to write "Hello Dolly" inside an HTML
element with id="demo”: Semicolon;
 Semicolon separates JavaScript statements.
 Normally you add a semicolon at the end of each executable statement.
 Using semicolons also makes it possible to write many statements on one line.

JAVASCRIPT CODE:

 JavaScript code (or just JavaScript) is a sequence of JavaScript statements.


 Each statement is executed by the browser in the sequence they are written.
 This example will manipulate two HTML elements:
 Example
 document.getElementById("demo").innerHTML="Hello Dolly";
document.getElementById("myDIV").innerHTML="How are you?";

JAVASCRIPT PROPERTIES:

 Properties are the values associated with a JavaScript object.


 A JavaScript object is a collection of unordered properties.
 Properties can usually be changed, added, and deleted, but some are read only.

15
HOSPITAL MANAGEMENT SYSTEM

PHP:

WHAT IS PHP?
 PHP is an acronym for "PHP Hypertext Preprocessor"
 PHP is a widely-used, open source scripting language
 PHP scripts are executed on the server
 PHP costs nothing, it is free to download and use

WHAT IS PHP FILE?


 PHP files can contain text, HTML, CSS, JavaScript, and PHP code
 PHP code are executed on the server, and the result is returned to the browser as
plain HTML
 PHP files have extension ".php"

WHAT CAN PHP DO?


 PHP can generate dynamic page content
 PHP can create, open, read, write, delete, and close files on the server
 PHP can collect form data
 PHP can send and receive cookies
 PHP can add, delete, modify data in your database
 PHP can restrict users to access some pages on your website
 PHP can encrypt data
With PHP you are not limited to output HTML. You can output images, PDF files, and even
flash movies. You can also output any text, such as XHTML and XML.

WHY PHP?
 PHP runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.)
 PHP is compatible with almost all servers used today (Apache, IIS, etc.)
 PHP supports a wide range of databases
 PHP is free. Download it from the official PHP resource: www.php.net

16
HOSPITAL MANAGEMENT SYSTEM

MySQL:

MySQL is developed, distributed, and supported by Oracle Corporation. MySQL is a


database system used on the web it runs on a server. MySQL is ideal for both small and large
applications. It is very fast, reliable, and easy to use. It supports standard SQL. MySQL can be
compiled on a number of platforms.

The data in MySQL is stored in tables. A table is a collection of related data,


and it consists of columns and rows. Databases are useful when storing information
categorically.

FEATURES OF MySQL:
Internals and portability:
 Written in C and C++.
 Tested with a broad range of different compilers.
 Works on many different platforms.
 Tested with Purify (a commercial memory leakage detector) as well as with Val grind, a
GPL tool.
 Uses multi-layered server design with independent modules.

Security:
 A privilege and password system that is very flexible and secure, and that enables host-
based verification.
 Password security by encryption of all password traffic when you connect to a server.

17
HOSPITAL MANAGEMENT SYSTEM

Scalability and Limits:


 Support for large databases. We use MySQL Server with databases that contain 50 million
records. We also know of users who use MySQL Server with 200,000 tables and about
5,000,000,000 rows.

 Support for up to 64 indexes per table (32 before MySQL 4.1.2). Each index may consist
of 1 to 16 columns or parts of columns. The maximum index width is 767 bytes
for InnoDB tables, or 1000 for MyISAM; before MySQL 4.1.2, the limit is 500 bytes. An
index may use a prefix of a column for CHAR, VARCHAR, BLOB, or TEXT column types.

CONNECTIVITY:

Clients can connect to MySQL Server using several protocols:


 Clients can connect using TCP/IP sockets on any platform.
 On Windows systems in the NT family (NT, 2000, XP, 2003, or Vista), clients can
connect using named pipes if the server is started with the --enable-named-
pipe option. In MySQL 4.1 and higher, Windows servers also support shared-
memory connections if started with the --shared-memory option. Clients can
connect through shared memory by using the --protocol=memory option.
 On UNIX systems, clients can connect using Unix domain socket files.

LOCALIZATION:
 The server can provide error messages to clients in many languages.
 All data is saved in the chosen character set.

18
HOSPITAL MANAGEMENT SYSTEM

CLIENTS AND TOOLS:

 MySQL includes several client and utility programs. These include both command-
line programs such as mysqldump and mysqladmin, and graphical programs such
as MySQL Workbench.
 MySQL Server has built-in support for SQL statements to check, optimize, and
repair tables. These statements are available from the command line through
the mysqlcheck client. MySQL also includes myisamchk, a very fast command-line
utility for performing these operations on MyISAM tables.
 MySQL programs can be invoked with the --help or -? option to obtain online
assistance.

WHY TO USE MySQL:


• Leading open source RDBMS
• Ease of use – No frills
• Fast
• Robust
• Security
• Multiple OS support
• Free
• Technical support
• Support large database– up to 50 million rows, file size limit up to 8 Million TB

19
HOSPITAL MANAGEMENT SYSTEM

20
HOSPITAL MANAGEMENT SYSTEM

1. ADMIN

Id User name Password Updated Date

1 admin Test@12345 28/04/2019

2. APPOINTMENT

Id Doctor Doctor User Id Consultancy Appointment Appointment Status


Specialization Id Fees Date Time
1 Dentist 1 1 500 2019-04-20 10:00 A.M Active
2 Homeopathy 4 5 700 2019-04-22 10:30 A.M Active
3 General 3 8 1200 2019-04-24 11:00 A.M Cancel
Physician
4 Bones 9 8 1500 2019-04-28 09:30 A.M Active
Specialist

3. DOCOTOR

Id Specialization Doctor Address Doc Contact No Doc Password


Name Fees Email
8 Homeopathy Poojitha E City 1000 9876545345 Pooju@ ********
9 Dentist Rohit E City 1500 9834567654 rohit@ ********
10 General Santhosh E City 500 7654887897 zara@ ********
Physician Kumar

21
HOSPITAL MANAGEMENT SYSTEM
4. DOCTOR LOG

Id Uid Username Userip Login Time Logout Time Status


1 2 zara@gmail.com 30000000100 10:00 A.M 0
2 0 charan@gmail.com 30000000200 9:15 A. M 6:45 P.M 1
3 2 swetha@gmail.com 30000000010 9:30 A.M 7:00 P.M 1

5. DOCTOR SPECIALIZATION

Id Specialization CreationDate Updationdate


1 Dentist 2019-04-25
2 Homeopathy 2019-04-28 2019-04-30
3 Bones specialist 2019-05-07

6. USER LOGS

Id Uid Username Userip Login Time Logout Time Status


1 2 bindhu@gmail.com 3000000000 10:00 A.M 0
2 0 anjan@gmail.com 30000000120 9:15 A. M 6:45 P.M 1
3 2 jayanthi@gmail.com 30000000890 9:30 A.M 7:00 P.M 1

7. USERS

Id FullName Address City Gender email Password regDate


1 Shwetha Hosapalya Bangalore Female shwetha@gmail.com ******** 19-4-5
2 Zara G B Palya Bangalore Female zara@gmail.com ******** 19-4-8
3 santhosh E City Bangalore Male santhosh@gmail.com ********* 19-5-2

22
HOSPITAL MANAGEMENT SYSTEM

23
HOSPITAL MANAGEMENT SYSTEM

24
HOSPITAL MANAGEMENT SYSTEM

25
HOSPITAL MANAGEMENT SYSTEM

26
HOSPITAL MANAGEMENT SYSTEM

27
HOSPITAL MANAGEMENT SYSTEM

28
HOSPITAL MANAGEMENT SYSTEM

29
HOSPITAL MANAGEMENT SYSTEM

30
HOSPITAL MANAGEMENT SYSTEM

31
HOSPITAL MANAGEMENT SYSTEM

32
HOSPITAL MANAGEMENT SYSTEM

/*FORMNAME: ADMIN FORM*/

/*ADD DOCTOR*/

<?php
session_start();
//error_reporting(0);
include('include/config.php');
include('include/checklogin.php');
check_login();

if(isset($_POST['submit']))
{

$docspecialization=$_POST['Doctorspecialization'];
$docname=$_POST['docname'];
$docaddress=$_POST['clinicaddress'];
$docfees=$_POST['docfees'];
$doccontactno=$_POST['doccontact'];
$docemail=$_POST['docemail'];
$password=md5($_POST['npass']);
$sql=mysqli_query($con,"insert into
doctors(specilization,doctorName,address,docFees,contactno,docEmail,password)
values('$docspecialization','$docname','$docaddress','$docfees','$doccontactno','$doc
email','$password')");
if($sql)
{

echo "<script>alert('Doctor info added Successfully');</script>";


header('location:manage-doctors.php');

33
HOSPITAL MANAGEMENT SYSTEM
}

?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Admin | Add Doctor</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0,
user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style"
content="black">
<meta content="" name="description" />
<meta content="" name="author" />
<link
href="http://fonts.googleapis.com/css?family=Lato:300,400,400italic,600,700|Ralew
ay: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">

34
HOSPITAL MANAGEMENT SYSTEM
<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">
<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 type="text/javascript">
function valid()
{
if(document.adddoc.npass.value!= document.adddoc.cfpass.value)
{
alert("Password and Confirm Password Field do not match !!");
document.adddoc.cfpass.focus();
return false;
}
return true;
}
</script>

</head>
<body>
<div id="app">
<?php include('include/sidebar.php');?>
<div class="app-content">

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

<!-- end: TOP NAVBAR -->

35
HOSPITAL MANAGEMENT SYSTEM
<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">Admin | Add Doctor</h1>

</div>
<ol class="breadcrumb">
<li>
<span>Admin</span>
</li>
<li class="active">
<span>Add Doctor</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">

<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">Add Doctor</h5>
</div>
<div class="panel-body">

36
HOSPITAL MANAGEMENT SYSTEM
<form role="form" name="adddoc" method="post" onSubmit="return valid();">
<div class="form-group">

<label for="DoctorSpecialization">

Doctor Specialization

</label>
<select name="Doctorspecialization" class="form-control" 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>

</div>

<div class="form-group">

<label for="doctorname">

Doctor Name

</label>

37
HOSPITAL MANAGEMENT SYSTEM
<input type="text" name="docname" class="form-control" placeholder="Enter
Doctor Name">

</div>

<div class="form-group">

<label for="address">

Doctor Clinic Address

</label>
<textarea name="clinicaddress" class="form-control" placeholder="Enter Doctor
Clinic Address"></textarea>

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

<label for="fess">

Doctor Consultancy Fees

</label>
<input type="text" name="docfees" class="form-control" placeholder="Enter Doctor
Consultancy Fees">

</div>

<div class="form-group">
<label for="fess">

Doctor Contact no

38
HOSPITAL MANAGEMENT SYSTEM

</label>

<input type="text" name="doccontact" class="form-control" placeholder="Enter


Doctor Contact no">

</div>

<div class="form-group">
<label for="fess">

Doctor Email

</label>
<input type="email" name="docemail" class="form-control" placeholder="Enter
Doctor Email id">

</div>

<div class="form-group">

<label for="exampleInputPassword1">

Password

</label>
<input type="password" name="npass" class="form-control" placeholder="New
Password" required="required">

</div>

<div class="form-group">

39
HOSPITAL MANAGEMENT SYSTEM

<label for="exampleInputPassword2">

Confirm Password

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

</div>
<button type="submit" name="submit" class="btn btn-o btn-primary">

Submit

</button>

</form>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-12 col-md-12">
<div class="panel panel-white">

</div>
</div>
</div>
</div>
</div>
</div>
<!-- end: BASIC EXAMPLE -->

40
HOSPITAL MANAGEMENT SYSTEM
<!-- 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 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>

41
HOSPITAL MANAGEMENT SYSTEM

<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();
FormElements.init();
});
</script>
<!-- end: JavaScript Event Handlers for this page -->
<!-- end: CLIP-TWO JAVASCRIPTS -->
</body>
</html>

42
HOSPITAL MANAGEMENT SYSTEM

/*APPOINTMENT DETAILS*/

<?php
session_start();
//error_reporting(0);
include('include/config.php');
include('include/checklogin.php');
check_login();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Patients | Appointment History</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0,
user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style"
content="black">
<meta content="" name="description" />
<meta content="" name="author" />
<link
href="http://fonts.googleapis.com/css?family=Lato:300,400,400italic,600,700|Ralew
ay: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">

43
HOSPITAL MANAGEMENT SYSTEM

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

44
HOSPITAL MANAGEMENT SYSTEM
<div class="col-sm-8">
<h1 class="mainTitle">Patients | Appointment History</h1>

</div>
<ol class="breadcrumb">
<li>
<span>Patients </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">

<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>Patient Name</th>

45
HOSPITAL MANAGEMENT SYSTEM

<th>Specialization</th>

<th>Consultancy Fee</th>

<th>Appointment Date / Time </th>

<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,users.fullName as
pname,appointment.* from appointment join doctors on
doctors.id=appointment.doctorId join users on users.id=appointment.userId ");
$cnt=1;
while($row=mysqli_fetch_array($sql))
{
?>

<tr>
<td class="center"><?php echo $cnt;?>.</td>
<td class="hidden-xs"><?php echo $row['docname'];?></td>
<td class="hidden-xs"><?php echo $row['pname'];?></td>
<td><?php echo $row['doctorSpecialization'];?></td>
<td><?php echo $row['consultancyFees'];?></td>

46
HOSPITAL MANAGEMENT SYSTEM
<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))
{
echo "Cancel by Patient";
}

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


{
echo "Cancel by Doctor";
}
?></td>

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


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

echo "No Action yet";


} else {

echo "Canceled";
} ?>
</div>

47
HOSPITAL MANAGEMENT SYSTEM
<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>
<ul class="dropdown-menu pull-right dropdown-light" role="menu">

<li>
<a href="#">
Edit
</a>
</li>
<li>
<a href="#">
Share
</a>
</li>
<li>
<a href="#">
Remove
</a>
</li>
</ul>
</div>
</div></td>
</tr>
<?php$cnt=$cnt+1;
}?>
</tbody>

48
HOSPITAL MANAGEMENT SYSTEM
</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>
<!-- 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 -->

49
HOSPITAL MANAGEMENT SYSTEM
<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();
FormElements.init();
});
</script>
<!-- end: JavaScript Event Handlers for this page -->
<!-- end: CLIP-TWO JAVASCRIPTS -->
</body>
</html>

50
HOSPITAL MANAGEMENT SYSTEM

/*CHANGE PASSWORD*/

<?php
session_start();
//error_reporting(0);
include('include/config.php');
include('include/checklogin.php');
check_login();
date_default_timezone_set('Asia/Kolkata');// change according timezone
$currentTime = date( 'd-m-Y h:i:s A', time () );
if(isset($_POST['submit']))
{
$sql=mysqli_query($con,"SELECT password FROM admin where
password='".$_POST['cpass']."' && username='".$_SESSION['login']."'");
$num=mysqli_fetch_array($sql);
if($num>0)
{
$con=mysqli_query($con,"update admin set password='".$_POST['npass']."',
updationDate='$currentTime' where username='".$_SESSION['login']."'");
$_SESSION['msg1']="Password Changed Successfully !!";
}
else
{
$_SESSION['msg1']="Old Password not match !!";
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>

51
HOSPITAL MANAGEMENT SYSTEM
<title>Admin | change Password</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0,
user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style"
content="black">
<meta content="" name="description" />
<meta content="" name="author" />
<link
href="http://fonts.googleapis.com/css?family=Lato:300,400,400italic,600,700|Ralew
ay: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">
<link href="vendor/bootstrap-timepicker/bootstrap-timepicker.min.css"
rel="stylesheet" media="screen">

52
HOSPITAL MANAGEMENT SYSTEM
<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 type="text/javascript">
function valid()
{
if(document.chngpwd.cpass.value=="")
{
alert("Current Password Filed is Empty !!");
document.chngpwd.cpass.focus();
return false;
}
else if(document.chngpwd.npass.value=="")
{
alert("New Password Filed is Empty !!");
document.chngpwd.npass.focus();
return false;
}
else if(document.chngpwd.cfpass.value=="")
{
alert("Confirm Password Filed is Empty !!");
document.chngpwd.cfpass.focus();
return false;
}
else if(document.chngpwd.npass.value!= document.chngpwd.cfpass.value)
{
alert("Password and Confirm Password Field do not match !!");
document.chngpwd.cfpass.focus();
return false;
}

53
HOSPITAL MANAGEMENT SYSTEM
return true;
}
</script>

</head>
<body>
<div id="app">
<?php include('include/sidebar.php');?>
<div class="app-content">

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

</header>
<!-- 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">Admin | Change Password</h1>

</div>
<ol class="breadcrumb">
<li>
<span>Admin</span>
</li>
<li class="active">
<span>Change Password</span>
</li>
</ol>

54
HOSPITAL MANAGEMENT SYSTEM
</div>
</section>
<!-- 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">Change Password</h5>
</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

</label>
<input type="password" name="cpass" class="form-control" placeholder="Enter
Current Password">

</div>

55
HOSPITAL MANAGEMENT SYSTEM

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

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>

56
HOSPITAL MANAGEMENT SYSTEM
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-12 col-md-12">
<div class="panel panel-white">
</div>
</div>
</div>
</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>
<!-- 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>

57
HOSPITAL MANAGEMENT SYSTEM
<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 -->
<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>

58
HOSPITAL MANAGEMENT SYSTEM

/*DASHBOARD*/

<?php
session_start();
//error_reporting(0);
include('include/config.php');
include('include/checklogin.php');
check_login();

?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Admin | Dashboard</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0,
user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style"
content="black">
<meta content="" name="description" />
<meta content="" name="author" />
<link
href="http://fonts.googleapis.com/css?family=Lato:300,400,400italic,600,700|Ralew
ay: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">

59
HOSPITAL MANAGEMENT SYSTEM
<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">
<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 -->

60
HOSPITAL MANAGEMENT SYSTEM
<section id="page-title">
<div class="row">
<div class="col-sm-8">
<h1 class="mainTitle">Admin
| Dashboard</h1>

</div>
<ol class="breadcrumb">
<li>
<span>Admin</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>
<h2 class="StepTitle">Manage Patients</h2>

61
HOSPITAL MANAGEMENT SYSTEM

<p class="links cl-effect-1">


<a href="manage-users.php">
<?php $result = mysqli_query($con,"SELECT * FROM users ");
$num_rows = mysqli_num_rows($result);
{
?>
Total Patients :<?php echo htmlentities($num_rows); } ?>
</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-users fa-stack-1x fa-inverse"></i> </span>
<h2 class="StepTitle">Manage Doctors</h2>

<p class="cl-effect-1">
<a href="manage-doctors.php">
<?php $result1 = mysqli_query($con,"SELECT * FROM doctors ");
$num_rows1 = mysqli_num_rows($result1);
{
?>
Total Doctors :<?php echo htmlentities($num_rows1); } ?>
</a>

62
HOSPITAL MANAGEMENT SYSTEM
</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 class="StepTitle"> Appointments</h2>

<p class="links cl-effect-1">


<a href="book-appointment.php">
<a href="appointment-history.php">
<?php $sql= mysqli_query($con,"SELECT * FROM appointment");
$num_rows2 = mysqli_num_rows($sql);
{
?>
Total Appointments :<?php echo htmlentities($num_rows2); } ?>
</a>
</a>
</p>
</div>
</div>
</div>
</div>
</div>
<!-- end: SELECT BOXES -->
</div>
</div>

63
HOSPITAL MANAGEMENT SYSTEM

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

64
HOSPITAL MANAGEMENT SYSTEM

<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();
FormElements.init();
});
</script>
<!-- end: JavaScript Event Handlers for this page -->
<!-- end: CLIP-TWO JAVASCRIPTS -->
</body>
</html>

65
HOSPITAL MANAGEMENT SYSTEM

/*DOCTOR SESSION LOGS*/

<?php
session_start();
//error_reporting(0);
include('include/config.php');
include('include/checklogin.php');
check_login();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Admin | Doctor Session Logs</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0,
user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style"
content="black">
<meta content="" name="description" />
<meta content="" name="author" />
<link
href="http://fonts.googleapis.com/css?family=Lato:300,400,400italic,600,700|Ralew
ay: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">

66
HOSPITAL MANAGEMENT SYSTEM
<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">
<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">

67
HOSPITAL MANAGEMENT SYSTEM
<div class="col-sm-8">
<h1 class="mainTitle">Admin | Doctor Session Logs</h1>

</div>
<ol class="breadcrumb">
<li>
<span>Admin </span>
</li>
<li class="active">
<span>Doctor Session Logs</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">

<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">User id</th>
<th>Username</th>
<th>User IP</th>
<th>Login time</th>

68
HOSPITAL MANAGEMENT SYSTEM
<th>Logout Time </th>
<th> Status </th>
</tr>
</thead>
<tbody>
<?php
$sql=mysqli_query($con,"select * from doctorslog ");
$cnt=1;
while($row=mysqli_fetch_array($sql))
{
?>
<tr>
<td class="center"><?php echo $cnt;?>.</td>
<td class="hidden-xs"><?php echo $row['uid'];?></td>
<td class="hidden-xs"><?php echo $row['username'];?></td>
<td><?php echo $row['userip'];?></td>
<td><?php echo $row['loginTime'];?></td>
<td><?php echo $row['logout'];?>
</td>
<td>
<?php if($row['status']==1)
{
echo "Success";
}
else
{
echo "Failed";
}?>
</td>
</tr>

69
HOSPITAL MANAGEMENT SYSTEM
<?php$cnt=$cnt+1;
}?>

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

70
HOSPITAL MANAGEMENT SYSTEM
<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();
FormElements.init();
});
</script>
<!-- end: JavaScript Event Handlers for this page -->
<!-- end: CLIP-TWO JAVASCRIPTS -->
</body>
</html>

71
HOSPITAL MANAGEMENT SYSTEM

/*DOCTOR SPECIALIZATION*/

<?php
session_start();
//error_reporting(0);
include('include/config.php');
include('include/checklogin.php');
check_login();
if(isset($_POST['submit']))
{
$sql=mysqli_query($con,"insert into doctorSpecilization(specilization)
values('".$_POST['doctorspecilization']."')");
$_SESSION['msg']="Doctor Specialization added successfully !!";
}

if(isset($_GET['del']))
{
mysqli_query($con,"delete from doctorSpecilization where id =
'".$_GET['id']."'");
$_SESSION['msg']="data deleted !!";
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Admin | Doctor Specialization</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0,
user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">

72
HOSPITAL MANAGEMENT SYSTEM
<meta name="apple-mobile-web-app-status-bar-style"
content="black">
<meta content="" name="description" />
<meta content="" name="author" />
<link
href="http://fonts.googleapis.com/css?family=Lato:300,400,400italic,600,700|Ralew
ay: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">
<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>

73
HOSPITAL MANAGEMENT SYSTEM
<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">Admin | Add Doctor Specialization</h1>

</div>
<ol class="breadcrumb">
<li>
<span>Admin</span>
</li>
<li class="active">
<span>Add Doctor Specialization</span>
</li>
</ol>
</div>
</section>
<!-- end: PAGE TITLE -->
<!-- start: BASIC EXAMPLE -->
<div class="container-fluid container-fullw bg-white">
<div class="row">

74
HOSPITAL MANAGEMENT SYSTEM
<div class="col-md-12">

<div class="row margin-top-30">


<div class="col-lg-6 col-md-12">
<div class="panel panel-white">
<div class="panel-heading">
<h5 class="panel-title">Doctor Specialization</h5>
</div>
<div class="panel-body">
<p style="color:red;"><?php echo htmlentities($_SESSION['msg']);?>
<?php echo htmlentities($_SESSION['msg']="");?></p>

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

<div class="form-group">

<label for="exampleInputEmail1">

Doctor Specialization

</label>
<input type="text" name="doctorspecilization" class="form-control"
placeholder="Enter Doctor Specialization">

</div>

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

Submit

</button>

75
HOSPITAL MANAGEMENT SYSTEM

</form>
</div>
</div>
</div>

</div>
</div>
<div class="col-lg-12 col-md-12">
<div class="panel panel-white">

</div>
</div>
</div>

<div class="row">
<div class="col-md-12">
<h5 class="over-title margin-bottom-15">Manage <span class="text-bold">Docter
Specialization</span></h5>

<table class="table table-hover" id="sample-table-1">


<thead>
<tr>
<th class="center">#</th>

<th>Specialization</th>
<th class="hidden-xs">Creation Date</th>

<th>Updation Date</th>

<th>Action</th>

76
HOSPITAL MANAGEMENT SYSTEM

</tr>
</thead>
<tbody>
<?php
$sql=mysqli_query($con,"select * from doctorSpecilization");
$cnt=1;
while($row=mysqli_fetch_array($sql))
{
?>

<tr>
<td class="center"><?php echo $cnt;?>.</td>
<td class="hidden-xs"><?php echo $row['specilization'];?></td>
<td><?php echo $row['creationDate'];?></td>
<td><?php echo $row['updationDate'];?>
</td>

<td >
<div class="visible-md visible-lg hidden-sm hidden-xs">
<a href="edit-doctor-specialization.php?id=<?php echo $row['id'];?>" class="btn
btn-transparent btn-xs" tooltip-placement="top" tooltip="Edit"><i class="fa fa-
pencil"></i></a>

<a href="doctor-specilization.php?id=<?php echo $row['id']?>&del=delete"


onClick="return confirm('Are you sure you want to delete?')"class="btn btn-
transparent btn-xs tooltips" tooltip-placement="top" tooltip="Remove"><i class="fa
fa-times fa fa-white"></i></a>
</div>
<div class="visible-xs visible-sm hidden-md hidden-lg">
<div class="btn-group" dropdown is-open="status.isopen">

77
HOSPITAL MANAGEMENT SYSTEM

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

<ul class="dropdown-menu pull-right dropdown-light" role="menu">

</div>
</div>
</div>
</div>
<!-- end: BASIC EXAMPLE -->
<!-- end: SELECT BOXES -->

</div>
</div>
</div>
<?php include('include/footer.php');?>
<?php include('include/setting.php');?>
</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>

78
HOSPITAL MANAGEMENT SYSTEM

<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();
FormElements.init(); });
</script>

</body>
</html>

/*INDEX*/

<?php
session_start();

79
HOSPITAL MANAGEMENT SYSTEM
error_reporting(0);
include("include/config.php");
if(isset($_POST['submit']))
{
$ret=mysqli_query($con,"SELECT * FROM admin WHERE
username='".$_POST['username']."' and password='".$_POST['password']."'");
$num=mysqli_fetch_array($ret);
if($num>0)
{
$extra="dashboard.php";//
$_SESSION['login']=$_POST['username'];
$_SESSION['id']=$num['id'];
$host=$_SERVER['HTTP_HOST'];
$uri=rtrim(dirname($_SERVER['PHP_SELF']),'/\\');
header("location:http://$host$uri/$extra");
exit();
}
else
{
$_SESSION['errmsg']="Invalid username or password";
$extra="index.php";
$host = $_SERVER['HTTP_HOST'];
$uri = rtrim(dirname($_SERVER['PHP_SELF']),'/\\');
header("location:http://$host$uri/$extra");
exit();
}
}
?>

<!DOCTYPE html>
<html lang="en">

80
HOSPITAL MANAGEMENT SYSTEM
<head>
<title>Admin-Login</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0,
user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style"
content="black">
<meta content="" name="description" />
<meta content="" name="author" />
<link
href="http://fonts.googleapis.com/css?family=Lato:300,400,400italic,600,700|Ralew
ay: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 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 class="login">
<div class="row">
<div class="main-login col-xs-10 col-xs-offset-1 col-sm-8 col-sm-offset-2 col-
md-4 col-md-offset-4">
<div class="logo margin-top-30">
<h2>Admin Login</h2>
</div>

81
HOSPITAL MANAGEMENT SYSTEM

<div class="box-login">
<form class="form-login" method="post">
<fieldset>
<legend>
Sign in to your account
</legend>
<p>
Please enter your name and password to log in.<br />
<span style="color:red;"><?php echo htmlentities($_SESSION['errmsg']); ?><?php
echo htmlentities($_SESSION['errmsg']="");?></span>
</p>
<div class="form-group">
<span class="input-icon">
<input type="text" class="form-control" name="username"
placeholder="Username">
<i class="fa fa-user"></i> </span>
</div>
<div class="form-group form-actions">
<span class="input-icon">
<input type="password" class="form-control password" name="password"
placeholder="Password"><i class="fa fa-lock"></i>
</span>
</div>
<div class="form-actions">

<button type="submit" class="btn btn-primary pull-right" name="submit">


Login <i class="fa fa-arrow-circle-right"></i>
</button>
</div>
</fieldset>

82
HOSPITAL MANAGEMENT SYSTEM
</form>
<div class="copyright">&copy; <span class="current-year"></span><span
class="text-bold text-uppercase"> HMS</span>. <span>All rights reserved</span>
</div>
</div>

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

/*REGISTRATION*/

<?php
include_once('include/config.php');

83
HOSPITAL MANAGEMENT SYSTEM
if(isset($_POST['submit']))
{
$fname=$_POST['full_name'];
$address=$_POST['address'];
$city=$_POST['city'];
$gender=$_POST['gender'];
$email=$_POST['email'];
$password=md5($_POST['password']);
$query=mysql_query("insert into users(fullname,address,city,gender,email,password)
values('$fname','$address','$city','$gender','$email','$password')");
if($query)
{
echo "<script>alert('Successfully Registered. You can login now');</script>";
}
}
?>

<!DOCTYPE html>
<html lang="en">

<head>
<title>User Registration</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-
scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta content="" name="description" />
<meta content="" name="author" />

84
HOSPITAL MANAGEMENT SYSTEM
<link
href="http://fonts.googleapis.com/css?family=Lato:300,400,400italic,600,700|Raleway:30
0,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 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 class="login">
<!-- start: REGISTRATION -->
<div class="row">
<div class="main-login col-xs-10 col-xs-offset-1 col-sm-8 col-sm-offset-2 col-
md-4 col-md-offset-4">
<div class="logo margin-top-30">
<img src="assets/images/logo.png" alt="Clip-Two"/>
</div>
<!-- start: REGISTER BOX -->
<div class="box-register">
<form name="registration" id="registration" method="post">

85
HOSPITAL MANAGEMENT SYSTEM
<fieldset>
<legend>
Sign Up
</legend>
<p>

Enter your personal details below:


</p>
<div class="form-group">
<input type="text" class="form-control" name="full_name" placeholder="Full Name"
required>
</div>
<div class="form-group">
<input type="text" class="form-control" name="address" placeholder="Address" required>
</div>
<div class="form-group">
<input type="text" class="form-control" name="city" placeholder="City" required>
</div>
<div class="form-group">
<label class="block">
Gender
</label>
<div class="clip-radio radio-primary">
<input type="radio" id="rg-female" name="gender" value="female" >
<label for="rg-female">

Female
</label>
<input type="radio" id="rg-male" name="gender" value="male">
<label for="rg-male">
Male

86
HOSPITAL MANAGEMENT SYSTEM
</label>
</div>
</div>
<p>
Enter your account details below:
</p>
<div class="form-group">
<span class="input-icon">
<input type="email" class="form-control" name="email" id="email"
onBlur="userAvailability()" placeholder="Email" required>
<i class="fa fa-envelope"></i> </span>
<span id="user-availability-status1" style="font-size:12px;"></span>
</div>
<div class="form-group">
<span class="input-icon">
<input type="password" class="form-control" id="password" name="password"
placeholder="Password" required>
<i class="fa fa-lock"></i> </span>
</div>
<div class="form-group">
<span class="input-icon">
<input type="password" class="form-control" name="password_again"
placeholder="Password Again" required>
<i class="fa fa-lock"></i> </span>
</div>
<div class="form-group">
<div class="checkbox clip-check check-primary">
<input type="checkbox" id="agree" value="agree">
<label for="agree">
I agree
</label>

87
HOSPITAL MANAGEMENT SYSTEM
</div>
</div>
<div class="form-actions">
<p>
Already have an account?

<a href="user-login.php">
Log-in
</a>
</p>
<button type="submit" class="btn btn-primary pull-right" id="submit" name="submit">
Submit <i class="fa fa-arrow-circle-right"></i>
</button>
</div>
</fieldset>
</form>

<div class="copyright">
&copy; <span class="current-year"></span><span
class="text-bold text-uppercase"> HMS</span>. <span>All rights reserved</span>
</div>

</div>

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

88
HOSPITAL MANAGEMENT SYSTEM
<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>
<script>
function userAvailability() {
$("#loaderIcon").show();
jQuery.ajax({
url: "check_availability.php",
data:'email='+$("#email").val(),
type: "POST",
success:function(data){
$("#user-availability-status1").html(data);
$("#loaderIcon").hide();
},
error:function (){}
});
}
</script>

</body>
</html>
/*PATIENT*/

/*BOOK APPOINMENT*/

89
HOSPITAL MANAGEMENT SYSTEM

<?php
session_start();
//error_reporting(0);
include('include/config.php');
include('include/checklogin.php');
check_login();

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,appointmentDate,appoin
tmentTime,userStatus,doctorStatus)
values('$specilization','$doctorid','$userid','$fees','$appdate','$time','$userstatus','$docstatu
s')");
if($query)
{
echo "<script>alert('Your appointment successfully booked');</script>";
}

}
?>
<!DOCTYPE html>

90
HOSPITAL MANAGEMENT SYSTEM
<html lang="en">
<head>
<title>User | Book Appointment</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-
scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta content="" name="description" />
<meta content="" name="author" />
<link
href="http://fonts.googleapis.com/css?family=Lato:300,400,400italic,600,700|Raleway:30
0,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">
<link href="vendor/bootstrap-timepicker/bootstrap-timepicker.min.css"
rel="stylesheet" media="screen">
<link rel="stylesheet" href="assets/css/styles.css">

91
HOSPITAL MANAGEMENT SYSTEM
<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>
function getfee(val) {
$.ajax({
type: "POST",
url: "get_doctor.php",
data:'doctor='+val,
success: function(data){
$("#fees").html(data);
}
});
}
</script>

</head>
<body>

92
HOSPITAL MANAGEMENT SYSTEM
<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 | Book Appointment</h1>

</div>
<ol class="breadcrumb">
<li>
<span>User</span>
</li>
<li class="active">
<span>Book Appointment</span>
</li>
</ol>
</section>
<!-- end: PAGE TITLE -->
<!-- start: BASIC EXAMPLE -->
<div class="container-fluid container-fullw bg-white">
<div class="row">
<div class="col-md-12">

93
HOSPITAL MANAGEMENT SYSTEM
<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>
</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>
<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']);?>

94
HOSPITAL MANAGEMENT SYSTEM

</option>

<?php } ?>
</select>
</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>

95
HOSPITAL MANAGEMENT SYSTEM

</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 : TT:MM PM

</div>

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

Submit

96
HOSPITAL MANAGEMENT SYSTEM

</button>
</form>
</div>
</div>
</div>

</div>
</div>
</div>
</div>

<!-- end: BASIC EXAMPLE -->


<!-- end: SELECT BOXES -->

</div>
</div>
</div>
<!-- start: FOOTER -->
<?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 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>

97
HOSPITAL MANAGEMENT SYSTEM
<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 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>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>

</body>
</html>

98
HOSPITAL MANAGEMENT SYSTEM
/*EDIT PATIENT PROFILE*/

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

$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>
<meta charset="utf-8" />

99
HOSPITAL MANAGEMENT SYSTEM
<meta name="viewport" content="width=device-width, initial-scale=1.0,
user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style"
content="black">
<meta content="" name="description" />
<meta content="" name="author" />
<link
href="http://fonts.googleapis.com/css?family=Lato:300,400,400italic,600,700|Raleway:30
0,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">
<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">

100
HOSPITAL MANAGEMENT SYSTEM
<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 | Edit Profile</h1>

</div>
<ol class="breadcrumb">
<li>
<span>User </span>
</li>
<li class="active">
<span>Edit Profile</span>
</li>
</ol>
</div>
</section>

101
HOSPITAL MANAGEMENT SYSTEM
<!-- 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">
<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))
{
?>

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

102
HOSPITAL MANAGEMENT SYSTEM

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

<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">
<?php include('include/footer.php');?>
<?php include('include/setting.php');?>
</div>

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

103
HOSPITAL MANAGEMENT SYSTEM
<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>
<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>

104
HOSPITAL MANAGEMENT SYSTEM

/*DOCTOR*/

/*DOCTOR PROFILE EDITION*/

<?php
session_start();
//error_reporting(0);
include('include/config.php');
include('include/checklogin.php');
if(isset($_POST['submit']))
{
$docspecialization=$_POST['Doctorspecialization'];
$docname=$_POST['docname'];
$docaddress=$_POST['clinicaddress'];
$docfees=$_POST['docfees'];
$doccontactno=$_POST['doccontact'];
$docemail=$_POST['docemail'];
$sql=mysqli_query($con,"Update doctors set
specilization='$docspecialization',doctorName='$docname',address='$docaddress',docFees
='$docfees',contactno='$doccontactno' where id='".$_SESSION['id']."'");
if($sql)
{
echo "<script>alert('Doctor Details updated Successfully');</script>";

}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>

105
HOSPITAL MANAGEMENT SYSTEM
<title>Doctr | Edit Doctor Details</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0,
user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style"
content="black">
<meta content="" name="description" />
<meta content="" name="author" />
<link
href="http://fonts.googleapis.com/css?family=Lato:300,400,400italic,600,700|Raleway:30
0,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">
<link href="vendor/bootstrap-timepicker/bootstrap-timepicker.min.css"
rel="stylesheet" media="screen">

106
HOSPITAL MANAGEMENT SYSTEM
<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');?>
<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">Doctor | Edit Doctor Details</h1>

</div>
<ol class="breadcrumb">
<li>
<span>Doctor</span>
</li>
<li class="active">
<span>Edit Doctor Details</span>
</li>
</ol>
</div>
</section>
<!-- end: PAGE TITLE -->
<!-- start: BASIC EXAMPLE -->
<div class="container-fluid container-fullw bg-white">

107
HOSPITAL MANAGEMENT SYSTEM
<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 Doctor</h5>
</div>
<div class="panel-body">
<?php $sql=mysqli_query($con,"select * from doctors where
docEmail='".$_SESSION['dlogin']."'");
while($data=mysqli_fetch_array($sql))
{
?>

<form role="form" name="adddoc" method="post" onSubmit="return valid();">

<div class="form-group">

<label for="DoctorSpecialization">

Doctor Specialization

</label>
<select name="Doctorspecialization" class="form-control" required="required">
<option value="<?php echo htmlentities($data['specilization']);?>">
<?php echo htmlentities($data['specilization']);?></option>
<?php $ret=mysqli_query($con,"select * from doctorspecilization");
while($row=mysqli_fetch_array($ret))
{

108
HOSPITAL MANAGEMENT SYSTEM
?>
<option value="<?php echo htmlentities($row['specilization']);?>">

<?php echo htmlentities($row['specilization']);?>

</option>

<?php } ?>

</select>

</div>

<div class="form-group">

<label for="doctorname">

Doctor Name

</label>
<input type="text" name="docname" class="form-control" value="<?php echo
htmlentities($data['doctorName']);?>" >

</div>

<div class="form-group">

<label for="address">

Doctor Clinic Address

109
HOSPITAL MANAGEMENT SYSTEM

</label>
<textarea name="clinicaddress" class="form-
control"><?php echo htmlentities($data['address']);?></textarea>

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

<label for="fess">

Doctor Consultancy Fees

</label>
<input type="text" name="docfees" class="form-control"
required="required" value="<?php echo htmlentities($data['docFees']);?>" >

</div>

<div class="form-group">
<label for="fess">

Doctor Contact no

</label>
<input type="text" name="doccontact" class="form-
control" required="required" value="<?php echo htmlentities($data['contactno']);?>">

</div>

<div class="form-group">
<label for="fess">

110
HOSPITAL MANAGEMENT SYSTEM

Doctor Email

</label>
<input type="email" name="docemail" class="form-control" readonly="readonly"
value="<?php echo htmlentities($data['docEmail']);?>">
</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>
<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 src="assets/js/form-elements.js"></script>
<script>
jQuery(document).ready(function() {
Main.init();
FormElements.init();
});
</script>
</body>
</html

111
HOSPITAL MANAGEMENT SYSTEM

112
HOSPITAL MANAGEMENT SYSTEM

Testing Peforms: A very crucial role for the quality assurance and reliability of the software. It
deals with the details of the classes of tests which must be conducted to validate the functinonalities,
performance, and the constraints. This is achieved basically by the means of testing which plays a
vital role in the development of the software. The various low level testing which can be grouped on
a border sense are discussed below:

 Unit testing: Testing of each and every module individually is called unit testing. Each
Module is designed and executed so that it works independently and generates some
relative output. Unit testing of a module results in a set of individually executing modules
that generates its independent output.
 Integration testing: integration testing is one in which the modules are combined
with one another to synchronize the outputs and co-ordinate the flow of control. Each
module is coalesced with other module to establish proper connectivity between the two
projects this is done while generating the tables of the records and while generating the
reports.

 Validation testing: Validation testing deals with testing that whether the validations
are justified and the entire requirement are fulfillment logically as per the requirements.
As the validations are designed according to requirement of the application an approach
to the problem in a logical and relational manner. All the validation testing has been
done.

 System testing: Testing the whole system i.e. verifying and validating the whole
source code to check if the system as a whole is executing is called System testing. The
proposed system undergoes it under all conditions called a successful system.
 Coding testing: The logic of the various program modules is tested in the module.
Using the test cases, all Parts of the program are tested and identified. If a problem is
encountered it is rectified. The Code was tested for its efficiency and it was found that
code is efficient and optimized.

113
HOSPITAL MANAGEMENT SYSTEM

114
HOSPITAL MANAGEMENT SYSTEM

The proposed system is Hospital Management System. We can enhance this system
by including more facilities like pharmacy system for the stock details of medicines in the
pharmacy. Providing such features enable the users to include more comments into the
system.

 It fulfills all an office application automatically with minimal overhead.


 Functionality of sharing of new view and idea between patient and doctor will be
added in next version.

115
HOSPITAL MANAGEMENT SYSTEM

116
HOSPITAL MANAGEMENT SYSTEM

It has been a great pleasure for me to work on this exciting and challenging project.
This project is proved to be working efficiently and effectively under all the circumstances
that may arise in the real environment. Using the facilities and functionalities of HTML,
JAVA SCRIPT, CSS, PHP, MYSQL software in which this software Titled: “HOSPITAL
MANAGEMENT SYSTEM” is been developed.

The System is highly user friendly and is well efficient which provides a reliable
interaction between the user and the system. It is tested and implemented with high degree of
accuracy.

117
HOSPITAL MANAGEMENT SYSTEM

 PHP MySQL Website Programming: Problem – Design Solution byChrisLea,


Mike Buzzard, Dilip Thomas , Jessey White-Cinis2.
 Beginning PHP5, Apache, and MySQL Web Development (Programmer
toProgrammer) by Elizabeth Naramore3.
 MySQL/PHP Database Applications, 2nd Edition by Brad Bulger4. How to Do
Everything with PHP and MySQL by Vikram Vaswani

118

You might also like