perbaikan ketika refresh dengan menggunakan session aktif pada dashboard admin
This commit is contained in:
@@ -1,28 +1,36 @@
|
||||
<?php
|
||||
include('../koneksi.php');
|
||||
<?php
|
||||
include('../koneksi.php');
|
||||
?>
|
||||
|
||||
<script type="text/javascript">$("#tabel_data_kode").DataTable({"stateSave": true,"paging": true,"lengthChange": true,"searching": true,"ordering": false,"info": false,"autoWidth": false});</script>
|
||||
<table id="tabel_data_kode" class="table table-striped table-condensed table-bordered" cellpadding="1" >
|
||||
<thead>
|
||||
<tr>
|
||||
<td width="100px;">Kode</td>
|
||||
<td>Keterangan</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$data = pg_query("SELECT * FROM kode ORDER BY id DESC");
|
||||
while($row=pg_fetch_array($data)) {
|
||||
?>
|
||||
<tr style="color:black">
|
||||
<td class="kiri" align="center" style="font-family:InterSB"><?php echo strtoupper($row['kode']); ?></td>
|
||||
<td class="kanan"><?php echo strtoupper($row['keterangan']); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
$("#tabel_data_kode").DataTable({
|
||||
"stateSave": true,
|
||||
"paging": true,
|
||||
"lengthChange": true,
|
||||
"searching": true,
|
||||
"ordering": false,
|
||||
"info": false,
|
||||
"autoWidth": false
|
||||
});
|
||||
</script>
|
||||
<table id="tabel_data_kode" class="table table-striped table-condensed table-bordered" cellpadding="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<td width="100px;">Kode</td>
|
||||
<td>Keterangan</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$data = pg_query("SELECT * FROM kode WHERE status=1 ORDER BY id DESC");
|
||||
while ($row = pg_fetch_array($data)) {
|
||||
?>
|
||||
<tr style="color:black">
|
||||
<td class="kiri" align="center" style="font-family:InterSB"><?php echo strtoupper($row['kode']); ?></td>
|
||||
<td class="kanan"><?php echo strtoupper($row['keterangan']); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user