forked from thegr8dev/doctorpatientportal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
help.php
631 lines (548 loc) · 24.7 KB
/
help.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
<?php
session_start();
if(isset($_POST['btn_login'])){
$useremail = $_POST['useremail'];
$userpass = $_POST['userpass'];
include('includes/conn.php');
$q1 = "SELECT * FROM doctor where email = '$useremail'";
$q2 = "SELECT * FROM patient where email = '$useremail'";
$q3 = "SELECT * FROM admin where email = '$useremail'";
$r = mysqli_query($con, $q1);
$rr = mysqli_query($con, $q2);
$ad = mysqli_query($con, $q3);
if(mysqli_num_rows($r)>0){
while($row = mysqli_fetch_assoc($r)){
$dbname = $row['name'];
$dbemail = $row['email'];
$dbpass = $row['password'];
$type = $row['type'];
}
if($useremail == $dbemail && $userpass == $dbpass){
$_SESSION['useremail'] =$useremail;
$_SESSION['userpass'] = $userpass;
header("location:doctor.php");
}
else
{
echo "<script>";
echo "alert('Wrong Doctor Email or Password')";
echo "</script>";
}
}elseif(mysqli_num_rows($rr)>0){
while($row = mysqli_fetch_assoc($rr)){
$dbid = @$row['id'];
$dbname = $row['name'];
$dbemail = $row['email'];
$dbpass = $row['password'];
$type = $row['type'];
}
if($useremail == $dbemail && $userpass == $dbpass){
$_SESSION['useremail'] =$useremail;
$_SESSION['userpass'] = $userpass;
$_SESSION['status'] = "Success";
header("location:doclist.php");
}
else{
echo "<script>";
echo "alert('Wrong Patient Email or Password')";
echo "</script>";
}
}
elseif(mysqli_num_rows($ad)>0){
while($row = mysqli_fetch_assoc($ad)){
$dbname = $row['name'];
$dbemail = $row['email'];
$dbpass = $row['password'];
}
if($useremail == $dbemail && $userpass == $dbpass){
$_SESSION['useremail'] = $useremail;
$_SESSION['userpass'] = $userpass;
$_SESSION['status'] = "Success";
header("location:adminpanel.php");
}else{
echo "<script>";
echo "alert('Wrong admin Email or Password')";
echo "</script>";
}
}
else{
echo "<script>";
echo "alert('Account not exist')";
echo "</script>";
}
}
?>
<!DOCTYPE html>
<html lang="en">
<noscript>
<META HTTP-EQUIV="Refresh" CONTENT="0;URL=nojs.html">
</noscript>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Help - Doctor Patient Portal</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="theme/home.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<style>
.navbar-inverse .navbar-nav > .open > a, .navbar-inverse .navbar-nav > .open > a:focus, .navbar-inverse .navbar-nav > .open > a:hover{
background-color:green;
border-top-left-radius:1em;
border-top-right-radius:1em;
}
.navbar-inverse .navbar-nav > .open > a:hover{
background-color:red;
border-top-left-radius:1em;
border-top-right-radius:1em;
border-bottom-left-radius:0em;
border-bottom-right-radius:0em;
}
.tt th{
width:500px;
color:white;
font-weight:400;
padding:5px;
background:#E90303;
border:1px solid black;
}
.tt td{
border:1px solid black;
text-align:center;
}
.target > div {
display:none;
}
.target > div:target{
display:block;
}
</style>
<body>
<br>
<?php
include('includes/conn.php');
@$eml = $_SESSION['useremail'];
$qry = "SELECT * FROM doctor where email = '$eml'";
$qry2 = "SELECT * FROM patient where email = '$eml'";
$qry3 = "SELECT * FROM admin where email = '$eml'";
$h = mysqli_query($con, $qry);
$h2 = mysqli_query($con, $qry2);
$h3 = mysqli_query($con, $qry3);
while($row = mysqli_fetch_assoc($h)){
$id = $row['did'];
$user = $row['name'];
$type = $row['type'];
$docpd = $row['docid'];
$age = $row['age'];
$phone = $row['phone_number'];
$email = $row['email'];
$sex = $row['gender'];
}
while($row = mysqli_fetch_assoc($h2)){
$pid = $row['pid'];
$user = $row['name'];
$type = $row['type'];
$patid = $row['pid'];
$agep = $row['age'];
$mob = $row['phone'];
$sexp = $row['gender'];
$adrid = $row['adharno'];
$emailp = $row['email'];
}
while($row = mysqli_fetch_assoc($h3)){
$user = $row['name'];
$type = $row['type'];
}
?>
<?php if(!isset($_SESSION['useremail'])){?>
<div style="padding:25px; border-top-left-radius:0.5em; border-top-right-radius:0.5em;" class="mainmenu container nav navbar-inverse" data-spy="affix" data-offset-top="100">
<button type="button" style="background:#005173; border-color:#005173;" class="navbar-toggle" data-toggle="collapse" data-target="#coo">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand"><img width="85px" height="85px" style="margin-top:-38%;" title="Doctor Patient Portal" class="logomain" src="img/logom.png"/></a>
<div class="collapse navbar-collapse" id="coo">
<ul class="nav navbar-nav pull-right">
<li><a href="index.php"><span class="glyphicon glyphicon-home"></span> Home</a></li>
<li><a href="about.php"><span class="glyphicon glyphicon-info-sign"></span> About</a></li>
<li ><a href="contact.php"><span class="glyphicon glyphicon-earphone"></span> Contact Us</a></li>
<li class="active"><a href="help.php"><span class="glyphicon glyphicon-question-sign"></span> Help</a></li>
<li class="a"><a data-toggle="modal" data-target="#login" href="#"><span class="glyphicon glyphicon-user"></span> Login</a></li>
<li class="ar"><a data-toggle="modal" data-target="#register" href="#"><span class="glyphicon glyphicon-registration-mark"></span> Register</a></li>
</ul>
</div>
</div><?php }else{
?>
<div style="padding:25px; border-top-left-radius:0.5em; border-top-right-radius:0.5em;" class="mainmenu container nav navbar-inverse" data-spy="affix" data-offset-top="100">
<button style="border:0px;" type="button" class="navbar-toggle" data-toggle="collapse" data-target="#co">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand"><img width="85px" height="85px" style="margin-top:-38%;" title="Doctor Patient Portal" class="logomain" src="img/logom.png"/></a>
<div id="co" class="collapse navbar-collapse">
<ul class="nav navbar-nav pull-right">
<li><a href="index.php"><span class="glyphicon glyphicon-home"></span> Home</a></li>
<li><a href="about.php"><span class="glyphicon glyphicon-info-sign"></span> About</a></li>
<li><a href="contact.php"><span class="glyphicon glyphicon-earphone"></span> Contact Us</a></li>
<li class="active"><a href="help.php"><span class="glyphicon glyphicon-question-sign"></span> Help</a></li>
<?php if($type=="doc"){?>
<li class="a" ><a data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span class="glyphicon glyphicon-user"></span> Hi <?php echo $user?>
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a data-toggle="modal" data-target="#profiletab" href="#"><span class="glyphicon glyphicon-pencil"></span> Your Profile</a></li>
<li role="separator" class="divider"></li>
<li><a href="doctor.php"><span class="glyphicon glyphicon-th-list"></span> Your Dashboard</a></li>
<li role="separator" class="divider"></li>
<li><a href="logout.php"><span class="glyphicon glyphicon-off"></span> Logout</a></li>
</ul>
</li>
<?php } ?>
<?php if($type=="pat"){?>
<li class="a" ><a data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span class="glyphicon glyphicon-user"></span> Hi <?php echo $user?>
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a data-toggle="modal" data-target="#profiletab2"><span class="glyphicon glyphicon-pencil"></span> Your Profile</a></li>
<li role="separator" class="divider"></li>
<li><a href="patient.php"><span class="glyphicon glyphicon-th-list"></span> Your Dashboard</a></li>
<li role="separator" class="divider"></li>
<li><a href="logout.php"><span class="glyphicon glyphicon-off"></span> Logout</a></li>
</ul>
</li>
<?php } ?>
<?php if($type=="admin"){?>
<li class="a" ><a data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span class="glyphicon glyphicon-user"></span> Hi <?php echo $user?>
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="adminpanel.php"><span class="glyphicon glyphicon-th-list"></span> Your Dashboard</a></li>
<li role="separator" class="divider"></li>
<li><a href="logout.php"><span class="glyphicon glyphicon-off"></span> Logout</a></li>
</ul>
</li>
<?php } ?>
</div>
</ul>
</div>
<?php } ?>
<div class="ankit container">
<br>
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
<div class="panel panel-primary">
<div class="panel-heading" role="tab" id="headingOne">
<h4 class="panel-title">
<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
<span class="glyphicon glyphicon-question-sign"></span> How to Register?
</a>
</h4>
</div>
<div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne">
<div class="panel-body">
Just Click on that green <span style="background:#059216; border-radius: 2em;color:white; padding:15px;">Register</span> button and simply Register on our site.
</div>
</div>
</div>
<br>
<div class="panel panel-primary">
<div class="panel-heading" role="tab" id="headingTwo">
<h4 class="panel-title">
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
<span class="glyphicon glyphicon-question-sign"></span> How many days does it take to verify doctor account?
</a>
</h4>
</div>
<div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
<div class="panel-body">
It's depend on our admin panel how many days they take to review your account but minimum days for account verification is 2 to 3 days.
</div>
</div>
</div>
<br>
<div class="panel panel-primary">
<div class="panel-heading" role="tab" id="headingThree">
<h4 class="panel-title">
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
<span class="glyphicon glyphicon-question-sign"></span> How to make appointment?
</a>
</h4>
</div>
<div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">
<div class="panel-body">
Go to patient dashboard and click on make appointment tab and make appointment with doctor. you can also make appointment by click on top of your name and in dropdown menu click on Quick Doctor List and make appointment.
</div>
</div>
</div>
<br>
<div class="panel panel-primary">
<div class="panel-heading" role="tab" id="headingThree">
<h4 class="panel-title">
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapsefour" aria-expanded="false" aria-controls="collapseThree">
<span class="glyphicon glyphicon-question-sign"></span> How to make payment?
</a>
</h4>
</div>
<div id="collapsefour" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">
<div class="panel-body">
When you submit your appointment you're redirected to payment gateway where enter your details to done payment.
</div>
</div>
</div>
<br>
<div class="panel panel-primary">
<div class="panel-heading" role="tab" id="headingThree">
<h4 class="panel-title">
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapsefive" aria-expanded="false" aria-controls="collapseThree">
<span class="glyphicon glyphicon-question-sign"></span> Refund Condition IF appointment is missed?
</a>
</h4>
</div>
<div id="collapsefive" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">
<div class="panel-body">
There is no refund condition if any appointment is missed by you
</div>
</div>
</div>
</div>
<br></br><br>
<div style="width:102.5%; margin-left:-1.2%;margin-top:-5%;" class="container footer"><center>© 2017 | All Rights Reserved | Themed By <a style="color:white; cursor:pointer; target="_blank" href="https://www.facebook.com/ankitthegr8">@nkit</a> |
<a style="color:white;" href="sitemap.php">Sitemap</a></center></div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
$(function () {
$('[data-toggle="tooltip"]').tooltip()
});
</script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
<!--Login Form-->
<div class="modal fade" id="login" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div style="background:#005173; color:white;" class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span style="color:white;" aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel"><span class="glyphicon glyphicon-user"></span> Login Form Portal</h4>
</div>
<div class="modal-body">
<br>
<form action="" name="lfrom" method="POST">
<div class="input-group">
<span class="input-group-addon" id="sizing-addon2"><span class="glyphicon glyphicon-envelope"></span></span>
<input type="email" class="form-control" required name="useremail" placeholder="Enter your email" aria-describedby="sizing-addon2">
</div><br>
<div class="input-group">
<span class="input-group-addon" id="sizing-addon2"><span class="glyphicon glyphicon-lock"></span></span>
<input type="password" required class="form-control" name="userpass" placeholder="Enter your password" aria-describedby="sizing-addon2">
</div>
<div class="modal-footer">
<center><input type="submit" value="Login" name="btn_login" class="btn btn-success"></center>
</div>
</form>
</div>
</div>
</div>
</div>
<!--Login form end-->
<!--Register Form-->
<div class="modal fade" id="register" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div style="background:#005173; color:white;" class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span style="color:white;" aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel2"><span class="glyphicon glyphicon-saved" aria-hidden="true"></span> Register to Portal</h4>
</div>
<div class="modal-body">
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#patient" aria-controls="patient" role="tab" data-toggle="tab">
<span class="glyphicon glyphicon-user"></span> Patient</a></li>
<li role="presentation"><a href="#doctor" aria-controls="doctor" role="tab" data-toggle="tab">
<span class="glyphicon glyphicon-education"></span> Doctor</a></li>
</ul>
<div class="tab-content">
<!--Patient Registration-->
<div role="tabpanel" class="tab-pane fade in active" id="patient">
<br>
<form method="POST" action="dp.php" ENCTYPE="multipart/form-data" action="" id="form1">
<input type="text" name="pname" class="form-control" onkeyup="letters(this)" required placeholder="Enter your name"><br>
<input type="email" name="pemail" class="form-control" required placeholder="Enter your email"><br>
<input type="number" name="p_age" class="form-control" required placeholder="Enter your age"><br>
<input type="password" name="p_password" class="form-control" required placeholder="Enter your password"><br>
<input type="text" name="adridpt" class="form-control" required placeholder="Enter your Aadhar ID"><br>
<input type="text" name="paddress" class="form-control" required placeholder="Enter your address"><br>
<label>Gender : </label>
<input type="radio" value="Male" name="pgender" required> Male
<input type="radio" value="Female" name="pgender" required> Female <br></br>
<div class="input-group form-group ">
<span class="input-group-addon">+91</span>
<input type="number" name="p_phone" class="form-control" id="user" maxlength="10" placeholder="Enter your contact no." required >
</div>
<label>Your Picture</label>
<input type="file" class="form-control" required name="pupload"/><br>
<center><input type="submit" value="Register" name="btn_pat" class="btn btn-danger">
<input type="button" value="Reset" onclick="rset()" class="btn btn-warning"></center>
</form>
</div>
<!--Doctor Registration-->
<div role="tabpanel" class="tab-pane fade" id="doctor">
<br>
<form ENCTYPE="multipart/form-data" method="POST" action="dp.php" id="form2">
<input type="text" name="name" class="form-control" onkeyup="letters(this)" required placeholder="Enter your name"><br>
<input type="email" name="email" class="form-control" required placeholder="Enter your email"><br>
<input type="number" name="age" class="form-control" required placeholder="Enter your age"><br>
<input type="password" name="password" class="form-control" required placeholder="Enter your password"><br>
<input type="text" name="address" class="form-control" required placeholder="Enter your address"><br>
<label>Gender : </label>
<input type="radio" value="Male" name="gender" required> Male
<input type="radio" value="Female" name="gender" required> Female <br></br>
<input type="text" name="docid" class="form-control" required placeholder="Enter your Doctor ID"><br>
<input type="text" name="adrid" class="form-control" required placeholder="Enter your Aadhar ID"><br>
<label>Specialist in : </label>
<select style="color:solid #ccc; border-radius:0.2em; padding:5px;" name="doccat">
<option>Choose</option>
<option value="Denitst">Denitst</option>
<option value="Cardiologist">Cardiologist</option>
<option value="Allergist">Allergist</option>
<option value="Physcit">Physcit</option>
<option value="Gynoclogist">Gyncologist</option>
</select><sup style="color:red;"> *Required</sup><br></br>
<div class="input-group form-group ">
<span class="input-group-addon">+91</span>
<input type="number" name="phone" class="form-control" id="user" maxlength="10" placeholder="Enter your contact no." required >
</div>
<label data-toggle="tooltip" data-placement="right" title="PDF File Supported Only">Upload Your ID*</label>
<input type="file" class="form-control" name="file" required /><br>
<label>Your Picture</label>
<input type="file" class="form-control" required name="newpic"/><br>
<center><input type="submit" value="Register" name="btn_doc" class="btn btn-danger">
<input type="button" value="Reset" onclick="rrset()" class="btn btn-warning"></center>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="ap" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div style="background:#005173; color:white;" class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span style="color:white;" aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel"><span class="glyphicon glyphicon-user"></span> Login Form Portal</h4>
</div>
<div class="modal-body">
<br>
<form action="" name="lfrom" method="POST">
<div class="input-group">
<span class="input-group-addon" id="sizing-addon2"><span class="glyphicon glyphicon-envelope"></span></span>
<input type="email" class="form-control" required name="useremail" placeholder="Enter your email" aria-describedby="sizing-addon2">
</div><br>
<div class="input-group">
<span class="input-group-addon" id="sizing-addon2"><span class="glyphicon glyphicon-lock"></span></span>
<input type="password" required class="form-control" name="userpass" placeholder="Enter your password" aria-describedby="sizing-addon2">
</div>
<div class="modal-footer">
<center><input type="submit" value="Login" name="btn_login" class="btn btn-success"></center>
</div>
</form>
</div>
</div>
</div>
</div>
<!--Login form end-->
<!--Profile tab start-->
<div class="modal fade" id="profiletab" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div style="width:35%; border-radius:0em;" class="modal-dialog" role="document">
<div class="modal-content">
<div style="background:#005173; height:35px; color:white;" class="modal-header">
<button style="margin-top:-1.5%;" type="button" class="close" data-dismiss="modal" aria-label="Close"><span style="color:white;" aria-hidden="true">×</span></button>
<h5 style="font-family:calibri; margin-top:-1.5%;" class="modal-title" id="myModalLabel"><b><?php echo "#$id $user";?></b></h5>
</div>
<div style="border-bottom-left-radius:0px;" class="modal-body">
<div class="row">
<div class="col-md-4">
<?php
$dir = "doctor/".$docid."/img/";
$open = opendir($dir);
while(($files = readdir($open)) != FALSE){
if($files!="."&&$files!=".."&&$files !="Thumbs.db"){
echo "<img id='hello' style='float:left; margin-left:15%; border-radius:6em;' width='100' height='100' title='$user' src='$dir/$files'>";
}
}
?>
<p align="center" style="font-family:calibri;"> </p>
<p align="center" style="font-family:calibri; margin-top:-18%;"><?php echo " <b>ID : $docpd</b>";?></p>
</div>
<div class="col-md-4">
<img src="img/line.png"/>
</div>
<div class="col-md-4">
<div style="font-family:calibri; float:left;margin-left:-70%;">
<label>Name </label> : <?php echo $user;?><br>
<label>Email </label> : <?php echo $email;?><br>
<label>Phone </label> : <?php echo "+91-$phone";?><br>
<label>Gender </label> : <?php echo $sex;?><br>
<label>Age </label> : <?php echo $age;?><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--profile tab end-->
<!--patient Profile tab start-->
<div class="modal fade" id="profiletab2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div style="width:35%; border-radius:0em;" class="modal-dialog" role="document">
<div class="modal-content">
<div style="background:#005173; height:35px; color:white;" class="modal-header">
<button style="margin-top:-1.5%;" type="button" class="close" data-dismiss="modal" aria-label="Close"><span style="color:white;" aria-hidden="true">×</span></button>
<h5 style="font-family:calibri; margin-top:-1.5%;" class="modal-title" id="myModalLabel"><b><?php echo "#$patid $user";?></b></h5>
</div>
<div style="border-bottom-left-radius:0px;" class="modal-body">
<div class="row">
<div class="col-md-4">
<?php
$dir = "patient/".$adrid."/img/";
$open = opendir($dir);
while(($files = readdir($open)) != FALSE){
if($files!="."&&$files!=".."&&$files !="Thumbs.db"){
echo "<img id='hello' style='float:left; margin-left:15%; border-radius:6em;' width='100' height='100' title='$user' src='$dir/$files'>";
}
}
?>
<p align="center" style="font-family:calibri;"> </p>
<p align="center" style="font-family:calibri; margin-top:-18%;"><?php echo " <b>A. ID : $adrid</b>";?></p> </div>
<div class="col-md-4">
<img src="img/line.png"/>
</div>
<div class="col-md-4">
<div style="font-family:calibri; float:left;margin-left:-70%;">
<label>Name </label> : <?php echo $user;?><br>
<label>Email </label> : <?php echo $emailp;?><br>
<label>Phone </label> : <?php echo "+91-$mob";?><br>
<label>Gender </label> : <?php echo $sexp;?><br>
<label>Age </label> : <?php echo $agep;?><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--patint profile tab end-->
<!--feedback box-->
<script>
function rset() {
document.getElementById("form1").reset();
}
</script>
</body>
</html>