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');
|
|
$riwayat_peserta_id=$_POST['riwayat_peserta_id'];
|
|
$riwayat_kegiatan_id=$_POST['riwayat_kegiatan_id'];
|
|
$data=pg_query("SELECT id,
|
|
no_nd,tgl_nd
|
|
FROM riwayat_peserta
|
|
WHERE id='$riwayat_peserta_id'");
|
|
while($row=pg_fetch_array($data)) {
|
|
$id=$row[0];
|
|
$no_nd=$row[1];
|
|
$tgl_nd=$row[2];
|
|
}
|
|
?>
|
|
<form role="form">
|
|
<div class="form-group">
|
|
<label for="exampleInputEmail1">No Nodin</label>
|
|
<input type="hidden" value="<?php echo $id; ?>" id="id_mentor">
|
|
<input type="text" class="form-control" value="<?php echo $no_nd; ?>" id="no_nd_mentor" >
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="exampleInputEmail1">Tanggal Nodin</label>
|
|
<input type="text" id="tgl_nd_mentor" 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>
|
|
|
|
</form>
|
|
|