Download as pdf or txt
Download as pdf or txt
You are on page 1of 69

Technocrats Institute of Technology - Excellence

(Deptt. Of Computer Applications)

(RAJIV GANDHI PROUDOYOUGIKI VISHVIDHYALAYA)


BHOPAL (M.P.)

MAJOR PROJECT REPORTON


“Online Cure&Care”
SUBMITTED FOR PARTIAL FULLFILMENTOF THE REQUIREMENT
FOR

MASTER OF COMPUTER APPLICATIONS

Jan to Jun - 2022

SUBMITTED TO-: SUBMITTED BY-:

Prof. R.P. Gupta ASHISH JHODE


HOD-MCA (0191CA201009)
Technocrats Institute of Technology- Excellence
(Deptt. Of MCA)

CERTIFICATE

THIS IS TO CERTIFY THAT THE PROJECT WORK ENTITLED “ Online Cure&Care ” HAS
BEEN SUCCESSFULLY CARRIED OUT BY ASHISH JHODE (0191CA201009)

THIS PROJECT IS A RESULT OF THEIR CONTINUOUS HARD WORK AND DETERMINATION.


THEIR PERFORMANCE HAS BEEN GOOD AND WE WISH THEM GOOD LUCK FOR THEIR
FUTURE.

Internal Examiner External Examiner


ACKNOWLEDGEMENT

It is a great feeling that I am presenting my first real life venture in practical computing in the form of
project work. I wish to take this opportunity to express my heartily thanks to all those who really
helped me in completing my project work but also a sense of enlightenment and grandeur by the
learning process and knowledge that I came across during the whole span of this project work.

I would like also express my sincere regards to Prof. R. P. Gupta (HOD, MCA) and my faculties
who give me moral support that is most beneficial at the moment when I worked at my Major
project.

I would like to express my sincere regard to Prof.Rohit khare who gave me chance of selection of
my project and also for his constant encouragement and timely suggestion during all academic
sessions, his support and encouragement during all the academic years.

I am great thankful to all staff members for their constant and generous help and kind co -
operation and valuable suggestion during the project work.

I am sure that this project has given me an edge, a firm grounding and has prepared me to take new
challenging jobs in future.

ASHISH JHODE
(0191CA201009)
DECLARATION

I hereby declare that the work being presented in the project report. “Online cure&care”
in partial fulfillment of the requirement of the degree of Master of Computer Application is
authentic record of my own work carried out under the kind guidance of Prof. Rohit Khare.

This is to certify that the above information, which is furnished by me, is correct to best of my
knowledge.

ASHISH JHODE
(0191CA201009)
Contents

S. No. Topic Page No.

Certificate (i)
Declaration (ii)
Acknowledgement (iii)

1 . Introduction

Objective of proposed system


Details of project
Need of the system

2. Technology & Methodology used

Implement Methodology
Implement Technology
H/W and S/W Requirement
Back End and Front End

3. Design & Implementation

System Design
Flow Chart
Data Flow Diagram
E-R Diagram
Snap shots
UML Diagram

4. Conclusion

Advantages
Limitation
Future Scope

5. Bibliography
TIT-MCA -2022 Online cure&care

INTRODUCTION

Objective of proposed system

 system will overcome the drawbacks of existing system.


Existing system is manual and available appointment
applications are not user friendly. Proposed system is
computerized and user friendly. The proposed system
has many advantages. MERITS OF PROPOSED
SYSTEM The use of proposed system will avoid the
problems of the existing system and we also get a new
system for managing information under the Online Cure
&Care. The proposed system offers:

 Manual work which is time consuming can be reduced.


 Easy to store data in the database.
 Administrator can add/remove new doctors, patients &
departments.
 Increase processing speed.
 An easily access environment for users.
 Doctors can view/cancel appointments.
TIT-MCA- 2022 Online cure&care

 Doctors can send prescription.


 Automatic removal of past appointments.
 Easy to use real time search facility.
 Responsive layout that fits all devices.
 Improved security

Details of project

The main objective is to develop a PHP based web application


named “Online Cure&Care” that covers all the aspects of making
appointment of doctors. It enables healthcare providers to improve
operational effectiveness, reduce costs, reduce medical errors,
reduce time consumption and enhance delivery of quality of care.
This system help reduce the problems occur when using the
manual system and helps patients to skip endless queues. The
important thing is it will become easier for the data record and
retrieval. This software also stores all the patient details, patients
profile, prescriptions etc. This system enables doctors and clinic
assistant to manage patient records and appointments. User can
enter their details, update their profile and they can select doctors
to make appointments. Other than that, the system is user friendly
TIT-MCA- 2022 Online cure&care

and it can help the clinic to manage their appointments. The


system helps to avoid making duplicate appointments. Users can
view available doctors and their timings and can make
appointments according to it. Users also get an option to cancel
their appointments. Users can view their upcoming appointments
and past appointments are deleted automatically. The system also
allows doctors to log in. Doctors can edit their profile and view
their upcoming appointments, patients etc. They can even send
prescriptions to their patients by selecting their patients from the
dropdown list. The system also has an administrator section,
where only a single person can manage the whole system.
Administrator can add/remove patients, doctors and departments
and search for appointments. The system features a very intuitive
and responsive design that fits devices of all screen size
(Smartphones, PCs, Tablets, and Notebooks etc.). The application
automatically adapts its layout to match user’s screen size.

Need of the system

A online cure & care system help to efficiently communicate,with


the support of technologies.
The project online cure&care has been developed to help the
department maintaining the patients details,earlier the
TIT-MCA- 2022 Online cure&care

recordswhere maintained manually,with the help of this package


the concerned departments will be able to improve the
productivity,reduce the time,cost factors associated with the
system.

The automation of the system will help the organization in


proper maintenance of the record,less manpower,less man –
days,less cost ,proper & accurate functioning.
TIT-MCA- 2022 Online cure&care

Technology & Methodology

Implement Methodology

Model View Controller or MVC as it is popularly called, is a software design pattern


for developing web applications. A Model View Controller pattern is made up of the
following three parts:

 Model - The lowest level of the pattern which is responsible for maintaining data.

 View - This is responsible for displaying all or a portion of the data to the user.

 Controller - Software Code that controls the interactions between the Model and
View.

MVC is popular as it isolates the application logic from the user interface layer
and supports separation of concerns. Here the Controller receives all requests for
the application and then works with the Model to prepare any data needed by the
View. The View then uses the data prepared by the Controller to generate a final
presentable response. The MVC abstraction can be graphically represented as
follows.
TIT-MCA- 2022 Online cure&care

Implement Technology

• HTML: Page layout has been designed in HTML

• CSS: CSS has been used for all the desigining part JavaScript : All the validation task and
animations has been developed by JavaScript

• PHP : All the business and frontend logic has been implemented in PHP MySQL : MYSQL
database has been used as database for the project Apache2: Project will be run over the
Apache2 server

• You can run this project on XAMPP, LAMP, WAMP or MAMP


TIT-MCA- 2022 Online cure&care

H/W and S/W Requirement

Hardware Requirement

Processor An Intel based i3+

System bus 64 bits

RAM 2GB+

HDD 120GB

Keyboard 108Keys

Mouse 2 button mouse

Software Requirement
OS Windows 10,11

Environment Notepad++ Runtime Environment

Front End HTML,CSS,JAVASCRIPT

Back End PhpMyAdmin,PHP,MYSQL


TIT-MCA- 2022 Online cure&care

Back End Front End

Index.php

<?php include 'header.php';?>


<!-- Bnr Header -->
<section class="main-banner">
<div class="tp-banner-container">
<div class="tp-banner">
<ul>
<!-- SLIDE -->
<li data-transition="random" data-slotamount="7" data-masterspeed="300" data-saveperformance="off" >
<!-- MAIN IMAGE -->
<imgsrc="images/slider-bg-1.jpg" alt="slider" data-bgposition=" centercenter" data-bgfit="cover" data-
bgrepeat="no-repeat">
<!-- LAYER NR. 1 -->
<div class="tp-caption sfltp-resizeme"
data-x="center" data-hoffset="0"
data-y="center" data-voffset="-120"
data-speed="800"
data-start="800"
data-easing="Power3.easeInOut"
data-splitin="chars"
data-splitout="none"
data-elementdelay="0.03"
data-endelementdelay="0.4"
data-endspeed="300"
style="z-index: 5; font-size:50px; font-weight:500; color:#fff; max-width: auto; max-height: auto;
white-space: nowrap;">Care And Cure</div>
<!-- LAYER NR. 2 -->
<div class="tp-caption sfrtp-resizeme"
data-x="center" data-hoffset="0"
data-y="center" data-voffset="-60"
data-speed="800"
data-start="1000"
data-easing="Power3.easeInOut"
data-splitin="chars"
data-splitout="none"
data-elementdelay="0.03"
data-endelementdelay="0.1"
data-endspeed="300"
style="z-index: 6; font-size:40px; color:#fff; font-weight:500; white-space: nowrap;">We care about
your health </div>
<!-- LAYER NR. 3 -->
TIT-MCA- 2022 Online cure&care

<div class="tp-caption sfbtp-resizeme"


data-x="center" data-hoffset="0"
data-y="center" data-voffset="0"
data-speed="800"
data-start="1200"
data-easing="Power3.easeInOut"
data-splitin="none"
data-splitout="none"
data-elementdelay="0.1"
data-endelementdelay="0.1"
data-endspeed="300"
style="z-index: 7; font-size:22px; color:#fff; font-weight:500; max-width: auto; max-height: auto;
white-space: nowrap;">Best Hospitality Services </div>
<!-- LAYER NR. 4 -->
<div class="tp-caption lfbtp-resizeme scroll"
data-x="center" data-hoffset="0"
data-y="center" data-voffset="120"
data-speed="800"
data-start="1300"
data-easing="Power3.easeInOut"
data-elementdelay="0.1"
data-endelementdelay="0.1"
data-endspeed="300"
data-scrolloffset="0"
style="z-index: 8;"></div>
</li>
<!-- SLIDE -->
<li data-transition="random" data-slotamount="7" data-masterspeed="300" data-saveperformance="off" >
<!-- MAIN IMAGE -->
<imgsrc="images/slider-bg-2.jpg" alt="slider" data-bgposition="centercenter" data-bgfit="cover" data-
bgrepeat="no-repeat">
<!-- LAYER NR. 1 -->
<div class="tp-caption sfltp-resizeme"
data-x="left" data-hoffset="400"
data-y="center" data-voffset="-100"
data-speed="800"
data-start="800"
data-easing="Power3.easeInOut"
data-splitin="chars"
data-splitout="none"
data-elementdelay="0.03"
data-endelementdelay="0.4"
data-endspeed="300"
style="z-index: 5; font-size:40px; font-weight:500; color:#000; max-width: auto; max-height: auto;
white-space: nowrap;">Best Online Services
<div class="tp-caption sfrtp-resizeme"
data-x="left" data-hoffset="400"
data-y="center" data-voffset="-40"
data-speed="800"
data-start="800"
TIT-MCA- 2022 Online cure&care

data-easing="Power3.easeInOut"
data-splitin="chars"
data-splitout="none"
data-elementdelay="0.03"
data-endelementdelay="0.4"
data-endspeed="300"
style="z-index: 5; font-size:55px; font-weight:500; color:#000; max-width: auto; max-height: auto;
white-space: nowrap;">Care And Cure</div>
<!-- LAYER NR. 3 -->
<div class="tp-caption sfbtp-resizeme"
data-x="left" data-hoffset="400"
data-y="center" data-voffset="30"
data-speed="800"
data-start="1400"
data-easing="Power3.easeInOut"
data-splitin="none"
data-splitout="none"
data-elementdelay="0.1"
data-endelementdelay="0.1"
data-endspeed="300"
style="z-index: 7; font-size:16px; color:#000; font-weight:500; line-height:26px; max-width: auto;
max-height: auto; white-space: nowrap;">Improved diagnostic performance and heightened satisfaction of
patients <br> and physicians delight.</div>
<!-- LAYER NR. 4 -->
<div class="tp-caption lfbtp-resizeme scroll"
data-x="left" data-hoffset="400"
data-y="center" data-voffset="140"
data-speed="800"
data-start="1600"
data-easing="Power3.easeInOut"
data-elementdelay="0.1"
data-endelementdelay="0.1"
data-endspeed="300"
data-scrolloffset="0"
style="z-index: 8;"><a href="#." class="btn">CONTACT NOW</a></div>
</li>
<!-- SLIDE -->
<li data-transition="random" data-slotamount="7" data-masterspeed="300" data-saveperformance="off" >
<!-- MAIN IMAGE -->
<imgsrc="images/slider-bg-3.jpg" alt="slider" data-bgposition="centercenter" data-bgfit="cover" data-
bgrepeat="no-repeat">
<!-- LAYER NR. 2 -->
<div class="tp-caption sfbtp-resizeme"
data-x="center" data-hoffset="0"
data-y="center" data-voffset="-80"
data-speed="800"
data-start="800"
data-easing="Power3.easeInOut"
data-elementdelay="0.1"
data-endelementdelay="0.1"
TIT-MCA- 2022 Online cure&care

data-endspeed="300"
data-scrolloffset="0"
style="z-index: 6; font-size:40px; color:#000; font-weight:500; white-space: nowrap;"> Welcome To
Our Research Center</div>
<!-- LAYER NR. 3 -->
<div class="tp-caption sfbtp-resizeme text-center"
data-x="center" data-hoffset="0"
data-y="center" data-voffset="-10"
data-speed="800"
data-start="1000"
data-easing="Power3.easeInOut"
data-elementdelay="0.1"
data-endelementdelay="0.1"
data-endspeed="300"
data-scrolloffset="0"
style="z-index: 7; font-size:20px; font-weight:500; line-height:26px; color:#000; max-width: auto;
max-height: auto; white-space: nowrap;">We work in a friendly and efficient using the latest <br>
technologies and sharing our expertise.</div>
</li>
</ul>
</div>
</div>
</section>
<!-- Content -->
<div id="content">
<!-- Intro -->
<section class="p-t-b-150">
<div class="container">
<div class="intro-main">
<div class="row">
<!-- Intro Detail -->
<div class="col-md-8">
<div class="text-sec">
<h5>Health Check Up At Care And Cure</h5>
<p>Besides providing world class clinical lab services, Labaid Diagnostic Centre houses a pool of doctors of
different medical specialty to serve the ailing patients as outpatients. They are all reputed and respected in their
medical specialty for outstanding clinical management</p>
<ul class="row">
<li class="col-sm-6">
<h6><i class="lnrlnr-checkmark-circle"></i> EMERGENCY CASE</h6>
<p>Excepteursintoccaecatcupidatat non roident,
sunt in culpa qui officiadeseruntmollit</p>
</li>
<li class="col-sm-6">
<h6><i class="lnrlnr-checkmark-circle"></i> QUALIFIED DOCTORS</h6>
<p>Excepteursintoccaecatcupidatat non roident,
sunt in culpa qui officiadeseruntmollit</p>
</li>
<li class="col-sm-6">
<h6><i class="lnrlnr-checkmark-circle"></i> ONLINE APPOINTMENT</h6>
TIT-MCA- 2022 Online cure&care

<p>Excepteursintoccaecatcupidatat non roident,


sunt in culpa qui officiadeseruntmollit</p>
</li>
<li class="col-sm-6">
<h6><i class="lnrlnr-checkmark-circle"></i> FREE MEDICAL COUNSELING</h6>
<p>Excepteursintoccaecatcupidatat non roident,
sunt in culpa qui officiadeseruntmollit</p>
</li>
</ul>
</div>
</div>
<!-- Intro Timing -->
<div class="col-md-4">
<div class="timing"><i class="lnrlnr-clock"></i>
<ul>
<li> Monday <span>8.00 - 16.00</span></li>
<li> Tuesday <span>8.00 - 16.00</span></li>
<li> Wednesday <span>8.00 - 16.00</span></li>
<li> Thursday <span>8.00 - 16.00</span></li>
<li> Friday <span>8.00 - 16.00</span></li>
<li> Saturday <span>8.00 - 16.00</span></li>
<li> Sunday <span>8.00 - 16.00</span></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- DOCTOR LIST -->
<section class="p-t-b-150">
<div class="container">
<!-- Heading -->
<div class="heading-block">
<h2>Our Services</h2>
<hr>
<span>Duis autem veleumiriuredolor in hendrerit n vuewlputatevelitessemolestieconseuvel illum dolore
eufeugiatnullafacilisis at vero.</span></div>

<!-- Services -->


<div class="services">
<div class="row">
<!-- Services -->
<div class="col-md-4">
<article>
<div class="media-left"><i class="flaticon-eye-2 icon"></i></div>
<div class="media-body">
<h6>Eye Specialist</h6>
<p>Excepteursintoccaecatcupidatat non proident, sunt in culpa qui officiadeseruntmollit random text.</p>
</div>
TIT-MCA- 2022 Online cure&care

</article>
</div>
<!-- Services -->
<div class="col-md-4">
<article>
<div class="media-left"><i class="flaticon-operating-room icon"></i></div>
<div class="media-body">
<h6>Operation Theater</h6>
<p>Excepteursintoccaecatcupidatat non proident, sunt in culpa qui officiadeseruntmollit random text.</p>
</div>
</article>
</div>
<!-- Services -->
<div class="col-md-4">
<article>
<div class="media-left"><i class="flaticon-icu-monitor icon"></i></div>
<div class="media-body">
<h6>ICU Department</h6>
<p>Excepteursintoccaecatcupidatat non proident, sunt in culpa qui officiadeseruntmollit random text.</p>
</div>
</article>
</div>
<!-- Services -->
<div class="col-md-4">
<article>
<div class="media-left"><i class="flaticon-doctor icon"></i></div>
<div class="media-body">
<h6>Qualified Doctors</h6>
<p>Excepteursintoccaecatcupidatat non proident, sunt in culpa qui officiadeseruntmollit random text.</p>
</div>
</article>
</div>
<!-- Services -->
<div class="col-md-4">
<article>
<div class="media-left"><i class="flaticon-heartbeat icon"></i></div>
<div class="media-body">
<h6>Heart Problems</h6>
<p>Excepteursintoccaecatcupidatat non proident, sunt in culpa qui officiadeseruntmollit random text.</p>
</div>
</article>
</div>
<!-- Services -->
<div class="col-md-4">
<article>
<div class="media-left"><i class="flaticon-stomach-2 icon"></i></div>
<div class="media-body">
<h6>Stomach Problems</h6>
<p>Excepteursintoccaecatcupidatat non proident, sunt in culpa qui officiadeseruntmollit random text.</p>
</div>
TIT-MCA- 2022 Online cure&care

</article>
</div>
</div>
</div>
</div>
</section>
<!-- Departments -->
<section class="p-t-b-150 padding-bottom-0">
<div class="container">
<!-- Heading -->
<div class="heading-block">
<h2>Our Best Departments</h2>
<hr>
<span>Duis autem veleumiriuredolor in hendrerit n vuewlputatevelitessemolestieconseuvel illum dolore
eufeugiatnullafacilisis at vero.</span></div>
</div>
<!-- Department -->
<div class="department">
<div class="container">
<!-- Tab Panel -->
<div role="tabpanel">
<div class="dep-sec-nav">
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<li role="presentation"><a href="#dental" role="tab" data-toggle="tab">Dental</a></li>
<li role="presentation" class="active"><a href="#cardiology" role="tab" data-toggle="tab">Cardiology
</a></li>
<li role="presentation"><a href="#for-disabled" role="tab" data-toggle="tab">For disabled </a></li>
<li role="presentation"><a href="#ophthalmology" role="tab" data-toggle="tab">Ophthalmology </a></li>
<li role="presentation"><a href="#emergency" role="tab" data-toggle="tab"> Emergency </a></li>
</ul>
</div>
<!-- Tab Content -->
<div class="tab-content">
<!-- Dental Depatment -->
<div role="tabpanel" class="tab-pane fade" id="dental">
<!-- Depatment Text Section -->
<div class="dep-sec-txt">
<div class="row">
<div class="col-md-7">
<h5>Our Best <span>Dental</span> Services</h5>
<p> It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially
unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum
passages, <br>
<br>
It has survived not only five centuries, but also the leap into electronic typesetting, remaining
essentially unchanged. It was popularised in the 1960s PageMaker </p>
<!-- List Style Check -->
<ul class="list-style-check">
<li> Qualified Staff of Doctors </li>
TIT-MCA- 2022 Online cure&care

<li> Feel like you are at Home Services </li>


<li> 24x7 Emergency Services </li>
<li> Save your Money and Time with us </li>
<li> Medicine Research </li>
<li> Blood Bank </li>
</ul>
</div>
<!-- Doctor Img -->
<div class="col-md-offset-1 col-md-4">
<div class="doctor-img"><img class="img-responsive" src="images/depart-doctor-img-3.jpg" alt="" >
<div class="name-doc">
<h6>Prof. S. M. MUSTAFA ZAMAN <span>Cardiology Specialists</span></h6>
</div>
</div>
</div>
</div>
</div>
</div>

<!-- Cardiology Depatment -->


<div role="tabpanel" class="tab-pane fade in active" id="cardiology">
<!-- Depatment Text Section -->
<div class="dep-sec-txt">
<div class="row">
<div class="col-md-7">
<h5>Our Best <span>CARDIOLOGY</span> Services</h5>
<p> It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially
unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum
passages, <br>
<br>
It has survived not only five centuries, but also the leap into electronic typesetting, remaining
essentially unchanged. It was popularised in the 1960s PageMaker including versions of Lorem Ipsum. </p>
<!-- List Style Check -->
<ul class="list-style-check">
<li> Qualified Staff of Doctors </li>
<li> Feel like you are at Home Services </li>
<li> 24x7 Emergency Services </li>
<li> Save your Money and Time with us </li>
<li> Medicine Research </li>
<li> Blood Bank </li>
</ul>
</div>
<!-- Doctor Img -->
<div class="col-md-offset-1 col-md-4">
<div class="doctor-img"><img class="img-responsive" src="images/depart-doctor-img-1.jpg" alt="" >
<div class="name-doc">
<h6>Prof. Dr. Rashmi <span>Cardiology Specialists</span></h6>
</div>
</div>
</div>
TIT-MCA- 2022 Online cure&care

</div>
</div>
</div>
<!-- For disabled -->
<div role="tabpanel" class="tab-pane fade" id="for-disabled">
<!-- Depatment Text Section -->
<div class="dep-sec-txt">
<div class="row">
<div class="col-md-7">
<h5>Our Best Services <span>For Disabled</span> Persons </h5>
<p> It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially
unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum
passages, <br>
<br>
It has survived not only five centuries, but also the leap into electronic typesetting, remaining
essentially unchanged. It was popularised in the 1960s PageMaker including versions of Lorem Ipsum. </p>

<!-- List Style Check -->


<ul class="list-style-check">
<li> Qualified Staff of Doctors </li>
<li> Feel like you are at Home Services </li>
<li> 24x7 Emergency Services </li>
<li> Save your Money and Time with us </li>
<li> Medicine Research </li>
<li> Blood Bank </li>
</ul>
</div>
<!-- Doctor Img -->
<div class="col-md-offset-1 col-md-4">
<div class="doctor-img"><img class="img-responsive" src="images/depart-doctor-img-2.jpg" alt="" >
<div class="name-doc">
<h6>Asso. Prof. Dr.RajKumar Yadav<span>Cardiology Specialists</span></h6>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Ophthalmology -->
<div role="tabpanel" class="tab-pane fade" id="ophthalmology">
<!-- Depatment Text Section -->
<div class="dep-sec-txt">
<div class="row">
<div class="col-md-7">
<h5>Our Best <span>Ophthalmology</span> Services</h5>
<p> It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially
unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum
passages, <br>
<br>
TIT-MCA- 2022 Online cure&care

It has survived not only five centuries, but also the leap into electronic typesetting, remaining
essentially unchanged. It was popularised in the 1960s PageMaker including versions of Lorem Ipsum. </p>
<!-- List Style Check -->
<ul class="list-style-check">
<li> Qualified Staff of Doctors </li>
<li> Feel like you are at Home Services </li>
<li> 24x7 Emergency Services </li>
<li> Save your Money and Time with us </li>
<li> Medicine Research </li>
<li> Blood Bank </li>
</ul>
</div>
<!-- Doctor Img -->
<div class="col-md-offset-1 col-md-4">
<div class="doctor-img"><img class="img-responsive" src="images/depart-doctor-img.jpg" alt="" >
<div class="name-doc">
<h6>Mohan Dende<span>Ophthalmology Specialists</span></h6>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- emergency -->
<div role="tabpanel" class="tab-pane fade" id="emergency">
<!-- Depatment Text Section -->
<div class="dep-sec-txt">
<div class="row">
<div class="col-md-7">
<h5>Our Best <span>Emergency</span> Services</h5>
<p> It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially
unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum
passages, <br>
<br>
It has survived not only five centuries, but also the leap into electronic typesetting, remaining
essentially unchanged. It was popularised in the 1960s PageMaker including versions of Lorem Ipsum. </p>

<!-- List Style Check -->


<ul class="list-style-check">
<li> Qualified Staff of Doctors </li>
<li> Feel like you are at Home Services </li>
<li> 24x7 Emergency Services </li>
<li> Save your Money and Time with us </li>
<li> Medicine Research </li>
<li> Blood Bank </li>
</ul>
</div>
<!-- Doctor Img -->
<div class="col-md-offset-1 col-md-4">
<div class="doctor-img"><img class="img-responsive" src="images/depart-doctor-img.jpg" alt="" >
TIT-MCA- 2022 Online cure&care

<div class="name-doc">
<h6>KantiLal Gupta<span>Emergency Specialists</span></h6>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
<!-- Footer -->
<?php include 'footer.php';?>

patientappointment.php

<?php
include("header.php");
include("dbconnection.php");
if(isset($_POST[submit]))
{
if(isset($_SESSION[patientid]))
{
$lastinsid =$_SESSION[patientid];
}
else
{
$dt = date("Y-m-d");
$tim = date("H:i:s");
$sql ="INSERT INTO
patient(patientname,admissiondate,admissiontime,address,city,mobileno,loginid,password,gender,dob,status)
values('$_POST[patiente]','$dt','$tim','$_POST[textarea]','$_POST[city]','$_POST[mobileno]','$_POST[loginid]
','$_POST[password]','$_POST[select6]','$_POST[dob]','Active')";
if($qsql = mysqli_query($con,$sql))
{
/* echo "<script>alert('patient record inserted successfully...');</script>"; */
}
else
{
echo mysqli_error($con);
}
$lastinsid = mysqli_insert_id($con);
}
TIT-MCA- 2022 Online cure&care

$sqlappointment="SELECT * FROM appointment WHERE


appointmentdate='$_POST[appointmentdate]' AND appointmenttime='$_POST[appointmenttime]' AND
doctorid='$_POST[doct]' AND status='Approved'";
$qsqlappointment = mysqli_query($con,$sqlappointment);
if(mysqli_num_rows($qsqlappointment) >= 1)
{
echo "<script>alert('Appointment already scheduled for this time..');</script>";
}
else
{
$sql ="INSERT INTO
appointment(appointmenttype,patientid,appointmentdate,appointmenttime,app_reason,status,departmentid,doct
orid)
values('ONLINE','$lastinsid','$_POST[appointmentdate]','$_POST[appointmenttime]','$_POST[app_reason]','P
ending','$_POST[department]','$_POST[doct]')";
if($qsql = mysqli_query($con,$sql))
{
echo "<script>alert('Appointment record inserted successfully...');</script>";
}
else
{
echo mysqli_error($con);
}
}
}
if(isset($_GET[editid]))
{
$sql="SELECT * FROM appointment WHERE appointmentid='$_GET[editid]' ";
$qsql = mysqli_query($con,$sql);
$rsedit = mysqli_fetch_array($qsql);

}
if(isset($_SESSION[patientid]))
{
$sqlpatient = "SELECT * FROM patient WHERE patientid='$_SESSION[patientid]' ";
$qsqlpatient = mysqli_query($con,$sqlpatient);
$rspatient = mysqli_fetch_array($qsqlpatient);
$readonly = " readonly";
}
?>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div class="wrapper col4">
<div id="container">
<?php
if(isset($_POST[submit]))
{
if(mysqli_num_rows($qsqlappointment) >= 1)
{
echo "<h2>Appointment already scheduled for ". date("d-M-Y", strtotime($_POST[appointmentdate]))
. " " . date("H:i A", strtotime($_POST[appointmenttime])) . " .. </h2>";
TIT-MCA- 2022 Online cure&care

}
else
{
if(isset($_SESSION[patientid]))
{
echo "<h2>Appointment taken successfully.. </h2>";
echo "<p>Appointment record is in pending process. Kinldy check the appointment status. </p>";
echo "<p><a href='viewappointment.php'>View Appointment record</a>. </p>";
}
else
{
echo "<h2>Appointment taken successfully.. </h2>";
echo "<p>Appointment record is in pending process. Please wait for confirmation message.. </p>";
echo "<p><a href='patientlogin.php'>Click here to Login</a>. </p>";
}
}
}
else
{
?>
<!-- Content -->
<div id="content">
<!-- Make an Appointment -->
<section class="main-oppoiment ">
<div class="container">
<div class="row">
<!-- Make an Appointment -->
<div class="col-lg-7">
<div class="appointment">
<!-- Heading -->
<div class="heading-block head-left margin-bottom-50">
<h4>Make an Appointment</h4>
<hr>
</div>
<form method="post" action="" name="frmpatapp" onSubmit="return validateform()"
class="appointment-form">
<ul class="row">
<li class="col-sm-6">
<label>
<input placeholder="patient name" type="text" class="form-control"
name="patiente" id="patiente"
value="<?php echo $rspatient[patientname]; ?>"
<?php echo $readonly; ?>>
<i class="icon-user"></i>
</label>
</li>
<li class="col-sm-6">
<label><input placeholder="address" type="text" class="form-control"
name="textarea" id="textarea"
value="<?php echo $rspatient[address]; ?>"
TIT-MCA- 2022 Online cure&care

<?php echo $readonly; ?>><i class="icon-compass"></i>


</label>
</li>
<li class="col-sm-6">
<label><input placeholder="city" type="text" class="form-control"
name="city" id="city" value="<?php echo $rspatient[city]; ?>"
<?php echo $readonly; ?>><i class="icon-pin"></i>
</label>
</li>
<li class="col-sm-6">
<label>
<input placeholder="mobile number" type="text" class="form-control"
name="mobileno" id="mobileno"
value="<?php echo $rspatient[mobileno]; ?>"
<?php echo $readonly; ?>><i class="icon-phone"></i>
</label>
</li>
<?php
if(!isset($_SESSION[patientid]))
{
?>
<li class="col-sm-6">
<label>
<input placeholder="login id" type="text" class="form-control"
name="loginid" id="loginid"
value="<?php echo $rspatient[loginid]; ?>"
<?php echo $readonly; ?>><i class="icon-login"></i>
</label>
</li>
<li class="col-sm-6">
<label>
<input placeholder="password" type="password" class="form-control"
name="password" id="password"
value="<?php echo $rspatient[password]; ?>"
<?php echo $readonly; ?>><i class="icon-lock"></i>
</label>
</li>
<?php
}
?>
<li class="col-sm-6">
<label>
<?php
if(isset($_SESSION[patientid]))
{
echo $rspatient[gender];
}
else
{
?>
TIT-MCA- 2022 Online cure&care

<select name="select6" id="select6" class="selectpicker">


<option value="" selected="" hidden="">Select Gender</option>
<?php
$arr = array("Male","Female");
foreach($arr as $val)
{
echo "<option value='$val'>$val</option>";
}
?>
</select>
<?php
}
?>
<i class="ion-transgender"></i>
</label>
</li>
<li class="col-sm-6">
<label>
<input placeholder="Date of birth" type="text" class="form-control"
name="dob" id="dob" onfocus="(this.type='date')"
value="<?php echo $rspatient[dob]; ?>" <?php echo $readonly; ?>><i
class="ion-calendar"></i>
</label>
</li>
<li class="col-sm-6">
<label>
<input placeholder="Appointment date" type="text" class="form-control"
min="<?php echo date("Y-m-d"); ?>" name="appointmentdate"
onfocus="(this.type='date')" id="appointmentdate"><i
class="ion-calendar"></i>
</label>
</li>
<li class="col-sm-6">
<label>
<input placeholder="Appointment time" type="text"
onfocus="(this.type='time')" class="form-control"
name="appointmenttime" id="appointmenttime"><i
class="ion-ios-clock"></i>
</label>
</li>
<li class="col-sm-6">
<label>
<select name="department" class="selectpicker" id="department"
>
<option value="">reasion for appointment</option>
<?php
$sqldept = "SELECT * FROM department WHERE status='Active'";
$qsqldept = mysqli_query($con,$sqldept);
while($rsdept = mysqli_fetch_array($qsqldept))
{
TIT-MCA- 2022 Online cure&care

echo "<option value='$rsdept[departmentid]'>$rsdept[departmentname]</option>";


}
?>
</select>
<i class="ion-university"></i>
</label>
</li>
<li class="col-sm-6">
<label>
<select name="doct" class="selectpicker" id="department"
>
<option value="">Select doctor</option>
<?php
$sqldept = "SELECT * FROM doctor WHERE status='Active'";
$qsqldept = mysqli_query($con,$sqldept);
while($rsdept = mysqli_fetch_array($qsqldept))
{
echo "<option value='$rsdept[doctorid]'>$rsdept[doctorname] (";
$sqldept = "SELECT * FROM department WHERE departmentid='$rsdept[departmentid]'";
$qsqldept = mysqli_query($con,$sqldept);
$rsdept = mysqli_fetch_array($qsqldept);
echo $rsdept[departmentname];

echo ")</option>";
}
?>
</select>
<i class="ion-medkit"></i>
</label>
</li>
<li class="col-sm-12">
<label>
<textarea class="form-control" name="app_reason"
placeholder="Appointment reason"></textarea>
</label>
</li>
<li class="col-sm-12">
<button type="submit" class="btn" name="submit" id="submit">make an
appointment</button>
</li>
</form>
</div>
</div>
</div>
</div>
<?php
}
?>
</div>
</div>
TIT-MCA- 2022 Online cure&care

</div>
</section>
</div>
<?php
include("footer.php");
?>
<script type="application/javascript">
var alphaExp = /^[a-zA-Z]+$/; //Variable to validate only alphabets
var alphaspaceExp = /^[a-zA-Z\s]+$/; //Variable to validate only alphabets and space
var numericExpression = /^[0-9]+$/; //Variable to validate only numbers
var alphanumericExp = /^[0-9a-zA-Z]+$/; //Variable to validate numbers and alphabets
var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/; //Variable to validate Email ID
function validateform() {
if (document.frmpatapp.patiente.value == "") {
alert("Patient name should not be empty..");
document.frmpatapp.patiente.focus();
return false;
} else if (!document.frmpatapp.patiente.value.match(alphaspaceExp)) {
alert("Patient name not valid..");
document.frmpatapp.patiente.focus();
return false;
} else if (document.frmpatapp.textarea.value == "") {
alert("Address should not be empty..");
document.frmpatapp.textarea.focus();
return false;
} else if (document.frmpatapp.city.value == "") {
alert("City should not be empty..");
document.frmpatapp.city.focus();
return false;
} else if (!document.frmpatapp.city.value.match(alphaspaceExp)) {
alert("City name not valid..");
document.frmpatapp.city.focus();
return false;
} else if (document.frmpatapp.mobileno.value == "") {
alert("Mobile number should not be empty..");
document.frmpatapp.mobileno.focus();
return false;
} else if (!document.frmpatapp.mobileno.value.match(numericExpression)) {
alert("Mobile number not valid..");
document.frmpatapp.mobileno.focus();
return false;
} else if (document.frmpatapp.loginid.value == "") {
alert("login ID should not be empty..");
document.frmpatapp.loginid.focus();
return false;
} else if (!document.frmpatapp.loginid.value.match(alphanumericExp)) {
alert("login ID not valid..");
document.frmpatapp.loginid.focus();
return false;
} else if (document.frmpatapp.password.value == "") {
TIT-MCA- 2022 Online cure&care

alert("Password should not be empty..");


document.frmpatapp.password.focus();
return false;
} else if (document.frmpatapp.password.value.length< 8) {
alert("Password length should be more than 8 characters...");
document.frmpatapp.password.focus();
return false;
} else if (document.frmpatapp.select6.value == "") {
alert("Gender should not be empty..");
document.frmpatapp.select6.focus();
return false;
} else if (document.frmpatapp.dob.value == "") {
alert("Date Of Birth should not be empty..");
document.frmpatapp.dob.focus();
return false;
} else if (document.frmpatapp.appointmentdate.value == "") {
alert("Appointment date should not be empty..");
document.frmpatapp.appointmentdate.focus();
return false;
} else if (document.frmpatapp.appointmenttime.value == "") {
alert("Appointment time should not be empty..");
document.frmpatapp.appointmenttime.focus();
return false;
} else {
return true;
}
}

function loaddoctor(deptid) {
if (window.XMLHttpRequest) {
// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp = new XMLHttpRequest();
} else {
// code for IE6, IE5
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 &&this.status == 200) {
document.getElementById("divdoc").innerHTML = this.responseText;
}
};
xmlhttp.open("GET", "departmentDoctor.php?deptid=" + deptid, true);
xmlhttp.send();
}
</script>
TIT-MCA- 2022 Online cure&care

about.php

<?php include 'header.php';?>

<!-- Content -->


<div id="content">

<!-- Intro -->


<section class="p-t-b-150">
<div class="container">
<div class="intro-main">
<div class="row">

<!-- Intro Detail -->


<div class="col-md-7">
<div class="text-sec padding-right-0">
<h5>Health Check Up At Care And Cure</h5>
<p>It has survived not only five centuries,
but also the leap into electronic typesetting,
remaining essentially unchanged. It was
popularised in the 1960s with the release of
Letraset sheets containing Lorem Ipsum
passages, and more with desktop publishing
software like Aldus PageMaker including
versions of Lorem Ipsum.</p>
<ul class="row">
<li class="col-sm-6">
<h6> <i class="lnr lnr-checkmark-
circle"></i> EMERGENCY CASE</h6>
<p>Excepteur sint occaecat cupidatat
non roident,
sunt in culpa qui officia deserunt
mollit </p>
</li>
<li class="col-sm-6">
<h6> <i class="lnr lnr-checkmark-
circle"></i> QUALIFIED DOCTORS</h6>
<p>Excepteur sint occaecat cupidatat
non roident,
sunt in culpa qui officia deserunt
mollit </p>
</li>
<li class="col-sm-6">
<h6> <i class="lnr lnr-checkmark-
circle"></i> ONLINE APPOINTMENT</h6>
<p>Excepteur sint occaecat cupidatat
non roident,
sunt in culpa qui officia deserunt
mollit </p>
TIT-MCA- 2022 Online cure&care

</li>
<li class="col-sm-6">
<h6> <i class="lnr lnr-checkmark-
circle"></i> FREE MEDICAL COUNSELING</h6>
<p>Excepteur sint occaecat cupidatat
non roident,
sunt in culpa qui officia deserunt
mollit </p>
</li>
</ul>
</div>
</div>

<!-- Intro Timing -->


<div class="col-md-5"> <img class="img-responsive
intro-img" src="images/intro-img.jpg" alt="">
</div>
</div>
</div>
</div>
</section>

</div>

<!-- Footer -->


<!--======= FOOTER =========-->

<?php include 'footer.php';?>

Contact.php
<?php include 'header.php';?>

<!-- Content -->


<div id="content">

<!-- Contact Us -->


<section class="p-t-b-150">
<!-- CONTACT FORM -->
<div class="container">
<!-- Tittle -->
<div class="heading-block">
<h4>GET IN TOUCH</h4>
<hr>
<span>Online Care& cure clinic</span> </div>
<div class="contact">
<div class="contact-form">
TIT-2022 Online cure&care

<!-- FORM -->


<form role="form" id="contact_form" class="contact-form"
method="post" onSubmit="return false">
<div class="row">
<div class="col-md-6">
<ul class="row">
<li class="col-sm-12">
<label>
<input type="text" class="form-control"
name="name" id="name" placeholder="*Name">
</label>
</li>
<li class="col-sm-12">
<label>
<input type="text" class="form-control"
name="email" id="email" placeholder="*Email">
</label>
</li>
<li class="col-sm-12">
<label>
<input type="text" class="form-control"
name="company" id="company" placeholder="Phone">
</label>
</li>
</ul>
</div>
<div class="col-md-6">
<ul class="row">
<li class="col-sm-12">
<label>
<input type="text" class="form-control"
name="website" id="website" placeholder="Department">
</label>
</li>
<li class="col-sm-12">
<label>
<textarea class="form-control" name="message"
id="message" rows="5" placeholder="*Message"></textarea>
</label>
</li>
<li class="col-sm-12 no-margin">
<button type="submit" value="submit" class="btn"
id="btn_submit" onClick="proceed();">SEND MESSAGE</button>
</li>
</ul>
</div>
</div>
</form>
</div>
</div>
</div>
TIT-MCA- 2022 Online cure&care

</section>

<!-- BOXES -->


<section class="contact-box">
<div class="container">
<div class="row">

<!-- Shop Location -->


<div class="col-md-8">
<div class="boxes-in">
<h6>Company Address</h6>
<ul class="location">
<li> <i class="fa fa-location-arrow"></i>
<p>Tekari,Betul
Mp</p>
</li>
<li> <i class="fa fa-phone"></i>
<p>6265692414</p>
<p>6265692414</p>
</li>
<li> <i class="fa fa-envelope"></i>
<p>ashishghod786@gmail.com</p>
<p>doctor@medical.com</p>
</li>
<li> <i class="fa fa-clock-o"></i>
<p>Mon-Fri: 9AM - 8PM</p>
<p>Sat-Sun: 9AM - 8PM</p>
</li>
</ul>
</div>
</div>

<!-- NEWSLETTER -->


<div class="col-md-4">
<div class="boxes-in">
<h6>NETWORKS</h6>

<!--======= FOOTER ICONS =========-->


<ul class="social_icons">
<li class="facebook"><a href="#."> <i class="fa fa-
facebook"></i></a></li>
<li class="twitter"><a href="#."> <i class="fa fa-
twitter"></i></a></li>
<li class="googleplus"><a href="#."> <i class="fa fa-
google"></i></a></li>
<li class="skype"><a href="#."> <i class="fa fa-
skype"></i></a></li>
<li class="pinterest"><a href="#."> <i class="fa fa-
pinterest"></i></a></li>
<li class="dribbble"><a href="#."> <i class="fa fa-
dribbble"></i></a></li>
TIT-MCA- 2022 Online cure&care

<li class="flickr"><a href="#."> <i class="fa fa-


flickr"></i></a></li>
<li class="behance"><a href="#."> <i class="fa fa-
behance"></i></a></li>
<li class="linkedin"><a href="#."> <i class="fa fa-
linkedin"></i></a></li>
<li class="youtube"><a href="#."> <i class="fa fa-
youtube"></i></a></li>
<li class="instagram"><a href="#."> <i class="fa fa-
instagram"></i></a></li>
<li class="stumbleupon"><a href="#."> <i class="fa fa-
stumbleupon"></i></a></li>
<li class="soundcloud"><a href="#."> <i class="fa fa-
soundcloud"></i></a></li>
</ul>
</div>
</div>
</div>
</div>
</section>

<!-- MAP -->


<section class="map-block margin-top-100">
<div class="map-wrapper" id="map-canvas" data-lat="23.740051" data-
lng="90.371239" data-zoom="13" data-style="1"></div>
<div class="markers-wrapper addresses-block"> <a class="marker"
data-rel="map-canvas" data-lat="23.740051" data-lng="90.371239" data-
string="Medical Hospital"></a> </div>
</section>
</div>

<!-- Footer -->

<?php include 'footer.php';?>

adminlogin.php
<?php
session_start();
?>
<?php
error_reporting(0);
include("dbconnection.php");
$dt = date("Y-m-d");
$tim = date("H:i:s");
?>
<!-- header section -->
<!DOCTYPE html>
<html>
TIT-MCA- 2022 Online cure&care

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<title>:: Care And Cure - Hospital Admin ::</title>
<link href="assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" type="text/css">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<!-- Custom Css -->
<link href="assets/css/main.css" rel="stylesheet">
<link href="assets/css/login.css" rel="stylesheet">
<!-- Swift Themes. You can choose a theme from css/themes instead of get all themes -->
<link href="assets/css/themes/all-themes.css" rel="stylesheet" />
</head>
<body class="theme-cyan login-page authentication">
<!-- header section -->
<?php
if(isset($_SESSION[adminid]))
{
echo "<script>window.location='adminaccount.php';</script>";
}
$err='';
if(isset($_POST[submit]))
{
$sql = "SELECT * FROM admin WHERE loginid='$_POST[loginid]' AND
password='$_POST[password]' AND status='Active'";
$qsql = mysqli_query($con,$sql);
if(mysqli_num_rows($qsql) == 1)
{
$rslogin = mysqli_fetch_array($qsql);
$_SESSION[adminid]= $rslogin[adminid] ;
echo "<script>window.location='adminaccount.php';</script>";
}
else
{
$err = "<div class='alert alert-danger'>
<strong>Oh !</strong> Change a few things up and try submitting again.
</div>";
}
}
?>
<div class="container">
<div id = "err"><?php echo $err;

?></div>
<div class="card-top"></div>
<div class="card">
<h1 class="title"><span>Care And Cure Hospital</span>Login <span class="msg">Sign in to start your
session</span></h1>
<div class="col-md-12">
TIT-MCA- 2022 Online cure&care

<form method="post" action="" name="frmadminlogin" id="sign_in" onSubmit="return validateform()">


<div class="input-group"><span class="input-group-addon"><i class="zmdizmdi-account"></i></span>
<div class="form-line">
<input type="text" name="loginid" id="loginid" class="form-control"
placeholder="Username" /></div>
</div>
<div class="input-group"><span class="input-group-addon"><i class="zmdizmdi-lock"></i></span>
<div class="form-line">
<input type="password" name="password" id="password"
class="form-control" placeholder="Password" /></div>
</div>
<div>
<div class="">
<input type="checkbox" name="rememberme" id="rememberme" class="filled-in chk-col-pink">
<label for="rememberme">Remember Me</label>
</div>
<div class="text-center">
<input type="submit" name="submit" id="submit" value="Login"
class="btnbtn-raised waves-effect g-bg-cyan" /></div>
<div class="text-center"><a href="forgot-password.html">Forgot Password?</a></div>
</div>
</form>
</div>
</div>
</div>
<div class="clear"></div>
<div class="theme-bg"></div>
</div>
</div>
<!-- Jquery Core Js -->
<script src="assets/bundles/libscripts.bundle.js"></script><!-- Lib Scripts Plugin Js -->
<script src="assets/bundles/vendorscripts.bundle.js"></script><!-- Lib Scripts Plugin Js -->
<script src="assets/bundles/mainscripts.bundle.js"></script><!-- Custom Js -->
</body>
</html>
<script type="application/javascript">
var alphaExp = /^[a-zA-Z]+$/; //Variable to validate only alphabets
var alphaspaceExp = /^[a-zA-Z\s]+$/; //Variable to validate only alphabets and space
var numericExpression = /^[0-9]+$/; //Variable to validate only numbers
var alphanumericExp = /^[0-9a-zA-Z]+$/; //Variable to validate numbers and alphabets
var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/; //Variable to validate Email ID
function validateform()
{
if(document.frmadminlogin.loginid.value == "")
{
document.getElementById("err").innerHTML ="<div class='alert alert-info'><strong>Heads
up!</strong> Please enter Password</div>";
document.frmadminlogin.loginid.focus();
return false;
}
TIT-MCA- 2022 Online cure&care

else if(!document.frmadminlogin.loginid.value.match(alphanumericExp))
{
document.getElementById("err").innerHTML ="<div class='alert alert-
Warning'><strong>Heads up!</strong> Invalid Password</div>";
document.frmadminlogin.loginid.focus();
return false;
}
else if(document.frmadminlogin.password.value == "")
{
document.getElementById("err").innerHTML ="<div class='alert alert-info'><strong>Heads
up!</strong> Should not be empty</div>";
document.frmadminlogin.password.focus();
return false;
}
else if(document.frmadminlogin.password.value.length< 8)
{
document.getElementById("err").innerHTML ="<div class='alert alert-info'><strong>Heads
up!</strong> Length should be 8</div>";
document.frmadminlogin.password.focus();
return false;
}
else
{
return true;
}
}
</script>

doctorlogin.php

<?php
session_start();
error_reporting(0);
include("dbconnection.php");
$dt = date("Y-m-d");
$tim = date("H:i:s");
include("dbconnection.php");
if(isset($_SESSION[doctorid]))
{
echo "<script>window.location='doctoraccount.php';</script>";
}
$err='';
if(isset($_POST[submit]))
{
$sql = "SELECT * FROM doctor WHERE loginid='$_POST[loginid]' AND
password='$_POST[password]' AND status='Active'";
$qsql = mysqli_query($con,$sql);
if(mysqli_num_rows($qsql) == 1)
TIT-MCA- 2022 Online cure&care

{
$rslogin = mysqli_fetch_array($qsql);
$_SESSION[doctorid]= $rslogin[doctorid] ;
echo "<script>window.location='doctoraccount.php';</script>";
}
else
{
$err = "<div class='alert alert-danger'>
<strong>Oh !</strong> Change a few things up and try submitting again.
</div>";
}
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<title>:: Care And Cure - Hospital Admin ::</title>
<link href="assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" type="text/css">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<!-- Custom Css -->
<link href="assets/css/main.css" rel="stylesheet">
<link href="assets/css/login.css" rel="stylesheet">
<!-- Swift Themes. You can choose a theme from css/themes instead of get all themes -->
<link href="assets/css/themes/all-themes.css" rel="stylesheet" />
</head>
<body class="theme-cyan login-page authentication">
<!-- header section -->

<div class="container">
<div id = "err"><?php echo $err;
?></div>
<div class="card-top"></div>
<div class="card">
<h1 class="title"><span>Care And Cure Hospital</span>Login <span class="msg">Hello,
Doctor!</span></h1>
<div class="col-md-12">
<form method="post" action="" name="frmadminlogin" id="sign_in" onSubmit="return validateform()">
<div class="input-group"><span class="input-group-addon"><i class="zmdizmdi-account"></i></span>
<div class="form-line">
<input type="text" name="loginid" id="loginid" class="form-control"
placeholder="Username" /></div>
</div>
<div class="input-group"><span class="input-group-addon"><i class="zmdizmdi-lock"></i></span>
<div class="form-line">
TIT-MCA- 2022 Online cure&care

<input type="password" name="password" id="password"


class="form-control" placeholder="Password" /></div>
</div>
<div>
<div class="">
<input type="checkbox" name="rememberme" id="rememberme" class="filled-in chk-col-pink">
<label for="rememberme">Remember Me</label>
</div>
<div class="text-center">
<input type="submit" name="submit" id="submit" value="Login"
class="btnbtn-raised waves-effect g-bg-cyan" /></div>
<div class="text-center"><a href="forgot-password.html">Forgot Password?</a></div>
</div>
</form>
</div>
</div>
</div>
<div class="clear"></div>
<div class="theme-bg"></div>
</div>
</div>
<!-- Jquery Core Js -->
<script src="assets/bundles/libscripts.bundle.js"></script><!-- Lib Scripts Plugin Js -->
<script src="assets/bundles/vendorscripts.bundle.js"></script><!-- Lib Scripts Plugin Js -->

<script src="assets/bundles/mainscripts.bundle.js"></script><!-- Custom Js -->


</body>
</html>
<script type="application/javascript">
var alphaExp = /^[a-zA-Z]+$/; //Variable to validate only alphabets
var alphaspaceExp = /^[a-zA-Z\s]+$/; //Variable to validate only alphabets and space
var numericExpression = /^[0-9]+$/; //Variable to validate only numbers
var alphanumericExp = /^[0-9a-zA-Z]+$/; //Variable to validate numbers and alphabets
var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/; //Variable to validate Email ID
function validateform()
{
if(document.frmdoctlogin.loginid.value == "")
{
alert("Login ID should not be empty..");
document.frmdoctlogin.loginid.focus();
return false;
}
else if(!document.frmdoctlogin.loginid.value.match(alphanumericExp))
{
alert("Login ID not valid..");
document.frmdoctlogin.loginid.focus();
return false;
}
else if(document.frmdoctlogin.password.value == "")
{
TIT-MCA- 2022 Online cure&care

alert("Password should not be empty..");


document.frmdoctlogin.password.focus();
return false;
}
else if(document.frmdoctlogin.password.value.length< 8)
{
alert("Password length should be more than 8 characters...");
document.frmdoctlogin.password.focus();
return false;
}

}
</script>

patientlogin.php

<?php
session_start();
error_reporting(0);
include("dbconnection.php");
$dt = date("Y-m-d");
$tim = date("H:i:s");

include("dbconnection.php");
if(isset($_SESSION[patientid]))
{
echo "<script>window.location='patientaccount.php';</script>";
}
$err='';
if(isset($_POST[submit]))
{
$sql = "SELECT * FROM patient WHERE loginid='$_POST[loginid]' AND
password='$_POST[password]' AND status='Active'";
$qsql = mysqli_query($con,$sql);
if(mysqli_num_rows($qsql) >= 1)
{
$rslogin = mysqli_fetch_array($qsql);
$_SESSION[patientid]= $rslogin[patientid] ;
echo "<script>window.location='patientaccount.php';</script>";
}
else
TIT-MCA- 2022 Online cure&care

{
$err = "<div class='alert alert-danger'>
<strong>Oh !</strong> Change a few things up and try submitting again.
</div>";
}
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<title>:: Care And Cure - Hospital Admin ::</title>
<link href="assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" type="text/css">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<!-- Custom Css -->
<link href="assets/css/main.css" rel="stylesheet">
<link href="assets/css/login.css" rel="stylesheet">
<!-- Swift Themes. You can choose a theme from css/themes instead of get all themes -->
<link href="assets/css/themes/all-themes.css" rel="stylesheet" />
</head>
<body class="theme-cyan login-page authentication">
<!-- header section -->
<div class="container">
<div id = "err"><?php echo $err;

?></div>
<div class="card-top"></div>
<div class="card">
<h1 class="title"><span>Cure And Care </span>Login <span class="msg">Hello, Patient!</span></h1>
<div class="col-md-12">
<form method="post" action="" name="frmadminlogin" id="sign_in" onSubmit="return validateform()">
<div class="input-group"><span class="input-group-addon"><i class="zmdizmdi-account"></i></span>
<div class="form-line">
<input type="text" name="loginid" id="loginid" class="form-control"
placeholder="Username" /></div>
</div>
<div class="input-group"><span class="input-group-addon"><i class="zmdizmdi-lock"></i></span>
<div class="form-line">
<input type="password" name="password" id="password"
class="form-control" placeholder="Password" /></div>
</div>
<div>
<div class="">
<input type="checkbox" name="rememberme" id="rememberme" class="filled-in chk-col-pink">
<label for="rememberme">Remember Me</label>
</div>
<div class="text-center">
TIT-MCA- 2022 Online cure&care

<input type="submit" name="submit" id="submit" value="Login"


class="btnbtn-raised waves-effect g-bg-cyan" /></div>
<div class="text-center"><a href="forgot-password.html">Forgot Password?</a></div>
</div>
</form>
</div>
</div>
</div>
<div class="clear"></div>
<div class="theme-bg"></div>
</div>
</div>
<script type="application/javascript">
var alphaExp = /^[a-zA-Z]+$/; //Variable to validate only alphabets
var alphaspaceExp = /^[a-zA-Z\s]+$/; //Variable to validate only alphabets and space
var numericExpression = /^[0-9]+$/; //Variable to validate only numbers
var alphanumericExp = /^[0-9a-zA-Z]+$/; //Variable to validate numbers and alphabets
var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/; //Variable to validate Email ID
function validateform()
{
if(document.frmpatlogin.loginid.value == "")
{
alert("Login ID should not be empty..");
document.frmpatlogin.loginid.focus();
return false;
}
else if(document.frmpatlogin.password.value == "")
{
alert("Password should not be empty..");
document.frmpatlogin.password.focus();
return false;
}
else if(document.frmpatlogin.password.value.length< 8)
{
alert("Password length should be more than 8 characters...");
document.frmpatlogin.password.focus();
return false;
}
} </script>
TIT-MCA- 2022 Online cure&care

Design & Implementation

System Design

Design is the first step in the development phase for any engineered product or system. It may be defined “The
process of applying various techniques principles for the purpose of defining a device, a processor or a system in
sufficient to permit its physical realization. System design is the creation of specification for a new system. It
deals with creation of input, which is usually the acquiring of needed data, creation of needed database, the input
procedures and output to meet system objectives. 4.1 INITIAL DESIGN MAIN MODULES: - Main modules of
these systems are given below.

1. ADMIN MODULE: -

 Add New User Administrator can add new user by filling out required fields.  Remove Existing User
Administrator can remove existing user by selecting user ID from the dropdown box.  Doctor registration
Administrator can add doctors and assign them duty times and schedules.  Remove Existing Doctor Remove
existing doctors by selecting them from a dropdown menu.  Add New Department The administrator can add
new department by entering its name. PROJECT REPORT CLINIC APPOINTMENT SYSTEM DEPARTMENT
OF BCA 12 UNIVERSITY OF CALICUT  Remove Existing Department Administrator can remove existing
departments.

2. USER MODULE: -

 User Registration Registering the user by the details that includes Name, Username, Email Address, Password,
Residential Address, Phone Number, Gender etc.  Profile Users can edit and update their profile including their
password.  Doctors List Users can browse through the entire list of doctors and select one for making
appointment.  View Prescription User can view, print or delete prescriptions sent by doctors.  Upcoming
TIT-MCA- 2022 Online cure&care

Appointments User can view/delete upcoming appointments. Past appointments are automatically removed from
the list to show only the relevant contents.  Make Appointment User can search desired departments using the
intelligent, auto filling search engine. The form shows suggestions / gets automatically filled as user starts typing.
The search result shows relevant doctors list with available time, days etc. User can click make appointment and
they get redirected to the date and time selection page. After selecting desired date, the system returns to user with
an appointment ID. PROJECT REPORT CLINIC APPOINTMENT SYSTEM DEPARTMENT OF BCA 13
UNIVERSITY OF CALICUT  Notifications User can view notifications if one his/her appointment request has
been marked as ‘Pending’ by the doctor.

3. DOCTOR MODULE: -

 Doctor Profile Doctors can edit their profile details such as Name, Qualification etc.  Send Prescription Doctor
select their patient name, appointment ID to send prescription.  Upcoming Appointments Doctors can view their
upcoming appointments here. They can change appointment status to Pending or Active. They can even cancel
the appointment.

Generally, DFD’s are used as a design notation to represent architectural design (External design) and top level
design (internal design) specifications. DFD’s represent the system in hierarchical manner with one top level and
many lower level diagrams with each representing separate parts of the system. A DFD shows what kind of
information will be input to and output from the system, where the data will come from and go to, and where the
data will be stored. It does not show information about the timing of processes, or information about whether
processes will operate in sequence or in parallel Since diagrammatic representations are easier to interpret as
compared to the technical descriptions, the non-technical users can also understand the system details clearly.
DFD consists of four basic notations which help to depict the information in the system. These notations are
rectangle, circle, open-ended rectangle, and arrows.
TIT-MCA- 2022 Online cure&care

3.2 Flow Chart


TIT-MCA- 2022 Online cure&care
TIT-MCA- 2022 Online cure&care
TIT-MCA- 2022 Online cure&care

3.3 Data Flow Diagram


TIT-MCA- 2022 Online cure&care

3.4 -ERDiagram
TIT-MCA- 2022 Online cure&care

3.5 Snap Shots


TIT-MCA- 2022 Online cure&care
TIT-MCA- 2022 Online cure&care
TIT-MCA- 2022 Online cure&care
TIT-MCA- 2022 Online cure&care
TIT-MCA- 2022 Online cure&care
TIT-MCA- 2022 Online cure&care
TIT-MCA- 2022 Online cure&care
TIT-MCA- 2022 Online cure&care
TIT-MCA- 2022 Online cure&care
TIT-MCA- 2022 Online cure&care
TIT-MCA- 2022 Online cure&care
TIT-MCA- 2022 Online cure&care
TIT-MCA- 2022 Online cure&care
TIT-MCA- 2022 Online cure&care
TIT-MCA- 2022 Online cure&care
TIT-MCA- 2022 Online cure&care

3.6 UML Diagram


TIT-MCA- 2022 Online cure&care

Conclusion

4.1 Advantage

 ENSURES ACCESS TO 24/7 ONLINE DOCTOR APPOINTMENT BOOKING

 SAVES TIME

 ENABLES BETTER DATA COLLECTION & STORAGE

4.2 Limitation

 More costly
Creating and managing a database is quite costly.

 High Complexity
A Data Management System is quite complex as it involves creating.

4.3Future Scope

 ACCEPT ONLINE PAYMENT

 LOCATION TRACTING

 USER TRACKING IOT

 IMPLEMENT SAME PROJECT USING CODE IGNITER FRAMEWORK.


TIT-MCA- 2022 Online cure&care

Bibliography

Book Reference :
➢ Beginning PHP6, Apache, MySQL, Web Development By Timothy
Boroneryk.
➢ Learning PHP, MySQL & JavaScript: With JQuery, CSS & HTML5 By
Robin Nixon.

Website Reference :
➢ https://www.w3schools.com
➢ https://www.google.com
➢ https://www.wikipedia.org
➢ https://github.com
Software Used :
➢ Notepad++
➢ Xampp
➢ PHP MyAdmin

You might also like