<div class="centering" style="width:450px;margin-top: 1%;">
	<div id='pihak_pilih' style="border: 1px solid #ffffff;">
		<div class="detil" style="padding: 2px;background-color: white;">
		<form id="frm_user" style="background:white;margin:0;" method="post" action="<?php echo base_url().'addpenyidik/validateInput';?>">
			<table id="tableDetilPerkara" style="font-size:14px;">
				<col width="41%">
				<col width="59%">
				<tbody>
					<tr>
						<td colspan="2" style="background:white;border:0px;font-size: 20px;color: #648C03;" align="center"><?php echo $title;?></td>
					</tr>
					<tr>
						<td>No Urut<font color="red">*</font></td>
						<td style="padding:0px;padding-left:5px;">
							<input type="text" id='no_urut' name='no_urut' value="<?php echo $urutan;?>" class="standard-input" maxlength="10" readonly="readonly" style="width:50px;">
						</td>
						<input type="hidden" id='pihak_ke' name="pihak_ke" value="<?php echo (!empty($pihak_ke) ? $pihak_ke:'');?>">
					</tr>
					<tr>
						<td>Nama <font color="red">*</font></td>
						<td style="padding:0px;padding-left:5px;">
							<input type="text" id='fullname' name='fullname' value="<?php echo (!empty($nama) ? $nama : '');?>" class="standard-input" maxlength="255" style="width:150px;" readonly="readonly">
							<input type="button" onClick="popup_form2nd('<?php echo base_url('penyidik_list');?>')" value="Cari" style="padding: 7px 0;color:white;background: #7f8c8d;border: 0 none;  -webkit-border-radius: 0 0 0 0;width: 90px;">
						</td>
					</tr>
					<tr>
						<td>Tempat Lahir <font color="red">*</font></td>
						<td style="padding:0px;padding-left:5px;">
							<input type="text" id='tempat_lahir' name='tempat_lahir' value="<?php echo (!empty($tempatLahir) ? $tempatLahir : '');?>" class="standard-input" maxlength="255" readonly="readonly">
						</td>
					</tr>
					<tr>
						<td>Tanggal Lahir <font color="red">*</font></td>
						<td style="padding:0px;padding-left:5px;">
							<input id="tgl_lahir" name="tgl_lahir" value="<?php echo (!empty($tglLahir) ? $tglLahir : '');?>" class="datepicker" maxlength="10" placeholder="tgl/bln/tahun" readonly="readonly">
						</td>
					</tr>
					<tr>
						<td>Umur <font color="red">*</font></td>
						<td style="padding:0px;padding-left:5px;">
							<input type="text" id='umur' name='umur' value="<?php echo (!empty($umur) ? $umur : '');?>" class="standard-input" maxlength="2" readonly="readonly" style="width:50px;" readonly="readonly">
						</td>
					</tr>
					<tr>
						<td>Jenis Kelamin <font color="red">*</font></td>
						<td style="padding:0px;padding-left:5px;">
							<input type="text" id='jenis_kelamin' name='jenis_kelamin' value="<?php echo (!empty($sex) ? $sex : '');?>" class="standard-input" maxlength="255" readonly="readonly">
						</td>
					</tr>
					<tr>
						<td>Alamat <font color="red">*</font></td>
						<td style="padding:0px;padding-left:5px;">
							<textarea class="standard-input" id="alamat" name = "alamat"  style="width: 245px; height: 70px;resize: none;" readonly><?php echo (!empty($alamat) ? $alamat : '');?></textarea>
						</td>
					</tr>
					<tr>
						<td>Pekerjaan <font color="red">*</font></td>
						<td style="padding:0px;padding-left:5px;">
							<input type="text" id='pekerjaan' name='pekerjaan' value="Penyidik" class="standard-input" maxlength="255" readonly="readonly">
						</td>
					</tr>
					<tr>
						<td>Status Kawin <font color="red">*</font></td>
						<td style="padding:0px;padding-left:5px;">
							<input type="text" id='statusKawin' name='statusKawin' value="<?php echo (!empty($kawin) ? $kawin : '');?>" class="standard-input" maxlength="255" readonly="readonly">
						</td>
					</tr>
					<tr>
						<td>Pendidikan <font color="red">*</font></td>
						<td style="padding:0px;padding-left:5px;">
							<input type="text" id='pendidikan' name='pendidikan' value="<?php echo (!empty($pendidikan) ? $pendidikan : '');?>" class="standard-input" maxlength="255" readonly="readonly">
						</td>
						<input type="hidden" id='enc_penyidik' name="enc_penyidik" value="<?php echo (!empty($enc_pihak) ? $enc_pihak : '');?>">
						<input type="hidden" id='enc' name="enc" value="<?php echo $enc;?>">
						<input type="hidden" id='act' name="act" value="<?php echo (!empty($enc_act) ? $enc_act:'');?>">
						<input type="hidden" id='enc_id' name="enc_id" value="<?php echo (!empty($enc_id) ? $enc_id:'');?>">
						<input type="hidden" id='enc_idpenyidik' name="enc_idpenyidik" value="<?php echo (!empty($enc_penyidikid) ? $enc_penyidikid:'');?>">
					</tr>
					<tr>
						<td>Warga Negara <font color="red">*</font></td>
						<td style="padding:0px;padding-left:5px;">
							<input type="text" id='warga_negara' name='warga_negara' value="<?php echo (!empty($wargaNegara) ? $wargaNegara : '');?>" class="standard-input" maxlength="255" readonly="readonly">
						</td>
					</tr>
					<tr>
						<td>Keterangan</td>
						<td style="padding:0px;padding-left:5px;border:0px;">
							<textarea class="standard-input" id="keterangan" name ="keterangan" style="width: 245px; height: 70px;resize: none;"><?php echo (!empty($keterangan) ? $keterangan : '');?></textarea>
						</td>
					</tr>
					<tr>
						<td colspan="2" style="background:white;border:0px;" align="center">
							<input type="button" id='close_form_add_penyidik' value="Kembali" class="btn">
							<?php
							$act = $this->encrypt->decode(base64_decode($enc_act));
							if($act=="edit"){
								echo '<input type="submit" id="hapus" value="Hapus" class="del_btn" onclick="return false;">';
							}
							?>
							<input type="submit" id="simpan" value="Simpan" class="btn">
							<input type="hidden" id="refresh" class='detil_perkara_refresh' value="0">
						</td>
					</tr>
				</tbody>
			</table>
		</form>
	</div>
</div>
</div>
<script type="text/javascript">
$('#close_form_add_penyidik').closingFormWin();

$(".detil #refresh").change(function(){
	refreshpenyidikList()
});

function refreshpenyidikList(){
	$("#popup_form_2nd").remove();
	popup_form2nd('<?php echo base_url("penyidik_list");?>')
	$("#refresh").remove();
}
$('#frm_user').SubmitHandling({
	refresh:'1',
	setRefresh:1,
	divRef:'#konten',
	clicked:1,
	btnClicked:'#close_form_add_penyidik',
	whenStatus:1
});

$('#hapus').ButtonClickHandling({
	refresh:'1',
	setRefresh:1,
	divRef:'#konten',
	clicked:1,
	btnClicked:'#close_form_add_penyidik',
	whenStatus:1,
	actions:'<?php echo base_url()?>addpenyidik/validateDelete',
	formName:'#frm_user',
	actionName:'Hapus Data'
});
</script>