<?php
if($this->session->userdata('is_logged_in')===FALSE){
            redirect('login');
}
?>
<div class="templatepopcentering" >
    <div id='pop' style="padding:5px;">
        <form id="frm_ba_pk" class="templatepopform" method="" action="">
    		<table id="" style="padding:5px;">
            <tr><td colspan="2" class="templatepoptitle">
            <strong>Cetak Berita Acara Peninjauan Kembali <?php echo $alur_perkara_nama; ?></strong>
            </td></tr>
                <tr>
                    <td class="templatepopleftcol">Nomor Perkara</td>
                    <td><span style="font-size:13px;padding-left:5px;"><?php echo $nomor_perkara; ?></span></td> 
                </tr>
                <tr>
                    <td class="templatepopleftcol">Jenis Berita Acara<font color=red>*</font></td>
                    <td style="">
                        <span class="custom-dropdown custom-dropdown--emerald"  style="border:1px #ddd solid;  width:250px;">
                            <select style='width:250px;' name="jenis_ba" id="jenis_ba" class="custom-dropdown__select custom-dropdown__select--white">
                                <option value='-1'>Pilih Jenis Berita Acara</option>
                                <option value='PID_30_410_323'>Berita Acara Peninjauan Kembali</option>
                                <option value='PID_30_410_326'>Berita Acara Pendapat Peninjauan Kembali</option>
                            </select>
                        </span>
                    </td> 
                </tr>
               <tr>
                    <td colspan="2" style="background:white;" align="center">
                        <input type="button" id="kembaliPOPBA" value="Kembali" class="btn">
                        <input type="button" id="cetak" onClick='cetak();' value="Cetak" class="btn">
                    </td>
                </tr>
            </table>
        </form>
	</div>
</div>
<script type="text/javascript">
$('#kembaliPOPBA').closingFormWin();

function cetak(){
    var jenis_ba = $('#jenis_ba option:selected').attr('value');
    /*var idperkara = <?php echo $idperkara; ?>;*/
    var idperkara = '<?php echo $enc; ?>';
    if(jenis_ba=='-1'){ alert('Silahkan Pilih Jenis Berita Acara'); return; }
    
    window.open('<?php echo base_url("c_template_berita_acara/cetak_ba_pk")?>/'+idperkara+'/'+jenis_ba,'_self');
}   
</script>