<div id="popup_detil_pihak_ht" class="centering" style="width:700px;margin-top: 5%;">
<div id='detil_pihak_ht' style="background:white;padding:5px;">
	<div class="detil" style="font-size:14px;margin-top:25px;width: 100%;margin: 0 auto;border-color: #FFFFFF;">
		<div id="sub_title" style="padding:10px;color:#5FB85C;text-align:center;">DETIL PIHAK</div>
		<form id="frm_detil_pihak" style="background:white;margin:0;" method="post" action="<?php echo base_url().'new_eksekusi_ht/validateInput';?>">
			<table id="tableDetilPerkara" style="font-size:14px;">
				<col width="30%">
				<col width="70%">
                    <tbody>                    
                        <tr>
                            <td>Nama</td>
                            <td style="padding:0px;padding-left:5px;">
                                <?php echo $nama;?>
                            </td>
                        </tr>
                        <?php 
                        if($jenis_pihak==1){
                        ?>
                        <tr>
                            <td><font color="#fff">Tempat Lahir</font></td>
                            <td style="padding:0px;padding-left:5px;">
                                <?php echo $tempat_lahir;?>
                            </td>
                        </tr>
                        <tr>
                            <td><font color="#fff">Tanggal Lahir</td>
                            <td style="padding:0px;padding-left:5px;">
                            <?php echo $this->tanggalhelper->convertDayDate($tanggal_lahir); ?>
                            </td>
                        </tr>
                        <tr>
                            <td><font color="#fff">Jenis Kelamin</td>
                            <td style="padding:0px;padding-left:5px;">
                                <?php if($jenis_kelamin=='L'){ echo "Laki-laki";}else{echo "Perempuan";}?>
                            </td>
                        </tr>

                        <tr>
                            <td><font color="#fff">Nomor Identitas</td>
                            <td style="padding:0px;padding-left:5px;">
                                <?php echo $nomor_indentitas;?>
                            </td>
                        </tr>
                        <tr>
                            <td><font color="#fff">Agama</td>
                            <td style="padding:0px;padding-left:5px;">
                                <?php echo $agama_nama;?>
                            </td>
                        </tr>
                        <tr>
                            <td><font color="#fff">Status Menikah</td>
                            <td style="padding:0px;padding-left:5px;">
                                <?php if($status_kawin==1){ echo "Menikah";}else{echo "Belum Menikah";}?>
                            </td>
                        </tr>

                        <tr>
                            <td><font color="#fff">Pekerjaan</td>
                            <td style="padding:0px;padding-left:5px;">
                                <?php echo $pekerjaan;?>
                            </td>
                        </tr>
                        <?php 
                        } ?>
                        <tr>
                            <td><font color="#fff">Alamat</td>
                            <td style="padding:0px;padding-left:5px;">
                                <?php echo $alamat;
                                if(!empty($rtrw)){echo ','.$rtrw;}if(!empty($kelurahan)){echo ','.$kelurahan;}
                                if(!empty($kelurahan)){echo ','.$kelurahan;}if(!empty($kecamatan)){echo ','.$kecamatan;}
                                if(!empty($kabupaten)){echo ','.$kabupaten;}if(!empty($telepon)){echo ','.$telepon;}

                                ?>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" style="background:white;" align="center">
                            <?php
                            
                            ?>
                            <input type="hidden" id="ht_id" name="ht_id" value="<?php echo $ht_id; ?>">
                            <input type="button" id='close_detil_pihak_ht' value="Kembali" class="btn">
                            <input type="hidden" id="id_pihak" name="id_pihak" value="<?php echo $id_pihak; ?>">
                            <?php
                            //if($this->authorization->isAuthorized('hakim_pn_edit',$AuthorizationForm)){
                            ?>                            
                                <input type="submit" id="hapus" value="Hapus" class="btn btn-danger">
                            <?php
                            //}
                            ?>
                        </td>
                        </tr>
                    </tbody>

			</table>
		</form>
	</div>
</div>
<script type="text/javascript">


$('#frm_detil_pihak').SubmitHandling({
    refresh:'1',
    setRefresh:1,
    divRef:'#konten',
    clicked:1,
	btnClicked:'#close_detil_pihak_ht',
	whenStatus:1,
});


$('#hapus').ButtonClickHandling({
    refresh:'1',
    setRefresh:1,
    divRef:'#konten',
    clicked:1,
    btnClicked:'#refresh',
    whenStatus:1,
    actions:'<?php echo base_url()?>detil_eksekusi_ht/hapus_pihak_eksekusi_ht/<?php echo $id_pihak; ?>',
    formName:'#frm_detil_pihak',
    actionName:'Hapus Data'
});

$('#close_detil_pihak_ht').closingFormWin();

</script>