first commit
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
include("../../koneksi.php");
|
||||
$riwayat_kegiatan_id=$_POST['riwayat_kegiatan_id'];
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
$("#tabel_data_jadwal").DataTable({"stateSave": true,"paging": true,"lengthChange": true,"searching": true,"ordering": false,"info": true,"autoWidth": false});
|
||||
</script>
|
||||
<input type="hidden" value="<?php echo $riwayat_kegiatan_id; ?>" id="riwayat_kegiatan_id">
|
||||
<table id="tabel_data_jadwal" class="table table-striped table-condensed" cellpadding="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<td width="50"><b>Hari ke</b></td>
|
||||
<td><b>Waktu</b></td>
|
||||
<td><b>Materi</b></td>
|
||||
<td><b>Penanggung-jawab</b></td>
|
||||
<td><b>Keterangan</b></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$data=pg_query("SELECT * FROM jadwal_kegiatan
|
||||
WHERE riwayat_kegiatan_id='$riwayat_kegiatan_id'
|
||||
ORDER BY id ASC
|
||||
");
|
||||
while($r=pg_fetch_array($data)) {
|
||||
?>
|
||||
<td class="kiri" align="center"><b><?php echo $r[2]; ?></b></td>
|
||||
<td><b> <?php
|
||||
if (date('H:i',strtotime($r['waktu_selesai']))=='00:00') {
|
||||
echo date('H:i',strtotime($r['waktu_mulai'])).' s/d Selesai';
|
||||
} else {
|
||||
echo date('H:i',strtotime($r['waktu_mulai'])).' s/d '.date('H:i',strtotime($r['waktu_selesai']));
|
||||
}
|
||||
?></b></td>
|
||||
<td><b><?php echo $r[5]; ?></b></td>
|
||||
<td><b><?php echo $r[6]; ?></b></td>
|
||||
<td class="kanan"><b><?php echo $r[7]; ?></b></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user