-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutama-doa.php.table
62 lines (56 loc) · 2.82 KB
/
utama-doa.php.table
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
<?php include('q-include/meta.php') ?>
<?php include('q-include/side-nav.php') ?>
<?php include('q-include/nav-header.php') ?>
<main id="main-container">
<!-- Page Content -->
<div class="content">
<nav class="breadcrumb bg-white push">
<a class="breadcrumb-item" href="index.php">Utama</a>
<span class="breadcrumb-item active">Senarai Doa</span>
</nav>
<!-- Dynamic Table Full Pagination -->
<div class="block">
<div class="block-content block-content-full">
<table class="table table-hover table-vcenter js-dataTable-full-pagination">
<thead>
<tr>
<th class="text-center"></th>
<th>Title</th>
<th class="d-none d-sm-table-cell">Audio</th>
<th class="d-none d-sm-table-cell text-center" style="width: 15%;">Hits </th>
<th class="text-center" style="width: 15%;"></th>
</tr>
</thead>
<tbody>
<?php $q_doa = mysqli_query($db, "SELECT * FROM doa");
while($doa = mysqli_fetch_assoc($q_doa)) {
?>
<tr>
<td class="text-center"><?php echo $doa['id'] ?></td>
<td class="font-w600"><a href="doa.php?did=<?php echo $doa['id']; ?>"><?php echo $doa['title'] ?></a></td>
<td class="d-none d-sm-table-cell">
<span class="badge badge-warning">
<?php if(is_null($doa['track']) || $doa['track'] == ''){ echo 'ada'; }else{ echo 'tiada'; } ?>
<span class="badge badge-warning">
</td>
<td class="d-none d-sm-table-cell text-center">
<?php echo $doa['hits'] ?>
</td>
<td class="text-center">
</td>
</tr>
<?php } unset($doa); ?>
</tbody>
</table>
</div>
</div>
<!-- END Dynamic Table Full Pagination -->
</div>
</main>
<?php include('q-include/footer.php') ?>
<script src="assets/js/pages/be_ui_icons.js"></script>
<script src="assets/js/plugins/datatables/jquery.dataTables.min.js"></script>
<script src="assets/js/plugins/datatables/dataTables.bootstrap4.min.js"></script>
<!-- Page JS Code -->
<script src="assets/js/pages/be_tables_datatables.js"></script>
</body>