<br>
<div style="width:100%;align:center;">
	<div class="detil" style="padding: 2px;margin:0px 25%;background-color: white;width:50%;">
		<h2 align="center"><label>PERHATIAN!!! <br>RUANG YANG DIMASUKKAN AKAN MERUBAH DATA JADWAL SIDANG</label></h2>
		<form id="frm_input_antrian_ruang_sidang" method="post" action="<?php echo base_url().'manageAntrian/f_validate_input_ruang_sidang';?>">
			<table id="tableDetilPerkara">
				<col  width="30%" />
		        <col  width="70%" />
		        <tr>
		        	<td>Tanggal Sidang</td>
		        	<td>
                        <span>
                            <input class="standard-input" id="tanggal_sidang" name="tanggal_sidang" value="<?php echo date('d/m/Y');?>" class="datepicker" maxlength="10" placeholder="tgl/bln/tahun">
                        </span>
                    </td>
		        </tr>
				<tr>
					<td>Ketua Majelis Hakim</td>
					<td>
						<span class="custom-dropdown custom-dropdown--emerald" style='width:250px;'>
	                        <?php
	                        $js = 'id="hakim_id" style="width:250px;" class="custom-dropdown__select custom-dropdown__select--white"';
	                        echo form_dropdown('hakim_id', $hakim_list, 0, $js);
	                        ?>
	                    </span> 
					</td>
				</tr>
				<tr>
					<td>Ruang Sidang</td>
					<td>
						<span class="custom-dropdown custom-dropdown--emerald" style='width:250px;'>
	                        <?php
	                        $js = 'id="ruang_id" style="width:250px;" class="custom-dropdown__select custom-dropdown__select--white"';
	                        echo form_dropdown('ruang_id', $ruang_sidang_list, 0, $js);
	                        ?>
	                    </span>
					</td>
				</tr>
				<tr>
					<td>Panggil Dengan Nomor Perkara</td>
					<td>
						<span class="custom-dropdown custom-dropdown--emerald" style='width:250px;'>
							<select name="panggil_no_perk" style="width:250px;" class="custom-dropdown__select custom-dropdown__select--white">
								<option value=1 selected>Ya</option>
								<option value=0>Tidak</option>
							</select>
					</td>
				</tr>
				<tr>
					<td colspan="2" style="background:white;" align="center">
						<input hidden id="update" type="hidden" name="update_ruang" value="1">
						<input hidden id="simpan" class="btn" type="submit" value="Simpan">
					</td>
				</tr>
			</table>
		</form>
	</div>
</div>
<div class="cssTable" id="div_table_antrian">
</div>
<script type="text/javascript">
$('#hakim_id').change(function(){
	$('#simpan').hide();
	$.post("<?php echo base_url('manageAntrian/ambil_jadwal_sidang_hakim/') ?>",{hakim_id:$('#hakim_id').val(),tgl:$('#tanggal_sidang').val()}).success(function(data){
		$('#div_table_antrian').empty();
		$('#div_table_antrian').append(data);
		if($('#tabel_jadwal tr').length>2){
			$('#simpan').fadeIn();
		}
	});
});
$('#tanggal_sidang').datepicker({
    beforeShowDay: $.datepicker.noWeekends,
    inline: true,
    showOtherMonths: true,
    dateFormat: 'dd/mm/yy',
    dayNamesMin: ['Ming', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab']
});
</script>
