0% found this document useful (0 votes)
0 views

Final Report2

The document outlines the development of a Doctor Appointment Management System, which automates the process of scheduling doctor appointments online to save time. It includes details about the system's architecture, modules for doctors and users, and the technologies used such as PHP and MySQL. Additionally, the document covers feasibility analysis, design specifications, and data flow diagrams to illustrate the system's functionality.

Uploaded by

ak1666663
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

Final Report2

The document outlines the development of a Doctor Appointment Management System, which automates the process of scheduling doctor appointments online to save time. It includes details about the system's architecture, modules for doctors and users, and the technologies used such as PHP and MySQL. Additionally, the document covers feasibility analysis, design specifications, and data flow diagrams to illustrate the system's functionality.

Uploaded by

ak1666663
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 90

1

DECLARATION
I here by declare that this submission is my own work to the best of my knowledge and belief. It
contains no material previously or written by any other person nor material which to a substantial
extent has been accepted for the award of the degree of the university , except where due
acknowledgement and references has been made in the text.

RIYA SAIN

(210278135012)
2

Acknowledgement
The success and final outcome of this project required a lot of guidance and assistance
from many people and I am extremely privileged to have got this all along the
completion of my project. All that I have done is only due to such supervision and
assistance and I would not forget to thank them.
I respect and thank Mr. Ankur Tayal (Professer), for providing me an opportunity to do
the project and giving us all support and guidance which made me complete the project
duly. I am extremely thankful to him for providing such a nice support and guidance.

I owe my deep gratitude to our project guide Mr. Ankur Tayal (Professer) , who took
keen interest on our project work and guided us all along, till the completion of our project
work by providing all the necessary information for developing a good project.

I heartily thank our internal project guide, Mr. Ankur Tayal (Professer), his guidance and
suggestions during this project work.

I am thankful to and fortunate enough to get constant encouragement, support and


guidance from all Teaching staffs of B.voc (IT) which helped us in successfully
completing our project work

RIYA SAIN

(210278135012)
3

Abstract
“Doctor Appointment Management System” is responsible for keeping all the record of
doctor appointment which is taken by users. This system helps the patient take the
appointment online and save time.

The main objective of “Doctor Appointment Management System” project is to providing


easier doctor appointment and gets appointment online which save lots of time.
4

Introduction
“Doctor Appointment Management System is a web-based technology that will
manage to automate the existing manual system by the help of computerized
equipments and full-fledged computer software, so that their valuable
data/information can be stored for a longer period with easy accessing and
manipulation of the same. Basically the project describes how to manage for
good performance and better services for the clients. This automatic system delivers
data processing in very high speed in systematic manner.

In Doctor Appointment Management System we use PHP and MySQL Database. This
project has two modules i.e., doctor and user.
5

Doctor Module

1. Dashboard: In this section, doctor can briefly view the total number of the new
appointment, total approved appointment and total cancelled appointment.

2. Appointment: In this section, doctor views the appointment details and they have also the
right to change application status according to current status.

3. Reports: In this section doctor can view the appointment details in a particular period.
4. Search: In this section, doctor can search appointment with the help of user appointment
number/Name/Mobile Number

Doctor can also update his profile, change the password and recover the password.

User Module(User not need to register)

1. Home Page: In this section, user can view the welcome page of the web application.
2. Book: In this section, user can sent the appointment request.
3. Check Appointment: In this section, user can search appointment with the help of user appointment
number/Name/Mobile Number
6

Purpose
The main purpose of the "Doctor Appointment Management System" is to manage the
details of Doctor and Appointment. It manages all the information about Doctor
and doctor appointments. The purpose of the project is to build an application
program to reduce the manual work for managing the Doctor appointment. It tracks
all the details about the appointments and Doctor Schedule.
7

Scope
The Software design document would demonstrate how the design will accomplish the
functional and non- functional requirements captured in the Software Requirement
specification (SRS). The document will provide a framework to the programmers through
describing the high level components and architecture, sub systems, interfaces, database
design and algorithm design. This is achieved through the use of architectural patterns,
design patterns, sequence diagrams, class diagrams, relational models and user interfaces
8

Requirement Specification
Hardware Configuration :

Client Side:

RAM 512 MB

Hard disk 10 GB

Processor 1.0 GHz

Server side:
RAM 1 GB

Hard disk 20 GB

Processor 2.0 GHz

Software Requirement:

Client Side:

Web Browser
Google Chrome or any compatible browser
Operating System

Windows or any equivalent OS

Server Side:
9

Web Server APACHE

Server side Language PHP5.6 or above version

Database Server MYSQL

Web Browser Google Chrome or any compatible browser

Operating System Windows or any equivalent OS

APACHE

The Apache HTTP Server Project is an effort to develop and maintain an open-source
HTTP server for modern operating systems including UNIX and Windows. The goal of
this project is to provide a secure, efficient and extensible server that provides HTTP
services in sync with the current HTTP standards.

The Apache HTTP Server ("httpd") was launched in 1995 and it has been the most popular web
server on the Internet since April 1996. It has celebrated its 20th birthday as a project in
February 2015.

PHP

• PHP stands for PHP: Hypertext Preprocessor.


10

• PHP is a server-side scripting language, like ASP.


• PHP scripts are executed on the server.
• PHP supports many databases (MYSQL, Informix, Oracle, Sybase, Solid, Generic ODBC,
etc.).

• PHP is an open source software .

• PHP is free to download and use.

MYSQL

• MYSQL is a database server


• MYSQL is ideal for both small and large applications
• MYSQL supports standard SQL
• MYSQL compiles on a number of platforms

• MYSQL is free to download and use

• How to access MySQL: http://localhost/phpmyadmin

Feasibility analysis

The analysis of the requirement has lead to a conclusion that the project is feasible with
respect to time and cost. The data collection from the field is assured by the client to
provide. The technology used to develop is almost Open Source, therefore less cost for
implementation and maintenance will be involved. A feasibility study is an analysis used
in measuring the ability and likelihood to complete a project successfully including all
11

relevant factors. It must account for factors that affect it such as economic, technological
and time factors. It is used to assess the strengths and weaknesses of a proposed project
and present directions of activities which will improve a project and achieve desired
results.

Economic feasibility
The purpose of economic feasibility assessment is to determine the positive economic benefits to the
organization that the proposed system will provide. The assessment typically involves a cost/benefits
analysis.

Technical feasibility
Technical analysis is a trading tool employed to evaluate securities and attempt to forecast
the future movement. I am using java language and other tools like net beans to develop
the software.

Operational feasibility
Operational feasibility is a measure of how well proposed system solves the problems, and
takes advantage of the opportunities identified during scope definition and how it satisfies
the requirements analysis phase of the system development.

Analysis and Design

Analysis:

In present all doctor appointment work done on the paper. The whole year data is stored in

the registers. We can’t generate reports as per our requirements because its take more time to

calculate report of doctor appointments.


12

Disadvantage of present system:

• Not user friendly: The present system not user friendly because data is not stored in structure

and proper format.

• Manual Control: All report calculation is done manually so there is a chance of error.

• Lots of paper work: Visitors maintain in the register so lots of paper require storing details.

• Time consuming

Design Introduction:
Design is the first step in the development phase for any techniques and principles for
the purpose of defining a device, a process or system in sufficient detail to permit its
physical realization.

Once the software requirements have been analyzed and specified the software design
involves three technical activities - design, coding, implementation and testing that are
required to build and verify the software.

The design activities are of main importance in this phase, because in this activity, decisions
ultimately affecting the success of the software implementation and its ease of maintenance
are made. These decisions have the final bearing upon reliability and maintainability of the
system. Design is the only way to accurately translate the customer’s requirements into
finished software or a system.

Design is the place where quality is fostered in development. Software design is a process through
which requirements are translated into a representation of software. Software design is conducted
in two steps.

UML Diagrams:
Actor:
A coherent set of roles that users of use cases play when interacting with the use `cases.
13

Use case:A description of sequence of actions, including variants, that a system performs that
yields an observable result of value of an actor.

UML stands for Unified Modeling Language. UML is a language for specifying,
visualizing and documenting the system. This is the step while developing any product
after analysis. The goal from this is to produce a model of the entities involved in the
project which later need to be built. The representation of the entities that are to be used
in the product being developed need to be designed.

USECASE DIAGRAMS:

Use case diagrams model behavior within a system and helps the developers understand of
what the user require. The stick man represents what’s called an actor.

Use case diagram can be useful for getting an overall view of the system and clarifying who can do
and more importantly what they can’t do.

Use case diagram consists of use cases and actors and shows the interaction between the use case and
actors.

• The purpose is to show the interactions between the use case and actor.
• To represent the system requirements from user’s perspective.
USECASE DIAGRAM:

A Use case is a description of set of sequence of actions. Graphically it is rendered as an


ellipse with solid line including only its name. Use case diagram is a behavioral diagram
that shows a set of use cases and actors and their relationship. It is an association between
the use cases and actors. An actor represents a real-world object. Primary Actor –
Sender, Secondary Actor Receiver.
14

Use Case Diagrams:

Doctor

Sign In/Signup

Dashboard

Manage Appointment

Search Appointment

Generate Reports

Update Profile

Change Password

Password Recovery

User
15

Visit Website

Book Appointment

Check Appointment Status

View Contact

View About Us

Class Diagram:

A description of set of objects that share the same attributes operations, relationships, and semantics.
16

ER Diagram:
17

The Entity-Relationship (ER) model was originally proposed by Peter in 1976 [Chen76]
as a way to unify the network and relational database views. Simply stated the ER model
is a conceptual data model that views the real world as entities and relationships. A basic
component of the model is the Entity-Relationship diagram which is used to visually
represent data objects. Since Chen wrote his paper the model has been extended and
today it is commonly used for database design for the database designer, the utility of the
ER model is:

• It maps well to the relational model. The constructs used in the ER model can
easily be transformed into relational tables.
• It is simple and easy to understand with a minimum of training. Therefore, the
model can be used by the database designer to communicate the design to the end
user.
• In addition, the model can be used as a design plan by the database developer to
implement a data model in specific database management software.

ER Notation
There is no standard for representing data objects in ER diagrams. Each modeling
methodology uses its own notation. The original notation used by Chen is widely used in
academics texts and journals but rarely seen in either CASE tools or publications by non-
academics. Today, there are a number of notations used; among the more common are
Bachman, crow's foot, and IDEFIX.

All notational styles represent entities as rectangular boxes and relationships as lines
connecting boxes. Each style uses a special set of symbols to represent the cardinality of a
connection. The notation used in this document is from Martin. The symbols used for the
basic ER constructs are:

• Entities are represented by labeled rectangles. The label is the name of the entity.

Entity names should be singular nouns.

• Relationships are represented by a solid line connecting two entities. The name of

the relationship is written above the line. Relationship names should be verbs

• Attributes, when included, are listed inside the entity rectangle. Attributes which

are identifiers are underlined. Attribute names should be singular nouns.


18

• Cardinality of many is represented by a line ending in a crow's foot. If the crow's

foot is omitted, the cardinality is one.

Existence is represented by placing a circle or a perpendicular bar on the line. Mandatory


existence is shown by the bar (looks like a 1) next to the entity for an instance is required.
Optional existence is shown by placing a circle next to the entity that is optional.

ER Diagram
19

MySQL Data Tables:

Doctor Table:(Table name is tbldoctor)

This store doctor personal and login details.


20

Specialization Table(Table name is tblspecialization)

This table stores the specialization of doctor.


21

Appointment Table: (Table name is tblappointment)

This table stores the details of appointment and doctor remark.

Data Flow Diagrams


22

A Data Flow Diagram (DFD) is a traditional visual representation of the information


flows within a system. A neat and clear DFD can depict the right amount of the system
requirement graphically. It can be manual, automated, or a combination of both.

It shows how data enters and leaves the system, what changes the information, and where data is
stored.

The objective of a DFD is to show the scope and boundaries of a system as a whole. It
may be used as a communication tool between a system analyst and any person who
plays a part in the order that acts as a starting point for redesigning a system. The DFD is
also called as a data flow graph or bubble chart.

The following observations about DFDs are essential:

1. All names should be unique. This makes it easier to refer to elements in the DFD.
2. Remember that DFD is not a flow chart. Arrows is a flow chart that represents the
order of events; arrows in DFD represents flowing data. A DFD does not involve
any order of events.

3. Suppress logical decisions. If we ever have the urge to draw a diamond-shaped box
in a DFD, suppress that urge! A diamond-shaped box is used in flow charts to
represents decision points with multiple exists paths of which the only one is taken.
This implies an ordering of events, which makes no sense in a DFD.
4. Do not become bogged down with details. Defer error conditions and error handling
until the end of the analysis.

Standard symbols for DFDs are derived from the electric circuit diagram analysis and are shown in fig:
23

Circle: A circle (bubble) shows a process that transforms data inputs into data outputs.

Data Flow: A curved line shows the flow of data into or out of a process or data store.

Data Store: A set of parallel lines shows a place for the collection of data items. A data
store indicates that the data is stored which can be used at a later stage or by the other
processes in a different order. The data store can have an element or group of elements.

Source or Sink: Source or Sink is an external entity and acts as a source of system inputs or sink
of system outputs.
24

Zero Level DFD

Appointment
Management
Doctor Login
Management
Management
DAMS

Specialization Password
Management Management
Webpages

Management
25

First Level DFD

Appointment Password
Management
Management
Doctor Password
Management
DAMS Management
Specialization Login

Management Management

Authorization Generate
Report
Management
26

Second Level DFD

Doctor Signup/ Check


Login Roles
to of
access

Manage
Appointment

Generate Report

Forgot
Passwor Check
Creden Search
d
tial Appointment

Manage Update Profile


Module

Change
Password
27

Implementation and System Testing


After all phase have been perfectly done, the system will be implemented to the server and the
system can be used.

System Testing

The goal of the system testing process was to determine all faults in our project .The program was
subjected to a set of test inputs and many explanations were made and based on these explanations it
will be decided whether the program behaves as expected or not. Our Project went through two levels
of testing

1. Unit testing

2. Integration testing

UNIT TESTING

Unit testing is commenced when a unit has been created and effectively reviewed .In order to
test a single module we need to provide a complete environment i.e. besides the section we
would require

• The procedures belonging to other units that the unit under test calls
• Non local data structures that module accesses
• A procedure to call the functions of the unit under test with appropriate parameters

1. Test for the admin module

• Testing admin login form-This form is used for log in of administrator of the
system. In this form we enter the username and password if both are correct
administration page will open otherwise if any of data is wrong it will get
redirected back to the login page and again ask the details.

• Report Generation: admin can generate report from the main database.
INTEGRATION TESTING
28

In the Integration testing we test various combination of the project module by providing the input.

The primary objective is to test the module interfaces in order to confirm that no errors are
occurring when one module invokes the other module.

Evaluation
Project URL: http://localhost/dams
29

Home Page
30

Search Appointment
31

Doctor Panel Signup


32

Login Page
33

Forgot Password
34

Dashboard
35

Doctor Profile

Change Password
36

New Appointment

View new appointment


37

Approved Appointment

View Approved Appointment


38

Cancelled Appointment

View Cancelled Appointment


39

Code
<?php
session_start(); error_reporting(0); include('includes/dbconnection.php'); if
(strlen($_SESSION['damsid']==0)) { header('location:logout.php');
} else{

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

<title>DAMS || All Appointment Detail</title>

<link rel="stylesheet" href="libs/bower/font-awesome/css/font-awesome.min.css"> <link


rel="stylesheet" href="libs/bower/material-design-iconic-font/dist/css/material-designiconic-
font.css">
<!-- build:css assets/css/app.min.css -->
<link rel="stylesheet" href="libs/bower/animate.css/animate.min.css">
<link rel="stylesheet" href="libs/bower/fullcalendar/dist/fullcalendar.min.css">
<link rel="stylesheet" href="libs/bower/perfect-scrollbar/css/perfect-scrollbar.css">
<link rel="stylesheet" href="assets/css/bootstrap.css">
<link rel="stylesheet" href="assets/css/core.css">
<link rel="stylesheet" href="assets/css/app.css">
<!-- endbuild -->
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,900,300">
<script src="libs/bower/breakpoints.js/dist/breakpoints.min.js"></script>
<script>
Breakpoints();
</script>
</head>

<body class="menubar-left menubar-unfold menubar-light theme-primary">


<!--============= start main area -->

<?php include_once('includes/header.php');?>

<?php include_once('includes/sidebar.php');?>
40

<!-- APP MAIN ==========-->


<main id="app-main" class="app-main">
<div class="wrap">
<section class="app-content">
<div class="row">
<!-- DOM dataTable -->
<div class="col-md-12">
<div class="widget">
<header class="widget-header">
<h4 class="widget-title">All Appointment</h4>
</header><!-- .widget-header -->
<hr class="widget-separator">
<div class="widget-body">
<div class="table-responsive">
<table class="table table-bordered
js-basic-example dataTable table- table-hover
custom">
<thead>
<tr>
<th>S.No</th>
<th>Appointment
Number</th>
<th>Patient Name</th>
<th>Mobile
Number</th>
<th>Email</th>
<th>Status</th>
<th>Action</th>

</tr>
</thead>

<tbody>
<?php
$docid=$_SESSION['damsid'];
$sql="SELECT * from tblappointment where Doctor=:docid";
$query = $dbh -> prepare($sql);
$query-> bindParam(':docid', $docid, PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);

$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $row)
{ ?>
<tr>
41

htmlentities($cnt);?></td> <td><?php
echo
<td><?php
htmlentities($row- echo
>AppointmentNumber);?></td>
<td><?php
htmlentities($row->Name);?></td> echo
<td><?php
htmlentities($row->MobileNumber);?></ echo
td>
<td><?php
echo
htmlentities($row->Email);?></td>
<?php if($row->Status==""){ ?>

<td><?php echo "Not Updated Yet"; ?></td>


<?php } else { ?> <td><?php echo htmlentities($row->Status);?>
</td>
<?php } ?>

<td><a href="view-
appointment-detail.php?editid=<?php echo htmlentities ($row->ID);?>&&aptid=<?php echo
htmlentities ($row->AppointmentNumber);?>" class="btn btn-primary">View</a></td>

</tr>
<?php $cnt=$cnt+1;}} ?>

</tbody>
<tfoot>
<tr>
<th>S.No</th>
<th>Appointment
Number</th>
<th>Patient
Name</th>
<th>Mobile
Number</th>
<th>Email</th>
<th>Status</th>
<th>Action</th>
</tr>
</tfoot>
</table>
</div>
</div><!-- .widget-body -->
</div><!-- .widget -->
</div><!-- END column -->
42

</div><!-- .row -->


</section><!-- .app-content -->
</div><!-- .wrap -->
<!-- APP FOOTER -->
<?php include_once('includes/footer.php');?>
<!-- /#app-footer -->
</main>
<!--========== END app main -->

<!-- APP CUSTOMIZER -->


<?php include_once('includes/customizer.php');?>

<!-- build:js assets/js/core.min.js -->


<script src="libs/bower/jquery/dist/jquery.js"></script>
<script src="libs/bower/jquery-ui/jquery-ui.min.js"></script>
<script src="libs/bower/jQuery-Storage-API/jquery.storageapi.min.js"></script>
<script src="libs/bower/bootstrap-sass/assets/javascripts/bootstrap.js"></script>
<script src="libs/bower/jquery-slimscroll/jquery.slimscroll.js"></script>
<script src="libs/bower/perfect-scrollbar/js/perfect-scrollbar.jquery.js"></script>
<script src="libs/bower/PACE/pace.min.js"></script>
<!-- endbuild -->

<!-- build:js assets/js/app.min.js -->


<script src="assets/js/library.js"></script>
<script src="assets/js/plugins.js"></script>
<script src="assets/js/app.js"></script>
<!-- endbuild -->
<script src="libs/bower/moment/moment.js"></script>
<script src="libs/bower/fullcalendar/dist/fullcalendar.min.js"></script>
<script src="assets/js/fullcalendar.js"></script>
</body>
</html>
<?php } ?> <?php
session_start(); error_reporting(0); include('includes/dbconnection.php'); if
(strlen($_SESSION['damsid']==0)) { header('location:logout.php');
} else{

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

<title>DAMS - Appointment Between Dates Report</title>


43

<link rel="stylesheet" href="libs/bower/font-awesome/css/font-awesome.min.css"> <link


rel="stylesheet" href="libs/bower/material-design-iconic-font/dist/css/material-designiconic-
font.css">
<!-- build:css assets/css/app.min.css -->
<link rel="stylesheet" href="libs/bower/animate.css/animate.min.css">
<link rel="stylesheet" href="libs/bower/fullcalendar/dist/fullcalendar.min.css">
<link rel="stylesheet" href="libs/bower/perfect-scrollbar/css/perfect-scrollbar.css">
<link rel="stylesheet" href="assets/css/bootstrap.css">
<link rel="stylesheet" href="assets/css/core.css">
<link rel="stylesheet" href="assets/css/app.css">
<!-- endbuild -->
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,900,300">
<script src="libs/bower/breakpoints.js/dist/breakpoints.min.js"></script> <script>
Breakpoints();
</script>
</head>

<body class="menubar-left menubar-unfold menubar-light theme-primary">


<!--============= start main area -->

<?php include_once('includes/header.php');?>

<?php include_once('includes/sidebar.php');?>

<!-- APP MAIN ==========-->


<main id="app-main" class="app-main">
<div class="wrap">
<section class="app-content">
<div class="row">

<div class="col-md-12">
<div class="widget">
<header class="widget-header">
<h3 class="widget-title">Between Dates Report of Appointments</h3>
</header><!-- .widget-header -->
<hr class="widget-separator">
<div class="widget-body">

<form class="form-horizontal" method="post" name="bwdatesreport" action="appointment-


bwdates-reports-details.php">
<div class="form-group">
<label for="exampleTextInput1" class="col-sm-3 control-label">From Date:</label>
<div class="col-sm-9">
<input type="date" class="form-control" id="fromdate" name="fromdate" value=""
required='true'>
</div>
44

</div>
<div class="form-group">
<label for="email2" class="col-sm-3 control-label">To Date:</label>
<div class="col-sm-9">
<input type="date" class="form-control" id="todate" name="todate" value="" required='true'>
</div>
</div>

<div class="row">
<div class="col-sm-9 col-sm-offset-3">
<button type="submit" class="btn btn-success" name="submit">Submit</button>
</div>
</div>
</form>
</div><!-- .widget-body -->
</div><!-- .widget -->
</div><!-- END column -->

</div><!-- .row -->


</section><!-- #dash-content -->
</div><!-- .wrap -->
<!-- APP FOOTER -->
<?php include_once('includes/footer.php');?>
<!-- /#app-footer -->
</main>
<!--========== END app main -->

<?php include_once('includes/customizer.php');?>

<!-- SIDE PANEL -->

<!-- build:js assets/js/core.min.js -->


<script src="libs/bower/jquery/dist/jquery.js"></script>
<script src="libs/bower/jquery-ui/jquery-ui.min.js"></script>
<script src="libs/bower/jQuery-Storage-API/jquery.storageapi.min.js"></script>
<script src="libs/bower/bootstrap-sass/assets/javascripts/bootstrap.js"></script>
<script src="libs/bower/jquery-slimscroll/jquery.slimscroll.js"></script>
<script src="libs/bower/perfect-scrollbar/js/perfect-scrollbar.jquery.js"></script>
<script src="libs/bower/PACE/pace.min.js"></script> <!-- endbuild -->
<!-- build:js assets/js/app.min.js -->
<script src="assets/js/library.js"></script>
<script src="assets/js/plugins.js"></script>
<script src="assets/js/app.js"></script>
<!-- endbuild -->
<script src="libs/bower/moment/moment.js"></script>
45

<script src="libs/bower/fullcalendar/dist/fullcalendar.min.js"></script> <script


src="assets/js/fullcalendar.js"></script>
</body>
</html>
<?php } ?> <?php
session_start(); error_reporting(0); include('includes/dbconnection.php'); if
(strlen($_SESSION['damsid']==0)) { header('location:logout.php');
} else{

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

<title>DAMS || B/W Dates Appointment Detail</title>

<link rel="stylesheet" href="libs/bower/font-awesome/css/font-awesome.min.css"> <link


rel="stylesheet" href="libs/bower/material-design-iconic-font/dist/css/material-designiconic-
font.css">
<!-- build:css assets/css/app.min.css -->
<link rel="stylesheet" href="libs/bower/animate.css/animate.min.css">
<link rel="stylesheet" href="libs/bower/fullcalendar/dist/fullcalendar.min.css">
<link rel="stylesheet" href="libs/bower/perfect-scrollbar/css/perfect-scrollbar.css">
<link rel="stylesheet" href="assets/css/bootstrap.css">
<link rel="stylesheet" href="assets/css/core.css">
<link rel="stylesheet" href="assets/css/app.css">
<!-- endbuild -->
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,900,300">
<script src="libs/bower/breakpoints.js/dist/breakpoints.min.js"></script>
<script>
Breakpoints();
</script>
</head>

<body class="menubar-left menubar-unfold menubar-light theme-primary">


<!--============= start main area -->

<?php include_once('includes/header.php');?>

<?php include_once('includes/sidebar.php');?>
46

<!-- APP MAIN ==========-->


<main id="app-main" class="app-main">
<div class="wrap">
<section class="app-content">
<div class="row">
<!-- DOM dataTable -->
<div class="col-md-12">
<div class="widget">
<header class="widget-header">
<h4 class="m-t-0 header-title">Between Dates
Reports</h4>
<?php
$fdate=$_POST['fromdate'];
$tdate=$_POST['todate'];

?>
<h5 align="center" style="color:blue">Report from <?php echo $fdate?> to <?php echo
$tdate?></h5>
</header><!-- .widget-header -->
<hr class="widget-separator">
<div class="widget-body">
<div class="table-responsive">
<table class="table table-bordered table-hover js-basic-example dataTable table-custom">
<thead>
<tr>
<th>S.No</th>
<th>Appointment
Number</th>
<th>Patient Name</th>
<th>Mobile
Number</th>
<th>Email</th>
<th>Status</th>
<th>Action</th>

</tr>
</thead>

<tbody>
<?php
$docid=$_SESSION['damsid'];
$sql="SELECT * from tblappointment where (date(ApplyDate) between '$fdate' and '$tdate')
&& Doctor=:docid";
$query = $dbh -> prepare($sql);
$query-> bindParam(':docid', $docid, PDO::PARAM_STR);
$query->execute();
47

$results=$query->fetchAll(PDO::FETCH_OBJ);

$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $row)
{ ?>
<tr>
htmlentities($cnt);?></td> <td><?php
echo
<td><?php
htmlentities($row- echo
>AppointmentNumber);?></td>
<td><?php
htmlentities($row->Name);?></td> echo
<td><?php
htmlentities($row->MobileNumber);?></ echo
td>
<td><?php
htmlentities($row->Email);?></td> echo
<td><?php
if($row->Status==''){
echo "Not Updated Yet";
} else {
echo htmlentities($row->Status);
} ?></td>

<td><a
href="view-
appointment-detail.php?editid=<?php echo htmlentities ($row->ID);?>&&aptid=<?php echo
htmlentities ($row->AppointmentNumber);?>" class="btn btn-primary">View</a></td>
</tr>
<?php $cnt=$cnt+1;}} ?>

</tbody>
<tfoot>
<tr>
<th>S.No</th>
<th>Appointment
Number</th>
<th>Patient
Name</th>
<th>Mobile
Number</th>
<th>Email</th>
<th>Status</th>
<th>Action</th>
48

</tr>
</tfoot>
</table>
</div>
</div><!-- .widget-body
-->
</div><!-- .widget -->
</div><!-- END column -->

</div><!-- .row -->


</section><!-- .app-content -->
</div><!-- .wrap -->
<!-- APP FOOTER -->
<?php include_once('includes/footer.php');?>
<!-- /#app-footer -->
</main>
<!--========== END app main -->

<!-- APP CUSTOMIZER -->


<?php include_once('includes/customizer.php');?>

<!-- build:js assets/js/core.min.js -->


<script src="libs/bower/jquery/dist/jquery.js"></script>
<script src="libs/bower/jquery-ui/jquery-ui.min.js"></script>
<script src="libs/bower/jQuery-Storage-API/jquery.storageapi.min.js"></script>
<script src="libs/bower/bootstrap-sass/assets/javascripts/bootstrap.js"></script>
<script src="libs/bower/jquery-slimscroll/jquery.slimscroll.js"></script>
<script src="libs/bower/perfect-scrollbar/js/perfect-scrollbar.jquery.js"></script>
<script src="libs/bower/PACE/pace.min.js"></script>
<!-- endbuild -->

<!-- build:js assets/js/app.min.js -->


<script src="assets/js/library.js"></script>
<script src="assets/js/plugins.js"></script>
<script src="assets/js/app.js"></script>
<!-- endbuild -->
<script src="libs/bower/moment/moment.js"></script>
<script src="libs/bower/fullcalendar/dist/fullcalendar.min.js"></script>
<script src="assets/js/fullcalendar.js"></script>
</body>
</html>
<?php } ?> <?php
session_start(); error_reporting(0); include('includes/dbconnection.php'); if
(strlen($_SESSION['damsid']==0)) { header('location:logout.php');
} else{
49

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

<title>DAMS || Approved Appointment Detail</title>

<link rel="stylesheet" href="libs/bower/font-awesome/css/font-awesome.min.css"> <link


rel="stylesheet" href="libs/bower/material-design-iconic-font/dist/css/material-designiconic-
font.css">
<!-- build:css assets/css/app.min.css -->
<link rel="stylesheet" href="libs/bower/animate.css/animate.min.css">
<link rel="stylesheet" href="libs/bower/fullcalendar/dist/fullcalendar.min.css">
<link rel="stylesheet" href="libs/bower/perfect-scrollbar/css/perfect-scrollbar.css">
<link rel="stylesheet" href="assets/css/bootstrap.css">
<link rel="stylesheet" href="assets/css/core.css">
<link rel="stylesheet" href="assets/css/app.css">
<!-- endbuild -->
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,900,300">
<script src="libs/bower/breakpoints.js/dist/breakpoints.min.js"></script>
<script>
Breakpoints();
</script>
</head>

<body class="menubar-left menubar-unfold menubar-light theme-primary">


<!--============= start main area -->

<?php include_once('includes/header.php');?>

<?php include_once('includes/sidebar.php');?>

<!-- APP MAIN ==========-->


<main id="app-main" class="app-main">
<div class="wrap">
<section class="app-content">
<div class="row">
<!-- DOM dataTable -->
<div class="col-md-12">
50

<div class="widget">
<header class="widget-header">
<h4 class="widget-title">Approved
Appointment</h4>
</header><!-- .widget-header -->
<hr class="widget-separator">
<div class="widget-body">
<div class="table-responsive">
<table class="table table-bordered
js-basic-example dataTable table- table-hover
custom">
<thead>
<tr>
<th>S.No</th>
<th>Appointment
Number</th>
<th>Patient Name</th>
<th>Mobile
Number</th>
<th>Email</th>
<th>Status</th>
<th>Action</th>

</tr>
</thead>

<tbody>
<?php
$docid=$_SESSION['damsid'];
$sql="SELECT * from tblappointment where Status='Approved' && Doctor=:docid";
$query = $dbh -> prepare($sql);
$query-> bindParam(':docid', $docid, PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);

$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $row)
{ ?>
<tr>
htmlentities($cnt);?></td> <td><?php
echo
<td><?php
htmlentities($row- echo
>AppointmentNumber);?></td>
<td><?php
51

htmlentities($row->Name);?></td> echo
<td><?php
htmlentities($row->MobileNumber);?></ echo
td>
<td><?php
echo
htmlentities($row->Email);?></td>
<?php if($row->Status==""){ ?>

<td><?php echo "Not Updated Yet"; ?></td>


<?php } else { ?> <td><?php echo htmlentities($row->Status);?>
</td>
<?php } ?>

<td><a href="view-
appointment-detail.php?editid=<?php echo htmlentities ($row->ID);?>&&aptid=<?php echo
htmlentities ($row->AppointmentNumber);?>" class="btn btn-primary">View</a></td>

</tr>
<?php $cnt=$cnt+1;}} ?>

</tbody>
<tfoot>
<tr>
<th>S.No</th>
<th>Appointment
Number</th>
<th>Patient
Name</th>
<th>Mobile
Number</th>
<th>Email</th>
<th>Status</th>
<th>Action</th>
</tr>
</tfoot>
</table>
</div>
</div><!-- .widget-body -->
</div><!-- .widget -->
</div><!-- END column -->

</div><!-- .row -->


</section><!-- .app-content -->
</div><!-- .wrap -->
<!-- APP FOOTER -->
<?php include_once('includes/footer.php');?>
52

<!-- /#app-footer -->


</main>
<!--========== END app main -->

<!-- APP CUSTOMIZER -->


<?php include_once('includes/customizer.php');?>

<!-- build:js assets/js/core.min.js -->


<script src="libs/bower/jquery/dist/jquery.js"></script>
<script src="libs/bower/jquery-ui/jquery-ui.min.js"></script>
<script src="libs/bower/jQuery-Storage-API/jquery.storageapi.min.js"></script>
<script src="libs/bower/bootstrap-sass/assets/javascripts/bootstrap.js"></script>
<script src="libs/bower/jquery-slimscroll/jquery.slimscroll.js"></script>
<script src="libs/bower/perfect-scrollbar/js/perfect-scrollbar.jquery.js"></script>
<script src="libs/bower/PACE/pace.min.js"></script>
<!-- endbuild -->

<!-- build:js assets/js/app.min.js -->


<script src="assets/js/library.js"></script>
<script src="assets/js/plugins.js"></script>
<script src="assets/js/app.js"></script>
<!-- endbuild -->
<script src="libs/bower/moment/moment.js"></script>
<script src="libs/bower/fullcalendar/dist/fullcalendar.min.js"></script>
<script src="assets/js/fullcalendar.js"></script>
</body>
</html>
<?php } ?> <?php
session_start(); error_reporting(0); include('includes/dbconnection.php'); if
(strlen($_SESSION['damsid']==0)) { header('location:logout.php');
} else{

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

<title>DAMS || Cancelled Appointment Detail</title>

<link rel="stylesheet" href="libs/bower/font-awesome/css/font-awesome.min.css"> <link


rel="stylesheet" href="libs/bower/material-design-iconic-font/dist/css/material-designiconic-
font.css">
<!-- build:css assets/css/app.min.css -->
<link rel="stylesheet" href="libs/bower/animate.css/animate.min.css">
53

<link rel="stylesheet" href="libs/bower/fullcalendar/dist/fullcalendar.min.css">


<link rel="stylesheet" href="libs/bower/perfect-scrollbar/css/perfect-scrollbar.css">
<link rel="stylesheet" href="assets/css/bootstrap.css">
<link rel="stylesheet" href="assets/css/core.css">
<link rel="stylesheet" href="assets/css/app.css">
<!-- endbuild -->
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,900,300">
<script src="libs/bower/breakpoints.js/dist/breakpoints.min.js"></script>
<script>
Breakpoints();
</script>
</head>

<body class="menubar-left menubar-unfold menubar-light theme-primary">


<!--============= start main area -->

<?php include_once('includes/header.php');?>

<?php include_once('includes/sidebar.php');?>

<!-- APP MAIN ==========-->


<main id="app-main" class="app-main">
<div class="wrap">
<section class="app-content">
<div class="row">
<!-- DOM dataTable -->
<div class="col-md-12">
<div class="widget">
<header class="widget-header">
<h4 class="widget-title">Cancelled
Appointment</h4>
</header><!-- .widget-header -->
<hr class="widget-separator">
<div class="widget-body">
<div class="table-responsive">
<table class="table table-bordered
js-basic-example dataTable table- table-hover
custom">
<thead>
<tr>
<th>S.No</th>
<th>Appointment
54

Number</th>
<th>Patient Name</th>
<th>Mobile
Number</th>
<th>Email</th>
<th>Status</th>
<th>Action</th>

</tr>
</thead>

<tbody>
<?php
$docid=$_SESSION['damsid'];
$sql="SELECT * from tblappointment where Status='Cancelled' && Doctor=:docid";
$query = $dbh -> prepare($sql);
$query-> bindParam(':docid', $docid, PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);

$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $row)
{ ?>
<tr>
htmlentities($cnt);?></td> <td><?php
echo
<td><?php
htmlentities($row- echo
>AppointmentNumber);?></td>
<td><?php
htmlentities($row->Name);?></td> echo
<td><?php
htmlentities($row->MobileNumber);?></ echo
td>
<td><?php
echo
htmlentities($row->Email);?></td>
<?php if($row->Status==""){ ?>
<td><?php echo "Not Updated Yet"; ?></td>
<?php } else { ?> <td><?php echo htmlentities($row->Status);?>
</td>
<?php } ?>

<td><a href="view-
55

appointment-detail.php?editid=<?php echo htmlentities ($row->ID);?>&&aptid=<?php echo


htmlentities ($row->AppointmentNumber);?>" class="btn btn-primary">View</a></td>

</tr>
<?php $cnt=$cnt+1;}} ?>

</tbody>
<tfoot>
<tr>
<th>S.No</th>
<th>Appointment
Number</th>
<th>Patient
Name</th>
<th>Mobile
Number</th>
<th>Email</th>
<th>Status</th>
<th>Action</th>
</tr>
</tfoot>
</table>
</div>
</div><!-- .widget-body -->
</div><!-- .widget -->
</div><!-- END column -->

</div><!-- .row -->


</section><!-- .app-content -->
</div><!-- .wrap -->
<!-- APP FOOTER -->
<?php include_once('includes/footer.php');?>
<!-- /#app-footer -->
</main>
<!--========== END app main -->

<!-- APP CUSTOMIZER -->


<?php include_once('includes/customizer.php');?>

<!-- build:js assets/js/core.min.js -->


<script src="libs/bower/jquery/dist/jquery.js"></script>
<script src="libs/bower/jquery-ui/jquery-ui.min.js"></script>
<script src="libs/bower/jQuery-Storage-API/jquery.storageapi.min.js"></script>
<script src="libs/bower/bootstrap-sass/assets/javascripts/bootstrap.js"></script>
<script src="libs/bower/jquery-slimscroll/jquery.slimscroll.js"></script>
56

<script src="libs/bower/perfect-scrollbar/js/perfect-scrollbar.jquery.js"></script>
<script src="libs/bower/PACE/pace.min.js"></script>
<!-- endbuild -->

<!-- build:js assets/js/app.min.js -->


<script src="assets/js/library.js"></script>
<script src="assets/js/plugins.js"></script>
<script src="assets/js/app.js"></script>
<!-- endbuild -->
<script src="libs/bower/moment/moment.js"></script>
<script src="libs/bower/fullcalendar/dist/fullcalendar.min.js"></script>
<script src="assets/js/fullcalendar.js"></script>
</body>
</html>
<?php } ?> <?php
session_start(); error_reporting(0);
include('includes/dbconnection.php'); error_reporting(0); if
(strlen($_SESSION['damsid']==0)) { header('location:logout.php');
} else{
if(isset($_POST['submit']))
{
$eid=$_SESSION['damsid'];
$cpassword=md5($_POST['currentpassword']);
$newpassword=md5($_POST['newpassword']);
$sql ="SELECT ID FROM tbldoctor WHERE ID=:eid and Password=:cpassword";
$query= $dbh -> prepare($sql);
$query-> bindParam(':eid', $eid, PDO::PARAM_STR);
$query-> bindParam(':cpassword', $cpassword, PDO::PARAM_STR);
$query-> execute();
$results = $query -> fetchAll(PDO::FETCH_OBJ);

if($query -> rowCount() > 0)


{
$con="update tbldoctor set Password=:newpassword where ID=:eid";
$chngpwd1 = $dbh->prepare($con);
$chngpwd1-> bindParam(':eid', $eid, PDO::PARAM_STR);
$chngpwd1-> bindParam(':newpassword', $newpassword, PDO::PARAM_STR); $chngpwd1-
>execute();

echo '<script>alert("Your password successully changed")</script>';


} else {
echo '<script>alert("Your current password is wrong")</script>';

}
57

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

<title>DAMS - Change Password</title>

<link rel="stylesheet" href="libs/bower/font-awesome/css/font-awesome.min.css"> <link


rel="stylesheet" href="libs/bower/material-design-iconic-font/dist/css/material-designiconic-
font.css">
<!-- build:css assets/css/app.min.css -->
<link rel="stylesheet" href="libs/bower/animate.css/animate.min.css">
<link rel="stylesheet" href="libs/bower/fullcalendar/dist/fullcalendar.min.css">
<link rel="stylesheet" href="libs/bower/perfect-scrollbar/css/perfect-scrollbar.css">
<link rel="stylesheet" href="assets/css/bootstrap.css">
<link rel="stylesheet" href="assets/css/core.css">
<link rel="stylesheet" href="assets/css/app.css">
<!-- endbuild -->
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,900,300">
<script src="libs/bower/breakpoints.js/dist/breakpoints.min.js"></script> <script>
Breakpoints();
</script>
<script type="text/javascript"> function checkpass()
{
if(document.changepassword.newpassword.value!
=document.changepassword.confirmpassword.va lue) {
alert('New Password and Confirm Password field does not match');
document.changepassword.confirmpassword.focus(); return false;
}
return true;
}

</script>
</head>

<body class="menubar-left menubar-unfold menubar-light theme-primary">


<!--============= start main area -->

<?php include_once('includes/header.php');?>

<?php include_once('includes/sidebar.php');?>

<!-- APP MAIN ==========-->


58

<main id="app-main" class="app-main">


<div class="wrap">
<section class="app-content">
<div class="row">

<div class="col-md-12">
<div class="widget">
<header class="widget-header">
<h3 class="widget-title">Change Password</h3>
</header><!-- .widget-header -->
<hr class="widget-separator">
<div class="widget-body">

<form class="form-horizontal" onsubmit="return checkpass();" name="changepassword"


method="post">
<div class="form-group">
<label for="exampleTextInput1" class="col-sm-3 control-label">Current
Password:</label>
<div class="col-sm-9">
<input type="password" class="form-control" name="currentpassword"
id="currentpassword"required='true'>
</div>
</div>
<div class="form-group">
<label for="email2" class="col-sm-3 control-label">New Password:</label>
<div class="col-sm-9">
<input type="password" class="form-control" name="newpassword" class="formcontrol"
required="true">
</div>
</div>
<div class="form-group">
<label for="email2" class="col-sm-3 control-label">Confirm Password:</label>
<div class="col-sm-9">
<input type="password" class="form-control" name="confirmpassword"
id="confirmpassword" required='true'>
</div>
</div>

<div class="row">
<div class="col-sm-9 col-sm-offset-3">
<button type="submit" class="btn btn-success" name="submit">Change</button>
</div>
</div>
</form>
</div><!-- .widget-body -->
</div><!-- .widget -->
59

</div><!-- END column -->

</div><!-- .row -->


</section><!-- #dash-content -->
</div><!-- .wrap -->
<!-- APP FOOTER -->
<?php include_once('includes/footer.php');?>
<!-- /#app-footer -->
</main>
<!--========== END app main -->

<?php include_once('includes/customizer.php');?>

<!-- SIDE PANEL -->

<!-- build:js assets/js/core.min.js -->


<script src="libs/bower/jquery/dist/jquery.js"></script>
<script src="libs/bower/jquery-ui/jquery-ui.min.js"></script>
<script src="libs/bower/jQuery-Storage-API/jquery.storageapi.min.js"></script>
<script src="libs/bower/bootstrap-sass/assets/javascripts/bootstrap.js"></script>
<script src="libs/bower/jquery-slimscroll/jquery.slimscroll.js"></script>
<script src="libs/bower/perfect-scrollbar/js/perfect-scrollbar.jquery.js"></script>
<script src="libs/bower/PACE/pace.min.js"></script>
<!-- endbuild -->

<!-- build:js assets/js/app.min.js -->


<script src="assets/js/library.js"></script>
<script src="assets/js/plugins.js"></script>
<script src="assets/js/app.js"></script>
<!-- endbuild -->
<script src="libs/bower/moment/moment.js"></script>
<script src="libs/bower/fullcalendar/dist/fullcalendar.min.js"></script>
<script src="assets/js/fullcalendar.js"></script>
</body>
</html>
<?php } ?> <?php
session_start(); error_reporting(0); include('includes/dbconnection.php'); if
(strlen($_SESSION['damsid']==0)) { header('location:logout.php');
} else{

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

<title>DAMS - Dashboard</title>

<link rel="stylesheet" href="libs/bower/font-awesome/css/font-awesome.min.css"> <link


rel="stylesheet" href="libs/bower/material-design-iconic-font/dist/css/material-designiconic-
font.css">
<!-- build:css assets/css/app.min.css -->
<link rel="stylesheet" href="libs/bower/animate.css/animate.min.css">
<link rel="stylesheet" href="libs/bower/fullcalendar/dist/fullcalendar.min.css">
<link rel="stylesheet" href="libs/bower/perfect-scrollbar/css/perfect-scrollbar.css">
<link rel="stylesheet" href="assets/css/bootstrap.css">
<link rel="stylesheet" href="assets/css/core.css">
<link rel="stylesheet" href="assets/css/app.css">
<!-- endbuild -->
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,900,300">
<script src="libs/bower/breakpoints.js/dist/breakpoints.min.js"></script>
<script>
Breakpoints();
</script>
</head>

<body class="menubar-left menubar-unfold menubar-light theme-primary">


<!--============= start main area -->

<?php include_once('includes/header.php');?>

<?php include_once('includes/sidebar.php');?>

<!-- APP MAIN ==========-->


<main id="app-main" class="app-main">
<div class="wrap">
<section class="app-content">
<div class="row">

<div class="row">
<div class="col-md-6 col-sm-6">
<div class="widget stats-widget">
<div class="widget-body clearfix">
<?php
$docid=$_SESSION['damsid'];;
$sql ="SELECT * from tblappointment where Status is null && Doctor=:docid ";
$query = $dbh -> prepare($sql);
$query-> bindParam(':docid', $docid, PDO::PARAM_STR);
61

$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$totnewapt=$query->rowCount();
?>
<div class="pull-left">
<h3 class="widget-title text-warning"><span
class="counter" data-plugin="counterUp"><?php echo
htmlentities($totnewapt);?></span></h3>
<small class="text-color">Total New
Appointment</small>
</div>
<span class="pull-right big-icon watermark"><i class="fa fa-paperclip"></i></span>
</div>
<footer class="widget-footer bg-warning">
<a href="new-appointment.php"><small> View
Detail</small></a>
<span class="small-chart pull-right" data-
plugin="sparkline" data-options="[4,3,5,2,1], { type: 'bar', barColor: '#ffffff', barWidth: 5,
barSpacing: 2 }"></span>
</footer>
</div><!-- .widget -->
</div>

<div class="col-md-6 col-sm-6">


<div class="widget stats-widget">
<div class="widget-body clearfix">
<?php
$docid=$_SESSION['damsid'];;
$sql ="SELECT * from tblappointment where Status='Approved' && Doctor=:docid ";
$query = $dbh -> prepare($sql);
$query-> bindParam(':docid', $docid, PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$totappapt=$query->rowCount();
?>
<div class="pull-left">
<h3 class="widget-title text-success"><span
class="counter" data-plugin="counterUp"><?php echo
htmlentities($totappapt);?></span></h3>
<small class="text-color">Total
Approved</small>
</div>
<span class="pull-right big-icon watermark"><i class="fa fa-ban"></i></span>
</div>
<footer class="widget-footer bg-success">
<a href="approved-appointment.php"><small> View
Detail</small></a>
62

<span class="small-chart pull-right" data-


plugin="sparkline" data-options="[1,2,3,5,4], { type: 'bar', barColor: '#ffffff', barWidth: 5,
barSpacing: 2 }"></span>
</footer>
</div><!-- .widget -->
</div>

<div class="col-md-6 col-sm-6">


<div class="widget stats-widget">
<div class="widget-body clearfix">
<div class="pull-left">
<?php
$docid=$_SESSION['damsid'];;
$sql ="SELECT * from tblappointment where Status='Cancelled' && Doctor=:docid ";
$query = $dbh -> prepare($sql);
$query-> bindParam(':docid', $docid, PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$totncanapt=$query->rowCount();
?>
<h3 class="widget-title text-danger"><span
class="counter" data-plugin="counterUp"><?php echo
htmlentities($totncanapt);?></span></h3>
<small class="text-color">Cancelled
Appointment</small>
</div>
<span class="pull-right big-icon watermark"><i class="fa fa-unlock-alt"></i></span>
</div>
<footer class="widget-footer bg-danger">
<a href="cancelled-appointment.php"><small> View
Detail</small></a>
<span class="small-chart pull-right" data-
plugin="sparkline" data-options="[2,4,3,4,3], { type: 'bar', barColor: '#ffffff', barWidth: 5,
barSpacing: 2 }"></span>
</footer>
</div><!-- .widget -->
</div>

<div class="col-md-6 col-sm-6">


<div class="widget stats-widget">
<div class="widget-body clearfix">

<div class="pull-left">
<?php
$docid=$_SESSION['damsid'];;
$sql ="SELECT * from tblappointment where Doctor=:docid ";
$query = $dbh -> prepare($sql);
63

$query-> bindParam(':docid', $docid, PDO::PARAM_STR);


$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$totapt=$query->rowCount();
?>
<h3 class="widget-title text-primary"><span
class="counter" data-plugin="counterUp"><?php echo htmlentities($totapt);?></span></h3>
<small class="text-color">Total
Appointment</small>
</div>
<span class="pull-right big-icon watermark"><i class="fa fa-file-text-o"></i></span>
</div>
<footer class="widget-footer bg-primary">
<a href="all-appointment.php"><small> View
Detail</small></a>
<span class="small-chart pull-right" data-
plugin="sparkline" data-options="[5,4,3,5,2],{ type: 'bar', barColor: '#ffffff', barWidth: 5,
barSpacing: 2 }"></span>
</footer>
</div><!-- .widget -->
</div>
</div><!-- .row -->

<div class="row">

</section><!-- #dash-content -->


</div><!-- .wrap -->
<!-- APP FOOTER -->
<?php include_once('includes/footer.php');?>
<!-- /#app-footer -->
</main>
<!--========== END app main -->

<?php include_once('includes/customizer.php');?>

<!-- build:js assets/js/core.min.js -->


<script src="libs/bower/jquery/dist/jquery.js"></script>
<script src="libs/bower/jquery-ui/jquery-ui.min.js"></script>
<script src="libs/bower/jQuery-Storage-API/jquery.storageapi.min.js"></script>
<script src="libs/bower/bootstrap-sass/assets/javascripts/bootstrap.js"></script>
<script src="libs/bower/jquery-slimscroll/jquery.slimscroll.js"></script>
<script src="libs/bower/perfect-scrollbar/js/perfect-scrollbar.jquery.js"></script>
<script src="libs/bower/PACE/pace.min.js"></script>
64

<!-- endbuild -->

<!-- build:js assets/js/app.min.js -->


<script src="assets/js/library.js"></script>
<script src="assets/js/plugins.js"></script>
<script src="assets/js/app.js"></script>
<!-- endbuild -->
<script src="libs/bower/moment/moment.js"></script>
<script src="libs/bower/fullcalendar/dist/fullcalendar.min.js"></script>
<script src="assets/js/fullcalendar.js"></script>
</body>
</html>
<?php } ?> <?php
session_start(); error_reporting(0);
include('includes/dbconnection.php');

if(isset($_POST['submit']))
{
$email=$_POST['email'];
$mobile=$_POST['mobile'];
$newpassword=md5($_POST['newpassword']);
$sql ="SELECT Email FROM tbldoctor WHERE Email=:email and
MobileNumber=:mobile"; $query= $dbh -> prepare($sql);
$query-> bindParam(':email', $email, PDO::PARAM_STR);
$query-> bindParam(':mobile', $mobile, PDO::PARAM_STR); $query-> execute();
$results = $query -> fetchAll(PDO::FETCH_OBJ);
if($query -> rowCount() > 0)
{
$con="update tbldoctor set Password=:newpassword where Email=:email and
MobileNumber=:mobile";
$chngpwd1 = $dbh->prepare($con);
$chngpwd1-> bindParam(':email', $email, PDO::PARAM_STR);
$chngpwd1-> bindParam(':mobile', $mobile, PDO::PARAM_STR);
$chngpwd1-> bindParam(':newpassword', $newpassword, PDO::PARAM_STR);
$chngpwd1->execute();
echo "<script>alert('Your Password succesfully changed');</script>";
} else {
echo "<script>alert('Email id or Mobile no is invalid');</script>";
}
}

?>
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
65

<title>DAMS - Forgot Page</title>

<link rel="stylesheet" href="libs/bower/font-awesome/css/font-awesome.min.css"> <link


rel="stylesheet" href="libs/bower/material-design-iconic-font/dist/css/material-designiconic-
font.min.css">
<link rel="stylesheet" href="libs/bower/animate.css/animate.min.css">
<link rel="stylesheet" href="assets/css/bootstrap.css">
<link rel="stylesheet" href="assets/css/core.css">
<link rel="stylesheet" href="assets/css/misc-pages.css">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,900,300">
<script type="text/javascript"> function valid()
{
if(document.chngpwd.newpassword.value!= document.chngpwd.confirmpassword.value)
{
alert("New Password and Confirm Password Field do not match !!");
document.chngpwd.confirmpassword.focus(); return false;
}
return true; }
</script>
</head>
<body class="simple-page">
<div id="back-to-home">
<a href="../index.php" class="btn btn-outline btn-default"><i class="fa fa-home animated
zoomIn"></i></a>
</div>
<div class="simple-page-wrap">
<div class="simple-page-logo animated swing">

<span style="color: white"><i class="fa fa-gg"></i></span>


<span style="color: white">DAMS</span>

</div><!-- logo -->


<div class="simple-page-form animated flipInY" id="login-form">
<h4 class="form-title m-b-xl text-center">Reset Your Password</h4>
<form method="post" name="chngpwd" onSubmit="return valid();">
<div class="form-group">
<input type="text" class="form-control" placeholder="Email Address" required="true"
name="email">
</div>

<div class="form-group">
<input type="text" class="form-control" name="mobile"
placeholder="Mobile Number" required="true">
</div>
<div class="form-group">
66

<input class="form-control" type="password" name="newpassword" placeholder="New


Password" required="true"/>
</div>
<div class="form-group">
<input class="form-control" type="password" name="confirmpassword"
placeholder="Confirm Password" required="true" />
</div>

<input type="submit" class="btn btn-primary" name="submit" value="RESET">


</form>
</div><!-- #login-form -->

<div class="simple-page-footer">
<p style="color: white">Do you have an account ?<a href="login.php"> SIGN IN</a></p>

</div><!-- .simple-page-footer -->

</div><!-- .simple-page-wrap -->


</body>
</html> <?php
session_start(); error_reporting(0);
include('includes/dbconnection.php');

if(isset($_POST['login']))
{
$email=$_POST['email'];
$password=md5($_POST['password']);
$sql ="SELECT ID,Email FROM tbldoctor WHERE Email=:email and
Password=:password"; $query=$dbh->prepare($sql);
$query->bindParam(':email',$email,PDO::PARAM_STR);
$query-> bindParam(':password', $password, PDO::PARAM_STR);
$query-> execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
if($query->rowCount() > 0)
{ foreach ($results as $result) {
$_SESSION['damsid']=$result->ID;
$_SESSION['damsemailid']=$result->Email;

}
$_SESSION['login']=$_POST['email'];
echo "<script type='text/javascript'> document.location ='dashboard.php'; </script>";
} else{
echo "<script>alert('Invalid Details');</script>";
}
}
67

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

<title>DAMS - Login Page</title>

<link rel="stylesheet" href="libs/bower/font-awesome/css/font-awesome.min.css"> <link


rel="stylesheet" href="libs/bower/material-design-iconic-font/dist/css/material-designiconic-
font.min.css">
<link rel="stylesheet" href="libs/bower/animate.css/animate.min.css">
<link rel="stylesheet" href="assets/css/bootstrap.css">
<link rel="stylesheet" href="assets/css/core.css">
<link rel="stylesheet" href="assets/css/misc-pages.css">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,900,300">
</head>
<body class="simple-page">
<div id="back-to-home">
<a href="../index.php" class="btn btn-outline btn-default"><i class="fa fa-home animated
zoomIn"></i></a>
</div>
<div class="simple-page-wrap">
<div class="simple-page-logo animated swing">

<span style="color: white"><i class="fa fa-gg"></i></span>


<span style="color: white">DAMS</span>

</div><!-- logo -->


<div class="simple-page-form animated flipInY" id="login-form">
<h4 class="form-title m-b-xl text-center">Sign In With Your DAMS Account</h4>
<form method="post" name="login">
<div class="form-group">
<input type="text" class="form-control" placeholder="Enter Registered
Email ID" required="true" name="email">
</div>

<div class="form-group">
<input type="password" class="form-control" placeholder="Password" name="password"
required="true">
</div>

<input type="submit" class="btn btn-primary" name="login" value="Sign IN">


68

</form>
<hr />
<a href="signup.php">Signup/Registration</a>
</div><!-- #login-form -->

<div class="simple-page-footer">
<p><a href="forgot-password.php">FORGOT YOUR PASSWORD ?</a></p>

</div><!-- .simple-page-footer -->

</div><!-- .simple-page-wrap -->


</body>
</html> <?php
session_start(); session_unset(); session_destroy();
header('location:login.php');

?>
<?php
session_start(); error_reporting(0); include('includes/dbconnection.php'); if
(strlen($_SESSION['damsid']==0)) { header('location:logout.php');
} else{

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

<title>DAMS || New Appointment Detail</title>

<link rel="stylesheet" href="libs/bower/font-awesome/css/font-awesome.min.css"> <link


rel="stylesheet" href="libs/bower/material-design-iconic-font/dist/css/material-designiconic-
font.css">
<!-- build:css assets/css/app.min.css -->
<link rel="stylesheet" href="libs/bower/animate.css/animate.min.css">
<link rel="stylesheet" href="libs/bower/fullcalendar/dist/fullcalendar.min.css">
<link rel="stylesheet" href="libs/bower/perfect-scrollbar/css/perfect-scrollbar.css">
<link rel="stylesheet" href="assets/css/bootstrap.css">
<link rel="stylesheet" href="assets/css/core.css">
<link rel="stylesheet" href="assets/css/app.css">
<!-- endbuild -->
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,900,300">
<script src="libs/bower/breakpoints.js/dist/breakpoints.min.js"></script>
<script>
69

Breakpoints();
</script>
</head>

<body class="menubar-left menubar-unfold menubar-light theme-primary">


<!--============= start main area -->

<?php include_once('includes/header.php');?>

<?php include_once('includes/sidebar.php');?>

<!-- APP MAIN ==========-->


<main id="app-main" class="app-main">
<div class="wrap">
<section class="app-content">
<div class="row">
<!-- DOM dataTable -->
<div class="col-md-12">
<div class="widget">
<header class="widget-header">
<h4 class="widget-title">New Appointment</h4>
</header><!-- .widget-header -->
<hr class="widget-separator">
<div class="widget-body">
<div class="table-responsive">
<table class="table table-bordered
js-basic-example dataTable table- table-hover
custom">
<thead>
<tr>
<th>S.No</th>
<th>Appointment
Number</th>
<th>Patient Name</th>
<th>Mobile
Number</th>
<th>Email</th>
<th>Status</th>
<th>Action</th>

</tr>
</thead>
70

<tbody>
<?php
$docid=$_SESSION['damsid'];
$sql="SELECT * from tblappointment where Status is null && Doctor=:docid";
$query = $dbh -> prepare($sql);
$query-> bindParam(':docid', $docid, PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);

$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $row)
{ ?>
<tr>
htmlentities($cnt);?></td> <td><?php
echo
<td><?php
htmlentities($row- echo
>AppointmentNumber);?></td>
<td><?php
htmlentities($row->Name);?></td> echo
<td><?php
htmlentities($row->MobileNumber);?></ echo
td>
<td><?php
echo
htmlentities($row->Email);?></td>
<?php if($row->Status==""){ ?>

<td><?php echo "Not Updated Yet"; ?></td>


<?php } else { ?> <td><?php echo htmlentities($row->Status);?>
</td>
<?php } ?>

<td><a href="view-
appointment-detail.php?editid=<?php echo htmlentities ($row->ID);?>&&aptid=<?php echo
htmlentities ($row->AppointmentNumber);?>" class="btn btn-primary">View</a></td>

</tr>
<?php $cnt=$cnt+1;}} ?>

</tbody>
<tfoot>
<tr>
<th>S.No</th>
<th>Appointment
71

Number</th>
<th>Patient
Name</th>
<th>Mobile
Number</th>
<th>Email</th>
<th>Status</th>
<th>Action</th>
</tr>
</tfoot>
</table>
</div>
</div><!-- .widget-body -->
</div><!-- .widget -->
</div><!-- END column -->

</div><!-- .row -->


</section><!-- .app-content -->
</div><!-- .wrap -->
<!-- APP FOOTER -->
<?php include_once('includes/footer.php');?>
<!-- /#app-footer -->
</main>
<!--========== END app main -->

<!-- APP CUSTOMIZER -->


<?php include_once('includes/customizer.php');?>

<!-- build:js assets/js/core.min.js -->


<script src="libs/bower/jquery/dist/jquery.js"></script>
<script src="libs/bower/jquery-ui/jquery-ui.min.js"></script>
<script src="libs/bower/jQuery-Storage-API/jquery.storageapi.min.js"></script>
<script src="libs/bower/bootstrap-sass/assets/javascripts/bootstrap.js"></script>
<script src="libs/bower/jquery-slimscroll/jquery.slimscroll.js"></script>
<script src="libs/bower/perfect-scrollbar/js/perfect-scrollbar.jquery.js"></script>
<script src="libs/bower/PACE/pace.min.js"></script>
<!-- endbuild -->

<!-- build:js assets/js/app.min.js -->


<script src="assets/js/library.js"></script>
<script src="assets/js/plugins.js"></script>
<script src="assets/js/app.js"></script>
<!-- endbuild -->
<script src="libs/bower/moment/moment.js"></script>
<script src="libs/bower/fullcalendar/dist/fullcalendar.min.js"></script>
72

<script src="assets/js/fullcalendar.js"></script>
</body>
</html>
<?php } ?> <?php
session_start(); error_reporting(0); include('includes/dbconnection.php'); if
(strlen($_SESSION['damsid']==0)) { header('location:logout.php');
} else{
if(isset($_POST['submit']))
{
$did=$_SESSION['damsid'];
$name=$_POST['fname'];
$mobno=$_POST['mobilenumber'];
$email=$_POST['email'];
$sid=$_POST['specializationid'];
$sql="update tbldoctor set
FullName=:name,MobileNumber=:mobilenumber,Email=:email,Specialization=:sid where
ID=:did";
$query = $dbh->prepare($sql);
$query->bindParam(':name',$name,PDO::PARAM_STR);
$query->bindParam(':email',$email,PDO::PARAM_STR);
$query->bindParam(':mobilenumber',$mobno,PDO::PARAM_STR);
$query->bindParam(':sid',$sid,PDO::PARAM_STR);
$query->bindParam(':did',$did,PDO::PARAM_STR);
$query->execute();

echo '<script>alert("Profile has been updated")</script>';

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

<title>DAMS - Doctor Profile</title>

<link rel="stylesheet" href="libs/bower/font-awesome/css/font-awesome.min.css"> <link


rel="stylesheet" href="libs/bower/material-design-iconic-font/dist/css/material-designiconic-
font.css">
<!-- build:css assets/css/app.min.css -->
<link rel="stylesheet" href="libs/bower/animate.css/animate.min.css">
<link rel="stylesheet" href="libs/bower/fullcalendar/dist/fullcalendar.min.css">
<link rel="stylesheet" href="libs/bower/perfect-scrollbar/css/perfect-scrollbar.css">
<link rel="stylesheet" href="assets/css/bootstrap.css">
<link rel="stylesheet" href="assets/css/core.css">
<link rel="stylesheet" href="assets/css/app.css">
<!-- endbuild -->
73

<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,900,300">
<script src="libs/bower/breakpoints.js/dist/breakpoints.min.js"></script> <script>
Breakpoints();
</script>
</head>

<body class="menubar-left menubar-unfold menubar-light theme-primary">


<!--============= start main area -->

<?php include_once('includes/header.php');?>

<?php include_once('includes/sidebar.php');?>

<!-- APP MAIN ==========-->


<main id="app-main" class="app-main">
<div class="wrap">
<section class="app-content">
<div class="row">

<div class="col-md-12">
<div class="widget">
<header class="widget-header">
<h3 class="widget-title">Doctor Profile</h3>
</header><!-- .widget-header -->
<hr class="widget-separator">
<div class="widget-body">
<?php
$did=$_SESSION['damsid'];
$sql="SELECT tbldoctor.*,tblspecialization.ID as sid,tblspecialization.Specialization as sssp
from tbldoctor join tblspecialization on tblspecialization.ID=tbldoctor.Specialization where
tbldoctor.ID=:did";
$query = $dbh -> prepare($sql);
$query->bindParam(':did',$did,PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $row)
{ ?>
<form class="form-horizontal" method="post">
<div class="form-group">
<label for="exampleTextInput1" class="col-sm-3 control-label">Employee ID:</label>
<div class="col-sm-9">
<input id="fname" type="text" class="form-control" placeholder="Full Name" name="fname"
required="true" value="<?php echo $row->FullName;?>">
74

</div>
</div>

<div class="form-group">
<label for="email2" class="col-sm-3 control-label">Email:</label>
<div class="col-sm-9">
<input type="email" class="form-control" id="email" name="email" value="<?php echo
$row->Email;?>" required='true'>
</div>
</div>
<div class="form-group">
<label for="email2" class="col-sm-3 control-label">Contact Number:</label> <div
class="col-sm-9">
<input type="text" class="form-control" id="email2" name="mobilenumber" value="<?php
echo $row->MobileNumber;?>" required='true' maxlength='10'>
</div>
</div>
<div class="form-group">
<label for="email2" class="col-sm-3 control-label">Specialization:</label>
<div class="col-sm-9">
<select class="form-control" name="specializationid">
<option value="<?php echo htmlentities($row->ID);?>"><?php echo
htmlentities($row>sssp);?></option>
<?php
$sql1="SELECT * from tblspecialization";
$query1 = $dbh -> prepare($sql1);
$query1->execute();
$results1=$query1->fetchAll(PDO::FETCH_OBJ);

$cnt=1;
if($query1->rowCount() > 0)
{
foreach($results1 as $row1)
{ ?>
<option value="<?php echo htmlentities($row1->ID);?>"><?php echo
htmlentities($row1>Specialization);?></option><?php $cnt=$cnt+1;}} ?>
</select>
</div>
</div>
<div class="form-group">
<label for="email2" class="col-sm-3 control-label">Regsitration Date:</label> <div
class="col-sm-9">
<input type="text" class="form-control" id="email2" name="" value="<?php echo $row-
>CreationDate;?>" readonly="true">
</div>
</div>
75

<?php $cnt=$cnt+1;}} ?>


<div class="row">
<div class="col-sm-9 col-sm-offset-3">
<button type="submit" class="btn btn-success" name="submit">Update</button>
</div>
</div>
</form>
</div><!-- .widget-body -->
</div><!-- .widget -->
</div><!-- END column -->

</div><!-- .row -->


</section><!-- #dash-content -->
</div><!-- .wrap -->
<!-- APP FOOTER -->
<?php include_once('includes/footer.php');?>
<!-- /#app-footer -->
</main>
<!--========== END app main -->

<?php include_once('includes/customizer.php');?>

<!-- SIDE PANEL -->

<!-- build:js assets/js/core.min.js -->


<script src="libs/bower/jquery/dist/jquery.js"></script>
<script src="libs/bower/jquery-ui/jquery-ui.min.js"></script>
<script src="libs/bower/jQuery-Storage-API/jquery.storageapi.min.js"></script>
<script src="libs/bower/bootstrap-sass/assets/javascripts/bootstrap.js"></script>
<script src="libs/bower/jquery-slimscroll/jquery.slimscroll.js"></script>
<script src="libs/bower/perfect-scrollbar/js/perfect-scrollbar.jquery.js"></script>
<script src="libs/bower/PACE/pace.min.js"></script>
<!-- endbuild -->

<!-- build:js assets/js/app.min.js -->


<script src="assets/js/library.js"></script>
<script src="assets/js/plugins.js"></script>
<script src="assets/js/app.js"></script>
<!-- endbuild -->
<script src="libs/bower/moment/moment.js"></script>
<script src="libs/bower/fullcalendar/dist/fullcalendar.min.js"></script>
<script src="assets/js/fullcalendar.js"></script>
</body>
</html>
<?php } ?> <?php
76

session_start(); error_reporting(0); include('includes/dbconnection.php'); if


(strlen($_SESSION['damsid']==0)) { header('location:logout.php');
} else{

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

<title>DAMS || Search Appointment Detail</title>

<link rel="stylesheet" href="libs/bower/font-awesome/css/font-awesome.min.css"> <link


rel="stylesheet" href="libs/bower/material-design-iconic-font/dist/css/material-designiconic-
font.css">
<!-- build:css assets/css/app.min.css -->
<link rel="stylesheet" href="libs/bower/animate.css/animate.min.css">
<link rel="stylesheet" href="libs/bower/fullcalendar/dist/fullcalendar.min.css">
<link rel="stylesheet" href="libs/bower/perfect-scrollbar/css/perfect-scrollbar.css">
<link rel="stylesheet" href="assets/css/bootstrap.css">
<link rel="stylesheet" href="assets/css/core.css">
<link rel="stylesheet" href="assets/css/app.css">
<!-- endbuild -->
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,900,300">
<script src="libs/bower/breakpoints.js/dist/breakpoints.min.js"></script>
<script>
Breakpoints();
</script>
</head>

<body class="menubar-left menubar-unfold menubar-light theme-primary">


<!--============= start main area -->

<?php include_once('includes/header.php');?>

<?php include_once('includes/sidebar.php');?>

<!-- APP MAIN ==========-->


<main id="app-main" class="app-main">
<div class="wrap">
<section class="app-content">
<div class="row">
<!-- DOM dataTable -->
<div class="col-md-12">
<div class="widget">
77

<header class="widget-header">
<form id="basic-form" method="post">
<div class="form-group">
<label>Search by Appointment No./Name/Mobile No.</label>
<input id="searchdata" type="text" name="searchdata" required="true" class="form-control"
placeholder="Appointment No./Name/Mobile No."></div>

<br>
<button type="submit" class="btn btn-primary" name="search" id="submit">Search</button>
</form>
</header><!-- .widget-
header -->
<?php
if(isset($_POST['search']))
{

$sdata=$_POST['searchdata'];
?>
<h4 align="center">Result against "<?php echo $sdata;?>" keyword </h4>

<div class="widget-body">
<div class="table-responsive">
<table class="table table-bordered
js-basic-example dataTable table- table-hover
custom">
<thead>
<tr>
<th>S.No</th>
<th>Appointment
Number</th>
<th>Patient Name</th>
<th>Mobile
Number</th>
<th>Email</th>
<th>Status</th>
<th>Action</th>

</tr>
</thead>

<tbody>
<?php
$docid=$_SESSION['damsid'];
$sql="SELECT * from tblappointment where AppointmentNumber like '$sdata%' || Name like
'$sdata%' || MobileNumber like '$sdata%' && Doctor=:docid";
$query = $dbh -> prepare($sql);
$query-> bindParam(':docid', $docid, PDO::PARAM_STR);
78

$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);

$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $row)
{ ?>
<tr>
htmlentities($cnt);?></td> <td><?php
echo
<td><?php
htmlentities($row- echo
>AppointmentNumber);?></td>
<td><?php
htmlentities($row->Name);?></td> echo
<td><?php
htmlentities($row->MobileNumber);?></ echo
td>
<td><?php
echo
htmlentities($row->Email);?></td>
<?php if($row->Status==""){ ?>

<td><?php echo "Not Updated Yet"; ?></td>


<?php } else { ?> <td><?php echo htmlentities($row->Status);?>
</td>
<?php } ?>

<td><a href="view-
appointment-detail.php?editid=<?php echo htmlentities ($row->ID);?>&&aptid=<?php echo
htmlentities ($row->AppointmentNumber);?>" class="btn btn-primary">View</a></td>

</tr>

</tbody>
<tfoot>
<tr>
<th>S.No</th>
<th>Appointment
Number</th>
<th>Patient Name</th>
<th>Mobile
Number</th>
<th>Email</th>
<th>Status</th>
79

<th>Action</th>
</tr>
</tfoot>
<?php
$cnt=$cnt+1;
} } else { ?>
<tr>
<td colspan="8"> No record found against this search</td>

</tr>
<?php } }?>
</table>
</div>
</div><!-- .widget-body -->
</div><!-- .widget -->
</div><!-- END column -->

</div><!-- .row -->


</section><!-- .app-content -->
</div><!-- .wrap -->
<!-- APP FOOTER -->
<?php include_once('includes/footer.php');?>
<!-- /#app-footer -->
</main>
<!--========== END app main -->

<!-- APP CUSTOMIZER -->


<?php include_once('includes/customizer.php');?>

<!-- build:js assets/js/core.min.js -->


<script src="libs/bower/jquery/dist/jquery.js"></script>
<script src="libs/bower/jquery-ui/jquery-ui.min.js"></script>
<script src="libs/bower/jQuery-Storage-API/jquery.storageapi.min.js"></script>
<script src="libs/bower/bootstrap-sass/assets/javascripts/bootstrap.js"></script>
<script src="libs/bower/jquery-slimscroll/jquery.slimscroll.js"></script>
<script src="libs/bower/perfect-scrollbar/js/perfect-scrollbar.jquery.js"></script>
<script src="libs/bower/PACE/pace.min.js"></script>
<!-- endbuild -->

<!-- build:js assets/js/app.min.js -->


<script src="assets/js/library.js"></script>
<script src="assets/js/plugins.js"></script>
<script src="assets/js/app.js"></script>
<!-- endbuild -->
<script src="libs/bower/moment/moment.js"></script>
80

<script src="libs/bower/fullcalendar/dist/fullcalendar.min.js"></script>
<script src="assets/js/fullcalendar.js"></script>
</body>
</html>
<?php } ?> <?php session_start(); error_reporting(0); include('includes/dbconnection.php');
if(isset($_POST['submit']))
{
$fname=$_POST['fname'];
$mobno=$_POST['mobno'];
$email=$_POST['email'];
$sid=$_POST['specializationid'];
$password=md5($_POST['password']);
$ret="select Email from tbldoctor where Email=:email";
$query= $dbh -> prepare($ret);
$query-> bindParam(':email', $email, PDO::PARAM_STR);
$query-> execute();
$results = $query -> fetchAll(PDO::FETCH_OBJ); if($query -> rowCount() == 0)
{
$sql="Insert Into
tbldoctor(FullName,MobileNumber,Email,Specialization,Password)Values(:fname,:mobno,:e
mail,:
sid,:password)";
$query = $dbh->prepare($sql);
$query->bindParam(':fname',$fname,PDO::PARAM_STR);
$query->bindParam(':email',$email,PDO::PARAM_STR);
$query->bindParam(':mobno',$mobno,PDO::PARAM_INT);
$query->bindParam(':sid',$sid,PDO::PARAM_INT);
$query->bindParam(':password',$password,PDO::PARAM_STR);
$query->execute();
$lastInsertId = $dbh->lastInsertId();
if($lastInsertId)
{

echo "<script>alert('You have signup Successfully');</script>";


} else {

echo "<script>alert('Something went wrong.Please try again');</script>";


} } else
{

echo "<script>alert('Email-id already exist. Please try again');</script>";


}
}

?>
<!doctype html>
81

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

<title>DAMS - Login Page</title>

<link rel="stylesheet" href="libs/bower/font-awesome/css/font-awesome.min.css">


<link rel="stylesheet" href="libs/bower/material-design-iconic-font/dist/css/material-
designiconic-font.min.css">
<link rel="stylesheet" href="libs/bower/animate.css/animate.min.css">
<link rel="stylesheet" href="assets/css/bootstrap.css">
<link rel="stylesheet" href="assets/css/core.css">
<link rel="stylesheet" href="assets/css/misc-pages.css">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,900,300">
</head>
<body class="simple-page">
<div id="back-to-home">
<a href="../index.php" class="btn btn-outline btn-default"><i class="fa fa-home
animated zoomIn"></i></a>
</div>
<div class="simple-page-wrap">
<div class="simple-page-logo animated swing">

<span style="color: white"><i class="fa fa-gg"></i></span>


<span style="color: white">DAMS</span>

</div><!-- logo -->


<div class="simple-page-form animated flipInY" id="login-form">
<h4 class="form-title m-b-xl text-center">Sign Up With Your DAMS Account</h4>
<form action="" method="post">
<div class="form-group">
<input id="fname" type="text" class="form-control" placeholder="Full
Name" name="fname" required="true">
</div>

<div class="form-group">
<input id="email" type="email" class="form-control" placeholder="Email" name="email"
required="true">
</div>
<div class="form-group">
<input id="mobno" type="text" class="form-control"
placeholder="Mobile" name="mobno" maxlength="10" pattern="[0-9]+" required="true">
</div>
<div class="form-group">
<select class="form-control" name="specializationid">
82

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


<?php
$sql1="SELECT * from tblspecialization";
$query1 = $dbh -> prepare($sql1);
$query1->execute();
$results1=$query1->fetchAll(PDO::FETCH_OBJ);

$cnt=1;
if($query1->rowCount() > 0)
{
foreach($results1 as $row1)
{ ?>
<option value="<?php echo htmlentities($row1->ID);?>"><?php
echo htmlentities($row1->Specialization);?></option><?php $cnt=$cnt+1;}} ?>
</select>

</div>

<div class="form-group">
<input id="password" type="password" class="form-control"
placeholder="Password" name="password" required="true">
</div>

<input type="submit" class="btn btn-primary" value="Register" name="submit">


</form>
</div><!-- #login-form -->

<div class="simple-page-footer">
<p>
<small>Do you have an account ?</small>
<a href="login.php">SIGN IN</a>
</p>
</div>

</div><!-- .simple-page-wrap -->


</body>
</html> <?php
session_start(); error_reporting(0);
include('includes/dbconnection.php'); if (strlen($_SESSION['damsid']==0))
{ header('location:logout.php');
} else{

if(isset($_POST['submit']))
{
$eid=$_GET['editid'];
$aptid=$_GET['aptid'];
83

$status=$_POST['status'];
$remark=$_POST['remark'];
$sql= "update tblappointment set Status=:status,Remark=:remark where ID=:eid";
$query=$dbh->prepare($sql);
$query->bindParam(':status',$status,PDO::PARAM_STR);
$query->bindParam(':remark',$remark,PDO::PARAM_STR);
$query->bindParam(':eid',$eid,PDO::PARAM_STR);
$query->execute(); echo '<script>alert("Remark and status has been updated")</script>';
echo "<script>window.location.href ='all-appointment.php'</script>"; }
?>
<!DOCTYPE html>
<html lang="en">
<head>

<title>DAMS|| View Appointment Detail</title>

<link rel="stylesheet" href="libs/bower/font-awesome/css/font-awesome.min.css">


<link rel="stylesheet" href="libs/bower/material-design-iconic-font/dist/css/material-
designiconic-font.css">
<!-- build:css assets/css/app.min.css -->
<link rel="stylesheet" href="libs/bower/animate.css/animate.min.css">
<link rel="stylesheet" href="libs/bower/fullcalendar/dist/fullcalendar.min.css">
<link rel="stylesheet" href="libs/bower/perfect-scrollbar/css/perfect-scrollbar.css">
<link rel="stylesheet" href="assets/css/bootstrap.css">
<link rel="stylesheet" href="assets/css/core.css">
<link rel="stylesheet" href="assets/css/app.css">
<!-- endbuild -->
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,900,300">
<script src="libs/bower/breakpoints.js/dist/breakpoints.min.js"></script>
<script>
Breakpoints();
</script>

</head>

<body class="menubar-left menubar-unfold menubar-light theme-primary">


<!--============= start main area -->

<?php include_once('includes/header.php');?>

<?php include_once('includes/sidebar.php');?>
84

<!-- APP MAIN ==========-->


<main id="app-main" class="app-main">
<div class="wrap">
<section class="app-content">
<div class="row">
<!-- DOM dataTable -->
<div class="col-md-12">
<div class="widget">
<header class="widget-header">
<h4 class="widget-title" style="color: blue">Appointment Details</h4>
</header><!-- .widget-header -->
<hr class="widget-separator">
<div class="widget-body">
<div class="table-responsive">
<?php
$eid=$_GET['editid'];
$sql="SELECT * from tblappointment where ID=:eid";
$query = $dbh -> prepare($sql);
$query-> bindParam(':eid', $eid, PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);

$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $row)
{ ?>
<table border="1" class="table table-
bordered mg-b-0">
<tr>
<th>Appointment Number</th>
<td><?php echo $aptno=($row->AppointmentNumber);?></td>
<th>Patient Name</th>
<td><?php echo $row->Name;?></td>
</tr>

<tr>
<th>Mobile Number</th>
<td><?php echo $row->MobileNumber;?></td>
<th>Email</th>
<td><?php echo $row->Email;?></td>
</tr>
<tr>
<th>Appointment Date</th>
<td><?php echo $row->AppointmentDate;?></td>
<th>Appointment Time</th>
<td><?php echo $row->AppointmentTime;?></td>
85

</tr>

<tr>
<th>Apply Date</th>
<td><?php echo $row->ApplyDate;?></td>
<th>Appointment Final Status</th>

<td colspan="4"> <?php $status=$row->Status;

if($row->Status=="")
{
echo "Not yet updated";
}

if($row->Status=="Approved")
{
echo "Your appointment has been approved";
}

if($row->Status=="Cancelled")
{
echo "Your appointment has been cancelled";
}

;?></td>
</tr>
<tr>

<th >Remark</th>
<?php if($row->Remark==""){ ?>

<td colspan="3"><?php echo "Not Updated Yet"; ?></td>


<?php } else { ?> <td colspan="3"> <?php echo htmlentities($row->Remark);?>
</td>
<?php } ?>

</tr>

<?php $cnt=$cnt+1;}} ?>

</table>
<br>
86

<?php

if ($status=="" ){
?>
<p align="center" style="padding-top: 20px">
<button class="btn btn-primary waves-effect waves-light w-lg" data-toggle="modal"
datatarget="#myModal">Take Action</button></p>

<?php } ?>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog"
arialabelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content"> <div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Take
Action</h5>
<button type="button" class="close" data-dismiss="modal"
arialabel="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<table class="table table-bordered table-hover data-tables">

<form method="post" name="submit">

<tr>
<th>Remark :</th>
<td>
<textarea name="remark" placeholder="Remark" rows="12" cols="14" class="form-control
wd450" required="true"></textarea></td>
</tr>

<tr>
<th>Status :</th>
<td>

<select name="status" class="form-control wd-450" required="true" >


<option value="Approved" selected="true">Approved</option>
<option value="Cancelled">Cancelled</option>

</select></td>
</tr>
</table>
</div>
<div class="modal-footer">
87

<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>


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

</form>

</div>

</div>
</div>

</div>
</div><!-- .wi
dget-body -->

</
div><!-- .widg
et -->
</div><!-- END column -->

</div><!-- .row -->


</section><!-- .app-content -->
</div><!-- .wrap -->
<!-- APP FOOTER -->
<?php include_once('includes/footer.php');?>
<!-- /#app-footer -->
</main>
<!--========== END app main -->

<!-- APP CUSTOMIZER -->


<?php include_once('includes/customizer.php');?>

<!-- build:js assets/js/core.min.js -->


<script src="libs/bower/jquery/dist/jquery.js"></script>
<script src="libs/bower/jquery-ui/jquery-ui.min.js"></script>
<script src="libs/bower/jQuery-Storage-API/jquery.storageapi.min.js"></script>
<script src="libs/bower/bootstrap-sass/assets/javascripts/bootstrap.js"></script>
<script src="libs/bower/jquery-slimscroll/jquery.slimscroll.js"></script>
<script src="libs/bower/perfect-scrollbar/js/perfect-scrollbar.jquery.js"></script>
<script src="libs/bower/PACE/pace.min.js"></script>
<!-- endbuild -->
88

<!-- build:js assets/js/app.min.js -->


<script src="assets/js/library.js"></script>
<script src="assets/js/plugins.js"></script>
<script src="assets/js/app.js"></script>
<!-- endbuild -->
<script src="libs/bower/moment/moment.js"></script>
<script src="libs/bower/fullcalendar/dist/fullcalendar.min.js"></script>
<script src="assets/js/fullcalendar.js"></script>
</body>
</html>
<?php } ?>

Conclusion
This Application provides a computerized version of doctor appointment which will
benefit the people who wants to take appointment with doctor online.
89

It makes entire process online and can generate reports. It has a facility of doctor login
where doctor can manage user appointment and generate appointment report.

The Application was designed in such a way that future changes can be done
easily. The following conclusions can be deduced from the development of the project.

• Automation of the entire system improves the productivity.


• It provides a friendly graphical user interface which proves to be better when
compared to the existing system.
• It gives appropriate access to the authorized users depending on their permissions.
• It effectively overcomes the delay in communications.
• Updating of information becomes so easier.
• System security, data security and reliability are the striking features.
• The System has adequate scope for modification in future if it is necessary.

Future Enhancement
I have tried to design the software in such a way that the user may not have any difficulty
in using this system and further expansion is also possible. New requirements will be
added and risk will be analyzed in every phase until the requirement of user will not be
90

fulfilled. The most priority will be given to keep confidential data secure and easy and
simple for use.

The further enhancements which can be made in the system are:


• Any requirement that will make system easy to use or make a system secure, these requirement will be
add using Spiral Model. Other requirement related to government or municipality will be added when
required.

• For the identity of user and for their data integrity, digital signature can be added to this system.
• For the identity of user and for verification, image of user can be added to this system.
• There will be provision of filling form in multiple languages.
• A great concern will be given on frontend design which will make user to use system easily and enjoy
while using this system.

You might also like