37 lines
1.7 KiB
PHP
37 lines
1.7 KiB
PHP
<?php
|
|
include("../../koneksi.php");
|
|
$riwayat_kegiatan_id=$_POST['riwayat_kegiatan_id'];
|
|
?>
|
|
|
|
<script type="text/javascript">
|
|
$("#tabel_data_materi").DataTable({"stateSave": true,"paging": true,"lengthChange": true,"searching": true,"ordering": true,"info": true,"autoWidth": false});
|
|
</script>
|
|
<input type="hidden" value="<?php echo $riwayat_kegiatan_id; ?>" id="riwayat_kegiatan_id">
|
|
<table id="tabel_data_materi" class="table table-striped table-condensed" cellpadding="1">
|
|
<thead>
|
|
<tr>
|
|
<td width="150px;"><b>Jenis</b></td>
|
|
<td><b>Keterangan</b></td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
$data=pg_query("SELECT * FROM riwayat_materi
|
|
WHERE riwayat_kegiatan_id='$riwayat_kegiatan_id'
|
|
ORDER BY id ASC
|
|
");
|
|
while($r=pg_fetch_array($data)) {
|
|
?>
|
|
<td class="kiri"><b><?php echo $r['materi']; ?></b></td>
|
|
<td class="kanan"><b><?php echo $r['keterangan']; ?></b></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
|
|
<script type="text/javascript">
|
|
|
|
</script>
|