<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>resources/css/date-css.css" />
<?php
$option_tgl = array('1' => 'Sama Dengan', 
					'2' => 'Lebih Besar Dari', 
					'3' => 'Lebih Besar Sama Dengan', 
					'4' => 'Kurang Dari',
					'5' => 'Kurang Dari Sama Dengan',
					'6' => 'Antara'
					);
$option_text = array('1' => 'Sama Dengan', 
					'8' => 'Berisi'
					);
?>
<div class="centering" style="width:800px;margin-top: 1%;">
<div id='pihak_pilih' style="background:white;padding:5px;">
	<div class="detil" style="font-size:14px;margin-top:25px;width: 100%;margin: 0 auto;border-color: #FFFFFF;">
		<h3>PENCARIAN DETIL - REGISTER PERMOHONAN PENINJAUAN KEMBALI</h3>
		<form method="post" id="frm_search_detil" action="<?php echo base_url().'perkara_list_pk/search_detail/'.$enc; ?>">
		<table id="tableDetilPerkara">
			<col width="38%">
			<col width="25%">
			<col width="37%">
			<tbody>
				<tr>
					<td style="color:white;">Nomor Perkara PN</td>
					<td style="padding:0px;padding-left:5px;">
						<span class="custom-dropdown custom-dropdown--emerald" style='width:99%'>
							<?php
								$js="id='no_perkara_pn_select' class='custom-dropdown__select custom-dropdown__select--white' style='width:99%;' ";
								echo form_dropdown('no_perkara_pn_select', $option_text, '8', $js);
							?>
						</span>
					</td>
					<td style="padding:0px;padding-left:5px;"><input id='no_perkara_pn' name='no_perkara_pn' class="standard-input">
					</td>
				</tr>
				<tr>
					<td style="color:white;">Tanggal Putusan PN</td>
					<td style="padding:0px;padding-left:5px;">
						<span class="custom-dropdown custom-dropdown--emerald" style="width:99%;">
							<?php
								$js="id='tgl_putusan_pn_select' class='custom-dropdown__select custom-dropdown__select--white' style='width:99%;' ";
								echo form_dropdown('tgl_putusan_pn_select', $option_tgl, '1', $js);
							?>
						</span>
					</td>
					<td style="padding:0px;padding-left:5px; color:black;">
					<input id="from_tgl_putusan_pn" name="from_tgl_putusan_pn" style="background:#fff;" class="datepicker" maxlength="10" placeholder="tgl/bln/tahun"> 
					<input id= "a_tgl_putusan_pn" class='antara tgl_putusan_pn_select' style="background:#fff;" value="s/d" disabled="true">
					<input id="to_tgl_putusan_pn" name="to_tgl_putusan_pn" style="background:#fff;" class="datepicker a_date tgl_putusan_pn_select" maxlength="10" placeholder="tgl/bln/tahun"></td>
				</tr>
				<tr>
					<td style="color:white;">Nomor Perkara Banding</td>
					<td style="padding:0px;padding-left:5px;">
						<span class="custom-dropdown custom-dropdown--emerald" style='width:99%'>
							<?php
								$js="id='no_perkara_banding_select' class='custom-dropdown__select custom-dropdown__select--white' style='width:99%;' ";
								echo form_dropdown('no_perkara_banding_select', $option_text, '8', $js);
							?>
						</span>
					</td>
					<td style="padding:0px;padding-left:5px;"><input id='no_perkara' name='no_perkara' class="standard-input">
					</td>
				</tr>
				<tr>
					<td style="color:white;">Tanggal Putusan Banding</td>
					<td style="padding:0px;padding-left:5px;">
						<span class="custom-dropdown custom-dropdown--emerald" style="width:99%;">
							<?php
								$js="id='tgl_putusan_banding_select' class='custom-dropdown__select custom-dropdown__select--white' style='width:99%;' ";
								echo form_dropdown('tgl_putusan_banding_select', $option_tgl, '1', $js);
							?>
						</span>
					</td>
					<td style="padding:0px;padding-left:5px; color:black;">
					<input id="from_tgl_putusan_banding" name="from_tgl_putusan" style="background:#fff;" class="datepicker" maxlength="10" placeholder="tgl/bln/tahun"> 
					<input id= "a_tgl_putusan_banding" class='antara tgl_putusan_banding_select' style="background:#fff;" value="s/d" disabled="true">
					<input id="to_tgl_putusan_banding" name="to_tgl_putusan_banding" style="background:#fff;" class="datepicker a_date tgl_putusan_banding_select" maxlength="10" placeholder="tgl/bln/tahun"></td>
				</tr>
				<tr>
					<td style="color:white;">Nomor Perkara Kasasi</td>
					<td style="padding:0px;padding-left:5px;">
						<span class="custom-dropdown custom-dropdown--emerald" style='width:99%'>
							<?php
								$js="id='no_perkara_kasasi_select' class='custom-dropdown__select custom-dropdown__select--white' style='width:99%;' ";
								echo form_dropdown('no_perkara_kasasi_select', $option_text, '8', $js);
							?>
						</span>
					</td>
					<td style="padding:0px;padding-left:5px;"><input id='no_perkara' name='no_perkara' class="standard-input">
					</td>
				</tr>
				<tr>
					<td style="color:white;">Tanggal Putusan Kasasi</td>
					<td style="padding:0px;padding-left:5px;">
						<span class="custom-dropdown custom-dropdown--emerald" style="width:99%;">
							<?php
								$js="id='tgl_putusan_kasasi_select' class='custom-dropdown__select custom-dropdown__select--white' style='width:99%;' ";
								echo form_dropdown('tgl_putusan_kasasi_select', $option_tgl, '1', $js);
							?>
						</span>
					</td>
					<td style="padding:0px;padding-left:5px; color:black;">
					<input id="from_tgl_putusan_kasasi" name="from_tgl_putusan_kasasi" style="background:#fff;" class="datepicker" maxlength="10" placeholder="tgl/bln/tahun"> 
					<input id= "a_tgl_putusan_kasasi" class='antara tgl_putusan_kasasi_select' style="background:#fff;" value="s/d" disabled="true">
					<input id="to_tgl_putusan_kasasi" name="to_tgl_putusan_kasaa" style="background:#fff;" class="datepicker a_date tgl_putusan_banding_select" maxlength="10" placeholder="tgl/bln/tahun"></td>
				</tr>
				<tr>
					<td style="color:white;">Tanggal Permohonan PK</td>
					<td style="padding:0px;padding-left:5px;">
						<span class="custom-dropdown custom-dropdown--emerald" style="width:99%;">
							<?php
								$js="id='tgl_permohonan_pk_select' class='custom-dropdown__select custom-dropdown__select--white' style='width:99%;' ";
								echo form_dropdown('tgl_permohonan_pk_select', $option_tgl, '1', $js);
							?>
						</span>
					</td>
					<td style="padding:0px;padding-left:5px;">
					<input id="from_tgl_permohonan_pk" style="background:#fff;" name="from_tgl_permohonan_pk" class="datepicker" maxlength="10" placeholder="tgl/bln/tahun"> 
					<input id= "a_tgl_permohonan_pk" class='antara tgl_permohonan_pk_select' style="background:#fff;" value="s/d" disabled="true">
					<input id="to_tgl_permohonan_pk" name="to_tgl_permohonan_pk" style="background:#fff;" class="datepicker a_date tgl_permohonan_pk_select" maxlength="10" placeholder="tgl/bln/tahun"></td>
				</tr>
				<tr>
					<td style="color:white;">Pemohon PK</td>
					<td style="padding:0px;padding-left:5px;">
						<span class="custom-dropdown custom-dropdown--emerald" style="width:99%;">
							<?php
								$js="id='pemohon_pk_select' class='custom-dropdown__select custom-dropdown__select--white' style='width:99%;' ";
								echo form_dropdown('pemohon_pk_select', $option_text, '1', $js);
							?>
						</span>
					</td>
					<td style="padding:0px;padding-left:5px;"><input id='pemohon_pk' style="background:#fff;" name='pemohon_pk' class="standard-input"></td>
				</tr>
				<tr>
					<td style="color:white;">Alasan PK</td>
					<td style="padding:0px;padding-left:5px;">
						<span class="custom-dropdown custom-dropdown--emerald" style="width:99%;">
							<?php
								$js="id='alasan_pk_select' class='custom-dropdown__select custom-dropdown__select--white' style='width:99%;' ";
								echo form_dropdown('alasan_pk_select', $option_text, '1', $js);
							?>
						</span>
					</td>
					<td style="padding:0px;padding-left:5px;"><input id='alasan_pk' style="background:#fff;" name='alasan_pk' class="standard-input"></td>
				</tr>
				<tr>
					<td style="color:white;">Prodeo</td>
					<td style="padding:0px;padding-left:5px;">
						<span class="custom-dropdown custom-dropdown--emerald" style="width:99%;">
							<?php
								$js="id='status_prodeo' class='custom-dropdown__select custom-dropdown__select--white' style='width:99%;' ";
								echo form_dropdown('prodeo_select', $option_text, '1', $js);
							?>
						</span>
					</td>
					<td style="padding:0px;padding-left:5px;">
						<span class="custom-dropdown custom-dropdown--emerald" style="width:99%;">
							<select name="status_prodeo" id="status_prodeo" onchange="" style="width:99%;background:#fff;" class="custom-dropdown__select custom-dropdown__select--white">
								<option value="1">Ya</option>
								<option value="0">Tidak</option>
							</select>
						</span>
					</td>
				</tr>
				<tr>
					<td style="color:white;">Tanggal Pemberitahuan PK</td>
					<td style="padding:0px;padding-left:5px;">
						<span class="custom-dropdown custom-dropdown--emerald" style="width:99%;">
							<?php
								$js="id='tgl_pemberitahuan_pk_select' class='custom-dropdown__select custom-dropdown__select--white' style='width:99%;' ";
								echo form_dropdown('tgl_pemberitahuan_pk_select', $option_tgl, '1', $js);
							?>
						</span>
					</td>
					<td style="padding:0px;padding-left:5px;">
					<input id="from_tgl_pemberitahuan_pk" name="from_tgl_pemberitahuan_pk" style="background:#fff;" class="datepicker" maxlength="10" placeholder="tgl/bln/tahun"> 
					<input id= "a_tgl_pemberitahuan_pk" class='antara tgl_pemberitahuan_pk_select' style="background:#fff;" value="s/d" disabled="true">
					<input id="to_tgl_pemberitahuan_pk" name="to_tgl_pemberitahuan_pk" style="background:#fff;" class="datepicker a_date tgl_pemberitahuan_pk_select" maxlength="10" placeholder="tgl/bln/tahun"></td>
				</tr>
				<tr>
					<td style="color:white;">Tanggal Penerimaan Memori PK</td>
					<td style="padding:0px;padding-left:5px;">
						<span class="custom-dropdown custom-dropdown--emerald" style="width:99%;">
							<?php
								$js="id='tgl_terima_mem_pk_select' class='custom-dropdown__select custom-dropdown__select--white' style='width:99%;' ";
								echo form_dropdown('tgl_terima_mem_pk_select', $option_tgl, '1', $js);
							?>
						</span>
					</td>
					<td style="padding:0px;padding-left:5px;">
					<input id="from_tgl_terima_mem_pk" name="from_tgl_terima_mem_pk" style="background:#fff;" class="datepicker" maxlength="10" placeholder="tgl/bln/tahun"> 
					<input id= "a_tgl_terima_mem_pk" class='antara tgl_terima_mem_pk_select' style="background:#fff;" value="s/d" disabled="true">
					<input id="to_tgl_terima_mem_pk" name="to_tgl_terima_mem_pk" style="background:#fff;" class="datepicker a_date tgl_terima_mem_pk_select" maxlength="10" placeholder="tgl/bln/tahun"></td>
				</tr>
				<tr>
					<td style="color:white;">Tanggal Penyerahan Memori PK</td>
					<td style="padding:0px;padding-left:5px;">
						<span class="custom-dropdown custom-dropdown--emerald" style="width:99%;">
							<?php
								$js="id='tgl_serah_mem_pk_select' class='custom-dropdown__select custom-dropdown__select--white' style='width:99%;' ";
								echo form_dropdown('tgl_serah_mem_pk_select', $option_tgl, '1', $js);
							?>
						</span>
					</td>
					<td style="padding:0px;padding-left:5px;">
					<input id="from_tgl_serah_mem_pk" name="from_tgl_serah_mem_pk" style="background:#fff;" class="datepicker" maxlength="10" placeholder="tgl/bln/tahun"> 
					<input id= "a_tgl_serah_mem_pk" class='antara tgl_serah_mem_pk_select' style="background:#fff;" value="s/d" disabled="true">
					<input id="to_tgl_serah_mem_pk" name="to_tgl_serah_mem_pk" style="background:#fff;" class="datepicker a_date tgl_serah_mem_pk_select" maxlength="10" placeholder="tgl/bln/tahun"></td>
				</tr>
				<tr>
					<td style="color:white;">Tanggal Penerimaan Kontra Memori PK</td>
					<td style="padding:0px;padding-left:5px;">
						<span class="custom-dropdown custom-dropdown--emerald" style="width:99%;">
							<?php
								$js="id='tgl_terima_kontra_pk_select' class='custom-dropdown__select custom-dropdown__select--white' style='width:99%;' ";
								echo form_dropdown('tgl_terima_kontra_pk_select', $option_tgl, '1', $js);
							?>
						</span>
					</td>
					<td style="padding:0px;padding-left:5px;">
					<input id="from_tgl_terima_kontra_pk" name="from_tgl_terima_kontra_pk" style="background:#fff;" class="datepicker" maxlength="10" placeholder="tgl/bln/tahun"> 
					<input id= "a_tgl_terima_kontra_pk" class='antara tgl_terima_kontra_pk_select' style="background:#fff;" value="s/d" disabled="true">
					<input id="to_tgl_terima_kontra_pk" name="to_tgl_terima_kontra_pk" style="background:#fff;" class="datepicker a_date tgl_terima_kontra_pk_select" maxlength="10" placeholder="tgl/bln/tahun"></td>
				</tr>
				<tr>
					<td style="color:white;">Tanggal Penyerahan Kontra Memori PK</td>
					<td style="padding:0px;padding-left:5px;">
						<span class="custom-dropdown custom-dropdown--emerald" style="width:99%;">
							<?php
								$js="id='tgl_serah_kontra_pk_select' class='custom-dropdown__select custom-dropdown__select--white' style='width:99%;' ";
								echo form_dropdown('tgl_serah_kontra_pk_select', $option_tgl, '1', $js);
							?>
						</span>
					</td>
					<td style="padding:0px;padding-left:5px;">
					<input id="from_tgl_serah_kontra_pk" name="from_tgl_serah_kontra_pk" style="background:#fff;" class="datepicker" maxlength="10" placeholder="tgl/bln/tahun"> 
					<input id= "a_tgl_serah_kontra_kasasi" class='antara tgl_serah_kontra_pk_select' style="background:#fff;" value="s/d" disabled="true">
					<input id="to_tgl_serah_kontra_pk" name="to_tgl_serah_kontra_pk" style="background:#fff;" class="datepicker a_date tgl_serah_kontra_pk_select" maxlength="10" placeholder="tgl/bln/tahun"></td>
				</tr>
				<tr>
					<td style="color:white;">Tanggal Penyumpahan</td>
					<td style="padding:0px;padding-left:5px;">
						<span class="custom-dropdown custom-dropdown--emerald" style="width:99%;">
							<?php
								$js="id='tgl_penyumpahan_select' class='custom-dropdown__select custom-dropdown__select--white' style='width:99%;' ";
								echo form_dropdown('tgl_penyumpahan_select', $option_tgl, '1', $js);
							?>
						</span>
					</td>
					<td style="padding:0px;padding-left:5px;">
					<input id="from_tgl_penyumpahan_pk" name="from_tgl_penyumpahan_pk" style="background:#fff;" class="datepicker" maxlength="10" placeholder="tgl/bln/tahun"> 
					<input id= "a_tgl_kirim_kasasi" class='antara tgl_penyumpahan_select' style="background:#fff;" value="s/d" disabled="true">
					<input id="to_tgl_penyumpahan_pk" name="to_tgl_penyumpahan_pk" style="background:#fff;" class="datepicker a_date tgl_penyumpahan_select" maxlength="10" placeholder="tgl/bln/tahun"></td>
				</tr>
				<tr>
					<td style="color:white;">Tanggal Pengiriman Berkas PK</td>
					<td style="padding:0px;padding-left:5px;">
						<span class="custom-dropdown custom-dropdown--emerald" style="width:99%;">
							<?php
								$js="id='tgl_kirim_pk_select' class='custom-dropdown__select custom-dropdown__select--white' style='width:99%;' ";
								echo form_dropdown('tgl_kirim_pk_select', $option_tgl, '1', $js);
							?>
						</span>
					</td>
					<td style="padding:0px;padding-left:5px;">
					<input id="from_tgl_kirim_pk" name="from_tgl_kirim_pk" style="background:#fff;" class="datepicker" maxlength="10" placeholder="tgl/bln/tahun"> 
					<input id= "a_tgl_kirim_kasasi" class='antara tgl_kirim_kasasi_select' style="background:#fff;" value="s/d" disabled="true">
					<input id="to_tgl_kirim_kasasi" name="to_tgl_kirim_kasasi" style="background:#fff;" class="datepicker a_date tgl_kirim_kasasi_select" maxlength="10" placeholder="tgl/bln/tahun"></td>
				</tr>
				<tr>
					<td style="color:white;">Tanggal Penerimaan Berkas Kasasi</td>
					<td style="padding:0px;padding-left:5px;">
						<span class="custom-dropdown custom-dropdown--emerald" style="width:99%;">
							<?php
								$js="id='tgl_penerimaan_select' class='custom-dropdown__select custom-dropdown__select--white' style='width:99%;' ";
								echo form_dropdown('tgl_penerimaan_select', $option_tgl, '1', $js);
							?>
						</span>
					</td>
					<td style="padding:0px;padding-left:5px;">
					<input id="from_tgl_penerimaan" name="from_tgl_penerimaan" style="background:#fff;" class="datepicker" maxlength="10" placeholder="tgl/bln/tahun"> 
					<input id= "a_tgl_penerimaan" class='antara tgl_permohonan_select' style="background:#fff;" value="s/d" disabled="true">
					<input id="to_tgl_penerimaan" name="to_tgl_penerimaan" style="background:#fff;" class="datepicker a_date tgl_penerimaan_select" maxlength="10" placeholder="tgl/bln/tahun"></td>
				</tr>
				<tr>
					<td style="color:white;">Nomor Putusan Kasasi</td>
					<td style="padding:0px;padding-left:5px;">
						<span class="custom-dropdown custom-dropdown--emerald" style='width:99%'>
							<?php
								$js="id='no_perkara_kasasi_select' class='custom-dropdown__select custom-dropdown__select--white' style='width:99%;' ";
								echo form_dropdown('no_perkara_kasasi_select', $option_text, '8', $js);
							?>
						</span>
					</td>
					<td style="padding:0px;padding-left:5px;"><input id='no_perkara_kasasi' name='no_perkara_kasasi' class="standard-input">
					</td>
				</tr>
				<tr>
					<td style="color:white;">Tanggal Putusan Kasasi</td>
					<td style="padding:0px;padding-left:5px;">
						<span class="custom-dropdown custom-dropdown--emerald" style="width:99%;">
							<?php
								$js="id='tgl_putusan_kasasi_select' class='custom-dropdown__select custom-dropdown__select--white' style='width:99%;' ";
								echo form_dropdown('tgl_putusan_kasasi_select', $option_tgl, '1', $js);
							?>
						</span>
					</td>
					<td style="padding:0px;padding-left:5px;">
					<input id="from_tgl_putusan_kasasi" name="from_tgl_putusan_kasasi" style="background:#fff;" class="datepicker" maxlength="10" placeholder="tgl/bln/tahun"> 
					<input id= "a_tgl_putusan_kasasi" class='antara tgl_putusan_kasasi_select' style="background:#fff;" value="s/d" disabled="true">
					<input id="to_tgl_putusan_kasasi" name="to_tgl_putusan_kasasi" style="background:#fff;" class="datepicker a_date tgl_putusan_kasasi_select" maxlength="10" placeholder="tgl/bln/tahun"></td>
				</tr>
				<tr>
					<td style="color:white;">Tanggal Pengarsipan Kasasi</td>
					<td style="padding:0px;padding-left:5px;">
						<span class="custom-dropdown custom-dropdown--emerald" style="width:99%;">
							<?php
								$js="id='tgl_pengarsipan_kasasi_select' class='custom-dropdown__select custom-dropdown__select--white' style='width:99%;' ";
								echo form_dropdown('tgl_pengarsipan_kasasi_select', $option_tgl, '1', $js);
							?>
						</span>
					</td>
					<td style="padding:0px;padding-left:5px;">
					<input id="from_tgl_pengarsipan_kasasi" name="from_tgl_pengarsipan_kasasi" style="background:#fff;" class="datepicker" maxlength="10" placeholder="tgl/bln/tahun"> 
					<input id= "a_tgl_pengarsipan_kasasi" class='antara tgl_pengarsipan_kasasi_select' style="background:#fff;" value="s/d" disabled="true">
					<input id="to_tgl_pengarsipan_kasasi" name="to_tgl_pengarsipan_kasasi" style="background:#fff;" class="datepicker a_date tgl_pengarsipan_kasasi_select" maxlength="10" placeholder="tgl/bln/tahun"></td>
				</tr>
				<tr>
					<td style="color:white;">Tanggal Pemberitahuan Putusan Kasasi</td>
					<td style="padding:0px;padding-left:5px;">
						<span class="custom-dropdown custom-dropdown--emerald" style="width:99%;">
							<?php
								$js="id='tgl_pemberitahuan_kasasi_select' class='custom-dropdown__select custom-dropdown__select--white' style='width:99%;' ";
								echo form_dropdown('tgl_pemberitahuan_kasasi_select', $option_tgl, '1', $js);
							?>
						</span>
					</td>
					<td style="padding:0px;padding-left:5px;">
					<input id="from_tgl_pemberitahuan_kasasi" style="background:#fff;" name="from_tgl_pemberitahuan_kasasi" class="datepicker" maxlength="10" placeholder="tgl/bln/tahun"> 
					<input id= "a_tgl_pemberitahuan_kasasi" style="background:#fff;" class='antara tgl_pemberitahuan_kasasi_select' value="s/d" disabled="true">
					<input id="to_tgl_pemberitahuan_kasasi" style="background:#fff;" name="to_tgl_pemberitahuan_kasasi" class="datepicker a_date tgl_pemberitahuan_kasasi_select" maxlength="10" placeholder="tgl/bln/tahun"></td>
				</tr>
				<tr>
					<td style="color:white;">Cabut Permohonan Kasasi</td>
					<td style="padding:0px;padding-left:5px;color:black;">Sama Dengan</td>
					<td style="padding:0px;padding-left:5px;">
					<input class="checkbox_status" id="cabut_kasasi" type="checkbox" name="cabut_kasasi"><font color="black">Ya</font>
					</td>
				</tr>
				<tr>
					<td style="color:white;">Status Kasasi</td>
					<td style="padding:0px;padding-left:5px;color:black;">Sama Dengan</td>
					<td style="padding:0px;padding-left:5px;">
						<span class="custom-dropdown custom-dropdown--emerald"  style="border:1px #ddd solid;  width:350px;">
				        <select style="width:350px;" name="status_kasasi" id="status_kasasi" class="custom-dropdown__select custom-dropdown__select--white">
					       	<?php
				        	if($proses_perkara->num_rows>0){
								foreach ($proses_perkara->result() as $row) {
									echo '<option value="'.base64_encode($this->encrypt->encode($row->proses_id)).'">
									'.$row->proses_nama.'</option>';
								}
							}
							?>
							</select>
						</span>
					</td>
				</tr>
				<input type="hidden" value="<?php echo $enc;?>" name ="enc" id ="enc" class='btn'>
				<tr>
					<td colspan="3" style="background:white;" align="center">
						<input type="submit" onClick='clearAll()' value="Bersihkan" class="btn"></input>
						<input type="submit" value="Cari" class="btn"></input>
						<input type="button" id='close_form_search_detail' value="Kembali" class="btn">
					</td>
				</tr>
			</tbody>
		</table>
	</form>
	</div>
</div>

<script type="text/javascript">
	$('#close_form_search_detail').closingFormWin();

    $( function() {
        $('#from_tgl_putusan_pn').datepicker({
            inline: true,
            showOtherMonths: true,
            dateFormat: 'dd/mm/yy',
            dayNamesMin: ['Ming', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'],
            });
        $('#to_tgl_putusan_pn').datepicker({
            inline: true,
            showOtherMonths: true,
            dateFormat: 'dd/mm/yy',
            dayNamesMin: ['Ming', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'],
            });
    });


    $( function() {
        $('#from_tgl_putusan_banding').datepicker({
            inline: true,
            showOtherMonths: true,
            dateFormat: 'dd/mm/yy',
            dayNamesMin: ['Ming', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'],
            });
        $('#to_tgl_putusan_banding').datepicker({
            inline: true,
            showOtherMonths: true,
            dateFormat: 'dd/mm/yy',
            dayNamesMin: ['Ming', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'],
            });
    });

    $( function() {
        $('#from_tgl_permohonan_kasasi').datepicker({
            inline: true,
            showOtherMonths: true,
            dateFormat: 'dd/mm/yy',
            dayNamesMin: ['Ming', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'],
            });
        $('#to_tgl_permohonan_kasasi').datepicker({
            inline: true,
            showOtherMonths: true,
            dateFormat: 'dd/mm/yy',
            dayNamesMin: ['Ming', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'],
            });
    });

    $( function() {
        $('#from_tgl_terima_mem_kasasi').datepicker({
            inline: true,
            showOtherMonths: true,
            dateFormat: 'dd/mm/yy',
            dayNamesMin: ['Ming', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'],
            });
        $('#to_tgl_terima_mem_kasasi').datepicker({
            inline: true,
            showOtherMonths: true,
            dateFormat: 'dd/mm/yy',
            dayNamesMin: ['Ming', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'],
            });
    });

    $( function() {
        $('#from_tgl_serah_mem_kasasi').datepicker({
            inline: true,
            showOtherMonths: true,
            dateFormat: 'dd/mm/yy',
            dayNamesMin: ['Ming', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'],
            });
        $('#to_tgl_serah_mem_kasasi').datepicker({
            inline: true,
            showOtherMonths: true,
            dateFormat: 'dd/mm/yy',
            dayNamesMin: ['Ming', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'],
            });
    });


    $( function() {
        $('#from_tgl_serah_kontra_kasasi').datepicker({
            inline: true,
            showOtherMonths: true,
            dateFormat: 'dd/mm/yy',
            dayNamesMin: ['Ming', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'],
            });
        $('#to_tgl_serah_kontra_kasasi').datepicker({
            inline: true,
            showOtherMonths: true,
            dateFormat: 'dd/mm/yy',
            dayNamesMin: ['Ming', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'],
            });
    });

    $( function() {
        $('#from_tgl_terima_kontra_kasasi').datepicker({
            inline: true,
            showOtherMonths: true,
            dateFormat: 'dd/mm/yy',
            dayNamesMin: ['Ming', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'],
            });
        $('#to_tgl_terima_kontra_kasasi').datepicker({
            inline: true,
            showOtherMonths: true,
            dateFormat: 'dd/mm/yy',
            dayNamesMin: ['Ming', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'],
            });
    });





    $( function() {
        $('#from_tgl_kirim_kasasi').datepicker({
            inline: true,
            showOtherMonths: true,
            dateFormat: 'dd/mm/yy',
            dayNamesMin: ['Ming', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'],
            });
        $('#to_tgl_kirim_kasasi').datepicker({
            inline: true,
            showOtherMonths: true,
            dateFormat: 'dd/mm/yy',
            dayNamesMin: ['Ming', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'],
            });
    });


    $( function() {
        $('#from_tgl_penerimaan').datepicker({
            inline: true,
            showOtherMonths: true,
            dateFormat: 'dd/mm/yy',
            dayNamesMin: ['Ming', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'],
            });
        $('#to_tgl_penerimaan').datepicker({
            inline: true,
            showOtherMonths: true,
            dateFormat: 'dd/mm/yy',
            dayNamesMin: ['Ming', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'],
            });
    });


    $( function() {
        $('#from_tgl_putusan_kasasi').datepicker({
            inline: true,
            showOtherMonths: true,
            dateFormat: 'dd/mm/yy',
            dayNamesMin: ['Ming', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'],
            });
        $('#to_tgl_putusan_kasasi').datepicker({
            inline: true,
            showOtherMonths: true,
            dateFormat: 'dd/mm/yy',
            dayNamesMin: ['Ming', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'],
            });
    });

    $( function() {
        $('#from_tgl_pengarsipan_kasasi').datepicker({
            inline: true,
            showOtherMonths: true,
            dateFormat: 'dd/mm/yy',
            dayNamesMin: ['Ming', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'],
            });
        $('#to_tgl_pengarsipan_kasasi').datepicker({
            inline: true,
            showOtherMonths: true,
            dateFormat: 'dd/mm/yy',
            dayNamesMin: ['Ming', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'],
            });
    });

    $( function() {
        $('#from_tgl_pemberitahuan_kasasi').datepicker({
            inline: true,
            showOtherMonths: true,
            dateFormat: 'dd/mm/yy',
            dayNamesMin: ['Ming', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'],
            });
        $('#to_tgl_pemberitahuan_kasasi').datepicker({
            inline: true,
            showOtherMonths: true,
            dateFormat: 'dd/mm/yy',
            dayNamesMin: ['Ming', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'],
            });
    });

$('.datepicker').keyup(function(e){
	if( (e.keyCode<8 || e.keyCode>57)){
		return;
	}

    if(e.keyCode != '8'){
    	if(e.target.value.length == 1){
    		if(e.target.value>3){
    			alert('Input Tidak Benar Format, Tanggal tidak boleh lebih dari 30')
    			e.target.value = '';
    		}
    	}

    	if(e.target.value.length == 4 && e.keyCode!='13'){
    		if(e.keyCode!=49 && e.keyCode!=48){
    			alert('Input Tidak Benar Format, Bulan Tidak Boleh dari 12')
    			var val = e.target.value;
    			val = val.substring(0, val.length - 1);
    			e.target.value = val;
    		}
    	}

    	if(e.target.value.length == 5){
    		var val = e.target.value;
    		var bln = val.substr(val.length -2);
    		if(bln>12){
    			alert('Input Tidak Benar Format, Bulan Tidak Boleh dari 12')
    			val = val.substring(0, val.length - 1);
    			e.target.value = val;
    		}
    	}
    	if(e.target.value.length == 7 && e.keyCode!='13'){
    		if( e.keyCode>50 && e.keyCode!=48){
    			alert('Anda Yakin dengan Tahun yang anda masukan?')
    			var val = e.target.value;
    			val = val.substring(0, val.length - 1);
    			e.target.value = val;
    		}
    	}
    	if(e.target.value.length == 10){
			if(isDateValid(e.target.value)==false){
				var val = e.target.value;
    			val = val.substring(0, val.length - 1);
    			e.target.value = val;
			}
		}
        if (e.target.value.length == 2) e.target.value = e.target.value + "/";
        if (e.target.value.length == 5) e.target.value = e.target.value + "/";
    }
})

$('.antara').hide()
$('.a_date').hide()

$(this).change(function(e) {
    var val = $('#'+e.target.id).val()
    if(val==6){
    	$('.'+e.target.id).show();
    }else{
    	$('.'+e.target.id).hide();
    }
});

function clearAll(){
	$(':input').not('.btn').val('');
}

$(document).ready(function() {
  $(window).keydown(function(event){
    if(event.keyCode == 13) {
      event.preventDefault();
      return false;
    }
  });
});
	
</script>