56 lines
3.3 KiB
PHP
56 lines
3.3 KiB
PHP
<?php
|
|
include ('../../koneksi.php');
|
|
?>
|
|
|
|
<?php
|
|
$id=$_POST['id'];
|
|
$bln_skrg=date('m');
|
|
$data=pg_query("SELECT * FROM jadwal_kegiatan WHERE id='$id'");
|
|
while($row=pg_fetch_array($data)) {
|
|
$id=$row[0];
|
|
$riwayat_kegiatan_id=$row[1];
|
|
$hari_ke=$row[2];
|
|
$waktu_mulai=$row[3];
|
|
$waktu_selesai=$row[4];
|
|
$materi=$row[5];
|
|
$pj=$row[6];
|
|
$keterangan=$row[7];
|
|
}
|
|
|
|
?>
|
|
<form role="form">
|
|
<input type="hidden" value="<?php echo $riwayat_kegiatan_id; ?>" id="riwayat_kegiatan_id">
|
|
<input type="hidden" value="<?php echo $id; ?>" id="id">
|
|
|
|
<div class="form-group">
|
|
<label for="exampleInputEmail1">Hari ke</label>
|
|
<input type="number" class="form-control" id="hari_ke" value="<?php echo $hari_ke; ?>">
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="exampleInputEmail1">Waktu</label>
|
|
<div class="input-group">
|
|
<input type="text" style="text-align:center" class="form-control" maxlength="5" id="waktu_mulai" value="<?php echo date('H:i',strtotime($waktu_mulai)); ?>"
|
|
onkeyup="var v = this.value;if (v.match(/^\d{2}$/) !== null) {this.value = v + ':';}
|
|
else if (v.match(/^\d{2}\/\d{2}$/) !== null) {}" placeholder="hh:ss">
|
|
<span class="input-group-addon">s/d</span>
|
|
<input type="text" style="text-align:center" class="form-control" maxlength="5" id="waktu_selesai" value="<?php echo date('H:i',strtotime($waktu_selesai)); ?>"
|
|
onkeyup="var v = this.value;if (v.match(/^\d{2}$/) !== null) {this.value = v + ':';}
|
|
else if (v.match(/^\d{2}\/\d{2}$/) !== null) {}" placeholder="hh:ss">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="exampleInputEmail1">Materi</label>
|
|
<input type="text" class="form-control" id="materi" value="<?php echo $materi; ?>">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="exampleInputEmail1">Penanggung-jawab</label>
|
|
<input type="text" class="form-control" id="pj" value="<?php echo $pj; ?>">
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="exampleInputEmail1">Keterangan</label>
|
|
<input type="text" class="form-control" id="keterangan" value="<?php echo $keterangan; ?>">
|
|
</div>
|
|
</form>
|