<?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_hki" 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:250px;border:#ddd 1px solid' name="jenisTemplate" id="jenisTemplate" class="custom-dropdown__select custom-dropdown__select--white">
                                <option value='-1'>-------------- Pilih  Template ------------</option>
                                <option  value='1'>Putusan HKI Kabul</option>
                                <option  value='2'>Putusan HKI Tolak</option>
                                <option  value='3'>Putusan HKI NO (Eksepsi Diterima-Diluar Kompetensi)</option>
                            </select>
                        </span>
                    </td> 
                </tr>
                <tr>
                    <td class="templatepopleftcol">Jenis Gugatan HKI <font color=red>*</font></td>
                    <td>
                        <span class="custom-dropdown custom-dropdown--emerald">
                            <select style='width:250px;border:#ddd 1px solid' name="jenisGugatanHKI" id="jenisGugatanHKI" class="custom-dropdown__select custom-dropdown__select--white">
                                <option value='-1'>-- Pilih Jenis -- </option>
                                <option  value='1'>Desain Industri</option>
                                <option  value='2'>Desain Tata Letak Sirkuit Terpadu</option>
                                <option  value='3'>Paten</option>
                                <option  value='4'>Merek</option>
                                <option  value='5'>Hak Cipta</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();
    var jenisGugatanHKI = $('#jenisGugatanHKI').val();
    if(jenisTemplate==-1 || jenisGugatanHKI==-1){
        alert('Pilih jenis template dan jenis gugatan');
        return;
    }
    var id = '<?php echo $enc; ?>';
    window.open('<?php echo base_url("c_template_putusan_perdata/cetak_putusan_pdt_hki")?>/'+id+'/'+jenisTemplate+'/'+jenisGugatanHKI,'_self');
}
</script>_