-
Notifications
You must be signed in to change notification settings - Fork 1
/
kriteria.php
49 lines (42 loc) · 1.7 KB
/
kriteria.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
<?php
include 'header.php';
require_once 'criteria.php';
// Mendapatkan daftar kriteria
$criterias = getCriterias();
?>
<div class="panel panel-container" style="padding: 20px; box-shadow: 2px 2px 5px #888888;">
<h4>Tabel Kriteria</h4>
<a href="add_criteria.php" class="btn btn-primary"><span class="fa fa-plus"></span>  Tambah Data</a>
<br>
<br>
<div class="table-responsive">
<table class="table table-bordered">
<thead>
<tr>
<th>ID</th>
<th>Nama Kriteria</th>
<th>Bobot</th>
<th>Tipe</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
<?php foreach ($criterias as $criteria) : ?>
<tr>
<td class="text-center"><?php echo $criteria['id']; ?></td>
<td class="text-center"><?php echo $criteria['name']; ?></td>
<td class="text-center"><?php echo $criteria['weight']; ?></td>
<td class="text-center"><?php echo $criteria['type']; ?></td>
<td class="text-center">
<a href="edit_criteria.php?id=<?php echo $criteria['id']; ?>&aksi=ubah" class="btn btn-info"><span class="fa fa-pencil"></span> Edit</a>
<a href="delete_criteria.php?id=<?php echo $criteria['id']; ?> &proses=proses-hapus" class="btn btn-danger"><span class="fa fa-trash"></span>Hapus</a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
<?php
include 'footer.php';
?>