<?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).";".$alurPerkara.";".$idperkara;
            ?>
            </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:300px;height:28px;' name="jenisTemplate" id="jenisTemplate" class="custom-dropdown__select custom-dropdown__select--white">
                            <option value='-1'>Pilih Jenis Template</option>
                            <?php 
                                if($alurPerkara!='7'){ ?>
                                    
                                    <option value='1'>Putusan Perdata Kabul</option>
                                    <option value='2'>Putusan Perdata Tolak Gugatan</option>
                                    <option value='3'>Putusan Perdata Gugatan</option>
                                    <option value='4'>Putusan Perdata (Format Gugur)</option>
                                    <option value='5'>Putusan Perdata (Format Verstek)</option>
                                    <option value='6'>Putusan Perdata (Format Verzet-Kabul Perlawanan)</option>
                                    <option value='7'>Putusan Perdata (Format Rekonvensi)</option>
                                    <option value='8'>Putusan Perdata (Format Rekonvensi Tidak Ada Hubungan)</option>
                                    <option value='9'>Putusan Perdata (Format Intervensi Vrijwaring)</option>   
                                    <option value='10'>Putusan Perdata (Format Intervensi Tussenkomst)</option>
                                    <option value='11'>Putusan Perdata (Format Intervensi Voeging)</option>
                                    <option value='12'>Putusan Perdata (Format Putusan Provisi)</option>
                                    <option value='13'>Putusan Perdata (Format Putusan Sela tentang Eksepsi Kewenangan Dikabulkan)</option>
                                    <option value='14'>Putusan Perdata - Berita Acara (Format Putusan Sela tentang Eksepsi Kewenangan Ditolak)</option>
                                    <option value='15'>Putusan Perdata - Berita Acara (Format Putusan Sela Tentang Sumpah Discoir)</option>
                                    <option value='16'>Putusan Perdata - Berita Acara (Format Putusan Sela Tentang Sumpah Supletoir)</option>
                                    <option value='18'>Putusan Perdata - Berita Acara (Permohonan Pasal 225HIR - 295RBg)</option>
                                    <option value='19'>Putusan Perdata (Permohonan Pasal 225HIR - 295RBg)</option>
                            <?php    
                                }else{
                                    echo "<option value='17'>Putusan Perdata (Denden Verzet)</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")?>/'+id+'/'+jenisTemplate,'_self');
}
</script>