Hospital Management System Project Report
Hospital Management System Project Report
A PROJECT REPORT
.
1.ABSTRACT
The Hospital Management System can be entered using a username and password. It is
accessible either by an administrator .Only they can add data into the database. The
data can be retrieved easily. The interface is very user-friendly. The data are well
protected for personal use and makes the data processing very fast.
Hospital Management System is powerful, flexible, and easy to use and is designed
and developed to deliver real conceivable benefits to hospitals.
The information is very difficult to retrieve and to find particular information like- E.g.
- To find out about the patient’s history, the user has to go through various registers.
This results in inconvenience and wastage of time.
The information generated by various transactions takes time and efforts to be stored at
right place.
Various changes to information like patient details or immunization details of child are
difficult to make as paper work is involved.
Manual calculations are error prone and take a lot of time this may result in incorrect
information. For example calculation of patient’s bill based on various treatments.
This becomes a difficult task as information is difficult to collect from various register.
Objective:-
1) Define hospital
2) Recording information about the Patients that come.
3) Generating bills.
4) Recording information related to diagnosis given to Patients.
5) Keeping record of the Immunization provided to children/patients.
6) Keeping information about various diseases and medicines available to cure
them.
These are the various jobs that need to be done in a Hospital by the operational staff
andDoctors. All these works are done on papers.
1) Information about Patients is done by just writing the Patients name, age and
gender. Whenever the Patient comes up his information is stored freshly.
2) Bills are generated by recording price for each facility provided to Patient on a
separate sheet and at last they all are summed up.
3) Diagnosis information to patients is generally recorded on the document, which
contains Patient information. It is destroyed after some time period to decrease
the paper load in the office.
4) Immunization records of children are maintained in pre-formatted sheets, which
are kept in a file.
5) Information about various diseases is not kept as any document. Doctors
themselves do this job by remembering various medicines.
All this work is done manually by the receptionist and other operational staff and lot
ofpapers are needed to be handled and taken care of. Doctors have to remember
variousmedicines available for diagnosis and sometimes miss better alternatives as
they can’tremember them at that time.
1.3 MODULES:
Hospital Management System is web application for hospital which manages doctors
and patients. In this project, we use PHP and MySQL database.
Admin module
User module (patient)
Doctor module
1. Dashboard: In this section, patients can view the his/her profile, Appointments
and Book Appointment.
2. Book Appointment: In this section, Patient can book his/her appointment.
3. Appointment History: In this section, Patients can see his/her own appointment
history.
4. Medical History: In this section, Patients can see his/her own appointment
history.
User can update his/her profile, change the password and recover the password.
1.3.3 Doctor module:
1. Dashboard: In this section, doctor can view his/her own profile and online
appointments.
2. Appointment History: In this section, Doctor can see patient’s appointment
history.
3. Patients: In this section, doctor can manage patients (Add/Update).
4. Search: In this section, doctor can search patient with the help of patient name
and mobile number.
3. SOFTWARE REQUIREMENT
3.1HARDWARE REQUIREMENTS:
RAM : 4 GB
HARD DISK : 1T B
3.2SOFTWARE REQUIREMENTS:
DATABASE : MySQL
4.SYSTEM ANALYSIS
4.1EXISTING SYSTEM:
Hospitals currently use a manual system for the management and maintenance of
critical information. The current system requires numerous paper forms, with data
stores spread throughout the hospital management infrastructure. Often information is
incomplete or does not follow management standards. Forms are often lost in transit
between departments requiring a comprehensive auditing process to ensure that no
vital information is lost. Multiple copies of the same information exist in the hospital
and may lead to inconsistencies in data in various data stores.
The Hospital Management System is designed for any hospital to replace their existing
manual paper based system. The new system is to control the information of patients.
Roomavailability,staff and operating room schedules and patient invoices. These
services are to be provided in an efficient, cost effective manner, with the goal of
reducing the time and resources currently required for such tasks .
5 SOFTWARE SPECIFICATION
HTML:
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.
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 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.
MySQL:
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:
Security:
A privilege and password system that is very flexible and secure, and that enables
host-based verification.
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:
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.
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.
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.
Example
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 PROPERTIES:
WHAT IS PHP?
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"
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?
Visualizing
Specifying
Constructing
Documenting
Visualizing
Specifying means building, models that are precise, unambiguous and complete
UML addresses the specification of all the important analysis design,
implementation decisions that must be made in developing and deploying a
software system.
Constructing
Documenting
The Deliverables of a project apart from coding are some Artifacts, which are
critical in controlling, measuring and communicating about a system during its
developing requirements, architecture, desire, source code, project plans, tests,
prototypes releasers, etc...
UML Diagram
1. Class diagram
2. Object diagram
4. Sequence diagram
5. Collaboration diagram
7. Activity diagram
8. Component diagram
9. Deployment diagram
USE CASE DIAGRAM:
Use case diagrams are formally included in two modeling languages defined
by the OMG:theunfied modeling language(UML) and the systems modeling
language(sysML)
Use case diagram of our project:
Sign in
Use Case Diagram Admin
Dashboard
Manage Doctor
Specialization /
Doctors
View Users
View Patients
View Appointment
History
View Appointment
History
Manage Queries
Doctors /Users
Session Logs
Generate Reports
Doctors /Users
Session Logs
Patient Search
Doctor Use Case Diagram
Sign in
Dashboard
Manage
Appointment History
Manage Patient
(Add / Update)
Add patient
History
Search Patient
Update Own
Profile
Change Password
Password Recovery
Patient Use Case Diagram
Signup
Sign in
Dashboard
Book Appointment
Appointment History
View Medical
History
Update Own
Profile
Change Password
Password
Recovery
DATA FLOW DIAGRAMS
The DFD takes an input-process-output view of a system i.e. data objects flow into the
software, are transformed by processing elements, and resultant data objects flow out
of the software.
The DFD enables the software engineer to develop models of the information domain
& functional domain at the same time. As the DFD is refined into greater levels of
details, the analyst performs an implicit functional decomposition of the system. At the
same time, the DFD refinement results in a corresponding refinement of the data as it
moves through the process that embody the applications.
A context-level DFD for the system the primary external entities produce information
for use by the system and consume information generated by the system. The labeled
arrow represents data objects or object hierarchy.
A Class is a category or group of things that has similar attributes and common
behavior. A Rectangle is the icon that represents the class it is divided into three areas.
The upper most area contains the name, the middle; area contains the attributes and the
lowest areas show the operations. Class diagrams provides the representation that
developers work from. Class diagrams help on the analysis side, too.
ER Diagram
Deployment diagram:
desktop Client
Printer
Database Server
Statechart Diagrams:
The state diagram shows the states of an object and represents activities as arrows
connecting the states. The Activity Diagram highlights the activities. Each activity is
represented by a rounded rectangle-narrower and more oval-shaped than the state icon.
An arrow represents the transition from the one activity to the next. The activity
diagram has a starting point represented by filled-in circle, and an end point
represented by bulls eye.
Enter Hospital
Takes Appointment
Undergo Diagnosis
not cured
Takes Treatment
gets cured
7.SYSTEM IMPLEMENTATION
The data in the system has to be stored and retrieved from database. Designing the
database is part of system design. Data elements and data structures to be stored have
been identified at analysis stage. They are structured and put together to design the data
storage and retrieval system.
admin table Structure : This table store the login details of admin.
doctorslog table Structure : This table store the doctor login and logout details.
users table Structure : This table store the users login and personal details.
userlog table Structure : This table store the users login and personal details.
appointment table Structure : This table store the users appointment details.
tblcontactus table Structure : This table store the contact us query details .
tblpage table Structure : This table store the about us and contact us details .
8. SYSTEM TESTING AND MAINTANENCE
TYPES OF TESTING
Unit Testing
Integration Testing
System Testing
Sanity Testing
Interface Testing
Interface Testing is defined as a software testing type which verifies whether
the communication between two different software systems is done correctly.
A connection that integrates two components is called interface.
This interface in a computer world could be anything like API's, web services, etc.
Smoke Testing
Smoke testing, also known as “build verification testing”, is a type of software testing
that comprises of a non-exhaustive set of tests that aim at ensuring that the most important
functions work. The result of this testing is used to decide if a build is stable enough to
proceed with further testing.
Regression Testing
Regression Testing is defined as a type of software testing to confirm that a
recent program or code change has not adversely affected existing features.
Regression Testing is nothing but a full or partial selection of already executed test
cases which are re-executed to ensure existing functionalities work fine.
Beta/Acceptance Testing
Beta Testing of a product is performed by "real users" of the software
application in a "real environment" and can be considered as a form of external
User Acceptance Testing. ... It is the final test before shipping a product to the
customers. Direct feedback from customers is a major advantage of Beta Testing.
VALIDATION TESTING
While verification is a quality control process, quality assurance process carried out
before the software is ready for release is known as validation testing. Its goals is to
validate and be confident about the software product or system, that it fulfills the
requirements given by the customer. The acceptance of the software from the end
customer is also its part. Often the testing activities are introduced early in the
software development life cycle. The two major areas when it should take place are in
the early stages of software development and towards the end, when the product is
ready for release. In other words, it is acceptance testing which is a part of validation
testing.
Maintenance:
Support Specialist:
Corrective Maintenance:
Corrective maintenance refers to the act of correcting the software when an error
occurs in the project. Suitable steps are taken to solve the problem. The software
development team who developed the software may do the corrective maintenance or
a specialist who works for the organization may do the work.
9. APPENDIX
9.1SOURCE CODE
index.php:
<?php
include_once('hms/include/config.php');
if(isset($_POST['submit']))
{
$name=$_POST['fullname'];
$email=$_POST['emailid'];
$mobileno=$_POST['mobileno'];
$dscrption=$_POST['description'];
$query=mysqli_query($con,"insert into tblcontactus(fullname,email,contactno,message)
value('$name','$email','$mobileno','$dscrption')");
echo "
<script>alert('Your information succesfully submitted');</script>";
echo "
<script>window.location.href ='index.php'</script>";
} ?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title> Hospital management System </title>
<link rel="shortcut icon" href="assets/images/fav.jpg">
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/fontawsom-all.min.css">
<link rel="stylesheet" href="assets/css/animate.css">
<link rel="stylesheet" type="text/css" href="assets/css/style.css" />
</head>
<body>
<!-- ################# Header Starts Here#######################--->
<header id="menu-jk">
<div id="nav-head" class="header-nav">
<div class="container">
<div class="row">
<div class="col-lg-2 col-md-3 col-sm-12" style="color:#000;font-weight:bold; font-
size:42px; margin-top: 1% !important;">HMS <a data-toggle="collapse" data-target="#menu"
href="#menu">
<i class="fas d-block d-md-none small-menu fa-bars"></i>
</a>
</div>
<div id="menu" class="col-lg-8 col-md-9 d-none d-md-block nav-item">
<ul>
<li>
<a href="#">Home</a>
</li>
<li>
<a href="#services">Services</a>
</li>
<li>
<a href="#about_us">About Us</a>
</li>
<li>
<a href="#gallery">Gallery</a>
</li>
<li>
<a href="#contact_us">Contact Us</a>
</li>
<li>
<a href="#logins">Logins</a>
</li>
</ul>
</div>
<div class="col-sm-2 d-none d-lg-block appoint">
<a class="btn btn-success" href="hms/user-login.php">Book an Appointment</a>
</div>
</div>
</div>
</div>
</header>
<!-- ################# Slider Starts Here#######################--->
<div class="slider-detail">
<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
<li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item ">
<img class="d-block w-100" src="assets/images/slider/slider_2.jpg" alt="Second slide">
<div class="carousel-cover"></div>
<div class="carousel-caption vdg-cur d-none d-md-block">
<h5 class="animated bounceInDown">Hospital Management System</h5>
</div>
</div>
<div class="carousel-item active">
<img class="d-block w-100" src="assets/images/slider/slider_3.jpg" alt="Third slide">
<div class="carousel-cover"></div>
<div class="carousel-caption vdg-cur d-none d-md-block">
<h5 class="animated bounceInDown">Hospital Management System</h5>
</div>
</div>
</div>
<a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-
slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-
slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
<!-- ************************* Logins ************************** -->
<section id="logins" class="our-blog container-fluid">
<div class="container">
<div class="inner-title">
<h2>Logins</h2>
</div>
<div class="col-sm-12 blog-cont">
<div class="row no-margin">
<div class="col-sm-4 blog-smk">
<div class="blog-single">
<img src="assets/images/patient.jpg" alt="">
<div class="blog-single-det">
<h6>Patient Login</h6>
<a href="hms/user-login.php" target="_blank">
<button class="btn btn-success btn-sm">Click Here</button>
</a>
</div>
</div>
</div>
<div class="col-sm-4 blog-smk">
<div class="blog-single">
<img src="assets/images/doctor.jpg" alt="">
<div class="blog-single-det">
<h6>Doctors login</h6>
<a href="hms/doctor" target="_blank">
<button class="btn btn-success btn-sm">Click Here</button>
</a>
</div>
</div>
</div>
<div class="col-sm-4 blog-smk">
<div class="blog-single">
<img src="assets/images/admin.jpg" alt="">
<div class="blog-single-det">
<h6>Admin Login</h6>
<a href="hms/admin" target="_blank">
<button class="btn btn-success btn-sm">Click Here</button>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- ################# Our Departments Starts Here#######################--->
<section id="services" class="key-features department">
<div class="container">
<div class="inner-title">
<h2>Our Key Features</h2>
<p>Take a look at some of our key features</p>
</div>
<div class="row">
<div class="col-lg-4 col-md-6">
<div class="single-key">
<i class="fas fa-heartbeat"></i>
<h5>Cardiology</h5>
</div>
</div>
<div class="col-lg-4 col-md-6">
<div class="single-key">
<i class="fas fa-ribbon"></i>
<h5>Orthopaedic</h5>
</div>
</div>
<div class="col-lg-4 col-md-6">
<div class="single-key">
<i class="fab fa-monero"></i>
<h5>Neurologist</h5>
</div>
</div>
<div class="col-lg-4 col-md-6">
<div class="single-key">
<i class="fas fa-capsules"></i>
<h5>Pharma Pipeline</h5>
</div>
</div>
<div class="col-lg-4 col-md-6">
<div class="single-key">
<i class="fas fa-prescription-bottle-alt"></i>
<h5>Pharma Team</h5>
</div>
</div>
<div class="col-lg-4 col-md-6">
<div class="single-key">
<i class="far fa-thumbs-up"></i>
<h5>High Quality treatments</h5>
</div>
</div>
</div>
</div>
</section>
<!-- ************************* About Us Starts Here ************************** -->
<section id="about_us" class="about-us">
<div class="row no-margin">
<div class="col-sm-6 image-bg no-padding"></div>
<div class="col-sm-6 abut-yoiu">
<h3>About Our Hospital</h3> <?php
$ret=mysqli_query($con,"select * from tblpage where PageType='aboutus' ");
while ($row=mysqli_fetch_array($ret)) {
?> <p> <?php echo $row['PageDescription'];?>. </p> <?php } ?>
</div>
</div>
</section>
<!-- ************************* Gallery Starts Here ************************** -->
<div id="gallery" class="gallery">
<div class="container">
<div class="inner-title">
<h2>Our Gallery</h2>
<p>View Our Gallery</p>
</div>
<div class="row">
<div class="gallery-filter d-none d-sm-block">
<button class="btn btn-default filter-button" data-filter="all">All</button>
<button class="btn btn-default filter-button" data-filter="hdpe">Dental</button>
<button class="btn btn-default filter-button" data-filter="sprinkle">Cardiology</button>
<button class="btn btn-default filter-button" data-filter="spray"> Neurology</button>
<button class="btn btn-default filter-button" data-filter="irrigation">Laboratry</button>
</div>
<br />
<div class="gallery_product col-lg-4 col-md-4 col-sm-4 col-xs-6 filter hdpe">
<img src="assets/images/gallery/gallery_01.jpg" class="img-responsive">
</div>
<div class="gallery_product col-lg-4 col-md-4 col-sm-4 col-xs-6 filter sprinkle">
<img src="assets/images/gallery/gallery_02.jpg" class="img-responsive">
</div>
<div class="gallery_product col-lg-4 col-md-4 col-sm-4 col-xs-6 filter hdpe">
<img src="assets/images/gallery/gallery_03.jpg" class="img-responsive">
</div>
<div class="gallery_product col-lg-4 col-md-4 col-sm-4 col-xs-6 filter irrigation">
<img src="assets/images/gallery/gallery_04.jpg" class="img-responsive">
</div>
<div class="gallery_product col-lg-4 col-md-4 col-sm-4 col-xs-6 filter spray">
<img src="assets/images/gallery/gallery_05.jpg" class="img-responsive">
</div>
<div class="gallery_product col-lg-4 col-md-4 col-sm-4 col-xs-6 filter spray">
<img src="assets/images/gallery/gallery_06.jpg" class="img-responsive">
</div>
</div>
</div>
</div>
<!-- ######## Gallery End ####### -->
<!-- ************************* Contact Us Starts Here ************************** -->
<section id="contact_us" class="contact-us-single">
<div class="row no-margin">
<div class="col-sm-12 cop-ck">
<form method="post">
<h2>Contact Form</h2>
<div class="row cf-ro">
<div class="col-sm-3">
<label>Enter Name :</label>
</div>
<div class="col-sm-8">
<input type="text" placeholder="Enter Name" name="fullname" class="form-control
input-sm" required>
</div>
</div>
<div class="row cf-ro">
<div class="col-sm-3">
<label>Email Address :</label>
</div>
<div class="col-sm-8">
<input type="text" name="emailid" placeholder="Enter Email Address" class="form-
control input-sm" required>
</div>
</div>
<div class="row cf-ro">
<div class="col-sm-3">
<label>Mobile Number:</label>
</div>
<div class="col-sm-8">
<input type="text" name="mobileno" placeholder="Enter Mobile Number" class="form-
control input-sm" required>
</div>
</div>
<div class="row cf-ro">
<div class="col-sm-3">
<label>Enter Message:</label>
</div>
<div class="col-sm-8">
<textarea rows="5" placeholder="Enter Your Message" class="form-control input-sm"
name="description" required></textarea>
</div>
</div>
<div class="row cf-ro">
<div class="col-sm-3">
<label></label>
</div>
<div class="col-sm-8">
<button class="btn btn-success btn-sm" type="submit" name="submit">Send
Message</button>
</div>
</div>
</form>
</div>
</div>
</section>
<!-- ################# Footer Starts Here#######################--->
<footer class="footer">
<div class="container">
<div class="row">
<div class="col-md-6 col-sm-12">
<h2>Useful Links</h2>
<ul class="list-unstyled link-list">
<li>
<a ui-sref="about" href="#about">About us</a>
<i class="fa fa-angle-right"></i>
</li>
<li>
<a ui-sref="portfolio" href="#services">Services</a>
<i class="fa fa-angle-right"></i>
</li>
<li>
<a ui-sref="products" href="#logins">Logins</a>
<i class="fa fa-angle-right"></i>
</li>
<li>
<a ui-sref="gallery" href="#gallery">Gallery</a>
<i class="fa fa-angle-right"></i>
</li>
<li>
<a ui-sref="contact" href="#contact">Contact us</a>
<i class="fa fa-angle-right"></i>
</li>
</ul>
</div>
<div class="col-md-6 col-sm-12 map-img">
<h2>Contact Us</h2>
<address class="md-margin-bottom-40"> <?php
$ret=mysqli_query($con,"select * from tblpage where PageType='contactus' ");
while ($row=mysqli_fetch_array($ret)) {
?> <?php echo $row['PageDescription'];?> <br> Phone: <?php echo $row['MobileNumber'];?>
<br> Email: <a href="mailto:
<?php echo
$row['Email'];?>" class=""> <?php echo $row['Email'];?> </a>
<br> Timing: <?php echo $row['OpenningTime'];?>
</address> <?php } ?>
</div>
</div>
</div>
</footer>
<div class="copy">
<div class="container"> Hospital Management System </div>
</div>
</body>
<script src="assets/js/jquery-3.2.1.min.js"></script>
<script src="assets/js/popper.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/plugins/scroll-nav/js/jquery.easing.min.js"></script>
<script src="assets/plugins/scroll-nav/js/scrolling-nav.js"></script>
<script src="assets/plugins/scroll-fixed/jquery-scrolltofixed-min.js"></script>
<script src="assets/js/script.js"></script>
</html>
Doctor/index.php
<?php
session_start();
include("include/config.php");
error_reporting(0);
if(isset($_POST['submit']))
{
$uname=$_POST['username'];
$dpassword=md5($_POST['password']);
$ret=mysqli_query($con,"SELECT * FROM doctors WHERE docEmail='$uname' and
password='$dpassword'");
$num=mysqli_fetch_array($ret);
if($num>0)
{
$_SESSION['dlogin']=$_POST['username'];
$_SESSION['id']=$num['id'];
$uid=$num['id'];
$uip=$_SERVER['REMOTE_ADDR'];
$status=1;
//Code Logs
$log=mysqli_query($con,"insert into doctorslog(uid,username,userip,status)
values('$uid','$uname','$uip','$status')");
header("location:dashboard.php");
}
else
{
$uip=$_SERVER['REMOTE_ADDR'];
$status=0;
mysqli_query($con,"insert into doctorslog(username,userip,status) values('$uname','$uip','$status')");
$_SESSION['errmsg']="Invalid username or password";
header("location:index.php");
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Doctor Login</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 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">
<a href="../../index.php">
<h2> HMS | Doctor Login</h2>
</a>
</div>
<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 $_SESSION['errmsg']; ?> <?php echo
$_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>
<a href="forgot-password.php"> Forgot Password ? </a>
</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>
</form>
<div class="copyright">
<span class="text-bold text-uppercase"> Hospital Management System</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>
<!-- end: BODY -->
</html>
Doctor/appointment-history.php
<?php
session_start();
error_reporting(0);
include('include/config.php');
if(strlen($_SESSION['id']==0)) {
header('location:logout.php');
} else{
if(isset($_GET['cancel']))
{
mysqli_query($con,"update appointment set doctorStatus='0' where id ='".$_GET['id']."'");
$_SESSION['msg']="Appointment canceled !!";
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Doctor | Appointment History</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">
<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">
<h1 class="mainTitle">Doctor | Appointment History</h1>
</div>
<ol class="breadcrumb">
<li>
<span>Doctor </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">Patient Name</th>
<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 users.fullName as fname,appointment.* from appointment join
users on users.id=appointment.userId where appointment.doctorId='".$_SESSION['id']."'");
$cnt=1;
while($row=mysqli_fetch_array($sql))
{
?> <tr>
<td class="center"> <?php echo $cnt;?>. </td>
<td class="hidden-xs"> <?php echo $row['fname'];?> </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))
{
echo "Cancel by Patient";
}
?> </td>
<td>
<div class="visible-md visible-lg hidden-sm hidden-xs"> <?php
if(($row['userStatus']==1) && ($row['doctorStatus']==1))
{ ?> <a href="appointment-history.php?id=
echo "Canceled";
} ?> </div>
</td>
</tr> <?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>
<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> <?php } ?>
9.2 SCREEN LAYOUT
Home Page
Patient Panel
Signup Page
Login Page
Forgot Password
Reset Password
Dashboard
Profile
Change Password
Book Appointment
Appointment History
Doctor Panel
Login Page
Forgot Password
Reset Password
Dashboard
Profile
Change Password
Appointment History
Add Patient
Manage Patient
Update Patient Details
Admin Panel
Login Page
Dashboard
Profile
Doctor Specializations
Update Specialization
Add Doctor
Manage Doctor
Update Doctor Details
Manage Users
Manage Patient
About Us
Contact Us Page
Patient Search
10. CONCLUSION