fhdfhdfhdfhdfhdfhdfdfhdfhdfhdhfdfhdfhdfhd dfhdfhdfhdfhdfhdfhdfhdfdfhdfhdfhdhfdfhdfhdfhdfh
| DIR:/home/u1105814/public_html/mountanasikunir.com/admin/modul/mod_order/ |
| Current File : /home/u1105814/public_html/mountanasikunir.com/admin/modul/mod_order/order.php |
<script LANGUAGE="JavaScript">
<!--
function confirmSubmit() {
var msg;
msg= "Anda yakin akan menghapus?";
var agree=confirm(msg);
if (agree)
return true ;
else
return false ;
}
// -->
</script>
<?php
$module=$_GET['module'];
$aksi="modul/mod_review/aksi_review.php";
switch($_GET['act']){
// Tampil Review
default:
echo "
<section class='content'>
<div class='container-fluid'>
<div class='row'>
<div class='col-12'>
<div class='card'>
<div class='card-header'>
</div>
<div class='card-body'>
<div class='table-responsive'>
<table id='example1' class='table table-bordered table-striped'>
<thead>
<tr>
<th>ID Order</th>
<th>Nama Pemesan</th>
<th>Chekin Date</th>
<th>Checkout Date</th>
<th>Status</th>
<th>Manage</th>
</tr>
</thead>
<tbody>";
$tampil=mysqli_query($connect,"SELECT * FROM booking where id_booking > 0");
$no=1;
while ($r=mysqli_fetch_array($tampil)){
$id = $r['id_booking'];
$nama = $r['fullname'];
$checkindate = $r['checkindate'];
$checkoutdate = $r['checkoutdate'];
$status = $r['status'];
echo "
<tr>
<td>$id</td>
<td>$nama</td>
<td>$checkindate</td>
<td>$checkoutdate</td>
<td>$status</td>
<td><a href='?module=order&act=edit&id=$id' class='btn btn-success'>Update</a>||<a href='modul/mod_order/aksi_order.php?module=order&act=delete&id=$id' class='btn btn-danger'>Hapus</a>||
<a href='generate_invoice.php?id_invoice=$id' class='btn btn-success' target='_blank'>
Unduh PDF
</a></td>
</tr>";
}
echo "
</table></div>
</div>
</div>
</div>
</div>
</div>
</section>";
break;
case "edit":
include "edit.php";
break;
}
?> |