101 lines
2.7 KiB
PHP
101 lines
2.7 KiB
PHP
<?php include('../../koneksi.php');
|
|
$id=$_POST['riwayat_kegiatan_id'];
|
|
$satuan_kerja_id=$_POST['satuan_kerja_id'];
|
|
$x=$_POST['x'];
|
|
$d=pg_query("SELECT nama_pelatihan,(SELECT nama FROM jenis_pelatihan WHERE id=jenis_pelatihan_id)
|
|
FROM riwayat_kegiatan WHERE id='$id'");
|
|
while($rd=pg_fetch_array($d)) {
|
|
$nama_pelatihan=$rd[0];
|
|
$jenis_pelatihan=$rd[1];
|
|
}
|
|
?>
|
|
|
|
<script>
|
|
var sess_satker = $('#cek_satker').val();
|
|
var sess_jenis = $('#cek_jenis').val();
|
|
</script>
|
|
|
|
<style type="text/css">
|
|
.btn-circle.btn-md {
|
|
width: 40px;
|
|
height: 40px;
|
|
padding: 7px 10px;
|
|
border-radius: 25px;
|
|
font-size: 15px;
|
|
text-align: center;
|
|
border: 3px solid #66b5fb;
|
|
}
|
|
|
|
#sidebar-menu ul li a:hover {
|
|
background:#f1f3f4 !important;
|
|
font-color:white;
|
|
}
|
|
|
|
#sidebar-menu ul li a:focus {
|
|
background:#fce8e6 !important;
|
|
color:#d93025 !important;
|
|
font-weight: bold;
|
|
}
|
|
</style>
|
|
|
|
<br>
|
|
<br>
|
|
<br>
|
|
<br>
|
|
<div class="row">
|
|
<div class="col-md-12 col-sm-12 col-xs-12">
|
|
<span><b>
|
|
<?php echo 'Form digital peserta : '.strtoupper($jenis_pelatihan); ?><br>
|
|
<?php echo strtoupper($nama_pelatihan) ?></b>
|
|
</span>
|
|
</div>
|
|
</div> <!-- end row -->
|
|
<br>
|
|
<input type="hidden" id="riwayat_kegiatan_id" value="<?php echo $id; ?>">
|
|
<input type="hidden" id="satuan_kerja_id" value="<?php echo $satuan_kerja_id; ?>">
|
|
<input type="hidden" id="x" value="<?php echo $x; ?>">
|
|
|
|
<div class="row">
|
|
<div class="col-lg-1">
|
|
<button type="button" class="btn btn-default btn-rounded" id="back"><i class="fa fa-arrow-left m-r-5"></i>Back</button>
|
|
</div>
|
|
<div class="col-lg-3">
|
|
<select class="form-control" id="ceksatker" style="margin-top:-2px;border:0px;border-radius:0px;border-bottom: 1px solid;">
|
|
<?php
|
|
|
|
$s=pg_query("SELECT p.satuan_kerja_id,(SELECT s.nama FROM satuan_kerja s WHERE s.id=p.satuan_kerja_id) FROM riwayat_peserta p
|
|
WHERE p.riwayat_kegiatan_id='$id' AND p.sebagai_id='1' AND p.satuan_kerja_id='$satuan_kerja_id'
|
|
GROUP BY p.satuan_kerja_id");
|
|
while($r=pg_fetch_array($s)) {
|
|
?>
|
|
<option <?php if($r[0]==$satuan_kerja_id) {echo "selected";} else {} ?> value="<?php echo $r[0]; ?>"><?php echo $r[1]; ?></option>
|
|
<?php } ?>
|
|
</select>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div id="tabel_form"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
var riwayat_kegiatan_id=$('#riwayat_kegiatan_id').val();
|
|
var satuan_kerja_id=$('#satuan_kerja_id').val();
|
|
|
|
$('#tabel_form').load("app/evaluasikd/form/tabel.php",{riwayat_kegiatan_id:riwayat_kegiatan_id,str:satuan_kerja_id});
|
|
|
|
$('#back').click(function(){
|
|
$.post('app/evaluasikd/main.php',function(html){$("#main_tag").html(html);});
|
|
});
|
|
</script>
|