<?php
if($this->session->userdata('is_logged_in')===FALSE){
            redirect('login');
}
?>
<div class="templatepopcentering" style="width:455px;margin-top: 1%;">
    <div id='pop' style="border: 1px solid #ffffff;">
        <div class="detil" style="padding: 1px;background-color: white;"> 
        <form id="frm_relaas_penggugat" style="padding: 1px;background:white;margin:0;" method="post" action="<?php echo base_url().'c_template_relaas_perdata/cetak_pemberitahuan_pts';?>">
			<table id="">
                <tr><td colspan="2" style="padding:10px;text-align:center;">
            <?php 
                echo strtoupper($judul."<br/>Perkara ".$jnsperkara);                
            ?>
                </td></tr>				
				<tr>
                    <td class="templatepopleftcol">Nama JS/JSP<font color=red>*</font></td>
                    <td>
                        <span class="custom-dropdown custom-dropdown--emerald">
                            <select style='width:250px;'  name="idjurusita" id="idjurusita"  class="custom-dropdown__select custom-dropdown__select--white">                                
                                <?php                                
                                if($listJsp != ''){
                                    if($listJsp->num_rows>1){
                                        echo '<option value="-1">Pilih Nama JS/JSP</option>';
                                    }foreach ($listJsp->result() as $row) {
                                        $jurusita_id = base64_encode($this->encrypt->encode($row->jurusita_id));
                                        echo "<option value='".$jurusita_id."'>".$this->templatehelper->standradnaming($row->jurusita_nama)."</option>";
                                    }
                                }
                                ?>
                            </select>
                        </span>
                    </td> 
                </tr>   
                <?php 
                if(($pihak==2 || $pihak==4) && $verstek=='Y'){?>
                <tr>
                    <td class="templatepopleftcol">Alamat Pihak<font color=red>*</font></td>
                    <td>
                        <span class="custom-dropdown custom-dropdown--emerald">
                            <select style='width:250px;'  name="alamat" id="alamat"  class="custom-dropdown__select custom-dropdown__select--white">                                
                                <option value="1">Diketahui Tempat Tinggalnya</option>
                                <option value="2">Tidak Diketahui Tempat Tinggalnya</option>
                            </select>
                        </span>
                    </td> 
                </tr>
                <?php
                }
                ?>             				                								
                <tr>
					<td colspan="2" style="background:white;padding-top:10px;padding-bottom:10px" align="center">
                        <input type="hidden" id="enc" name = 'enc' value="<?php echo $enc; ?>">
                        <input type="hidden" id="enc_pihak_id" name = 'enc_pihak_id' value="<?php echo $enc_pihak_id; ?>">                        
                        <input type="hidden" id="pihak_ke" name = 'pihak_ke' value="<?php echo $pihak; ?>">
                        <input type="hidden" id="verstek" name = 'verstek' value="<?php echo $verstek; ?>">
						<input type="button" id="kembali" value="Kembali" class="btn" >
						<input type="submit" id="print_btn" value="Cetak" class="btn btn-danger" >
					</td>
				</tr>
            </table>
            </form>
		</div>
    </div>
</div>
<script type="text/javascript">
$('#kembali').closingFormWin();

$('#frm_relaas_penggugat').submit(function(e) {    
    var idjurusita = $('#idjurusita').val();
    if(idjurusita==-1){
        message_error_show('Silahkan Pilih Nama Jurusita/Jurusita Pengganti');
        e.preventDefault();
    }        
});
</script>