first commit
This commit is contained in:
28
dev/app/kode/tabel.php
Normal file
28
dev/app/kode/tabel.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
include('../koneksi.php');
|
||||
?>
|
||||
|
||||
<script type="text/javascript">$("#tabel_data_kode").DataTable({"stateSave": true,"paging": true,"lengthChange": true,"searching": true,"ordering": true,"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;"><b>Kode</b></td>
|
||||
<td><b>Keterangan</b></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"><b><?php echo strtoupper($row['kode']); ?></b></td>
|
||||
<td class="kanan"><b><?php echo strtoupper($row['keterangan']); ?></b></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user