-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoctor.php
494 lines (457 loc) · 25.4 KB
/
doctor.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
<!DOCTYPE php>
<html lang="en">
<!-- Basic -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Mobile Metas -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
<!-- Site Metas -->
<title>PMA - Patient Medication Application</title>
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="author" content="">
<!-- Site Icons -->
<link rel="shortcut icon" href="images/PMA-mini.png" type="image/x-icon" />
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<!-- Site CSS -->
<link rel="stylesheet" href="style.css">
<!-- Colors CSS -->
<link rel="stylesheet" href="css/colors.css">
<!-- ALL VERSION CSS -->
<link rel="stylesheet" href="css/versions.css">
<!-- Responsive CSS -->
<link rel="stylesheet" href="css/responsive.css">
<!-- Custom CSS -->
<link rel="stylesheet" href="css/custom.css">
<!-- Modernizer for Portfolio -->
<script src="js/modernizer.js"></script>
<!-- [if lt IE 9] -->
<style>
table, th, td {
text-align: center;
border: 1px solid black;
}
</style>
</head>
<body class="clinic_version">
<!-- LOADER -->
<div id="preloader">
<img class="preloader" src="images/loaders/heart-loading2.gif" alt="">
</div>
<!-- END LOADER -->
<header>
<div class="header-top wow fadeIn">
<a class="navbar-brand" href="index.php"><img src="images/PMA-logo.png" alt="image"></a>
<div class="container">
<div class="right-header">
<div class="header-info">
<!-- <div class="info-inner">
<span class="icontop"><img src="images/phone-icon.png" alt="#"></span>
<span class="iconcont"><a href="tel:800 123 456">800 123 456</a></span>
</div> -->
<div class="info-inner">
<!-- <span class="icontop"><i class="fa fa-envelope" aria-hidden="true"></i></span> -->
<span class="iconcont"><a data-scroll href="signup.html">Sign Out</a></span>
</div>
</div>
</div>
</div>
</div>
<div class="header-bottom wow fadeIn">
<div class="container">
<nav class="mThe Specialist Clinicain-menu">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"><i class="fa fa-bars" aria-hidden="true"></i></button>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a class="active" href="index.php">Home</a></li>
<li><a data-scroll href="signup.html">Sign Up</a></li>
<li><a data-scroll href="login.html">Login</a></li>
<li><a data-scroll href="#about">About us</a></li>
<li><a data-scroll href="#service">Time Available</a></li>
<li><a data-scroll href="#testimonials">Your Clinics/Pharamcies</a></li>
<li><a data-scroll href="#doctors">Meet The Team</a></li>
<li><a data-scroll href="#getintouch"></a></li>
</ul>
</div>
</nav>
</div>
</div>
</header>
<div id="home" class="parallax first-section wow fadeIn" data-stellar-background-ratio="0.4" style="background-image:url('images/meds.png');">
<div class="container">
<div class="row">
<div class="col-md-12 col-sm-12">
<div class="text-contant">
<!-- <h2>
<span class="center"><span class="icon"><img src="images/PMA-logo-medium.png" alt="#" /></span></span>
<a href="" class="typewrite" data-period="2000" data-type='[ "Welcome to PMA", "We Care About Your Health"]'>
<span class="wrap"></span>
</a>
</h2> -->
</div>
</div>
</div>
<!-- end row -->
<div class="col-md-12 col-sm-12">
<div class="row">
<h2>
<span class="center"><span class="icon"><img src="images/PMA-logo-medium.png" alt="#" /></span></span>
<a href="" class="typewrite" data-period="2000" data-type='[ "Welcome to PMA!"]'>
<span class="wrap"></span>
</a>
</h2>
</div>
</div>
</div>
<!-- end container -->
</div>
<!-- end section -->
<div class="signup" style="background:#91cdfd;">
<a href="signup.html" data-scroll="" class="btn btn-dark btn-radius btn-brd">Sign Up</a>
</div>
<div class="login" style="background:#0071d1;">
<a href="login.html" data-scroll="" class="btn btn-dark btn-radius btn-brd">Login</a>
</div>
<div id="about" class="section wow fadeIn" style="background:#ffffff;">
<div class="container" >
<div class="heading">
<span class="icon-logo"><img src="images/PMA-logo-medium.png" alt="#"></span>
<h2>About us</h2>
</div>
<!-- end title -->
<div class="row">
<div class="col-md-6">
<div class="message-box">
<h4>What We Do</h4>
<h2>Creating a centralized system for all patients medical needs</h2>
<p class="lead">We are web application that allows patients to register their healthcare information including medication details, family physician (if they have one), and pharmacy. It directs them to nearby clinics and pharmacies if they don’t register with a family physician or pharmacy through Google Maps API.
The Patient Medication Application sends reminders, through email or text, for each medication registered when patients need to take or refill their medication. If they choose to refill their medication, the application allows them to notify the registered pharmacy or book an appointment with their physician, as needed.
Our esteemed web application also allow patients to have a log or make note of any side effects that they experience. As well, a general chat feature would allow patients to have their questions or concerns addressed immediately by their doctor or pharmacist.
</p>
<!-- <a href="#services" data-scroll class="btn btn-light btn-radius btn-brd grd1 effect-1">Learn More</a> -->
</div>
<!-- end messagebox -->
</div>
<!-- end col -->
<div class="col-md-6">
<div class="post-media wow fadeIn">
<img src="images/water.png" alt="#">
</div>
<!-- end media -->
</div>
<!-- end col -->
</div>
<!-- end row -->
<!-- end container -->
</div>
</div>
<div id="service" class="services wow fadeIn">
<div class="container">
<div class="row">
<div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
<div class="appointment-form">
<h3><span>+</span> Time Available</h3>
<div class="form">
<form action="" method="post">
<fieldset>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="row">
<div class="form-group">
<input type="text" id="name" placeholder="Your Name" />
</div>
</div>
</div>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="row">
<div class="form-group">
<input type="email" placeholder="Email Address" id="email" />
</div>
</div>
</div>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 select-section">
<div class="row">
<div class="form-group">
<!-- <select class="form-control"> -->
<input type= "date"> <!-- LETS PATIENT SELECT DATE OF APPOINTMENT-->
<!-- <option>Day</option>
<option>Sunday</option>
<option>Monday</option>
<option>Tuesday</option>
<option>Wednesday</option>
<option>Monday</option> -->
<!-- </select> -->
</div>
<div class="form-group">
<input type="time">
<!-- <select class="form-control">
<option>Time</option>
<option>AM</option>
<option>PM</option>
</select> -->
</div>
</div>
</div>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="row">
<div class="form-group">
<select name="doctor" id="doctor" class="form-control">
<option value="default">Your Clinics</option>
<?php
require __DIR__ . '/helper.php';
$url = "https://localhost:5001/api/worksAt/GetWorksAt";
$arr = make_curl_get_request($url);
$url1 = "https://localhost:5001/api/clinics/GetClinics";
$arr1 = make_curl_get_request($url1);
foreach($arr["value"] as $key=>$value){
if($value["medID"] == $_GET['userID']){
foreach($arr1["value"] as $key2=>$value2){
if($value["clinicNo"] == $value2["ClinicNo"]){
echo '<option value='.$value["clinicNo"].'>' . $value2["Name"] . '</option>';
}
//echo '<option value='.$value2["ClinicNo"].'>' . $value2["Name"] . '</option>';
}
}
}
?>
</select>
<!-- <select id="clinic" class="form-control">
<option value="default">Doctor's Clinic</option>
</select> -->
</div>
</div>
</div>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="row">
<div class="form-group">
<textarea rows="4" id="textarea_message" class="form-control" placeholder="Your Message..."></textarea>
</div>
</div>
</div>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="row">
<div class="form-group">
<div class="center"><button type="submit">Submit</button></div>
</div>
</div>
</div>
</fieldset>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="testimonials" class="section wb wow fadeIn">
<div class="container">
<div class="heading">
<span class="icon-logo"><img src="images/PMA-logo-medium.png" alt="#"></span>
<h2>Your Clinics & Pharmacies</h2>
</div>
<div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
<div class="appointment-form">
<h3><span>+</span> Add Clinic & Pharamacy</h3>
<div class="form" >
<form action="/PatientMedicationApplication/clinic.php" method="get">
<fieldset>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="row">
<div class="form-group">
<input type="number" id="id" name="id" placeholder="Clinic Number" />
</div>
</div>
</div>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="row">
<div class="form-group">
<input type="text" id="name" name="name" placeholder="Clinic Name" />
</div>
</div>
</div>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="row">
<div class="form-group">
<input type="text" id="address" name="address" placeholder="Clinic Address" />
</div>
</div>
</div>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="row">
<div class="form-group">
<input type="text" id="pharmName" name="pharmName" placeholder="Pharmacy Name" />
</div>
</div>
</div>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="row">
<div class="form-group">
<input type="text" id="pharmAddress" name="pharmAddress" placeholder="Pharmacy Address" />
</div>
</div>
</div>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="row">
<div class="form-group">
<input type="text" id="userID" name="userID" placeholder="Doctor Id"/>
</div>
</div>
</div>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="row">
<div class="form-group">
<div class="center"><button type="submit">Submit</button></div>
</div>
</div>
</div>
</fieldset>
</form>
</div>
</div>
</div>
<div class="col-lg-8 col-md-8 col-sm-6 col-xs-12">
<div class="appointment-form">
<h3><span>+</span>Clinic List</h3>
<table style="width: 100%;">
<tr>
<th>Clinic No.</th>
<th>Clinic Name</th>
<th>Clinic Address</th>
</tr>
<?php
$url = "https://localhost:5001/api/worksAt/GetWorksAt";
$arr = make_curl_get_request($url);
$url1 = "https://localhost:5001/api/clinics/GetClinics";
$arr1 = make_curl_get_request($url1);
$i = 0;
foreach($arr["value"] as $key=>$value){
if($value["medID"] == $_GET['userID']){
foreach($arr1["value"] as $key2=>$value2){
if($value["clinicNo"] == $value2["ClinicNo"]){
echo "<tr>";
echo "<td>" . $value["clinicNo"] . "</td><td>" . trim(($value2["Name"])) . "</td><td>" . trim($value2["Address"]) . "</td>";
echo "</tr>";
$i++;
}
}
}
}
?>
</table>
<br></br>
<h3><span>+</span>Pharmacy List</h3>
<table style="width: 100%;">
<tr>
<th>Pharmacy Name</th>
<th>Pharmacy Address</th>
</tr>
<?php
$url = "https://localhost:5001/api/worksAt/GetWorksAt";
$arr = make_curl_get_request($url);
$url1 = "https://localhost:5001/api/pharmacies/GetPharmacies";
$arr1 = make_curl_get_request($url1);
$i = 0;
foreach($arr["value"] as $key=>$value){
if($value["medID"] == $_GET['userID']){
foreach($arr1["value"] as $key2=>$value2){
if($value["clinicNo"] == $value2["clinic_no"]){
echo "<tr>";
echo "<td>" . $value2["name"] . "</td><td>" . trim($value2["location"]) . "</td>";
echo "</tr>";
$i++;
}
}
}
}
?>
</table>
</div>
</div>
<div id="doctors" class="parallax section db" data-stellar-background-ratio="0.4" style="background:#fff;" data-scroll-id="doctors" tabindex="-1">
<div class="container">
<div class="heading">
<span class="icon-logo"><img src="images/PMA-logo-medium.png" alt="#"></span>
<h2>Meet Our Doctors!</h2>
</div>
<div class="row dev-list text-center">
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12 wow fadeIn" data-wow-duration="1s" data-wow-delay="0.2s" style="visibility: visible; animation-duration: 1s; animation-delay: 0.2s; animation-name: fadeIn;">
<div class="widget clearfix">
<!-- <img src="images/doctor_01.jpg" alt="" class="img-responsive img-rounded"> -->
<div class="widget-title">
<h3>Melanie Nguyen</h3>
<small>Software + Biomedical Engineering</small>
</div>
<!-- end title -->
<p>Hello guys, I am the Head of R&D at Stark Industries. In my spare time, I like doing advanced theoretical physics and inventing new coding languages</p>
<div class="footer-social">
<!-- <a href="#" class="btn grd1"><i class="fa fa-facebook"></i></a> -->
<a href="#" class="btn grd1"><i class="fa fa-github"></i></a>
<a href="#" class="btn grd1"><i class="fa fa-twitter"></i></a>
<a href="#" class="btn grd1"><i class="fa fa-linkedin"></i></a>
</div>
</div><!--widget -->
</div><!-- end col -->
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12 wow fadeIn" data-wow-duration="1s" data-wow-delay="0.4s" style="visibility: visible; animation-duration: 1s; animation-delay: 0.4s; animation-name: fadeIn;">
<div class="widget clearfix">
<!-- <img src="images/doctor_02.jpg" alt="" class="img-responsive img-rounded"> -->
<div class="widget-title">
<h3>Huda Abbas</h3>
<small>Software + Biomedical Engineering</small>
</div>
<!-- end title -->
<p>Hello guys, I am the Vice-President of SpaceX and Art Director for the MET Gallery. In my spare time, I create advance computational algorithms for reinventing the laws of space-time.</p>
<div class="footer-social">
<!-- <a href="#" class="btn grd1"><i class="fa fa-facebook"></i></a> -->
<a href="#" class="btn grd1"><i class="fa fa-github"></i></a>
<!-- <a href="#" class="btn grd1"><i class="fa fa-twitter"></i></a> -->
<a href="#" class="btn grd1"><i class="fa fa-linkedin"></i></a>
</div>
</div><!--widget -->
</div><!-- end col -->
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12 wow fadeIn">
<div class="widget clearfix">
<!-- <img src="images/doctor_03.jpg" alt="" class="img-responsive img-rounded"> -->
<div class="widget-title">
<h3>Nuha Shaikh </h3>
<small>Software + Biomedical Engineering</small>
</div>
<!-- end title -->
<p>Hello, I am the Head of the Harvard Medical Board. In my spare time, I like studying complex microbiology to develop better genetic modification techniques. </p>
<div class="footer-social">
<!-- <a href="#" class="btn grd1"><i class="fa fa-facebook"></i></a> -->
<a href="#" class="btn grd1"><i class="fa fa-github"></i></a>
<!-- <a href="#" class="btn grd1"><i class="fa fa-twitter"></i></a> -->
<a href="#" class="btn grd1"><i class="fa fa-linkedin"></i></a>
</div>
</div><!--widget -->
</div><!-- end col -->
</div><!-- end row -->
</div><!-- end container -->
</div>
<div class="copyright-area wow fadeIn">
<div class="container">
<div class="row">
<div class="col-md-8">
<div class="footer-text">
<p>© 2021 PMA. All Rights Reserved.</p>
</div>
</div>
<div class="col-md-4">
</div>
</div>
</div>
</div>
<!-- end copyrights -->
<a href="#home" data-scroll class="dmtop global-radius"><i class="fa fa-angle-up"></i></a>
<!-- all js files -->
<script src="js/all.js"></script>
<!-- all plugins -->
<script src="js/custom.js"></script>
<!-- map -->
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCNUPWkb4Cjd7Wxo-T4uoUldFjoiUA1fJc&callback=myMap"></script>
</body>
</html>