<?php
if($infopk!=''){
        if($infopk->num_rows>0){
            foreach ($infopk->result() as $row) {
                $noperkarapn = $row->nomor_perkara_pn;
                $hakim_nama_pk = $row->hakim_nama_pk;
                $permohonan_pk = $row->permohonan_pk;
                $penetapan_majelis_hakim_pk = $row->penetapan_majelis_hakim_pk;
                $tglputusanpn = $this->tanggalhelper->convertDayDate($row->putusan_pn);
                $nokirimberkara = $row->nomor_surat_pengiriman_berkas_pk;
                $tglpengiriman = $this->tanggalhelper->convertDayDate($row->pengiriman_berkas_pk);

                $tglputusanpt = $this->tanggalhelper->convertDayDate($row->putusan_pk);
                $terimaberkas = $this->tanggalhelper->convertDayDate($row->penerimaan_berkas_pk);
                $minutasipt = $this->tanggalhelper->convertDayDate($row->minutasi_pk);

                $noperkarapk = $row->nomor_perkara_pk;
                $noputusanpk = $row->nomor_putusan_pk;

                $majelis = $row->majelis_hakim_pk;
                $panitera = $row->panitera_pengganti_pk;
                $amar = $row->amar_putusan_pk;
        }
    }
}

if($this->session->userdata('is_logged_in')===FALSE){
            redirect('login');
}

?>
<div class="centering" style="width:500px;margin-top: 1%;z-index:-100">
    <div id='majelis_hakim' style="border: 1px solid #ffffff;">
        <div class="detil" style="padding: 2px;background-color: white;">
            <div style="font-size:14px;">
                <form id="frm_majelis" class="removeformbottomspace" method="post" 
                    action="<?php echo base_url().'c_template_pk_pemeriksaan/cetak_majelis_hakim_pemeriksaan_pk/1' ;?>">
                    <table id='tableDetilPerkara' style="font-size:14px;">
                        <col width="35%">
                        <col width="65%">
                        <tbody>
                        <tr>
                            <td class="header" colspan="2">Cetak Penetapan Majelis Hakim Pemeriksaan PK</td>
                        </tr>
                        <tr>
                            <td id="first-child">Nomor Perkara</td>
                            <td>
                                <?php echo $noperkarapn ; ?>
                                <input type="hidden" name='enc' value='<?php echo $enc;?>'>
                            </td>
                        </tr>
                        <tr>
                            <td id='first-child'>Tanggal Permohonan PK</td>
                            <td>
                                <?php echo $this->templatehelper->convertKeTglIndo($permohonan_pk); ?>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" class="divider">Info <?php// echo $jdl; ?></td>
                        </tr>
                        <tr>
                            <td id="first-child">Tanggal Penetapan Majelis Hakim Pemeriksa</td>
                            <td>
                            <?php echo $this->templatehelper->convertKeTglIndo($penetapan_majelis_hakim_pk); ?>
                            </td>
                        </tr>
                        <tr>
                            <td id="first-child">Majelis Hakim Pemeriksa</td>
                            <td>
                            <?php echo $hakim_nama_pk; ?>
                            </td>
                        </tr>
                        <tr>                        
                            <td id="first-child"><?php// echo $jdl; ?></td>
                            <td>
                                <?php /*
                                if($jpen==1){
                                    echo $data_majelis['0']['hakim_separator']; 
                                }elseif($jpen==2){
                                    echo $data_panitera_detail['0']['panitera_nama']; 
                                } */
                                ?>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" class="divider" >Cetak</td>
                        </tr>
                        <tr>
                            <td class="templatepopleftcol">Ditetapkan Oleh <?php //print_r($penandatangan->result());?><font color=red>*</font></td>
                            <td style="">
                                <span class="custom-dropdown custom-dropdown--emerald">
                                    <select style='width:303px;'  name="ditetapkanoleh" id="ditetapkanoleh" class="custom-dropdown__select custom-dropdown__select--white">
                                        <option value='64'><?php echo $this->templatehelper->ucname("Kepala ".$penandatangan->row(0)->NamaPN." :: ".$penandatangan->row(0)->KetuaPNNama);?></option>
                                        <option value='66'><?php echo $this->templatehelper->ucname("Wakil Kepala ".$penandatangan->row(0)->NamaPN." :: ".$penandatangan->row(0)->WakilKetuaPNNama);?></option>
                                    </select>
                                </span>
                            </td> 
                        </tr>
                        <tr>
                            <td colspan="2" class="buttongroup">

                            <input type="button" id="kembali" value="Kembali" class="btn">
                            <input type="submit" id="simpan" value="Cetak" class="btn">
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>

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