91 lines
3.8 KiB
PHP
91 lines
3.8 KiB
PHP
<script type="text/javascript">
|
|
$('.date').datepicker({format: 'dd/mm/yyyy',todayHighlight:'TRUE',autoclose: true,});
|
|
</script>
|
|
<style type="text/css">
|
|
.popover {background-color: black;}
|
|
.popover.top .arrow::after {border-top-color: black; }
|
|
.popover-content {background-color: black;color:white;font-size: 14px;}
|
|
|
|
@font-face {
|
|
font-family: "GSans";
|
|
src: url('assets/fonts/GoogleSans-regular.ttf');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "GSans_Med";
|
|
src: url('assets/fonts/GoogleSans-medium.ttf');
|
|
}
|
|
|
|
|
|
.judul_grafik {
|
|
font-family: "GSans";
|
|
font-size:27px;
|
|
color: black;
|
|
}
|
|
|
|
.jn {
|
|
font-family: "GSans";
|
|
font-size:19px;
|
|
}
|
|
</style>
|
|
|
|
<?php
|
|
include('../../koneksi.php');
|
|
$satuan_kerja_id=$_POST['satuan_kerja_id'];
|
|
$riwayat_kegiatan_id=$_POST['riwayat_kegiatan_id'];
|
|
|
|
$data2=pg_query("SELECT
|
|
no_nd,tgl_nd,tgl_paling_lambat_nd
|
|
FROM riwayat_quota
|
|
WHERE riwayat_kegiatan_id='$riwayat_kegiatan_id'");
|
|
while($row2=pg_fetch_array($data2)) {
|
|
$no_nd=$row2[0];
|
|
$tgl_nd=$row2[1];
|
|
$tgl_paling_lambat_nd=$row2[2];
|
|
}
|
|
|
|
$data=pg_query("SELECT id,permintaan_nd
|
|
FROM riwayat_quota
|
|
WHERE satuan_kerja_id='$satuan_kerja_id' AND riwayat_kegiatan_id='$riwayat_kegiatan_id'");
|
|
while($row=pg_fetch_array($data)) {
|
|
$id=$row[0];
|
|
$permintaan_nd=$row[1];
|
|
}
|
|
|
|
?>
|
|
<form role="form">
|
|
<div class="form-group">
|
|
<label for="exampleInputEmail1">No Nodin</label>
|
|
<input type="hidden" value="<?php echo $id; ?>" id="id">
|
|
<input type="text" class="form-control" value="<?php echo $no_nd; ?>" id="no_nd" >
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="exampleInputEmail1">Tanggal Nodin</label>
|
|
<input type="text" id="tgl_nd" class="form-control date" value="<?php
|
|
$tml=date('d-m-Y',strtotime($tgl_nd));
|
|
if (($tml=="01-01-1970") || ($tml==NULL) || ($tml=="")) {
|
|
echo "";
|
|
} else {
|
|
echo date('d/m/Y',strtotime($tml));
|
|
}
|
|
?>">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="exampleInputEmail1">Keterangan permintaan</label>
|
|
<textarea class="form-control" rows="4" id="permintaan_nd" ><?php echo $permintaan_nd; ?></textarea>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="exampleInputEmail1">Paling lambat</label>
|
|
<input type="text" id="tgl_paling_lambat_nd" class="form-control date" value="<?php
|
|
$tpl=date('d-m-Y',strtotime($tgl_paling_lambat_nd));
|
|
if (($tpl=="01-01-1970") || ($tpl==NULL) || ($tpl=="")) {
|
|
echo "";
|
|
} else {
|
|
echo date('d/m/Y',strtotime($tpl));
|
|
}
|
|
?>">
|
|
</div>
|
|
|
|
</form>
|
|
|