-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathread_obat.php
44 lines (36 loc) · 1.11 KB
/
read_obat.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
<?php
include 'functions.php';
require('./api/consumeapi_obat.php');
$getdata = getConsume();
?>
<?=template_header('Read')?>
<div class="content read">
<h2> Obat</h2>
<a href="create_obat.php" class="create-contact">Tambah</a>
<table>
<thead>
<tr>
<td>No.</td>
<td>Nama obat</td>
<td>Keterangan</td>
<td></td>
</tr>
</thead>
<tbody>
<?php foreach ($getdata as $key => $contact): ?>
<tr>
<td><?=$key + 1?></td>
<td><?=$contact['nama_obat']?></td>
<td><?=$contact['ket']?></td>
<td class="actions">
<a href="update_obat.php?id_obat=<?=$contact['id_obat']?>" class="edit"><i class="fas fa-pen fa-xs"></i></a>
<a href="delete_obat.php?id_obat=<?=$contact['id_obat']?>" class="trash"><i class="fas fa-trash fa-xs"></i></a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="pagination">
</div>
</div>
<?=template_footer()?>