Professional Documents
Culture Documents
Hospital Management System
Hospital Management System
AIM:
To design the web app for online hospital management system
ALGORITHM:
Step 1: Design a home page index.php with menu as home, about us, online appointment, login,
registration and contact us.
Step 3: create patient registrartion form and save the file as patient.php.
Step 4: create login form and save the file as patieant login.php
Step 5: create appointment form and save the file as patient appointment.php
Step 6: create feedback form and save the file as contact us.php
Step 7: open Mysql create tables for registration login, appointment and feedback.
Step 8: create relevent database connectivity php files for the forms
SAMPLE PROGRAMS:
<?php
session_start();
error_reporting(0);
include('include/config.php');
include('include/checklogin.php');
check_login();
if(isset($_GET['cancel']))
{
mysqli_query($con,"update appointment set userStatus='0' where id = '".
$_GET['id']."'");
$_SESSION['msg']="Your appointment canceled !!";
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>User | Appointment History</title>
<link href="http://fonts.googleapis.com/css?
family=Lato:300,400,400italic,600,700|Raleway:300,400,500,600,700|Crete+Round:400italic"
rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="vendor/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="vendor/fontawesome/css/font-awesome.min.css">
<link rel="stylesheet" href="vendor/themify-icons/themify-icons.min.css">
<link href="vendor/animate.css/animate.min.css" rel="stylesheet"
media="screen">
<link href="vendor/perfect-scrollbar/perfect-scrollbar.min.css" rel="stylesheet"
media="screen">
<link href="vendor/switchery/switchery.min.css" rel="stylesheet"
media="screen">
<link href="vendor/bootstrap-touchspin/jquery.bootstrap-touchspin.min.css"
rel="stylesheet" media="screen">
<link href="vendor/select2/select2.min.css" rel="stylesheet" media="screen">
<link href="vendor/bootstrap-datepicker/bootstrap-
datepicker3.standalone.min.css" rel="stylesheet" media="screen">
<link href="vendor/bootstrap-timepicker/bootstrap-timepicker.min.css"
rel="stylesheet" media="screen">
<link rel="stylesheet" href="assets/css/styles.css">
<link rel="stylesheet" href="assets/css/plugins.css">
<link rel="stylesheet" href="assets/css/themes/theme-1.css" id="skin_color" />
</head>
<body>
<div id="app">
<?php include('include/sidebar.php');?>
<div class="app-content">
<?php include('include/header.php');?>
<!-- end: TOP NAVBAR --> <div class="main-content" >
<div class="wrap-content container" id="container">
<!-- start: PAGE TITLE -->
<section id="page-title">
<div class="row">
<div class="col-sm-8">
<h1 class="mainTitle">User | Appointment History</h1>
</div>
<ol class="breadcrumb">
<li>
<span>User </span>
</li>
<li class="active">
<span>Appointment
History</span>
</li>
</ol>
</div>
</section>
<!-- end: PAGE TITLE -->
<!-- start: BASIC EXAMPLE -->
<div class="container-fluid container-fullw bg-
white">
<div class="row">
<div class="col-md-12">
<p style="color:red;"><?php
echo htmlentities($_SESSION['msg']);?>
<?php echo
htmlentities($_SESSION['msg']="");?></p>
<table class="table table-
hover" id="sample-table-1">
<thead>
<tr>
<th
class="center">#</th>
<th
class="hidden-xs">Doctor Name</th>
<th>Specialization</th>
<th>Consultancy Fee</th>
<th>Current Status</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
$sql=mysqli_query($con,"select doctors.doctorName as docname,appointment.* from
appointment join doctors on doctors.id=appointment.doctorId where appointment.userId='".
$_SESSION['id']."'");
$cnt=1;
while($row=mysqli_fetch_array($sql))
{
?>
<tr>
<td
class="center"><?php echo $cnt;?>.</td>
<td
class="hidden-xs"><?php echo $row['docname'];?></td>
<td><?
php echo $row['doctorSpecialization'];?></td>
<td><?
php echo $row['consultancyFees'];?></td>
<td><?
php echo $row['appointmentDate'];?> / <?php echo
$row['appointmentTime'];?>
</td>
<td><?
php echo $row['postingDate'];?></td>
<td>
<?php if(($row['userStatus']==1) && ($row['doctorStatus']==1))
{
echo "Active";
}
if(($row['userStatus']==0) && ($row['doctorStatus']==1))
{
echo "Cancel by You";
}
?
></td>
<td >
<div
class="visible-md visible-lg hidden-sm hidden-xs">
<?php if(($row['userStatus']==1) &&
($row['doctorStatus']==1))
{ ?>
echo "Canceled";
} ?>
</div>
<div
class="visible-xs visible-sm hidden-md hidden-lg">
<a href="#">
Remove
</a>
</li>
</ul>
</div> </div></td>
</tr>
<?php
$cnt=$cnt+1;
}?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- start: FOOTER -->
<?php include('include/footer.php');?>
<!-- end: FOOTER -->
<!-- start: SETTINGS -->
<?php include('include/setting.php');?>
The abouve project has been executed successfully. And output was verified on the screen.