@@ -126,14 +126,15 @@ function alphaOnly(event) {
126
126
</style>
127
127
<body style="padding-top:50px;">
128
128
<div class="container-fluid" style="margin-top:50px;">
129
- <h3 style = "margin-left: 40%; padding-bottom: 20px;font-family: 'IBM Plex Sans', sans-serif;"> WELCOME ADMIN </h3>
129
+ <h3 style = "margin-left: 40%; padding-bottom: 20px;font-family: 'IBM Plex Sans', sans-serif;"> WELCOME RECEPTIONIST </h3>
130
130
<div class="row">
131
131
<div class="col-md-4" style="max-width:25%;margin-top: 3%;">
132
132
<div class="list-group" id="list-tab" role="tablist">
133
133
<a class="list-group-item list-group-item-action active" id="list-dash-list" data-toggle="list" href="#list-dash" role="tab" aria-controls="home">Dashboard</a>
134
134
<a class="list-group-item list-group-item-action" href="#list-doc" id="list-doc-list" role="tab" aria-controls="home" data-toggle="list">Doctor List</a>
135
135
<a class="list-group-item list-group-item-action" href="#list-pat" id="list-pat-list" role="tab" data-toggle="list" aria-controls="home">Patient List</a>
136
136
<a class="list-group-item list-group-item-action" href="#list-app" id="list-app-list" role="tab" data-toggle="list" aria-controls="home">Appointment Details</a>
137
+ <a class="list-group-item list-group-item-action" href="#list-pres" id="list-pres-list" role="tab" data-toggle="list" aria-controls="home">Prescription List</a>
137
138
<a class="list-group-item list-group-item-action" href="#list-settings" id="list-adoc-list" role="tab" data-toggle="list" aria-controls="home">Add Doctor</a>
138
139
<a class="list-group-item list-group-item-action" href="#list-settings1" id="list-ddoc-list" role="tab" data-toggle="list" aria-controls="home">Delete Doctor</a>
139
140
<a class="list-group-item list-group-item-action" href="#list-mes" id="list-mes-list" role="tab" data-toggle="list" aria-controls="home">Queries</a>
@@ -148,7 +149,7 @@ function alphaOnly(event) {
148
149
<div class="tab-pane fade show active" id="list-dash" role="tabpanel" aria-labelledby="list-dash-list">
149
150
<div class="container-fluid container-fullw bg-white" >
150
151
<div class="row">
151
- <div class="col-sm-4" style="left: 10 %">
152
+ <div class="col-sm-4" style="left: 5 %">
152
153
<div class="panel panel-white no-radius text-center">
153
154
<div class="panel-body">
154
155
<span class="fa-stack fa-2x"> <i class="fa fa-square fa-stack-2x text-primary"></i> <i class="fa fa-users fa-stack-1x fa-inverse"></i> </span>
@@ -167,7 +168,7 @@ function clickDiv(id) {
167
168
</div>
168
169
</div>
169
170
170
- <div class="col-sm-4" style="left: 15 %">
171
+ <div class="col-sm-4" style="left: 10 %">
171
172
<div class="panel panel-white no-radius text-center">
172
173
<div class="panel-body" >
173
174
<span class="fa-stack fa-2x"> <i class="fa fa-square fa-stack-2x text-primary"></i> <i class="fa fa-users fa-stack-1x fa-inverse"></i> </span>
@@ -181,9 +182,9 @@ function clickDiv(id) {
181
182
</div>
182
183
</div>
183
184
</div>
184
- </div>
185
+
185
186
186
- <div class="col-sm-4" style="left: 10%;margin-top: 5%; ">
187
+ <div class="col-sm-4" style="left: 12% ">
187
188
<div class="panel panel-white no-radius text-center">
188
189
<div class="panel-body" >
189
190
<span class="fa-stack fa-2x"> <i class="fa fa-square fa-stack-2x text-primary"></i> <i class="fa fa-paperclip fa-stack-1x fa-inverse"></i> </span>
@@ -197,9 +198,26 @@ function clickDiv(id) {
197
198
</div>
198
199
</div>
199
200
</div>
201
+ </div>
202
+
203
+ <div class="row">
204
+ <div class="col-sm-4" style="left: 20%;margin-top: 5%;">
205
+ <div class="panel panel-white no-radius text-center">
206
+ <div class="panel-body" >
207
+ <span class="fa-stack fa-2x"> <i class="fa fa-square fa-stack-2x text-primary"></i> <i class="fa fa-list-ul fa-stack-1x fa-inverse"></i> </span>
208
+ <h4 class="StepTitle" style="margin-top: 5%;">Prescription List</h4>
209
+
210
+ <p class="cl-effect-1">
211
+ <a href="#list-pres" onclick="clickDiv('#list-pres-list')">
212
+ View Prescriptions
213
+ </a>
214
+ </p>
215
+ </div>
216
+ </div>
217
+ </div>
200
218
201
219
202
- <div class="col-sm-4" style="left: 50 %;margin-top: -15 %">
220
+ <div class="col-sm-4" style="left: 24 %;margin-top: 5 %">
203
221
<div class="panel panel-white no-radius text-center">
204
222
<div class="panel-body" >
205
223
<span class="fa-stack fa-2x"> <i class="fa fa-square fa-stack-2x text-primary"></i> <i class="fa fa-plus fa-stack-1x fa-inverse"></i> </span>
@@ -215,7 +233,9 @@ function clickDiv(id) {
215
233
</div>
216
234
</div>
217
235
</div>
218
-
236
+ </div>
237
+
238
+
219
239
220
240
221
241
</div>
@@ -243,8 +263,9 @@ function clickDiv(id) {
243
263
<thead>
244
264
<tr>
245
265
<th scope="col">Doctor Name</th>
246
- <th scope="col">Password </th>
266
+ <th scope="col">Specialization </th>
247
267
<th scope="col">Email</th>
268
+ <th scope="col">Password</th>
248
269
<th scope="col">Fees</th>
249
270
</tr>
250
271
</thead>
@@ -256,14 +277,16 @@ function clickDiv(id) {
256
277
$ result = mysqli_query ($ con ,$ query );
257
278
while ($ row = mysqli_fetch_array ($ result )){
258
279
$ username = $ row ['username ' ];
259
- $ password = $ row ['password ' ];
280
+ $ spec = $ row ['spec ' ];
260
281
$ email = $ row ['email ' ];
282
+ $ password = $ row ['password ' ];
261
283
$ docFees = $ row ['docFees ' ];
262
284
263
285
echo "<tr>
264
286
<td> $ username</td>
265
- <td> $ password </td>
287
+ <td> $ spec </td>
266
288
<td> $ email</td>
289
+ <td> $ password</td>
267
290
<td> $ docFees</td>
268
291
</tr> " ;
269
292
}
@@ -288,6 +311,7 @@ function clickDiv(id) {
288
311
<table class="table table-hover">
289
312
<thead>
290
313
<tr>
314
+ <th scope="col">Patient ID</th>
291
315
<th scope="col">First Name</th>
292
316
<th scope="col">Last Name</th>
293
317
<th scope="col">Gender</th>
@@ -303,6 +327,7 @@ function clickDiv(id) {
303
327
$ query = "select * from patreg " ;
304
328
$ result = mysqli_query ($ con ,$ query );
305
329
while ($ row = mysqli_fetch_array ($ result )){
330
+ $ pid = $ row ['pid ' ];
306
331
$ fname = $ row ['fname ' ];
307
332
$ lname = $ row ['lname ' ];
308
333
$ gender = $ row ['gender ' ];
@@ -311,6 +336,7 @@ function clickDiv(id) {
311
336
$ password = $ row ['password ' ];
312
337
313
338
echo "<tr>
339
+ <td> $ pid</td>
314
340
<td> $ fname</td>
315
341
<td> $ lname</td>
316
342
<td> $ gender</td>
@@ -327,6 +353,71 @@ function clickDiv(id) {
327
353
</div>
328
354
329
355
356
+ <div class="tab-pane fade" id="list-pres" role="tabpanel" aria-labelledby="list-pres-list">
357
+
358
+ <div class="col-md-8">
359
+
360
+ <div class="row">
361
+
362
+
363
+
364
+ <table class="table table-hover">
365
+ <thead>
366
+ <tr>
367
+ <th scope="col">Doctor</th>
368
+ <th scope="col">Patient ID</th>
369
+ <th scope="col">Appointment ID</th>
370
+ <th scope="col">First Name</th>
371
+ <th scope="col">Last Name</th>
372
+ <th scope="col">Appointment Date</th>
373
+ <th scope="col">Appointment Time</th>
374
+ <th scope="col">Disease</th>
375
+ <th scope="col">Allergy</th>
376
+ <th scope="col">Prescription</th>
377
+ </tr>
378
+ </thead>
379
+ <tbody>
380
+ <?php
381
+ $ con =mysqli_connect ("localhost " ,"root " ,"" ,"myhmsdb " );
382
+ global $ con ;
383
+ $ query = "select * from prestb " ;
384
+ $ result = mysqli_query ($ con ,$ query );
385
+ while ($ row = mysqli_fetch_array ($ result )){
386
+ $ doctor = $ row ['doctor ' ];
387
+ $ pid = $ row ['pid ' ];
388
+ $ ID = $ row ['ID ' ];
389
+ $ fname = $ row ['fname ' ];
390
+ $ lname = $ row ['lname ' ];
391
+ $ appdate = $ row ['appdate ' ];
392
+ $ apptime = $ row ['apptime ' ];
393
+ $ disease = $ row ['disease ' ];
394
+ $ allergy = $ row ['allergy ' ];
395
+ $ pres = $ row ['prescription ' ];
396
+
397
+
398
+ echo "<tr>
399
+ <td> $ doctor</td>
400
+ <td> $ pid</td>
401
+ <td> $ ID </td>
402
+ <td> $ fname</td>
403
+ <td> $ lname</td>
404
+ <td> $ appdate</td>
405
+ <td> $ apptime</td>
406
+ <td> $ disease</td>
407
+ <td> $ allergy</td>
408
+ <td> $ pres</td>
409
+ </tr> " ;
410
+ }
411
+
412
+ ?>
413
+ </tbody>
414
+ </table>
415
+ <br>
416
+ </div>
417
+ </div>
418
+ </div>
419
+
420
+
330
421
331
422
332
423
<div class="tab-pane fade" id="list-app" role="tabpanel" aria-labelledby="list-pat-list">
@@ -342,6 +433,8 @@ function clickDiv(id) {
342
433
<table class="table table-hover">
343
434
<thead>
344
435
<tr>
436
+ <th scope="col">Appointment ID</th>
437
+ <th scope="col">Patient ID</th>
345
438
<th scope="col">First Name</th>
346
439
<th scope="col">Last Name</th>
347
440
<th scope="col">Gender</th>
@@ -363,13 +456,10 @@ function clickDiv(id) {
363
456
$ query = "select * from appointmenttb; " ;
364
457
$ result = mysqli_query ($ con ,$ query );
365
458
while ($ row = mysqli_fetch_array ($ result )){
366
-
367
- #$fname = $row['fname'];
368
- #$lname = $row['lname'];
369
- #$email = $row['email'];
370
- #$contact = $row['contact'];
371
459
?>
372
460
<tr>
461
+ <td><?php echo $ row ['ID ' ];?> </td>
462
+ <td><?php echo $ row ['pid ' ];?> </td>
373
463
<td><?php echo $ row ['fname ' ];?> </td>
374
464
<td><?php echo $ row ['lname ' ];?> </td>
375
465
<td><?php echo $ row ['gender ' ];?> </td>
0 commit comments