-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathread.php
More file actions
53 lines (46 loc) · 1.63 KB
/
read.php
File metadata and controls
53 lines (46 loc) · 1.63 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<div class="table-responsive">
<table class="table table-bordered table-condensed table-hover table-striped" cellspacing="0" width="100%">
<thead>
<tr>
<th>#ID</th>
<th>Child Name</th>
<th>Father</th>
<th>Mother</th>
<th>Operations</th>
</tr>
</thead>
<tbody>
<?php
require_once 'class.user.php';
$user_home = new USER();
$query = "SELECT * FROM view_birth_certificates";
$stmt = $user_home->runQuery( $query );
$stmt->execute();
if($stmt->rowCount() > 0) {
while($row=$stmt->fetch(PDO::FETCH_ASSOC)) {
extract($row);
?>
<tr>
<td><?php echo $entryNo; ?></td>
<td><?php echo $childFirstName; ?> <?php echo $childOtherName; ?> <?php echo $fatherTribalName; ?></td>
<td><?php echo $fatherFirstName; ?> <?php echo $fatherOtherName; ?> <?php echo $theFatherTribalName; ?></td>
<td><?php echo $motherFirstName; ?> <?php echo $motherLastName; ?></td>
<td>
<a class="btn btn-sm btn-success" href="PDF-birth-certificate.php?cert_id=<?php echo $entryNo; ?>" target="_blank" >View Certificate</a>
<a class="btn btn-sm btn-info" href="edit-birth-certificate.php?cert_id=<?php echo $entryNo; ?>" >Edit </a>
<a class="btn btn-sm btn-danger" id="delete_product" data-id="<?php echo $entryNo; ?>" href="javascript:void(0)">Delete</a>
</td>
</tr>
<?php
}
} else {
?>
<tr>
<td colspan="5">No Certificates Found</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>