66 lines
2.3 KiB
PHP
66 lines
2.3 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'];
|
|
$data=pg_query("SELECT k.id,
|
|
k.no_und,k.tgl_und
|
|
FROM riwayat_kegiatan k
|
|
WHERE k.id='$riwayat_kegiatan_id'");
|
|
while($row=pg_fetch_array($data)) {
|
|
$id=$row[0];
|
|
$no_und=$row[1];
|
|
$tgl_und=$row[2];
|
|
}
|
|
?>
|
|
<form role="form">
|
|
<div class="form-group">
|
|
<label for="exampleInputEmail1">No Undangan</label>
|
|
<input type="hidden" value="<?php echo $id; ?>" id="id">
|
|
<input type="text" class="form-control" value="<?php echo $no_und; ?>" id="no_und" >
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="exampleInputEmail1">Tanggal Undangan</label>
|
|
<input type="text" id="tgl_und" class="form-control date" value="<?php
|
|
$tml=date('d-m-Y',strtotime($tgl_und));
|
|
if (($tml=="01-01-1970") || ($tml==NULL) || ($tml=="")) {
|
|
echo "";
|
|
} else {
|
|
echo date('d/m/Y',strtotime($tml));
|
|
}
|
|
?>">
|
|
</div>
|
|
|
|
</form>
|
|
|