-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile.php
120 lines (115 loc) · 4.69 KB
/
profile.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
<?php
$id = $_GET['id']; // primary key for the donor in the database
require_once 'php/DBConnect.php';
$db = new DBConnect();
// $flag = $db->checkAuth();
// Search by Id
$donor = $db->getDonorProfileById($id);
$title = "Donor Profile";
include 'layout/header.php';
// if($flag){
// include 'layout/navbar.php';
// }
include 'layout/navbar.php';
?>
<div class="container">
<div class="row">
<div class="col-sm-1"></div>
<div class="col-md-5">
<div class="panel panel-success">
<div class="panel-heading">
<h5 style="background-color:#f2f2f2;text-align:center;">Basic Info</h5>
</div>
<div class="panel-body">
<table class="table table-condensed">
<tr>
<td><label>Name</label></td>
<td><?= $donor[0]['fname']." ".$donor[0]['mname']." ".$donor[0]['lname']; ?></td>
</tr>
<tr>
<td><label>Gender</label></td>
<td><?= $donor[0]['sex']; ?></td>
</tr>
<tr>
<td><label>D.O.B</label></td>
<td><?= $donor[0]['bday']; ?></td>
</tr>
<tr>
<td><label> Gender </label></td>
<td><?= $donor[0]['sex']; ?></td>
</tr>
<tr>
<td><label> Address </label></td>
<td><?= wordwrap($donor[0]['h_address'], 26, '<br>'); ?></td>
</tr>
<tr>
<td><label> City </label></td>
<td><?= $donor[0]['city']; ?></td>
</tr>
<tr>
<td><label> Donation Date </label></td>
<td><?= $donor[0]['don_date']; ?></td>
</tr>
</table>
</div>
</div>
</div>
<div class="col-md-5">
<div class="panel panel-success">
<div class="panel-heading">
<h5 style="background-color:#f2f2f2;text-align:center;">Medical Info</h5>
</div>
<div class="panel-body">
<table class="table table-condensed">
<tr>
<td><label>Blood Type</label></td>
<td><?= $donor[0]['b_type']; ?></td>
</tr>
<tr>
<td><label>Statistics</label></td>
<td><?= $donor[0]['stats']; ?></td>
</tr>
<tr>
<td><label>Temperature</label></td>
<td><?= $donor[0]['temp']; ?></td>
</tr>
<tr>
<td><label> Pulse </label></td>
<td><?= $donor[0]['pulse']; ?></td>
</tr>
<tr>
<td><label> Blood Pressure </label></td>
<td><?= $donor[0]['bp']; ?></td>
</tr>
<tr>
<td><label> Weight </label></td>
<td><?= $donor[0]['weight']; ?></td>
</tr>
<tr>
<td><label> Hemoglobin </label></td>
<td><?= $donor[0]['hemoglobin']; ?></td>
</tr>
<tr>
<td><label> HBsAG </label></td>
<td><?= $donor[0]['hbsag']; ?></td>
</tr>
<tr>
<td><label> Aids </label></td>
<td><?= $donor[0]['aids']; ?></td>
</tr>
<tr>
<td><label> Malaria Smear </label></td>
<td><?= $donor[0]['malaria_smear']; ?></td>
</tr>
<tr>
<td><label> Hematocrit </label></td>
<td><?= $donor[0]['hematocrit']; ?></td>
</tr>
</table>
</div>
</div>
</div>
<div class="col-sm-1"></div>
</div>
</div>
<?php include 'layout/footer.php'; ?>