-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathavbSamplesTable.php
More file actions
34 lines (32 loc) · 1.13 KB
/
avbSamplesTable.php
File metadata and controls
34 lines (32 loc) · 1.13 KB
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
<?php
$requests = new Requests();
$avb_samples = $requests->getAvailableSamples();
$html = "
<table class='table'>
<tr>
<th>Hospital Name</th>
<th>Available Blood</th>
<th>Added On</th>
</tr>";
foreach ($avb_samples as $row) {
$html .= "
<tr>
<td rowspan=2>$row[name]</td>
<td rowspan=2>$row[avb_blood_type]</td>
<td >".date('d-m-Y',strtotime($row['added_on']))."</td>
</tr>
<tr>
<td class=req_btn_cell>
<a
id=requestSamplebtn
type=button
class='btn btn-rounded'
href= ./viewSamples.php?requestSample=true&hos_id=$row[hos_id]&req_blood_type=".urlencode($row['avb_blood_type'])."
>
Request
</a>
</td>
</tr>";
}
$html .= "</table>";
echo $html;