<?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" class="templatepopform" method="" action="">
        	<table id="" 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:200px;height:28px;' name="jenisTemplate" id="jenisTemplate" class="custom-dropdown__select custom-dropdown__select--white">
                            <option value='-1'>Pilih Jenis Template</option>
                                    <option value='1'>Putusan Acara Cepat</option>
                                    <option value='2'>Putusan Tidak Dapat Diterima </option>
                                    <option value='3'>Putusan Dikabulkan</option>
                                    <option value='4'>Putusan Ditolak</option>
                                    <option value='5'>Putusan Gugur</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_tun/cetak_putusan_tun")?>/'+id+'/'+jenisTemplate,'_self');
}
</script>