<script src="<?php echo base_url();?>resources/js/jquery.ui.timepicker.js"></script>
	<div class="centering" style="width:790px;margin-top: 1%;">
	<div id='edit_jadwal_sidang' style="border: 1px solid #ffffff;">
	<div class="detil" style="padding: 2px;background-color: white;">
	<form id="frm_edit_jadwal_sidang" style="background:white;margin:0;" method="post" action="<?php echo base_url().'detil_pk/simpan_edit_pemeriksaan';?>">
		<table id="tableDetilPerkara" style="font-size:14px;">
			<col width="20%">
			<col width="80%">
			<tbody>
			<tr>
				<td colspan="2" style="padding:4px;background:white;font-size:16px;color:#111;" align="center"><strong>EDIT JADWAL SIDANG</strong></td>
			</tr>
			<tr>
				<td>Tanggal<span style="color:red">*</span></td>
				<td><?php echo $tanggal_pemeriksaan; ?></td>
			</tr>
			<tr>
				<td>Jam Pelaksanaan<span style="color:red">*</span></td>
				<td>
		                       		<input id="mulai_jam" name="mulai_jam" value="<?php echo $mulai_jam; ?>" class="timepicker" maxlength="4" placeholder="HH:mm">&nbsp;s/d&nbsp;<input id="sampai_jam" name="sampai_jam" value="<?php echo $sampai_jam; ?>" class="timepicker" maxlength="4" placeholder="HH:mm">
				</td>
			</tr>
			<tr>
				<td>Agenda<span style="color:red">*</span></td>
				<td style="padding:0px;padding-left:5px;">
					<textarea name="agenda" id="agenda" maxlength="500" class="standard-input" style="margin: 0px; width: 610px; height: 90px;resize: none;"><?php echo "$agenda";?></textarea>
				</td>
			</tr>
			<tr class="row_ruangan">
				<td>Ruangan</td>
				<td style="background:white;">
					<span class="custom-dropdown custom-dropdown--emerald" style="width:200px">
					<?php echo form_dropdown('ruang_sidang', $ruang_sidang, $ruangan_id, ' style="width:200px;" class="form-control" id="ruang_sidang"'); ?>
					</span>
				</td>
			</tr>
			<tr>
				<td>Keterangan</td>
				<td style="background:white; padding:0px;padding-left:5px;">
					<input type="hidden" name="jadwal_id" id="jadwal_id" value="<?php echo $jadwal_id; ?>">
					<input type="hidden" name="perkara_id" id="perkara_id" value="<?php echo $perkara_id; ?>">
					<textarea name="keterangan" id="keterangan" maxlength="500" class="standard-input" style="margin: 0px; width: 610px; height: 90px; resize: none;"><?php echo "$row->keterangan"; ?></textarea>
				</td>
			</tr>
			<tr>
				<td colspan="2" class="buttongroup">									
					<input type="button" id='close_edit_jadwal_sidang' value="Kembali" class="btn">
					<input type="button" id="hapus" value="Hapus" style="text-decoration:none" class="btn btn-danger">
					<input type="submit" id="simpan" value="Simpan" class="btn">
				</td>
			</tr>
			</tbody>
		</table>
	</form>
	</div>
	</div>
	</div>
<script type="text/javascript">
$('#frm_edit_jadwal_sidang').SubmitHandling({
	refresh:'1',
	setRefresh:1,
	divRef:'#konten',
	clicked:1,
	btnClicked:'.close_form',
	whenStatus:1,
});

$('#hapus').ButtonClickHandling({
	refresh:'1',
	setRefresh:1,
	divRef:'#konten',
	clicked:1,
	btnClicked:'#close_edit_jadwal_sidang',
	whenStatus:1,
	actions:'<?php echo base_url()?>detil_pk/hapus_pemeriksaan_pk/<?php echo $perkara_id; ?>/<?php echo $urutan; ?>',
	formName:'#frm_edit_jadwal_sidang',
	actionName:'Hapus Data'
});





$('#mulai_jam').timepicker({
	onSelect: function(){ 
		var jammulai1=$('#mulai_jam').val()
		var jamselesai1=$('#sampai_jam').val()
        		if (jamselesai1 <= jammulai1) {
        			alert ("Jam Selesai Sidang Tidak Boleh Sama Atau Kurang Dari Jam Mulai Sidang");
		}
    	}
});

$('#sampai_jam').timepicker({
    	onSelect: function(){ 
		var jammulai2=$('#mulai_jam').val()
		var jamselesai2=$('#sampai_jam').val()
        		if (jamselesai2 <= jammulai2) {
        			alert ("Jam Selesai Sidang Tidak Boleh Sama Atau Kurang Dari Jam Mulai Sidang");
		}
    	}
});


$('#close_edit_jadwal_sidang').closingFormWin();
</script>