<?php
if($this->session->userdata('is_logged_in')===FALSE){
            redirect('login');
}
?>
<div class="templatepopcentering" >
    <div id='pop' style="padding:5px;">
        <form id="frm_put_pdt_pailit" class="templatepopform" method="" action="">
            <table style="padding:5px;">
            <tr><td colspan="2" class="templatepoptitle">
            <?php 
                echo strtoupper($judul."<br/>Perkara ".$jnsperkara);
            ?>
            </td></tr>
			    <tr>
                    <td class="templatepopleftcol">Jenis Template Putusan<font color=red>*</font></td>
                    <td>
                        <span class="custom-dropdown custom-dropdown--emerald">
                            <select style='width:270px;border:#ddd 1px solid' name="jenisTemplate" id="jenisTemplate" class="custom-dropdown__select custom-dropdown__select--white">
                                <option value='-1'>---------Pilih Jenis Template-------</option>
                                <option  value='1'>01. Putusan Pailit  (Kabul)</option>
                                <option  value='2'>02. Putusan Pailit (Tolak)</option>
                                <option  value='3'>03. Putusan Pailit Voluntair (Kabul)</option>
                                <option  value='4'>04. Putusan Pailit Voluntair (Tolak)</option>
                                <option  value='5'>05. Putusan Pencabutan Kepailitan</option>
                                <option  value='6'>06. Putusan Pengakhiran Kepailitan</option>
                                <option  value='7'>07. Putusan PKPU Konter Pailit</option>
                                <option  value='8'>08. Putusan PKPU Menjadi Pailit</option>
                            </select>
                        </span>
                    </td> 
                </tr>
                <tr>
					<td colspan="2" style="background:white;" align="center">
						<input type="button" id="kembali" value="Kembali" class="btn">
						<input type="button" id="print_btn" onClick='print();' value="Cetak" class="btn">
					</td>
				</tr>
            </table>
        </form>
	</div>
</div>
<script type="text/javascript">

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


function print(){
    var jenisTemplate = $('#jenisTemplate').val();
    if(jenisTemplate==-1){
        alert('Silahkan Pilih Jenis Template Putusan');
        return;
    }
    var id = '<?php echo $enc; ?>';
    window.open('<?php echo base_url("c_template_putusan_perdata/cetak_putusan_pdt_pailit")?>/'+id+'/'+jenisTemplate,'_self');
}
</script>