-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
107 lines (93 loc) · 2.26 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!DOCTYPE html>
<?php
require 'config.php';
require 'patient_class.php';
$patient_array=array();
$str="";
$str1="";
$str2="";
$error_message="";
$str_wait_time="";
$str_fcfs_wait_time="";
require 'index_handler.php';
?>
<html>
<head>
<title>Welcome User!!</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="bootstrap.css">
<link rel="stylesheet" type="text/css" href="index_css.css">
</head>
<body>
<div class="wrapper">
<h1>Hospital Scheduling Management System</h1>
<span></span>
<div class="add_patient">
<div class="add_patient_header">
<h3>Add new patient details here!</h3>
</div>
<form action="index.php" method="POST">
<label for="patient_name">Patient Name:</label>
<input type="text" name="patient_name" placeholder="eg. Sai Chaitanya"required>
<br>
<label for="patient_illness">Patient Illness:</label>
<input type="text" name="patient_illness" placeholder="eg. Cough and Cold"required>
<br>
<label for="patient_intime">Patient Intime:</label>
<input type="time" name="patient_intime" placeholder="Patient Intime"required>
<br>
<label for="condition_type">Condition Type:</label>
<input type="text" name="condition_type" placeholder="Normal/Referral/Urgent/Emergency"required>
<p><?php echo $error_message; ?></p>
<input type="submit" name="add_button" value="Add Patient">
<br>
</form>
<form action="index.php" method="POST">
<input type="submit" name="finish_button" value="Finish Adding">
<br>
</form>
</div>
<br>
<br>
<div class="scheduling">
<div class='show_sheduled_patient first'>
<br>
<br>
<h3>Using genral FCFS:</h3>
<hr>
<?php
echo $str2;
?>
<h3>Statistics:</h3>
<?php
echo $str_fcfs_wait_time;
?>
</div>
<div class='show_sheduled_patient second'>
<br>
<br>
<h3>The Scheduling is as follows:</h3>
<hr>
<?php
echo $str1;
?>
<h3>Statistics:</h3>
<?php
echo $str_wait_time;
?>
</div>
</div>
<br>
<br>
</div>
<div class='show_patient'>
<h3>Current Patient Queue</h3>
<hr>
<?php
echo $str;
?>
</div>
<br>
<br>
</body>
</html>