You are on page 1of 94

A PROJECT REPORT

on

E-HOSPITAL SERVICES

Submitted in partial fullfillment for the award of degree


of
Bachelor of Science (Computer Science)

Submitted By:
MANIKKAME HRITIK SANJAY
MANTRI PIYUSH DHANRAJ
GADEKAR NARENDRA WAMANRAO

Under the guidance of

Mr. Vishal Marotirao Pathak

Mahatma Gandhi Mission’s


College of Computer Science & IT,
Department Of Computer Science & IT,
MGM Campus, Nanded-431605

Affiliated to

Swami Ramanand Teerth Marathwada University,


Nanded-431606
2022-23
Mahatma Gandhi Mission’s
College of Computer Science & IT,
MGM Campus, Nanded-431605

Certificate

This is to certify that the project entitled "E-HOSPITAL SERVICES" by

MANIKKAME HRITIK SANJAY (Exam Seat No. ZC19158), MANTRI PIYUSH

DHANRAJ (Exam Seat No. ZC19159), GADEKAR NARENDRA WAMANRAO ( Exam

Seat No. ZC19097 ) submitted in partial fulfillment of the requirements for the award of

degree of Bachelor of Science

(Computer Science) by Swami Ramanand Teerth Marathwada University, Nanded

– 431606 during the academic year 2022-23, is a bonafide record of work carried out

under my guidance and supervision.

Mr. Vishal Marotirao Pathak


Guide

Dr.Ms.Kanchan A. Nandedkar Prof. Shirish L. Kotgire


Head of Department Principal

Examinar-1 Examinar-2
Declaration
We hereby declare that project entitled "E-HOSPITAL SERVICES" has been

completed in the Department of Computer Science & IT, MGM’s College of

Computer Science & IT, Nanded and Submitted to Swami Ramanand Teerth

Marathwada University Nanded, under the guidance of Mr. Vishal Marotirao

Pathak for the award of degree of Bachelor of Science (Computer Science). This

report comprises only our original work and has not been submitted for award of any

other degree to any university. Due acknowledgement has been made in the text to all

other material used.

MANIKKAME HRITIK SANJAY________

MANTRI PIYUSH DHANRAJ________

GADEKAR NARENDRA WAMANRAO________

Date:6/4/2023
Place:Nanded
Acknowledgement

It gives us an immense pleasure and satisfaction to present this project report on “E-
HOSPITAL SERVICE”, which is the result of unwavering support, expert guidance and
focused direction of our guide Mr. Vishal Marotirao Pathak to whom we express our deep
sense of gratitude and humble thanks, for her valuable guidance throughout the presentation
work.

The success of this Project has throughout depended upon an exact blend of hard work
and unending co-operation and guidance, extended to us by the supervisors at our college.
Furthermore, we are indebted to our HOD Dr. Mrs. Kanchan A. Nandedkar and Principal
Prof. Shirish L. Kotgire whose constant encouragement and motivation inspired us to do
my best.
Last but not the least we sincerely thank to our colleagues, the staff and all others who
directly or indirectly helped us and made numerous suggestions which have surely improved
the quality of our work.

MANIKKAME HRITIK SANJAY________

MANTRI PIYUSH DHANRAJ________

GADEKAR NARENDRA WAMANRAO________


INDEX

SR NO. NAMES OF CHAPTERS PAGE


NO.

1. ABSTRACT 1

2. INTRODUCTION 2

3. REQUIREMENTS 2

4. PROJECT DIAGRAMS 3

5. SOURCE CODE 5

6. OUTPUT 78

7. CONCLUSION 87

8. REFERENCES 88
LIST OF FIGURES

PAGE
FIGURE NO.

FIGURE 2.1 : DATA FLOW DIAGRAM 3

FIGURE 2.2 : E-R DIAGRAM 4


E-HOSPITAL SERVICES
1. ABSTRACT :

The purpose of the project entitled as “E-HOSPITAL SERVICE” is to computerize the Front Office
Management of Hospital to develop software which is user friendly simple, fast, and cost – effective. It deals
with the collection of patient’s information, diagnosis details, etc. Traditionally, it was done manually. The
main function of the system is register and store patient details and doctor details and retrieve these details as
and when required, and also to manipulate these details meaningfully System input contains patient details,
diagnosis details, while system output is to get these details on to the screen. E-Hospital Service system can
be entered using a username and password. It is accessible either by an administrator or receptionist. Only
they can add data into the database. The data can be retrieved easily. The data are well protected for personal
use and makes the data processing very fast.

1.2.PURPOSE :

1) Define hospital and doctors information.


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 and Doctors.

1.3. SCOPE :

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

1
E-HOSPITAL SERVICES

2. INTRODUCTION :

The project E-Hospital Service system includes registration of patients, storing their details into the system,
and also computerized billing in the pharmacy, and labs. User can search availability of a doctor and the
details of a patient using the name. The Hospital Management System can be entered using a username and
password. It is accessible either by an administrator or receptionist. 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. Hospital Management
System is designed for multispeciality hospitals, to cover a wide range of hospital administration and
management processes. It is an integrated end- to-end Hospital Management System that provides relevant
information across the hospital to support effective decision making for patient care, hospital administration
and critical financial accounting, in a seamless flow. E-Hospital Management System is a software product
suite designed to improve the quality and management of hospital management in the areas of clinical
process analysis and activity-based costing. Hospital Management System enables you to develop your
organization and improve its effectiveness and quality of work. Managing the key processes efficiently is
critical to the success of the hospital helps you manage your processes.

3. REQUIREMENTS :

3.2. HARDWARE REQUIREMENTS:


HARDWARE REQUIREMENTS FOR PRESENT PROJECT :
PROCESSOR : Intel dual Core ,i3 RAM : 4 GB
HARD DISK : 1 TB

3.3. SOFTWARE REQUIREMENTS:


SOFTWARE REQUIREMENTS FOR PRESENT PROJECT:
OPERATING SYSTEM : Windows 10 FRONT END : HTML, CSS, JAVASCRIPT.
SERVER SIDE SCRIPT : PHP
DATABASE : MYSQL

2
E-HOSPITAL SERVICES
4. PROJECT DIAGRAMS :
4.1.DATA FLOW DIAGRAM :

Figure 2.1

3
E-HOSPITAL SERVICES
4.2. E-R DIAGRAM :

Figure 2.2

4
E-HOSPITAL SERVICES
5. SOURCE CODE :
5.1.HOME PAGE :

<html>
<head>
<title>HMS</title>
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.png" />
<link rel="stylesheet" type="text/css" href="style1.css">
<link href="https://fonts.googleapis.com/css?family=IBM+Plex+Sans&display=swap" rel="stylesheet">
<!-- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu"
crossorigin="anonymous"> -->

<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"


integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous">

<link rel="stylesheet" href="vendor/fontawesome/css/font-awesome.min.css">


<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet"
id="bootstrap-css">

<style >
.form-control {
border-radius: 0.75rem;
}
</style>

<script>
var check = function() {
if (document.getElementById('password').value ==
document.getElementById('cpassword').value) {
document.getElementById('message').style.color = '#5dd05d';
document.getElementById('message').innerHTML = 'Matched';
} else {
document.getElementById('message').style.color = '#f55252';
document.getElementById('message').innerHTML = 'Not Matching';
}
}

function alphaOnly(event) {
var key = event.keyCode;
return ((key >= 65 && key <= 90) || key == 8 || key == 32);
};

function checklen()
{
var pass1 = document.getElementById("password");
if(pass1.value.length<6){
alert("Password must be at least 6 characters long. Try again!");
5
E-HOSPITAL SERVICES

return false;
}
}

</script>

</head>

<!------ Include the above in your HEAD tag ---------->


<body>
<nav class="navbar navbar-expand-lg navbar-dark fixed-top" id="mainNav" >
<div class="container">

<a class="navbar-brand js-scroll-trigger" href="#" style="margin-top: 10px;margin-left:-65px;font-


family: 'IBM Plex Sans', sans-serif;"><h4><i class="fa fa-user-plus" aria-hidden="true"></i>&nbsp
GLOBAL HOSPITALS</h4></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive"
aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item" style="margin-right: 40px;">
<a class="nav-link js-scroll-trigger" href="index.php" style="color: white;font-family: 'IBM Plex
Sans', sans-serif;"><h6>HOME</h6></a>
</li>

<li class="nav-item" style="margin-right: 40px;">


<a class="nav-link js-scroll-trigger" href="services.html" style="color: white;font-family: 'IBM Plex
Sans', sans-serif;"><h6>ABOUT US</h6></a>
</li>

<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="contact.html" style="color: white;font-family: 'IBM Plex
Sans', sans-serif;"><h6>CONTACT</h6></a>
</li>
</ul>
</div>
</div>
</nav>

<div class="container register" style="font-family: 'IBM Plex Sans', sans-serif;">


<div class="row">
<div class="col-md-3 register-left" style="margin-top: 10%;right: 5%">
<img src="https://freepngimg.com/save/164618-realistic-rocket-png-free-photo/512x512"
alt=""/>
<h3>Welcome</h3>

6
E-HOSPITAL SERVICES

</div>
<div class="col-md-9 register-right" style="margin-top: 40px;left: 80px;">
<ul class="nav nav-tabs nav-justified" id="myTab" role="tablist" style="width: 40%;">
<li class="nav-item">
<a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab"
aria-controls="home" aria-selected="true">Patient</a>
</li>
<li class="nav-item">
<a class="nav-link" id="profile-tab" data-toggle="tab" href="#profile" role="tab" aria-
controls="profile" aria-selected="false">Doctor</a>
</li>
<li class="nav-item">
<a class="nav-link" id="profile-tab" data-toggle="tab" href="#admin" role="tab" aria-
controls="admin" aria-selected="false">Receptionist</a>
</li>
</ul>
<div class="tab-content" id="myTabContent">
<div class="tab-pane fade show active" id="home" role="tabpanel" aria-
labelledby="home-tab">
<h3 class="register-heading">Register as Patient</h3>
<form method="post" action="func2.php">
<div class="row register-form">

<div class="col-md-6">
<div class="form-group">
<input type="text" class="form-control" placeholder="First Name *"
name="fname" onkeydown="return alphaOnly(event);" required/>
</div>
<div class="form-group">
<input type="email" class="form-control" placeholder="Your Email *"
name="email" />
</div>
<div class="form-group">
<input type="password" class="form-control" placeholder="Password *"
id="password" name="password" onkeyup='check();' required/>
</div>

<div class="form-group">
<div class="maxl">
<label class="radio inline">
<input type="radio" name="gender" value="Male" checked>
<span> Male </span>
</label>
<label class="radio inline">
<input type="radio" name="gender" value="Female">
<span>Female </span>
</label>
</div>
<a href="index1.php">Already have an account?</a>
</div>
7
E-HOSPITAL SERVICES

</div>

<div class="col-md-6">
<div class="form-group">
<input type="text" class="form-control" placeholder="Last Name *"
name="lname" onkeydown="return alphaOnly(event);" required/>
</div>

<div class="form-group">
<input type="tel" minlength="10" maxlength="10" name="contact" class="form-
control" placeholder="Your Phone *" />
</div>
<div class="form-group">
<input type="password" class="form-control" id="cpassword"
placeholder="Confirm Password *" name="cpassword" onkeyup='check();' required/><span
id='message'></span>
</div>
<input type="submit" class="btnRegister" name="patsub1" onclick="return
checklen();" value="Register"/>
</div>

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

<div class="tab-pane fade show" id="profile" role="tabpanel" aria-labelledby="profile-


tab">
<h3 class="register-heading">Login as Doctor</h3>
<form method="post" action="func1.php">
<div class="row register-form">
<div class="col-md-6">
<div class="form-group">
<input type="text" class="form-control" placeholder="User Name *"
name="username3" onkeydown="return alphaOnly(event);" required/>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<input type="password" class="form-control" placeholder="Password *"
name="password3" required/>
</div>

<input type="submit" class="btnRegister" name="docsub1" value="Login"/>


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

8
E-HOSPITAL SERVICES

<div class="tab-pane fade show" id="admin" role="tabpanel" aria-labelledby="profile-


tab">
<h3 class="register-heading">Login as Admin</h3>
<form method="post" action="func3.php">
<div class="row register-form">
<div class="col-md-6">
<div class="form-group">
<input type="text" class="form-control" placeholder="User Name *"
name="username1" onkeydown="return alphaOnly(event);" required/>
</div>

</div>
<div class="col-md-6">
<div class="form-group">
<input type="password" class="form-control" placeholder="Password *"
name="password2" required/>
</div>

<input type="submit" class="btnRegister" name="adsub" value="Login"/>


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

</div>
</div>

</div>
</body>

<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-


q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-
UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-
JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>

<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-


aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd"
crossorigin="anonymous"></script>
</html>

9
E-HOSPITAL SERVICES

5.2. LOGIN PAGE :


- After clicking on “Already have an account?”
<?php
include("header.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<!-- Bootstrap CSS -->


<link href="https://fonts.googleapis.com/css?family=IBM+Plex+Sans&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css"
integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M"
crossorigin="anonymous">
<link rel="stylesheet" href="vendor/fontawesome/css/font-awesome.min.css">
<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />

<link rel="stylesheet" type="text/css" href="style2.css">

</head>
<style type="text/css">
#inputbtn:hover{cursor:pointer;}
.card{
background: #f8f9fa;
border-top-left-radius: 5% 5%;
border-bottom-left-radius: 5% 5%;
border-top-right-radius: 5% 5%;
border-bottom-right-radius: 5% 5%;
}

10
E-HOSPITAL SERVICES

</style>
<body style="background: -webkit-linear-gradient(left, #3931af, #00c6ff); background-size: cover;">
<nav class="navbar navbar-expand-lg navbar-dark fixed-top" id="mainNav" >
<div class="container">

<a class="navbar-brand js-scroll-trigger" href="index.php" style="margin-top: 10px;margin-left:-


65px;font-family: 'IBM Plex Sans', sans-serif;"><h4><i class="fa fa-user-plus" aria-
hidden="true"></i>&nbsp GLOBAL HOSPITALS</h4></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive"
aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item" style="margin-right: 40px;">
<a class="nav-link js-scroll-trigger" href="index.php" style="color: white;font-family: 'IBM Plex
Sans', sans-serif;"><h6>HOME</h6></a>
</li>

<li class="nav-item" style="margin-right: 40px;">


<a class="nav-link js-scroll-trigger" href="services.html" style="color: white;font-family: 'IBM Plex
Sans', sans-serif;"><h6>ABOUT US</h6></a>
</li>

<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="contact.html" style="color: white;font-family: 'IBM Plex
Sans', sans-serif;"><h6>CONTACT</h6></a>
</li>
</ul>
</div>
</div>
</nav>

11
E-HOSPITAL SERVICES

<div class="container-fluid" style="margin-top:60px;margin-bottom:60px;color:#34495E;">


<div class="row">

<div class="col-md-7" style="padding-left: 180px; ">


<div style="-webkit-animation: mover 2s infinite alternate;
animation: mover 1s infinite alternate;">
<img src="images/ambulance1.png" alt="" style="width: 20%;padding-left: 40px;margin-top:
150px;margin-left: 45px;margin-bottom:15px">
</div>

<div style="color: white;">


<h4 style="font-family: 'IBM Plex Sans', sans-serif;"> We are here for you!</h4>
</div>

</div>

<div class="col-md-4" style="margin-top: 5%;right: 8%">


<div class="card" style="font-family: 'IBM Plex Sans', sans-serif;">
<div class="card-body">
<center>
<i class="fa fa-hospital-o fa-3x" aria-hidden="true" style="color:#0062cc"></i>
<br>
<h3 style="margin-top: 10%">Patient Login</h3><br>
<form class="form-group" method="POST" action="func.php">
<div class="row" style="margin-top: 10%">
<div class="col-md-4"><label>Email-ID: </label></div>
<div class="col-md-8"><input type="text" name="email" class="form-control"
placeholder="enter email ID" required/></div><br><br>
<div class="col-md-4" style="margin-top: 8%"><label>Password: </label></div>

12
E-HOSPITAL SERVICES
<div class="col-md-8" style="margin-top: 8%"><input type="password" class="form-control"
name="password2" placeholder="enter password" required/></div><br><br><br>
</div>
<div class="row">
<div class="col-md-4" style="padding-left: 160px;margin-top: 10%">
<center><input type="submit" id="inputbtn" name="patsub" value="Login" class="btn btn-
primary"></center></div>
<!-- <div class="col-md-8" style="margin-top: 10%">
<a href="index.php" class="btn btn-primary">Back</a></div> -->
</div>
</form>
</center>
</div>
</div>
</div>
</div>
</div>

<!-- Optional JavaScript -->


<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-
KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js"
integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-
h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
</body>
</html>

13
E-HOSPITAL SERVICES
5.3. ABOUT US PAGE :

<html lang="en"><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Services</title>

<!-- css -->


<link rel="shortcut icon" type="image/x-icon" href="images/favicon.png">
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">

<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">


<link rel="stylesheet" href="vendor/fontawesome/css/font-awesome.min.css">
<link href="css/animate.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=IBM+Plex+Sans&amp;display=swap"
rel="stylesheet">
<link href="css/style.css" rel="stylesheet">

<!-- boxed bg -->


<link id="bodybg" href="bodybg/bg1.css" rel="stylesheet" type="text/css">
<!-- template skin -->
<link id="t-colors" href="color/default.css" rel="stylesheet">

<style>
.bg-skin {
background: #0062cc;

}
.nav>li>a:hover, .nav>li>a:focus {
text-decoration: none;
background-color: #251f1f00;
/* color: blue; */
}

.btn-skin {
14
E-HOSPITAL SERVICES
background-color: #0062cc;
border-color: #0062cc;
}
.box h4 {
font-size: 24px;
color: white;
font-family: 'IBM Plex Sans', sans-serif;
}
.service-desc h5 {
margin-bottom: 10px;
color: white;
font-family: 'IBM Plex Sans', sans-serif;
}
.fa-stethoscope:before {
color: white;
}

.fa-h-square:before {
color: white;
}

.fa-wheelchair:before {
color: white;
}

.fa-filter:before {
color: white;
}

.fa-plus-square:before {
color: white;
}

.fa-user-md:before {

15
E-HOSPITAL SERVICES
color: white;
background: #00ffff2b;
}

.fa-check:before {
background: #084dbe;
}

.fa-list-alt:before {
background: #005cd0;
}

.fa-hospital-o:before {
background: #0eacf0de
}

.fa-heartbeat:before {
color: white;
}

footer .widget h5 {
font-size: 20px;
margin-bottom: 10px;
text-transform: uppercase;
color: white;
}

.intro-content {
/*background: url(../img/dummy/bg1.jpg) no-repeat top center;*/
background:-webkit-linear-gradient(left, #3931af, #00c6ff);
padding: 200px 0 60px;
}

</style>
16
E-HOSPITAL SERVICES
</head>
<body style="">
<div class="container navigation" style="background: -webkit-linear-gradient(left, #3931af,
#00c6ff);width: 98.85vw;height: 70px;padding-top: 10px;">

<div class="navbar-header page-scroll">


<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-main-
collapse">
<i class="fa fa-bars"></i>
</button>
<a class="navbar-brand js-scroll-trigger" href="index.php" style="margin-top: 0px;font-family: 'IBM
Plex Sans', sans-serif;"><h5 style="color: white;"><i class="fa fa-user-plus" aria-hidden="true"></i>&nbsp;
GLOBAL HOSPITALS</h5></a>
</div>

<div class="collapse navbar-collapse navbar-right navbar-main-collapse">


<ul class="nav navbar-nav">
<li class="active" style="margin-right: 40px;font-family: 'IBM Plex Sans', sans-serif;"><a
href="index.php" style="color: white">HOME</a></li>
<li class="active" style="margin-right: 40px;font-family: 'IBM Plex Sans', sans-serif;"><a
href="services.html" style="color: white">ABOUT US</a></li>
<li><a href="contact.html" style="margin-right: 40px;font-family: 'IBM Plex Sans', sans-serif;color:
white">CONTACT</a></li>
</ul>
</div>

</div>

<div id="wrapper">

<section id="intro" class="intro" style="font-family: 'IBM Plex Sans', sans-serif;">


<div class="intro-content" style="padding-top: 75px;">
<div class="container">
<div class="row">
17
E-HOSPITAL SERVICES

<div class="col-lg-6">
<div class="wow fadeInDown animated" data-wow-offset="0" data-wow-delay="0.1s"
style="visibility: visible; animation-delay: 0.1s; animation-name: fadeInDown;">
<h2 style="font-family: 'IBM Plex Sans', sans-serif;color: white">GLOBAL HOSPITALS</h2>
</div>
<div class="wow fadeInUp animated" data-wow-offset="0" data-wow-delay="0.1s"
style="visibility: visible; animation-delay: 0.1s; animation-name: fadeInUp;">
<h4 class="h-light" style="font-family: 'IBM Plex Sans', sans-serif;color: #efe1e1">Provide best
quality healthcare for you</h4>
</div>
<div class="well well-trans" style="background:#ffffff00;color: white">
<div class="wow fadeInRight animated" data-wow-delay="0.1s" style="visibility: visible;
animation-delay: 0.1s; animation-name: fadeInRight;">

<ul class="lead-list">
<li><span class="fa fa-check-square-o fa-2x icon-success"></span> <span
class="list"><strong>Affordable monthly premium packages</strong><br>Lorem ipsum dolor sit amet, in
verterem persecuti vix, sit te meis</span></li>
<li><span class="fa fa-check-square-o fa-2x icon-success"></span> <span
class="list"><strong>Choose your favourite services</strong><br>Lorem ipsum dolor sit amet, in verterem
persecuti vix, sit te meis</span></li>
<li><span class="fa fa-check-square-o fa-2x icon-success"></span> <span
class="list"><strong>Only use friendly environment</strong><br>Lorem ipsum dolor sit amet, in verterem
persecuti vix, sit te meis</span></li>
</ul>
<p class="text-right wow bounceIn animated" data-wow-delay="0.4s" style="visibility: visible;
animation-delay: 0.4s; animation-name: bounceIn;">
<a href="#" class="btn btn-skin btn-lg" style="background:white;color:#006ccf">Learn more <i
class="fa fa-angle-right"></i></a>
</p>
</div>
</div>
</div>

18
E-HOSPITAL SERVICES
<div class="col-lg-6">
<div class="wow fadeInUp animated" data-wow-duration="2s" data-wow-delay="0.2s"
style="visibility: visible; animation-duration: 2s; animation-delay: 0.2s; animation-name: fadeInUp;">
<img src="img/dummy/img-1.png" class="img-responsive" alt="">
</div>
</div>
</div>
</div>
</div>
</section>

<section id="boxes" class="home-section paddingtop-80" style="background: -webkit-linear-


gradient(left, #3931af, #00c6ff);color: white;font-family: 'IBM Plex Sans', sans-serif;">

<div class="container">
<div class="row">
<div class="col-sm-3 col-md-3">
<div class="wow fadeInUp animated" data-wow-delay="0.3s" style="visibility: visible; animation-
delay: 0.3s; animation-name: fadeInUp;">
<div class="box text-center">

<i class="fa fa-check fa-3x bg-skin"></i>


<h4>Make an appoinment</h4>
<p>
Lorem ipsum dolor sit amet, nec te mollis utroque honestatis, ut utamur molestiae vix, graecis
eligendi ne.
</p>
</div>
</div>
</div>
<div class="col-sm-3 col-md-3">

19
E-HOSPITAL SERVICES
<div class="wow fadeInUp animated" data-wow-delay="0.5s" style="visibility: visible; animation-
delay: 0.5s; animation-name: fadeInUp;">
<div class="box text-center">

<i class="fa fa-list-alt fa-3x bg-skin"></i>


<h4>Choose your package</h4>
<p>
Lorem ipsum dolor sit amet, nec te mollis utroque honestatis, ut utamur molestiae vix, graecis
eligendi ne.
</p>
</div>
</div>
</div>
<div class="col-sm-3 col-md-3">
<div class="wow fadeInUp animated" data-wow-delay="0.7s" style="visibility: visible; animation-
delay: 0.7s; animation-name: fadeInUp;">
<div class="box text-center">
<i class="fa fa-user-md fa-3x bg-skin"></i>
<h4>Help by specialist</h4>
<p>
Lorem ipsum dolor sit amet, nec te mollis utroque honestatis, ut utamur molestiae vix, graecis
eligendi ne.
</p>
</div>
</div>
</div>
<div class="col-sm-3 col-md-3">
<div class="wow fadeInUp animated" data-wow-delay="0.9s" style="visibility: visible; animation-
delay: 0.9s; animation-name: fadeInUp;">
<div class="box text-center">

<i class="fa fa-hospital-o fa-3x bg-skin"></i>


<h4>Get diagnostic report</h4>
<p>

20
E-HOSPITAL SERVICES

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

</section>
<section id="service" class="home-section nopadding paddingtop-60" style="background: -webkit-linear-
gradient(left, #3931af, #00c6ff);color: white">
<div class="container">

<div class="row">
<div class="col-sm-6 col-md-6">
<div class="wow fadeInLeft animated" data-wow-delay="0.2s" style="visibility: visible; animation-
delay: 0.2s; animation-name: fadeInLeft;">
<img src="img/dummy/img-6.png" class="img-responsive" alt="">
</div>
</div>
<div class="col-sm-3 col-md-3">
<div class="wow fadeInRight animated" data-wow-delay="0.1s" style="visibility: visible;
animation-delay: 0.1s; animation-name: fadeInRight;">
<div class="service-box">
<div class="service-icon">
<span class="fa fa-stethoscope fa-3x" style="color:#0062cc"></span>
</div>
<div class="service-desc">
<h5 class="h-light">Medical checkup</h5>
<p>Vestibulum tincidunt enim in pharetra malesuada.</p>
</div>
</div>
</div>

21
E-HOSPITAL SERVICES
<div class="wow fadeInRight animated" data-wow-delay="0.2s" style="visibility: visible;
animation-delay: 0.2s; animation-name: fadeInRight;">
<div class="service-box">
<div class="service-icon">
<span class="fa fa-wheelchair fa-3x" style="color:#0062cc"></span>
</div>
<div class="service-desc">
<h5 class="h-light">Nursing Services</h5>
<p>Vestibulum tincidunt enim in pharetra malesuada.</p>
</div>
</div>
</div>
<div class="wow fadeInRight animated" data-wow-delay="0.3s" style="visibility: visible;
animation-delay: 0.3s; animation-name: fadeInRight;">
<div class="service-box">
<div class="service-icon">
<span class="fa fa-plus-square fa-3x" style="color:#0062cc"></span>
</div>
<div class="service-desc">
<h5 class="h-light">Pharmacy</h5>
<p>Vestibulum tincidunt enim in pharetra malesuada.</p>
</div>
</div>
</div>
</div>
<div class="col-sm-3 col-md-3">
<div class="wow fadeInRight animated" data-wow-delay="0.1s" style="visibility: visible;
animation-delay: 0.1s; animation-name: fadeInRight;">
<div class="service-box">
<div class="service-icon">
<span class="fa fa-h-square fa-3x" style="color:#0062cc"></span>
</div>
<div class="service-desc">
<h5 class="h-light">Gyn Care</h5>

22
E-HOSPITAL SERVICES
<p>Vestibulum tincidunt enim in pharetra malesuada.</p>
</div>
</div>
</div>
<div class="wow fadeInRight animated" data-wow-delay="0.2s" style="visibility: visible;
animation-delay: 0.2s; animation-name: fadeInRight;">
<div class="service-box">
<div class="service-icon">
<span class="fa fa-filter fa-3x" style="color:#0062cc"></span>
</div>
<div class="service-desc">
<h5 class="h-light">Neurology</h5>
<p>Vestibulum tincidunt enim in pharetra malesuada.</p>
</div>
</div>
</div>
<div class="wow fadeInRight animated" data-wow-delay="0.3s" style="visibility: visible;
animation-delay: 0.3s; animation-name: fadeInRight;">
<div class="service-box">
<div class="service-icon">
<span class="fa fa-heartbeat fa-3x"></span>
</div>
<div class="service-desc">
<h5 class="h-light">Sleep Center</h5>
<p>Vestibulum tincidunt enim in pharetra malesuada.</p>
</div>
</div>
</div>
</div>
</div>
</div>

</section>
<footer style="background: -webkit-linear-gradient(left, #3931af, #00c6ff);color: #e4d6d6">

23
E-HOSPITAL SERVICES

<div class="container">
<div class="row">
<div class="col-sm-6 col-md-4">
<div class="wow fadeInDown animated" data-wow-delay="0.1s" style="visibility: visible;
animation-delay: 0.1s; animation-name: fadeInDown;">
<div class="widget">
<h5>About Global Hospitals</h5>
<p>
Lorem ipsum dolor sit amet, ne nam purto nihil impetus, an facilisi accommodare sea
</p>
</div>
</div>
<div class="wow fadeInDown animated" data-wow-delay="0.1s" style="visibility: visible;
animation-delay: 0.1s; animation-name: fadeInDown;">
<div class="widget">
<h5>Information</h5>
<ul>
<li><a style="color: #e4d6d6" href="#">Home</a></li>
<li><a style="color: #e4d6d6" href="#">Laboratory</a></li>
<li><a style="color: #e4d6d6" href="#">Medical treatment</a></li>
<li><a style="color: #e4d6d6" href="#">Terms &amp; conditions</a></li>
</ul>
</div>
</div>
</div>
<div class="col-sm-6 col-md-4">
<div class="wow fadeInDown animated" data-wow-delay="0.1s" style="visibility: visible;
animation-delay: 0.1s; animation-name: fadeInDown;">
<div class="widget">
<h5>Global Hospitals</h5>
<p>
Nam leo lorem, tincidunt id risus ut, ornare tincidunt naqunc sit amet.
</p>

24
E-HOSPITAL SERVICES
<ul>
<li>

<span class="fa-stack fa-lg">


<i class="fa fa-calendar-o fa-stack-1x fa-inverse"></i>
</span> Monday - Saturday, 8am to 10pm
</li>
<li>
<span class="fa-stack fa-lg">
<i class="fa fa-phone fa-stack-1x fa-inverse"></i>
</span> +62 0888 904 711
</li>
<li>

<span class="fa-stack fa-lg">


<i class="fa fa-envelope-o fa-stack-1x fa-inverse"></i>
</span> global@hospitals.com
</li>
</ul>
</div>
</div>
</div>
<div class="col-sm-6 col-md-4">
<div class="wow fadeInDown animated" data-wow-delay="0.1s" style="visibility: visible;
animation-delay: 0.1s; animation-name: fadeInDown;">
<div class="widget">
<h5>Our location</h5>
<p>The Suithouse V303, Kuningan City, Jakarta Indonesia 12940</p>
</div>
</div>

<div class="wow fadeInDown animated" data-wow-delay="0.1s" style="visibility: visible;


animation-delay: 0.1s; animation-name: fadeInDown;">

25
E-HOSPITAL SERVICES
<div class="widget">
<h5>Follow us</h5>
<ul class="company-social">
<li class="social-facebook"><a href="#"><i class="fa fa-facebook"></i></a></li>
<li class="social-twitter"><a href="#"><i class="fa fa-twitter"></i></a></li>
<li class="social-google"><a href="#"><i class="fa fa-google-plus"></i></a></li>
<li class="social-vimeo"><a href="#"><i class="fa fa-vimeo-square"></i></a></li>
<li class="social-dribble"><a href="#"><i class="fa fa-dribbble"></i></a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</footer>
</div>

<!-- Core JavaScript Files -->


<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.easing.min.js"></script>
<script src="js/wow.min.js"></script>
<script src="js/jquery.scrollTo.js"></script>
<script src="js/jquery.appear.js"></script>
<script src="js/stellar.js"></script>
<script src="plugins/cubeportfolio/js/jquery.cubeportfolio.min.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/nivo-lightbox.min.js"></script>
<script src="js/custom.js"></script>
</body></html>

26
E-HOSPITAL SERVICES

5.4.1. CONTACT US PAGE CODE :

<html><head>
<title>Contact Us</title>
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.png">
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css"
rel="stylesheet" id="bootstrap-css">
<link rel="stylesheet" href="vendor/fontawesome/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/css?family=IBM+Plex+Sans&amp;display=swap"
rel="stylesheet">
<link rel="stylesheet" type="text/css" href="contact.css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
function alphaOnly(event) {
var key = event.keyCode;
return ((key >= 65 && key <= 90) || key == 8 || key == 32);
};
</script>
<style>
body{
background: -webkit-linear-gradient(left, #3931af, #00c6ff);
}
.contact-form {
background: #f8f9fa;
border-top-left-radius: 10% 50%;
border-bottom-left-radius: 10% 50%;
border-top-right-radius: 10% 50%;
border-bottom-right-radius: 10% 50%; }
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark fixed-top" id="mainNav">
<div class="container">

<a class="navbar-brand js-scroll-trigger" href="index.php" style="margin-top:


10px;margin-left:-65px;font-family: 'IBM Plex Sans', sans-serif;"><h4><i class="fa fa-
user-plus" aria-hidden="true"></i>&nbsp; GLOBAL HOSPITALS</h4></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-
target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-
label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item" style="margin-right: 40px;">
<a class="nav-link js-scroll-trigger" href="index.php" style="color:
white;font-family: 'IBM Plex Sans', sans-serif;"><h6>HOME</h6></a>
27
E-HOSPITAL SERVICES

</li>
<li class="nav-item" style="margin-right: 40px;">
<a class="nav-link js-scroll-trigger" href="services.html" style="color:
white;font-family: 'IBM Plex Sans', sans-serif;"><h6>ABOUT US</h6></a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="contact.html" style="color:
white;font-family: 'IBM Plex Sans', sans-serif;"><h6>CONTACT</h6></a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container contact-form" style="font-family: 'IBM Plex Sans', sans-serif;">
<div class="contact-image">
<img src="https://image.ibb.co/kUagtU/rocket_contact.png"
alt="rocket_contact">
</div>
<form method="post" action="contact.php">
<h3>Drop Us a Message</h3>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<input type="text" name="txtName" class="form-control"
placeholder="Your Name *" value="" onkeydown="return alphaOnly(event);" required="">
</div>
<div class="form-group">
<input type="email" name="txtEmail" class="form-control"
placeholder="Your Email *" value="" required="">
</div>
<div class="form-group">
<input type="tel" name="txtPhone" class="form-control"
placeholder="Your Phone Number *" value="" minlength="10" maxlength="10" required="">
</div>
<div class="form-group">
<input type="submit" name="btnSubmit" class="btnContact"
value="Send Message">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<textarea name="txtMsg" class="form-control" placeholder="Your
Message *" style="width: 100%; height: 150px;" required=""></textarea>
</div>
</div>
</div>
</form>
</div>

</body></html>
28
E-HOSPITAL SERVICES

5.4.2. CONTACT US PHP CODE :


- This code is to save contact us info into the database

<?php
$con=mysqli_connect("localhost","root","","myhmsdb");
if(isset($_POST['btnSubmit']))
{
$name = $_POST['txtName'];
$email = $_POST['txtEmail'];
$contact = $_POST['txtPhone'];
$message = $_POST['txtMsg'];

$query="insert into contact(name,email,contact,message) values('$name','$email','$contact','$message');";


$result = mysqli_query($con,$query);

if($result)
{
echo '<script type="text/javascript">';
echo 'alert("Message sent successfully!");';
echo 'window.location.href = "contact.html";';
echo '</script>';
}
}

5.4.3. CONTACT US CSS CODE :

body{
background: -webkit-linear-gradient(left, #3931af, #00c6ff);
}

html {
overflow-y: scroll;
}
.contact-form{
background: #fff;
margin-top: 10%;
margin-bottom: 5%;
width: 70%;
}
.contact-form .form-control{
border-radius:1rem;
29
E-HOSPITAL SERVICES

}
.contact-image{
text-align: center;
}
.contact-image img{
border-radius: 6rem;
width: 11%;
margin-top: -4%;
transform: rotate(29deg);
}
.contact-form form{
padding: 14%;
}
.contact-form form .row{
margin-bottom: -7%;
}
.contact-form h3{
margin-bottom: 8%;
margin-top: -13%;
text-align: center;
color: #495057;
}
.contact-form .btnContact {
width: 50%;
border: none;
border-radius: 1rem;
padding: 1.5%;
background: #0062cc;
font-weight: 600;
color: #fff;
cursor: pointer;

}
.btnContactSubmit
{
width: 50%;
border-radius: 1rem;
padding: 1.5%;
color: #fff;
background-color: #0062cc;
border: none;
cursor: pointer;
}

.btnContact{

margin-left: 70%;
}

30
E-HOSPITAL SERVICES
5.5. PATIENT “LOGGED IN” PANEL :
- Here you’ll see dashboard,appointment details,etc.

<!DOCTYPE html>
<?php
include('func.php');
include('newfunc.php');
$con=mysqli_connect("localhost","root","","myhmsdb");

$pid = $_SESSION['pid'];
$username = $_SESSION['username'];
$email = $_SESSION['email'];
$fname = $_SESSION['fname'];
$gender = $_SESSION['gender'];
$lname = $_SESSION['lname'];
$contact = $_SESSION['contact'];

if(isset($_POST['app-submit']))
{
$pid = $_SESSION['pid'];
$username = $_SESSION['username'];
$email = $_SESSION['email'];
$fname = $_SESSION['fname'];
$lname = $_SESSION['lname'];
$gender = $_SESSION['gender'];
$contact = $_SESSION['contact'];
$doctor=$_POST['doctor'];
$email=$_SESSION['email'];
# $fees=$_POST['fees'];
$docFees=$_POST['docFees'];

$appdate=$_POST['appdate'];
$apptime=$_POST['apptime'];
$cur_date = date("Y-m-d");
date_default_timezone_set('Asia/Kolkata');
$cur_time = date("H:i:s");
$apptime1 = strtotime($apptime);
$appdate1 = strtotime($appdate);

if(date("Y-m-d",$appdate1)>=$cur_date){
if((date("Y-m-d",$appdate1)==$cur_date and date("H:i:s",$apptime1)>$cur_time) or
date("Y-m-d",$appdate1)>$cur_date) {
$check_query = mysqli_query($con,"select apptime from appointmenttb where
doctor='$doctor' and appdate='$appdate' and apptime='$apptime'");

31
E-HOSPITAL SERVICES

if(mysqli_num_rows($check_query)==0){
$query=mysqli_query($con,"insert into
appointmenttb(pid,fname,lname,gender,email,contact,doctor,docFees,appdate,apptime,userStat
us,doctorStatus)
values($pid,'$fname','$lname','$gender','$email','$contact','$doctor','$docFees','$appdate
','$apptime','1','1')");

if($query)
{
echo "<script>alert('Your appointment successfully booked');</script>";
}
else{
echo "<script>alert('Unable to process your request. Please try
again!');</script>";
}
}
else{
echo "<script>alert('We are sorry to inform that the doctor is not available in
this time or date. Please choose different time or date!');</script>";
}
}
else{
echo "<script>alert('Select a time or date in the future!');</script>";
}
}
else{
echo "<script>alert('Select a time or date in the future!');</script>";
}

if(isset($_GET['cancel']))
{
$query=mysqli_query($con,"update appointmenttb set userStatus='0' where ID =
'".$_GET['ID']."'");
if($query)
{
echo "<script>alert('Your appointment successfully cancelled');</script>";
}
}

function generate_bill(){
$con=mysqli_connect("localhost","root","","myhmsdb");
$pid = $_SESSION['pid'];
$output='';
32
E-HOSPITAL SERVICES

$query=mysqli_query($con,"select
p.pid,p.ID,p.fname,p.lname,p.doctor,p.appdate,p.apptime,p.disease,p.allergy,p.prescription
,a.docFees from prestb p inner join appointmenttb a on p.ID=a.ID and p.pid = '$pid' and
p.ID = '".$_GET['ID']."'");
while($row = mysqli_fetch_array($query)){
$output .= '
<label> Patient ID : </label>'.$row["pid"].'<br/><br/>
<label> Appointment ID : </label>'.$row["ID"].'<br/><br/>
<label> Patient Name : </label>'.$row["fname"].' '.$row["lname"].'<br/><br/>
<label> Doctor Name : </label>'.$row["doctor"].'<br/><br/>
<label> Appointment Date : </label>'.$row["appdate"].'<br/><br/>
<label> Appointment Time : </label>'.$row["apptime"].'<br/><br/>
<label> Disease : </label>'.$row["disease"].'<br/><br/>
<label> Allergies : </label>'.$row["allergy"].'<br/><br/>
<label> Prescription : </label>'.$row["prescription"].'<br/><br/>
<label> Fees Paid : </label>'.$row["docFees"].'<br/>

';

return $output;
}

if(isset($_GET["generate_bill"])){
require_once("TCPDF/tcpdf.php");
$obj_pdf = new TCPDF('P',PDF_UNIT,PDF_PAGE_FORMAT,true,'UTF-8',false);
$obj_pdf -> SetCreator(PDF_CREATOR);
$obj_pdf -> SetTitle("Generate Bill");
$obj_pdf -> SetHeaderData('','',PDF_HEADER_TITLE,PDF_HEADER_STRING);
$obj_pdf -> SetHeaderFont(Array(PDF_FONT_NAME_MAIN,'',PDF_FONT_SIZE_MAIN));
$obj_pdf -> SetFooterFont(Array(PDF_FONT_NAME_MAIN,'',PDF_FONT_SIZE_MAIN));
$obj_pdf -> SetDefaultMonospacedFont('helvetica');
$obj_pdf -> SetFooterMargin(PDF_MARGIN_FOOTER);
$obj_pdf -> SetMargins(PDF_MARGIN_LEFT,'5',PDF_MARGIN_RIGHT);
$obj_pdf -> SetPrintHeader(false);
$obj_pdf -> SetPrintFooter(false);
$obj_pdf -> SetAutoPageBreak(TRUE, 10);
$obj_pdf -> SetFont('helvetica','',12);
$obj_pdf -> AddPage();

$content = '';

$content .= '
<br/>
<h2 align ="center"> Global Hospitals</h2></br>
<h3 align ="center"> Bill</h3>

33
E-HOSPITAL SERVICES

';

$content .= generate_bill();
$obj_pdf -> writeHTML($content);
ob_end_clean();
$obj_pdf -> Output("bill.pdf",'I');

function get_specs(){
$con=mysqli_connect("localhost","root","","myhmsdb");
$query=mysqli_query($con,"select username,spec from doctb");
$docarray = array();
while($row =mysqli_fetch_assoc($query))
{
$docarray[] = $row;
}
return json_encode($docarray);
}

?>
<html lang="en">
<head>

<!-- Required meta tags -->


<meta charset="utf-8">
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" type="text/css" href="font-awesome-4.7.0/css/font-
awesome.min.css">
<link rel="stylesheet" href="style.css">
<!-- Bootstrap CSS -->

<link rel="stylesheet" href="vendor/fontawesome/css/font-awesome.min.css">

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-


beta/css/bootstrap.min.css" integrity="sha384-
/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">

<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"

34
E-HOSPITAL SERVICES

integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous">

<link href="https://fonts.googleapis.com/css?family=IBM+Plex+Sans&display=swap"
rel="stylesheet">
<nav class="navbar navbar-expand-lg navbar-dark bg-primary fixed-top">
<a class="navbar-brand" href="#"><i class="fa fa-user-plus" aria-hidden="true"></i>
Global Hospital </a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-
target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-
expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

<style >
.bg-primary {
background: -webkit-linear-gradient(left, #3931af, #00c6ff);
}
.list-group-item.active {
z-index: 2;
color: #fff;
background-color: #342ac1;
border-color: #007bff;
}
.text-primary {
color: #342ac1!important;
}

.btn-primary{
background-color: #3c50c1;
border-color: #3c50c1;
}
</style>

<div class="collapse navbar-collapse" id="navbarSupportedContent">


<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="logout.php"><i class="fa fa-sign-out" aria-
hidden="true"></i>Logout</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#"></a>
</li>
</ul>
</div>
</nav>
</head>
<style type="text/css">
button:hover{cursor:pointer;}
#inputbtn:hover{cursor:pointer;}
35
E-HOSPITAL SERVICES

</style>
<body style="padding-top:50px;">

<div class="container-fluid" style="margin-top:50px;">


<h3 style = "margin-left: 40%; padding-bottom: 20px; font-family: 'IBM Plex Sans',
sans-serif;"> Welcome &nbsp<?php echo $username ?>
</h3>
<div class="row">
<div class="col-md-4" style="max-width:25%; margin-top: 3%">
<div class="list-group" id="list-tab" role="tablist">
<a class="list-group-item list-group-item-action active" id="list-dash-list" data-
toggle="list" href="#list-dash" role="tab" aria-controls="home">Dashboard</a>
<a class="list-group-item list-group-item-action" id="list-home-list" data-
toggle="list" href="#list-home" role="tab" aria-controls="home">Book Appointment</a>
<a class="list-group-item list-group-item-action" href="#app-hist" id="list-pat-
list" role="tab" data-toggle="list" aria-controls="home">Appointment History</a>
<a class="list-group-item list-group-item-action" href="#list-pres" id="list-pres-
list" role="tab" data-toggle="list" aria-controls="home">Prescriptions</a>

</div><br>
</div>
<div class="col-md-8" style="margin-top: 3%;">
<div class="tab-content" id="nav-tabContent" style="width: 950px;">

<div class="tab-pane fade show active" id="list-dash" role="tabpanel" aria-


labelledby="list-dash-list">
<div class="container-fluid container-fullw bg-white" >
<div class="row">
<div class="col-sm-4" style="left: 5%">
<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>
<h4 class="StepTitle" style="margin-top: 5%;"> Book My
Appointment</h4>
<script>
function clickDiv(id) {
document.querySelector(id).click();
}
</script>
<p class="links cl-effect-1">
<a href="#list-home" onclick="clickDiv('#list-home-list')">
Book Appointment
</a>
</p>
</div>
</div>
</div>

36
E-HOSPITAL SERVICES

<div class="col-sm-4" style="left: 10%">


<div class="panel panel-white no-radius text-center">
<div class="panel-body" >
<span class="fa-stack fa-2x"> <i class="fa fa-square fa-stack-2x
text-primary"></i> <i class="fa fa-paperclip fa-stack-1x fa-inverse"></i> </span>
<h4 class="StepTitle" style="margin-top: 5%;">My Appointments</h2>

<p class="cl-effect-1">
<a href="#app-hist" onclick="clickDiv('#list-pat-list')">
View Appointment History
</a>
</p>
</div>
</div>
</div>
</div>

<div class="col-sm-4" style="left: 20%;margin-top:5%">


<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-list-ul fa-stack-1x fa-inverse"></i> </span>
<h4 class="StepTitle" style="margin-top: 5%;">Prescriptions</h2>

<p class="cl-effect-1">
<a href="#list-pres" onclick="clickDiv('#list-pres-list')">
View Prescription List
</a>
</p>
</div>
</div>
</div>

</div>
</div>

<div class="tab-pane fade" id="list-home" role="tabpanel" aria-labelledby="list-


home-list">
<div class="container-fluid">
<div class="card">
<div class="card-body">
<center><h4>Create an appointment</h4></center><br>
<form class="form-group" method="post" action="admin-panel.php">
<div class="row">

37
E-HOSPITAL SERVICES

<!-- <?php

$con=mysqli_connect("localhost","root","","myhmsdb");
$query=mysqli_query($con,"select username,spec from doctb");
$docarray = array();
while($row =mysqli_fetch_assoc($query))
{
$docarray[] = $row;
}
echo json_encode($docarray);

?> -->

<div class="col-md-4">
<label for="spec">Specialization:</label>
</div>
<div class="col-md-8">
<select name="spec" class="form-control" id="spec">
<option value="" disabled selected>Select
Specialization</option>
<?php
display_specs();
?>
</select>
</div>

<br><br>

<script>
document.getElementById('spec').onchange = function foo() {
let spec = this.value;
console.log(spec)
let docs = [...document.getElementById('doctor').options];

docs.forEach((el, ind, arr)=>{


arr[ind].setAttribute("style","");
if (el.getAttribute("data-spec") != spec ) {
arr[ind].setAttribute("style","display: none");
}
});
};

</script>

<div class="col-md-4"><label for="doctor">Doctors:</label></div>


<div class="col-md-8">
<select name="doctor" class="form-control" id="doctor"
required="required">
<option value="" disabled selected>Select Doctor</option>
38
E-HOSPITAL SERVICES

<?php display_docs(); ?>


</select>
</div><br/><br/>

<script>
document.getElementById('doctor').onchange = function updateFees(e) {
var selection =
document.querySelector(`[value=${this.value}]`).getAttribute('data-value');
document.getElementById('docFees').value = selection;
};
</script>

<!-- <div class="col-md-4"><label


for="doctor">Doctors:</label></div>
<div class="col-md-8">
<select name="doctor" class="form-control"
id="doctor1" required="required">
<option value="" disabled selected>Select
Doctor</option>

</select>
</div>
<br><br> -->

<!-- <script>
document.getElementById("spec").onchange = function
updateSpecs(event) {
var selected = document.querySelector(`[data-
value=${this.value}]`).getAttribute("value");
console.log(selected);

var options =
document.getElementById("doctor1").querySelectorAll("option");

for (i = 0; i < options.length; i++) {


var currentOption = options[i];
var category = options[i].getAttribute("data-
spec");

if (category == selected) {
currentOption.style.display = "block";
} else {
currentOption.style.display = "none";
}
39
E-HOSPITAL SERVICES

}
}
</script> -->

<!-- <script>
let data =

document.getElementById('spec').onchange = function updateSpecs(e) {


let values = data.filter(obj => obj.spec == this.value).map(o =>
o.username);
document.getElementById('doctor1').value =
document.querySelector(`[value=${values}]`).getAttribute('data-value');
};
</script> -->

<div class="col-md-4"><label for="consultancyfees">


Consultancy Fees
</label></div>
<div class="col-md-8">
<!-- <div id="docFees">Select a doctor</div> -->
<input class="form-control" type="text" name="docFees"
id="docFees" readonly="readonly"/>
</div><br><br>

<div class="col-md-4"><label>Appointment Date</label></div>


<div class="col-md-8"><input type="date" class="form-control datepicker"
name="appdate"></div><br><br>

<div class="col-md-4"><label>Appointment Time</label></div>


<div class="col-md-8">
<!-- <input type="time" class="form-control" name="apptime"> -->
<select name="apptime" class="form-control" id="apptime"
required="required">
<option value="" disabled selected>Select Time</option>
<option value="08:00:00">8:00 AM</option>
<option value="10:00:00">10:00 AM</option>
<option value="12:00:00">12:00 PM</option>
<option value="14:00:00">2:00 PM</option>
<option value="16:00:00">4:00 PM</option>
</select>

</div><br><br>

<div class="col-md-4">
<input type="submit" name="app-submit" value="Create new entry"
class="btn btn-primary" id="inputbtn">
</div>
40
E-HOSPITAL SERVICES

<div class="col-md-8"></div>
</div>
</form>
</div>
</div>
</div><br>
</div>

<div class="tab-pane fade" id="app-hist" role="tabpanel" aria-labelledby="list-pat-list">

<table class="table table-hover">


<thead>
<tr>

<th scope="col">Doctor Name</th>


<th scope="col">Consultancy Fees</th>
<th scope="col">Appointment Date</th>
<th scope="col">Appointment Time</th>
<th scope="col">Current Status</th>
<th scope="col">Action</th>
</tr>
</thead>
<tbody>
<?php

$con=mysqli_connect("localhost","root","","myhmsdb");
global $con;

$query = "select
ID,doctor,docFees,appdate,apptime,userStatus,doctorStatus from appointmenttb where fname
='$fname' and lname='$lname';";
$result = mysqli_query($con,$query);
while ($row = mysqli_fetch_array($result)){

#$fname = $row['fname'];
#$lname = $row['lname'];
#$email = $row['email'];
#$contact = $row['contact'];
?>
<tr>
<td><?php echo $row['doctor'];?></td>
<td><?php echo $row['docFees'];?></td>
<td><?php echo $row['appdate'];?></td>
<td><?php echo $row['apptime'];?></td>

<td>
<?php if(($row['userStatus']==1) && ($row['doctorStatus']==1))
{
echo "Active";
}
41
E-HOSPITAL SERVICES

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


{
echo "Cancelled by You";
}

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


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

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

<a href="admin-panel.php?ID=<?php echo


$row['ID']?>&cancel=update"
onClick="return confirm('Are you sure you want to cancel
this appointment ?')"
title="Cancel Appointment" tooltip-placement="top"
tooltip="Remove"><button class="btn btn-danger">Cancel</button></a>
<?php } else {

echo "Cancelled";
} ?>

</td>
</tr>
<?php } ?>
</tbody>
</table>
<br>
</div>

<div class="tab-pane fade" id="list-pres" role="tabpanel" aria-labelledby="list-


pres-list">

<table class="table table-hover">


<thead>
<tr>

<th scope="col">Doctor Name</th>


<th scope="col">Appointment ID</th>
<th scope="col">Appointment Date</th>
<th scope="col">Appointment Time</th>
<th scope="col">Diseases</th>
<th scope="col">Allergies</th>
42
E-HOSPITAL SERVICES

<th scope="col">Prescriptions</th>
<th scope="col">Bill Payment</th>
</tr>
</thead>
<tbody>
<?php

$con=mysqli_connect("localhost","root","","myhmsdb");
global $con;

$query = "select
doctor,ID,appdate,apptime,disease,allergy,prescription from prestb where pid='$pid';";

$result = mysqli_query($con,$query);
if(!$result){
echo mysqli_error($con);
}

while ($row = mysqli_fetch_array($result)){


?>
<tr>
<td><?php echo $row['doctor'];?></td>
<td><?php echo $row['ID'];?></td>
<td><?php echo $row['appdate'];?></td>
<td><?php echo $row['apptime'];?></td>
<td><?php echo $row['disease'];?></td>
<td><?php echo $row['allergy'];?></td>
<td><?php echo $row['prescription'];?></td>
<td>
<form method="get">
<!-- <a href="admin-panel.php?ID="
onClick=""
title="Pay Bill" tooltip-placement="top"
tooltip="Remove"><button class="btn btn-success">Pay</button>
</a></td> -->

<a href="admin-panel.php?ID=<?php echo $row['ID']?>">


<input type ="hidden" name="ID" value="<?php echo
$row['ID']?>"/>
<input type = "submit" onclick="alert('Bill Paid
Successfully');" name ="generate_bill" class = "btn btn-success" value="Pay Bill"/>
</a>
</td>
</form>

</tr>
<?php }
?>
43
E-HOSPITAL SERVICES

</tbody>
</table>
<br>
</div>

<div class="tab-pane fade" id="list-messages" role="tabpanel" aria-labelledby="list-


messages-list">...</div>
<div class="tab-pane fade" id="list-settings" role="tabpanel" aria-labelledby="list-
settings-list">
<form class="form-group" method="post" action="func.php">
<label>Doctors name: </label>
<input type="text" name="name" placeholder="Enter doctors name" class="form-
control">
<br>
<input type="submit" name="doc_sub" value="Add Doctor" class="btn btn-primary">
</form>
</div>
<div class="tab-pane fade" id="list-attend" role="tabpanel" aria-labelledby="list-
attend-list">...</div>
</div>
</div>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-
KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js"
integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"
integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/limonte-
sweetalert2/6.10.1/sweetalert2.all.min.js">
</script>

</body>
</html>

44
E-HOSPITAL SERVICES
5.6. DOCTOR,S “LOGGED IN” PANEL :

<!DOCTYPE html>
<?php
include('func1.php');
$con=mysqli_connect("localhost","root","","myhmsdb");
$doctor = $_SESSION['dname'];
if(isset($_GET['cancel']))
{
$query=mysqli_query($con,"update appointmenttb set doctorStatus='0' where ID =
'".$_GET['ID']."'");
if($query)
{
echo "<script>alert('Your appointment successfully cancelled');</script>";
}
}

// if(isset($_GET['prescribe'])){

// $pid = $_GET['pid'];
// $ID = $_GET['ID'];
// $appdate = $_GET['appdate'];
// $apptime = $_GET['apptime'];
// $disease = $_GET['disease'];
// $allergy = $_GET['allergy'];
// $prescription = $_GET['prescription'];
// $query=mysqli_query($con,"insert into
prestb(doctor,pid,ID,appdate,apptime,disease,allergy,prescription) values
('$doctor',$pid,$ID,'$appdate','$apptime','$disease','$allergy','$prescription');");
// if($query)
// {
// echo "<script>alert('Prescribed successfully!');</script>";
// }
// else{
// echo "<script>alert('Unable to process your request. Try again!');</script>";
// }
// }

?>
<html lang="en">
<head>

<!-- Required meta tags -->


<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" type="text/css" href="font-awesome-4.7.0/css/font-
awesome.min.css">
45
E-HOSPITAL SERVICES

<link rel="stylesheet" href="style.css">


<!-- Bootstrap CSS -->
<link rel="stylesheet" href="vendor/fontawesome/css/font-awesome.min.css">
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.png" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-
beta/css/bootstrap.min.css" integrity="sha384-
/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">

<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous">

<link href="https://fonts.googleapis.com/css?family=IBM+Plex+Sans&display=swap"
rel="stylesheet">
<nav class="navbar navbar-expand-lg navbar-dark bg-primary fixed-top">
<a class="navbar-brand" href="#"><i class="fa fa-user-plus" aria-hidden="true"></i>
Global Hospital </a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-
target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-
expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

<style >
.btn-outline-light:hover{
color: #25bef7;
background-color: #f8f9fa;
border-color: #f8f9fa;
}
</style>

<style >
.bg-primary {
background: -webkit-linear-gradient(left, #3931af, #00c6ff);
}
.list-group-item.active {
z-index: 2;
color: #fff;
background-color: #342ac1;
border-color: #007bff;
}
.text-primary {
color: #342ac1!important;
}
</style>

<div class="collapse navbar-collapse" id="navbarSupportedContent">


<ul class="navbar-nav mr-auto">
<li class="nav-item">
46
E-HOSPITAL SERVICES

<a class="nav-link" href="logout1.php"><i class="fa fa-sign-out" aria-


hidden="true"></i>Logout</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#"></a>
</li>
</ul>
<form class="form-inline my-2 my-lg-0" method="post" action="search.php">
<input class="form-control mr-sm-2" type="text" placeholder="Enter contact number"
aria-label="Search" name="contact">
<input type="submit" class="btn btn-outline-light" id="inputbtn"
name="search_submit" value="Search">
</form>
</div>
</nav>
</head>
<style type="text/css">
button:hover{cursor:pointer;}
#inputbtn:hover{cursor:pointer;}
</style>
<body style="padding-top:50px;">
<div class="container-fluid" style="margin-top:50px;">
<h3 style = "margin-left: 40%; padding-bottom: 20px;font-family:'IBM Plex Sans', sans-
serif;"> Welcome &nbsp<?php echo $_SESSION['dname'] ?> </h3>
<div class="row">
<div class="col-md-4" style="max-width:18%;margin-top: 3%;">
<div class="list-group" id="list-tab" role="tablist">
<a class="list-group-item list-group-item-action active" href="#list-dash"
role="tab" aria-controls="home" data-toggle="list">Dashboard</a>
<a class="list-group-item list-group-item-action" href="#list-app" id="list-app-
list" role="tab" data-toggle="list" aria-controls="home">Appointments</a>
<a class="list-group-item list-group-item-action" href="#list-pres" id="list-pres-
list" role="tab" data-toggle="list" aria-controls="home"> Prescription List</a>

</div><br>
</div>
<div class="col-md-8" style="margin-top: 3%;">
<div class="tab-content" id="nav-tabContent" style="width: 950px;">
<div class="tab-pane fade show active" id="list-dash" role="tabpanel" aria-
labelledby="list-dash-list">

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


<div class="row">

<div class="col-sm-4" style="left: 10%">


<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-list fa-stack-1x fa-inverse"></i> </span>

47
E-HOSPITAL SERVICES

<h4 class="StepTitle" style="margin-top: 5%;"> View


Appointments</h4>
<script>
function clickDiv(id) {
document.querySelector(id).click();
}
</script>
<p class="links cl-effect-1">
<a href="#list-app" onclick="clickDiv('#list-app-list')">
Appointment List
</a>
</p>
</div>
</div>
</div>

<div class="col-sm-4" style="left: 15%">


<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-list-ul fa-stack-1x fa-inverse"></i> </span>
<h4 class="StepTitle" style="margin-top: 5%;"> Prescriptions</h4>

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


<a href="#list-pres" onclick="clickDiv('#list-pres-list')">
Prescription List
</a>
</p>
</div>
</div>
</div>

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

<div class="tab-pane fade" id="list-app" role="tabpanel" aria-labelledby="list-home-


list">

<table class="table table-hover">


<thead>
<tr>
<th scope="col">Patient ID</th>
<th scope="col">Appointment ID</th>
<th scope="col">First Name</th>
<th scope="col">Last Name</th>
<th scope="col">Gender</th>
<th scope="col">Email</th>
<th scope="col">Contact</th>
48
E-HOSPITAL SERVICES

<th scope="col">Appointment Date</th>


<th scope="col">Appointment Time</th>
<th scope="col">Current Status</th>
<th scope="col">Action</th>
<th scope="col">Prescribe</th>

</tr>
</thead>
<tbody>
<?php
$con=mysqli_connect("localhost","root","","myhmsdb");
global $con;
$dname = $_SESSION['dname'];
$query = "select
pid,ID,fname,lname,gender,email,contact,appdate,apptime,userStatus,doctorStatus from
appointmenttb where doctor='$dname';";
$result = mysqli_query($con,$query);
while ($row = mysqli_fetch_array($result)){
?>
<tr>
<td><?php echo $row['pid'];?></td>
<td><?php echo $row['ID'];?></td>
<td><?php echo $row['fname'];?></td>
<td><?php echo $row['lname'];?></td>
<td><?php echo $row['gender'];?></td>
<td><?php echo $row['email'];?></td>
<td><?php echo $row['contact'];?></td>
<td><?php echo $row['appdate'];?></td>
<td><?php echo $row['apptime'];?></td>
<td>
<?php if(($row['userStatus']==1) && ($row['doctorStatus']==1))
{
echo "Active";
}
if(($row['userStatus']==0) && ($row['doctorStatus']==1))
{
echo "Cancelled by Patient";
}

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


{
echo "Cancelled by You";
}
?></td>

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

49
E-HOSPITAL SERVICES

<a href="doctor-panel.php?ID=<?php echo


$row['ID']?>&cancel=update"
onClick="return confirm('Are you sure you want to cancel
this appointment ?')"
title="Cancel Appointment" tooltip-placement="top"
tooltip="Remove"><button class="btn btn-danger">Cancel</button></a>
<?php } else {

echo "Cancelled";
} ?>

</td>

<td>

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


{ ?>

<a href="prescribe.php?pid=<?php echo $row['pid']?>&ID=<?php echo


$row['ID']?>&fname=<?php echo $row['fname']?>&lname=<?php echo
$row['lname']?>&appdate=<?php echo $row['appdate']?>&apptime=<?php echo $row['apptime']?>"
tooltip-placement="top" tooltip="Remove" title="prescribe">
<button class="btn btn-success">Prescibe</button></a>
<?php } else {

echo "-";
} ?>

</td>

</tr></a>
<?php } ?>
</tbody>
</table>
<br>
</div>

<div class="tab-pane fade" id="list-pres" role="tabpanel" aria-labelledby="list-


pres-list">
<table class="table table-hover">
<thead>
<tr>

<th scope="col">Patient ID</th>

<th scope="col">First Name</th>


<th scope="col">Last Name</th>
50
E-HOSPITAL SERVICES

<th scope="col">Appointment ID</th>


<th scope="col">Appointment Date</th>
<th scope="col">Appointment Time</th>
<th scope="col">Disease</th>
<th scope="col">Allergy</th>
<th scope="col">Prescribe</th>
</tr>
</thead>
<tbody>
<?php

$con=mysqli_connect("localhost","root","","myhmsdb");
global $con;

$query = "select
pid,fname,lname,ID,appdate,apptime,disease,allergy,prescription from prestb where
doctor='$doctor';";

$result = mysqli_query($con,$query);
if(!$result){
echo mysqli_error($con);
}

while ($row = mysqli_fetch_array($result)){


?>
<tr>
<td><?php echo $row['pid'];?></td>
<td><?php echo $row['fname'];?></td>
<td><?php echo $row['lname'];?></td>
<td><?php echo $row['ID'];?></td>

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


<td><?php echo $row['apptime'];?></td>
<td><?php echo $row['disease'];?></td>
<td><?php echo $row['allergy'];?></td>
<td><?php echo $row['prescription'];?></td>

</tr>
<?php }
?>
</tbody>
</table>
</div>

<div class="tab-pane fade" id="list-app" role="tabpanel" aria-labelledby="list-pat-


list">
51
E-HOSPITAL SERVICES

<table class="table table-hover">


<thead>
<tr>
<th scope="col">First Name</th>
<th scope="col">Last Name</th>
<th scope="col">Email</th>
<th scope="col">Contact</th>
<th scope="col">Doctor Name</th>
<th scope="col">Consultancy Fees</th>
<th scope="col">Appointment Date</th>
<th scope="col">Appointment Time</th>
</tr>
</thead>
<tbody>
<?php

$con=mysqli_connect("localhost","root","","myhmsdb");
global $con;

$query = "select * from appointmenttb;";


$result = mysqli_query($con,$query);
while ($row = mysqli_fetch_array($result)){

#$fname = $row['fname'];
#$lname = $row['lname'];
#$email = $row['email'];
#$contact = $row['contact'];
?>
<tr>
<td><?php echo $row['fname'];?></td>
<td><?php echo $row['lname'];?></td>
<td><?php echo $row['email'];?></td>
<td><?php echo $row['contact'];?></td>
<td><?php echo $row['doctor'];?></td>
<td><?php echo $row['docFees'];?></td>
<td><?php echo $row['appdate'];?></td>
<td><?php echo $row['apptime'];?></td>
</tr>
<?php } ?>
</tbody>
</table>
<br>
</div>

52
E-HOSPITAL SERVICES

<div class="tab-pane fade" id="list-messages" role="tabpanel" aria-labelledby="list-


messages-list">...</div>
<div class="tab-pane fade" id="list-settings" role="tabpanel" aria-labelledby="list-
settings-list">
<form class="form-group" method="post" action="admin-panel1.php">
<div class="row">
<div class="col-md-4"><label>Doctor Name:</label></div>
<div class="col-md-8"><input type="text" class="form-control"
name="doctor" required></div><br><br>
<div class="col-md-4"><label>Password:</label></div>
<div class="col-md-8"><input type="password" class="form-control"
name="dpassword" required></div><br><br>
<div class="col-md-4"><label>Email ID:</label></div>
<div class="col-md-8"><input type="email" class="form-control"
name="demail" required></div><br><br>
<div class="col-md-4"><label>Consultancy Fees:</label></div>
<div class="col-md-8"><input type="text" class="form-control"
name="docFees" required></div><br><br>
</div>
<input type="submit" name="docsub" value="Add Doctor" class="btn btn-primary">
</form>
</div>
<div class="tab-pane fade" id="list-attend" role="tabpanel" aria-labelledby="list-
attend-list">...</div>
</div>
</div>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-
KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js"
integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"
integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/limonte-
sweetalert2/6.10.1/sweetalert2.all.min.js"></script>
</body>
</html>

53
E-HOSPITAL SERVICES
5.7. RECEPTIONIST’S ‘LOGGED IN” PANEL :

<!DOCTYPE html>
<?php
$con=mysqli_connect("localhost","root","","myhmsdb");

include('newfunc.php');

if(isset($_POST['docsub']))
{
$doctor=$_POST['doctor'];
$dpassword=$_POST['dpassword'];
$demail=$_POST['demail'];
$spec=$_POST['special'];
$docFees=$_POST['docFees'];
$query="insert into
doctb(username,password,email,spec,docFees)values('$doctor','$dpassword','$demail','$spec'
,'$docFees')";
$result=mysqli_query($con,$query);
if($result)
{
echo "<script>alert('Doctor added successfully!');</script>";
}
}

if(isset($_POST['docsub1']))
{
$demail=$_POST['demail'];
$query="delete from doctb where email='$demail';";
$result=mysqli_query($con,$query);
if($result)
{
echo "<script>alert('Doctor removed successfully!');</script>";
}
else{
echo "<script>alert('Unable to delete!');</script>";
}
}

?>
<html lang="en">
<head>

<!-- Required meta tags -->


<meta charset="utf-8">

54
E-HOSPITAL SERVICES

<link rel="shortcut icon" type="image/x-icon" href="images/favicon.png" />


<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" type="text/css" href="font-awesome-4.7.0/css/font-
awesome.min.css">
<link rel="stylesheet" href="style.css">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="vendor/fontawesome/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/css?family=IBM+Plex+Sans&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-
beta/css/bootstrap.min.css" integrity="sha384-
/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
<nav class="navbar navbar-expand-lg navbar-dark bg-primary fixed-top">

<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous">
<a class="navbar-brand" href="#"><i class="fa fa-user-plus" aria-hidden="true"></i>
Global Hospital </a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-
target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-
expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

<script >
var check = function() {
if (document.getElementById('dpassword').value ==
document.getElementById('cdpassword').value) {
document.getElementById('message').style.color = '#5dd05d';
document.getElementById('message').innerHTML = 'Matched';
} else {
document.getElementById('message').style.color = '#f55252';
document.getElementById('message').innerHTML = 'Not Matching';
}
}

function alphaOnly(event) {
var key = event.keyCode;
return ((key >= 65 && key <= 90) || key == 8 || key == 32);
};
</script>

<style >
.bg-primary {
background: -webkit-linear-gradient(left, #3931af, #00c6ff);
}

.col-md-4{
55
E-HOSPITAL SERVICES

max-width:20% !important;
}

.list-group-item.active {
z-index: 2;
color: #fff;
background-color: #342ac1;
border-color: #007bff;
}
.text-primary {
color: #342ac1!important;
}

#cpass {
display: -webkit-box;
}

#list-app{
font-size:15px;
}

.btn-primary{
background-color: #3c50c1;
border-color: #3c50c1;
}
</style>

<div class="collapse navbar-collapse" id="navbarSupportedContent">


<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="logout1.php"><i class="fa fa-sign-out" aria-
hidden="true"></i>Logout</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#"></a>
</li>
</ul>
</div>
</nav>
</head>
<style type="text/css">
button:hover{cursor:pointer;}
#inputbtn:hover{cursor:pointer;}
</style>
<body style="padding-top:50px;">
<div class="container-fluid" style="margin-top:50px;">
<h3 style = "margin-left: 40%; padding-bottom: 20px;font-family: 'IBM Plex Sans',
sans-serif;"> WELCOME RECEPTIONIST </h3>
<div class="row">
<div class="col-md-4" style="max-width:25%;margin-top: 3%;">
56
E-HOSPITAL SERVICES

<div class="list-group" id="list-tab" role="tablist">


<a class="list-group-item list-group-item-action active" id="list-dash-list" data-
toggle="list" href="#list-dash" role="tab" aria-controls="home">Dashboard</a>
<a class="list-group-item list-group-item-action" href="#list-doc" id="list-doc-
list" role="tab" aria-controls="home" data-toggle="list">Doctor List</a>
<a class="list-group-item list-group-item-action" href="#list-pat" id="list-pat-
list" role="tab" data-toggle="list" aria-controls="home">Patient List</a>
<a class="list-group-item list-group-item-action" href="#list-app" id="list-app-
list" role="tab" data-toggle="list" aria-controls="home">Appointment Details</a>
<a class="list-group-item list-group-item-action" href="#list-pres" id="list-pres-
list" role="tab" data-toggle="list" aria-controls="home">Prescription List</a>
<a class="list-group-item list-group-item-action" href="#list-settings" id="list-
adoc-list" role="tab" data-toggle="list" aria-controls="home">Add Doctor</a>
<a class="list-group-item list-group-item-action" href="#list-settings1" id="list-
ddoc-list" role="tab" data-toggle="list" aria-controls="home">Delete Doctor</a>
<a class="list-group-item list-group-item-action" href="#list-mes" id="list-mes-
list" role="tab" data-toggle="list" aria-controls="home">Queries</a>

</div><br>
</div>
<div class="col-md-8" style="margin-top: 3%;">
<div class="tab-content" id="nav-tabContent" style="width: 950px;">

<div class="tab-pane fade show active" id="list-dash" role="tabpanel" aria-


labelledby="list-dash-list">
<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-users fa-stack-1x fa-inverse"></i> </span>
<h4 class="StepTitle" style="margin-top: 5%;">Doctor List</h4>
<script>
function clickDiv(id) {
document.querySelector(id).click();
}
</script>
<p class="links cl-effect-1">
<a href="#list-doc" onclick="clickDiv('#list-doc-list')">
View Doctors
</a>
</p>
</div>
</div>
</div>

<div class="col-sm-4" style="left: -3%">


57
E-HOSPITAL SERVICES

<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>
<h4 class="StepTitle" style="margin-top: 5%;">Patient List</h4>

<p class="cl-effect-1">
<a href="#app-hist" onclick="clickDiv('#list-pat-list')">
View Patients
</a>
</p>
</div>
</div>
</div>

<div class="col-sm-4">
<div class="panel panel-white no-radius text-center">
<div class="panel-body" >
<span class="fa-stack fa-2x"> <i class="fa fa-square fa-stack-2x
text-primary"></i> <i class="fa fa-paperclip fa-stack-1x fa-inverse"></i> </span>
<h4 class="StepTitle" style="margin-top: 5%;">Appointment
Details</h4>

<p class="cl-effect-1">
<a href="#app-hist" onclick="clickDiv('#list-app-list')">
View Appointments
</a>
</p>
</div>
</div>
</div>
</div>

<div class="row">
<div class="col-sm-4" style="left: 13%;margin-top: 5%;">
<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-list-ul fa-stack-1x fa-inverse"></i> </span>
<h4 class="StepTitle" style="margin-top: 5%;">Prescription List</h4>

<p class="cl-effect-1">
<a href="#list-pres" onclick="clickDiv('#list-pres-list')">
View Prescriptions
</a>
</p>
</div>
</div>
</div>
58
E-HOSPITAL SERVICES

<div class="col-sm-4" style="left: 18%;margin-top: 5%">


<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-plus fa-stack-1x fa-inverse"></i> </span>
<h4 class="StepTitle" style="margin-top: 5%;">Manage Doctors</h4>

<p class="cl-effect-1">
<a href="#app-hist" onclick="clickDiv('#list-adoc-list')">Add
Doctors</a>
&nbsp|
<a href="#app-hist" onclick="clickDiv('#list-ddoc-list')">
Delete Doctors
</a>
</p>
</div>
</div>
</div>
</div>

</div>
</div>

<div class="tab-pane fade" id="list-doc" role="tabpanel" aria-labelledby="list-home-


list">

<div class="col-md-8">
<form class="form-group" action="doctorsearch.php" method="post">
<div class="row">
<div class="col-md-10"><input type="text" name="doctor_contact" placeholder="Enter
Email ID" class = "form-control"></div>
<div class="col-md-2"><input type="submit" name="doctor_search_submit" class="btn
btn-primary" value="Search"></div></div>
</form>
</div>
<table class="table table-hover">
59
E-HOSPITAL SERVICES

<thead>
<tr>
<th scope="col">Doctor Name</th>
<th scope="col">Specialization</th>
<th scope="col">Email</th>
<th scope="col">Password</th>
<th scope="col">Fees</th>
</tr>
</thead>
<tbody>
<?php
$con=mysqli_connect("localhost","root","","myhmsdb");
global $con;
$query = "select * from doctb";
$result = mysqli_query($con,$query);
while ($row = mysqli_fetch_array($result)){
$username = $row['username'];
$spec = $row['spec'];
$email = $row['email'];
$password = $row['password'];
$docFees = $row['docFees'];

echo "<tr>
<td>$username</td>
<td>$spec</td>
<td>$email</td>
<td>$password</td>
<td>$docFees</td>
</tr>";
}

?>
</tbody>
</table>
<br>
</div>

<div class="tab-pane fade" id="list-pat" role="tabpanel" aria-labelledby="list-pat-


list">

<div class="col-md-8">
<form class="form-group" action="patientsearch.php" method="post">
<div class="row">
<div class="col-md-10"><input type="text" name="patient_contact"
placeholder="Enter Contact" class = "form-control"></div>
<div class="col-md-2"><input type="submit" name="patient_search_submit" class="btn
btn-primary" value="Search"></div></div>
</form>
</div>
60
E-HOSPITAL SERVICES

<table class="table table-hover">


<thead>
<tr>
<th scope="col">Patient ID</th>
<th scope="col">First Name</th>
<th scope="col">Last Name</th>
<th scope="col">Gender</th>
<th scope="col">Email</th>
<th scope="col">Contact</th>
<th scope="col">Password</th>
</tr>
</thead>
<tbody>
<?php
$con=mysqli_connect("localhost","root","","myhmsdb");
global $con;
$query = "select * from patreg";
$result = mysqli_query($con,$query);
while ($row = mysqli_fetch_array($result)){
$pid = $row['pid'];
$fname = $row['fname'];
$lname = $row['lname'];
$gender = $row['gender'];
$email = $row['email'];
$contact = $row['contact'];
$password = $row['password'];

echo "<tr>
<td>$pid</td>
<td>$fname</td>
<td>$lname</td>
<td>$gender</td>
<td>$email</td>
<td>$contact</td>
<td>$password</td>
</tr>";
}

?>
</tbody>
</table>
<br>
</div>

<div class="tab-pane fade" id="list-pres" role="tabpanel" aria-labelledby="list-


pres-list">

<div class="col-md-8">
61
E-HOSPITAL SERVICES

<div class="row">

<table class="table table-hover">


<thead>
<tr>
<th scope="col">Doctor</th>
<th scope="col">Patient ID</th>
<th scope="col">Appointment ID</th>
<th scope="col">First Name</th>
<th scope="col">Last Name</th>
<th scope="col">Appointment Date</th>
<th scope="col">Appointment Time</th>
<th scope="col">Disease</th>
<th scope="col">Allergy</th>
<th scope="col">Prescription</th>
</tr>
</thead>
<tbody>
<?php
$con=mysqli_connect("localhost","root","","myhmsdb");
global $con;
$query = "select * from prestb";
$result = mysqli_query($con,$query);
while ($row = mysqli_fetch_array($result)){
$doctor = $row['doctor'];
$pid = $row['pid'];
$ID = $row['ID'];
$fname = $row['fname'];
$lname = $row['lname'];
$appdate = $row['appdate'];
$apptime = $row['apptime'];
$disease = $row['disease'];
$allergy = $row['allergy'];
$pres = $row['prescription'];

echo "<tr>
<td>$doctor</td>
<td>$pid</td>
<td>$ID</td>
<td>$fname</td>
<td>$lname</td>
<td>$appdate</td>
<td>$apptime</td>
<td>$disease</td>
<td>$allergy</td>
<td>$pres</td>
62
E-HOSPITAL SERVICES

</tr>";
}

?>
</tbody>
</table>
<br>
</div>
</div>
</div>

<div class="tab-pane fade" id="list-app" role="tabpanel" aria-labelledby="list-pat-


list">

<div class="col-md-8">
<form class="form-group" action="appsearch.php" method="post">
<div class="row">
<div class="col-md-10"><input type="text" name="app_contact" placeholder="Enter
Contact" class = "form-control"></div>
<div class="col-md-2"><input type="submit" name="app_search_submit" class="btn
btn-primary" value="Search"></div></div>
</form>
</div>

<table class="table table-hover">


<thead>
<tr>
<th scope="col">Appointment ID</th>
<th scope="col">Patient ID</th>
<th scope="col">First Name</th>
<th scope="col">Last Name</th>
<th scope="col">Gender</th>
<th scope="col">Email</th>
<th scope="col">Contact</th>
<th scope="col">Doctor Name</th>
<th scope="col">Consultancy Fees</th>
<th scope="col">Appointment Date</th>
<th scope="col">Appointment Time</th>
<th scope="col">Appointment Status</th>
</tr>
</thead>
<tbody>
<?php

$con=mysqli_connect("localhost","root","","myhmsdb");
global $con;

63
E-HOSPITAL SERVICES

$query = "select * from appointmenttb;";


$result = mysqli_query($con,$query);
while ($row = mysqli_fetch_array($result)){
?>
<tr>
<td><?php echo $row['ID'];?></td>
<td><?php echo $row['pid'];?></td>
<td><?php echo $row['fname'];?></td>
<td><?php echo $row['lname'];?></td>
<td><?php echo $row['gender'];?></td>
<td><?php echo $row['email'];?></td>
<td><?php echo $row['contact'];?></td>
<td><?php echo $row['doctor'];?></td>
<td><?php echo $row['docFees'];?></td>
<td><?php echo $row['appdate'];?></td>
<td><?php echo $row['apptime'];?></td>
<td>
<?php if(($row['userStatus']==1) && ($row['doctorStatus']==1))
{
echo "Active";
}
if(($row['userStatus']==0) && ($row['doctorStatus']==1))
{
echo "Cancelled by Patient";
}

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


{
echo "Cancelled by Doctor";
}
?></td>
</tr>
<?php } ?>
</tbody>
</table>
<br>
</div>

<div class="tab-pane fade" id="list-messages" role="tabpanel" aria-labelledby="list-


messages-list">...</div>

<div class="tab-pane fade" id="list-settings" role="tabpanel" aria-labelledby="list-


settings-list">
<form class="form-group" method="post" action="admin-panel1.php">
<div class="row">
<div class="col-md-4"><label>Doctor Name:</label></div>
<div class="col-md-8"><input type="text" class="form-control"
name="doctor" onkeydown="return alphaOnly(event);" required></div><br><br>
<div class="col-md-4"><label>Specialization:</label></div>
<div class="col-md-8">
64
E-HOSPITAL SERVICES

<select name="special" class="form-control" id="special"


required="required">
<option value="head" name="spec" disabled selected>Select
Specialization</option>
<option value="General" name="spec">General</option>
<option value="Cardiologist" name="spec">Cardiologist</option>
<option value="Neurologist" name="spec">Neurologist</option>
<option value="Pediatrician" name="spec">Pediatrician</option>
</select>
</div><br><br>
<div class="col-md-4"><label>Email ID:</label></div>
<div class="col-md-8"><input type="email" class="form-control"
name="demail" required></div><br><br>
<div class="col-md-4"><label>Password:</label></div>
<div class="col-md-8"><input type="password" class="form-control"
onkeyup='check();' name="dpassword" id="dpassword" required></div><br><br>
<div class="col-md-4"><label>Confirm Password:</label></div>
<div class="col-md-8" id='cpass'><input type="password" class="form-
control" onkeyup='check();' name="cdpassword" id="cdpassword" required>&nbsp &nbsp<span
id='message'></span> </div><br><br>

<div class="col-md-4"><label>Consultancy Fees:</label></div>


<div class="col-md-8"><input type="text" class="form-control"
name="docFees" required></div><br><br>
</div>
<input type="submit" name="docsub" value="Add Doctor" class="btn btn-primary">
</form>
</div>

<div class="tab-pane fade" id="list-settings1" role="tabpanel" aria-


labelledby="list-settings1-list">
<form class="form-group" method="post" action="admin-panel1.php">
<div class="row">

<div class="col-md-4"><label>Email ID:</label></div>


<div class="col-md-8"><input type="email" class="form-control"
name="demail" required></div><br><br>

</div>
<input type="submit" name="docsub1" value="Delete Doctor" class="btn btn-
primary" onclick="confirm('do you really want to delete?')">
</form>
</div>

<div class="tab-pane fade" id="list-attend" role="tabpanel" aria-labelledby="list-


attend-list">...</div>

65
E-HOSPITAL SERVICES

<div class="tab-pane fade" id="list-mes" role="tabpanel" aria-labelledby="list-mes-


list">

<div class="col-md-8">
<form class="form-group" action="messearch.php" method="post">
<div class="row">
<div class="col-md-10"><input type="text" name="mes_contact" placeholder="Enter
Contact" class = "form-control"></div>
<div class="col-md-2"><input type="submit" name="mes_search_submit" class="btn
btn-primary" value="Search"></div></div>
</form>
</div>

<table class="table table-hover">


<thead>
<tr>
<th scope="col">User Name</th>
<th scope="col">Email</th>
<th scope="col">Contact</th>
<th scope="col">Message</th>
</tr>
</thead>
<tbody>
<?php

$con=mysqli_connect("localhost","root","","myhmsdb");
global $con;

$query = "select * from contact;";


$result = mysqli_query($con,$query);
while ($row = mysqli_fetch_array($result)){

#$fname = $row['fname'];
#$lname = $row['lname'];
#$email = $row['email'];
#$contact = $row['contact'];
?>
<tr>
<td><?php echo $row['name'];?></td>
<td><?php echo $row['email'];?></td>
<td><?php echo $row['contact'];?></td>
<td><?php echo $row['message'];?></td>
</tr>
<?php } ?>
</tbody>
</table>
<br>
</div>

66
E-HOSPITAL SERVICES

</div>
</div>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-
KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js"
integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"
integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/limonte-
sweetalert2/6.10.1/sweetalert2.all.min.js"></script>
</body>
</html>

5.8.1. ERROR MESSEGE (1) :

<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<!-- Bootstrap CSS -->


<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-
beta/css/bootstrap.min.css" integrity="sha384-
/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
<style >
.btn:hover{
color: #0076d4;
background-color: #f8f9fa;
border-color: #f8f9fa;
}
</style>
</head>
<body style="background: -webkit-linear-gradient(left, #3931af,
#00c6ff);color:white;padding-top:100px;text-align:center;">
<h3>Invalid Email-Id or Password!<br>Please try again.</h3><br><br>
<a href="index1.php" class="btn btn-outline-light">Try Again</a>
67
E-HOSPITAL SERVICES

<!-- Optional JavaScript -->


<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-
KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js"
integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"
integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
</body>
</html>

5.8.2. ERROR MESSAGE (2) :

<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<!-- Bootstrap CSS -->


<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-
beta/css/bootstrap.min.css" integrity="sha384-
/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
<style >
.btn:hover{
color: #0076d4;
background-color: #f8f9fa;
border-color: #f8f9fa;
}
</style>
</head>
<body style="background: -webkit-linear-gradient(left, #3931af,
#00c6ff);color:white;padding-top:100px;text-align:center;">
<h3>Confirm Password doesn't match Password!<br>Please try again.</h3><br><br>
<a href="index.php" class="btn btn-outline-light">Try Again</a>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-
KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js"

68
E-HOSPITAL SERVICES

integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"
integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
</body>
</html>

5.8.3. ERROR MESSAGE (3) :

<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<!-- Bootstrap CSS -->


<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-
beta/css/bootstrap.min.css" integrity="sha384-
/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
<style >
.btn:hover{
color: #0076d4;
background-color: #f8f9fa;
border-color: #f8f9fa;
}
</style>
</head>
<body style="background: -webkit-linear-gradient(left, #3931af,
#00c6ff);color:white;padding-top:100px;text-align:center;">
<h3>Invalid Username or Password!<br>Please try again.</h3><br><br>
<a href="index.php" class="btn btn-outline-light">Try Again</a>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-
KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js"
integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"
integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
</body>
</html>

69
E-HOSPITAL SERVICES
5.9. SQL CODE :

-- phpMyAdmin SQL Dump


-- version 4.8.0
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Mar 16, 2020 at 02:34 AM
-- Server version: 10.1.31-MariaDB
-- PHP Version: 7.2.4

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";


SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;


/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `myhmsdb`
--

-- --------------------------------------------------------

--
-- Table structure for table `admintb`
--

CREATE TABLE `admintb` (


`username` varchar(50) NOT NULL,
`password` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `admintb`
--

INSERT INTO `admintb` (`username`, `password`) VALUES


('admin', 'admin123');

-- --------------------------------------------------------

--
-- Table structure for table `appointmenttb`
--
70
E-HOSPITAL SERVICES

CREATE TABLE `appointmenttb` (


`pid` int(11) NOT NULL,
`ID` int(11) NOT NULL,
`fname` varchar(20) NOT NULL,
`lname` varchar(20) NOT NULL,
`gender` varchar(10) NOT NULL,
`email` varchar(30) NOT NULL,
`contact` varchar(10) NOT NULL,
`doctor` varchar(30) NOT NULL,
`docFees` int(5) NOT NULL,
`appdate` date NOT NULL,
`apptime` time NOT NULL,
`userStatus` int(5) NOT NULL,
`doctorStatus` int(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `appointmenttb`
--

INSERT INTO `appointmenttb` (`pid`, `ID`, `fname`, `lname`, `gender`, `email`, `contact`,
`doctor`, `docFees`, `appdate`, `apptime`, `userStatus`, `doctorStatus`) VALUES
(4, 1, 'Kishan', 'Lal', 'Male', 'kishansmart0@gmail.com', '8838489464', 'Ganesh', 550,
'2020-02-14', '10:00:00', 1, 0),
(4, 2, 'Kishan', 'Lal', 'Male', 'kishansmart0@gmail.com', '8838489464', 'Dinesh', 700,
'2020-02-28', '10:00:00', 0, 1),
(4, 3, 'Kishan', 'Lal', 'Male', 'kishansmart0@gmail.com', '8838489464', 'Amit', 1000,
'2020-02-19', '03:00:00', 0, 1),
(11, 4, 'Shraddha', 'Kapoor', 'Female', 'shraddha@gmail.com', '9768946252', 'ashok', 500,
'2020-02-29', '20:00:00', 1, 1),
(4, 5, 'Kishan', 'Lal', 'Male', 'kishansmart0@gmail.com', '8838489464', 'Dinesh', 700,
'2020-02-28', '12:00:00', 1, 1),
(4, 6, 'Kishan', 'Lal', 'Male', 'kishansmart0@gmail.com', '8838489464', 'Ganesh', 550,
'2020-02-26', '15:00:00', 0, 1),
(2, 8, 'Alia', 'Bhatt', 'Female', 'alia@gmail.com', '8976897689', 'Ganesh', 550, '2020-03-
21', '10:00:00', 1, 1),
(5, 9, 'Gautam', 'Shankararam', 'Male', 'gautam@gmail.com', '9070897653', 'Ganesh', 550,
'2020-03-19', '20:00:00', 1, 0),
(4, 10, 'Kishan', 'Lal', 'Male', 'kishansmart0@gmail.com', '8838489464', 'Ganesh', 550,
'0000-00-00', '14:00:00', 1, 0),
(4, 11, 'Kishan', 'Lal', 'Male', 'kishansmart0@gmail.com', '8838489464', 'Dinesh', 700,
'2020-03-27', '15:00:00', 1, 1),
(9, 12, 'William', 'Blake', 'Male', 'william@gmail.com', '8683619153', 'Kumar', 800,
'2020-03-26', '12:00:00', 1, 1),
(9, 13, 'William', 'Blake', 'Male', 'william@gmail.com', '8683619153', 'Tiwary', 450,
'2020-03-26', '14:00:00', 1, 1);

-- --------------------------------------------------------

71
E-HOSPITAL SERVICES

--
-- Table structure for table `contact`
--

CREATE TABLE `contact` (


`name` varchar(30) NOT NULL,
`email` text NOT NULL,
`contact` varchar(10) NOT NULL,
`message` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `contact`
--

INSERT INTO `contact` (`name`, `email`, `contact`, `message`) VALUES


('Anu', 'anu@gmail.com', '7896677554', 'Hey Admin'),
(' Viki', 'viki@gmail.com', '9899778865', 'Good Job, Pal'),
('Ananya', 'ananya@gmail.com', '9997888879', 'How can I reach you?'),
('Aakash', 'aakash@gmail.com', '8788979967', 'Love your site'),
('Mani', 'mani@gmail.com', '8977768978', 'Want some coffee?'),
('Karthick', 'karthi@gmail.com', '9898989898', 'Good service'),
('Abbis', 'abbis@gmail.com', '8979776868', 'Love your service'),
('Asiq', 'asiq@gmail.com', '9087897564', 'Love your service. Thank you!'),
('Jane', 'jane@gmail.com', '7869869757', 'I love your service!');

-- --------------------------------------------------------

--
-- Table structure for table `doctb`
--

CREATE TABLE `doctb` (


`username` varchar(50) NOT NULL,
`password` varchar(50) NOT NULL,
`email` varchar(50) NOT NULL,
`spec` varchar(50) NOT NULL,
`docFees` int(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `doctb`
--

INSERT INTO `doctb` (`username`, `password`, `email`, `spec`, `docFees`) VALUES


('ashok', 'ashok123', 'ashok@gmail.com', 'General', 500),
('arun', 'arun123', 'arun@gmail.com', 'Cardiologist', 600),
('Dinesh', 'dinesh123', 'dinesh@gmail.com', 'General', 700),
('Ganesh', 'ganesh123', 'ganesh@gmail.com', 'Pediatrician', 550),
('Kumar', 'kumar123', 'kumar@gmail.com', 'Pediatrician', 800),
72
E-HOSPITAL SERVICES

('Amit', 'amit123', 'amit@gmail.com', 'Cardiologist', 1000),


('Abbis', 'abbis123', 'abbis@gmail.com', 'Neurologist', 1500),
('Tiwary', 'tiwary123', 'tiwary@gmail.com', 'Pediatrician', 450);

-- --------------------------------------------------------

--
-- Table structure for table `patreg`
--

CREATE TABLE `patreg` (


`pid` int(11) NOT NULL,
`fname` varchar(20) NOT NULL,
`lname` varchar(20) NOT NULL,
`gender` varchar(10) NOT NULL,
`email` varchar(30) NOT NULL,
`contact` varchar(10) NOT NULL,
`password` varchar(30) NOT NULL,
`cpassword` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `patreg`
--

INSERT INTO `patreg` (`pid`, `fname`, `lname`, `gender`, `email`, `contact`, `password`,
`cpassword`) VALUES
(1, 'Ram', 'Kumar', 'Male', 'ram@gmail.com', '9876543210', 'ram123', 'ram123'),
(2, 'Alia', 'Bhatt', 'Female', 'alia@gmail.com', '8976897689', 'alia123', 'alia123'),
(3, 'Shahrukh', 'khan', 'Male', 'shahrukh@gmail.com', '8976898463', 'shahrukh123',
'shahrukh123'),
(4, 'Kishan', 'Lal', 'Male', 'kishansmart0@gmail.com', '8838489464', 'kishan123',
'kishan123'),
(5, 'Gautam', 'Shankararam', 'Male', 'gautam@gmail.com', '9070897653', 'gautam123',
'gautam123'),
(6, 'Sushant', 'Singh', 'Male', 'sushant@gmail.com', '9059986865', 'sushant123',
'sushant123'),
(7, 'Nancy', 'Deborah', 'Female', 'nancy@gmail.com', '9128972454', 'nancy123',
'nancy123'),
(8, 'Kenny', 'Sebastian', 'Male', 'kenny@gmail.com', '9809879868', 'kenny123',
'kenny123'),
(9, 'William', 'Blake', 'Male', 'william@gmail.com', '8683619153', 'william123',
'william123'),
(10, 'Peter', 'Norvig', 'Male', 'peter@gmail.com', '9609362815', 'peter123', 'peter123'),
(11, 'Shraddha', 'Kapoor', 'Female', 'shraddha@gmail.com', '9768946252', 'shraddha123',
'shraddha123');

-- --------------------------------------------------------

--
73
E-HOSPITAL SERVICES

-- Table structure for table `prestb`


--

CREATE TABLE `prestb` (


`doctor` varchar(50) NOT NULL,
`pid` int(11) NOT NULL,
`ID` int(11) NOT NULL,
`fname` varchar(50) NOT NULL,
`lname` varchar(50) NOT NULL,
`appdate` date NOT NULL,
`apptime` time NOT NULL,
`disease` varchar(250) NOT NULL,
`allergy` varchar(250) NOT NULL,
`prescription` varchar(1000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `prestb`
--

INSERT INTO `prestb` (`doctor`, `pid`, `ID`, `fname`, `lname`, `appdate`, `apptime`,
`disease`, `allergy`, `prescription`) VALUES
('Dinesh', 4, 11, 'Kishan', 'Lal', '2020-03-27', '15:00:00', 'Cough', 'Nothing', 'Just
take a teaspoon of Benadryl every night'),
('Ganesh', 2, 8, 'Alia', 'Bhatt', '2020-03-21', '10:00:00', 'Severe Fever', 'Nothing',
'Take bed rest'),
('Kumar', 9, 12, 'William', 'Blake', '2020-03-26', '12:00:00', 'Sever fever', 'nothing',
'Paracetamol -> 1 every morning and night'),
('Tiwary', 9, 13, 'William', 'Blake', '2020-03-26', '14:00:00', 'Cough', 'Skin dryness',
'Intake fruits with more water content');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `appointmenttb`
--
ALTER TABLE `appointmenttb`
ADD PRIMARY KEY (`ID`);

--
-- Indexes for table `patreg`
--
ALTER TABLE `patreg`
ADD PRIMARY KEY (`pid`);

--
-- AUTO_INCREMENT for dumped tables
--
74
E-HOSPITAL SERVICES

--
-- AUTO_INCREMENT for table `appointmenttb`
--
ALTER TABLE `appointmenttb`
MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;

--
-- AUTO_INCREMENT for table `patreg`
--
ALTER TABLE `patreg`
MODIFY `pid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;


/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

5.10. LOGOUT CODE :

<?php
session_start();
session_destroy();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<!-- Bootstrap CSS -->


<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-
beta/css/bootstrap.min.css" integrity="sha384-
/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">

<style >
.btn-outline-light:hover {
color: #0076d4;
background-color: #f8f9fa;
border-color: #f8f9fa;
}
</style>
</head>
<body style="background: -webkit-linear-gradient(left, #3931af,
#00c6ff);color:white;padding-top:100px;text-align:center;">
<h3>You have logged out.</h3><br><br>
75
E-HOSPITAL SERVICES

<a href="index1.php" class="btn btn-outline-light">Back to Login Page</a>


<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-
KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js"
integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"
integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
</body>
</html>

5.11. SEARCH BAR CODE :

<?php
session_start();
$con=mysqli_connect("localhost","root","","myhmsdb");
if(isset($_POST['search_submit'])){
$contact=$_POST['contact'];
$docname = $_SESSION['dname'];
$query="select * from appointmenttb where contact='$contact' and doctor='$docname';";
$result=mysqli_query($con,$query);
echo '<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<!-- Bootstrap CSS -->


<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-
beta/css/bootstrap.min.css" integrity="sha384-
/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
</head>
<body style="background-color:#342ac1;color:white;text-align:center;padding-top:50px;">
<div class="container" style="text-align:left;">
<center><h3>Search Results</h3></center><br>
<table class="table table-hover">
<thead>
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>Email</th>
<th>Contact</th>
76
E-HOSPITAL SERVICES

<th>Appointment Date</th>
<th>Appointment Time</th>
</tr>
</thead>
<tbody>
';
while($row=mysqli_fetch_array($result)){
$fname=$row['fname'];
$lname=$row['lname'];
$email=$row['email'];
$contact=$row['contact'];
$appdate=$row['appdate'];
$apptime=$row['apptime'];
echo '<tr>
<td>'.$fname.'</td>
<td>'.$lname.'</td>
<td>'.$email.'</td>
<td>'.$contact.'</td>
<td>'.$appdate.'</td>
<td>'.$apptime.'</td>
</tr>';
}
echo '</tbody></table></div>
<div><a href="doctor-panel.php" class="btn btn-light">Go Back</a></div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-
KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js"
integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"
integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
</body>
</html>';
}

?>

77
E-HOSPITAL SERVICES
6. OUTPUT :

HOME PAGE :

PATIENT LOGIN PAGE :

78
E-HOSPITAL SERVICES
PATIENT APPOINTMENT PAGE :

79
E-HOSPITAL SERVICES

DOCTOR’S LOGIN :

LOGIN PAGE:

80
E-HOSPITAL SERVICES

81
E-HOSPITAL SERVICES

ADMIN’S LOGIN :

82
E-HOSPITAL SERVICES

83
E-HOSPITAL SERVICES

84
E-HOSPITAL SERVICES

85
E-HOSPITAL SERVICES

86
E-HOSPITAL SERVICES
7. CONCLUSION :

Since we are entering details of the patients electronically in the” EHospital Service”, data will be secured.
Using this website we can retrieve patient’s history with a single click.Thus processing information will be
faster.
It guarantees accurate maintenance of Patient details. It easily reduces the book keeping task and thus
reduces the human effort and increases accuracy speed.

87
E-HOSPITAL SERVICES
8. REFERENCES :

1. PHP MySQL Website Programming: Problem - Design – Solution byChris Lea, Mike Buzzard, Dilip
Thomas , Jessey White-Cinis
2. Beginning PHP5, Apache, and MySQL Web Development (Programmer to Programmer) by Elizabeth
Naramore

3. MySQL/PHP Database Applications, 2nd Edition by Brad Bulger

4. How to Do Everything with PHP and MySQL by Vikram Vaswani.


5. www.w3school.com
6. www.tutorialspoint.com
7. www.geeksforgeeks.com
8. www.javatpoint.com
9. www.wikipedia.com
10. www.youtube.com

88

You might also like