<?php
if($this->session->userdata('is_logged_in')===FALSE){
            redirect('login');
}
?>
<div class="templatepopcentering" >
    <div style="border: 1px solid #ffffff;">
        <div id='pop' style="padding:5px;">
			<form id="form_phs" name="form_phs" class="templatepopform" target="_self" method="POST" action="<?php echo base_url().'c_template_penetapan_agama/cetak_phs';?>">
            <table style="padding:5px;">
            <tr><td colspan="2" class="templatepoptitle">
            <?php 
                echo strtoupper("Penetapan Hari Sidang");
            ?>
            </td></tr>
			<input type='hidden' name='tgl_sidang' value='<?php echo $tgl_sidang; ?>'>
			<tr>
				<td class="templatepopleftcol">Tanggal Sidang<font color=red>*</font></td>
				<td><?php echo $this->templatehelper->convertKeTglIndo($tgl_sidang); ?></td>
			</tr>
               <?php
                /*
                <tr>
                    <td class="templatepopleftcol">Pembuat Penetapan Oleh <font color=red>*</font></td>
                    <td>
                        <span class="custom-dropdown custom-dropdown--emerald">
                            <select style='width:250px;'  name="ditetapkanoleh" id="ditetapkanoleh" class="custom-dropdown__select custom-dropdown__select--white">
                                <!--<option value='-1'>--Pilih Pembuat Penetapan--</option>-->
                                <option value='1'><?php echo $this->templatehelper->ucname("Panitera/Sekretaris ".$penandatangan->row(0)->NamaPN)." :: ".$penandatangan->row(0)->PansekPNNama;?></option>
                                <option value='2'><?php echo $this->templatehelper->ucname("Wakil Panitera ".$penandatangan->row(0)->NamaPN)." :: ".$penandatangan->row(0)->WaPanNama;?></option>
                            </select>
                        </span>
                    </td> 
                </tr>
                */
                ?>
                <tr>
                    <td class="templatepopleftcol">Pilih Surat <font color=red>*</font></td>
                    <td>
                        <span class="custom-dropdown custom-dropdown--emerald">
                            <select style='width:250px;'  name="blangko_phs" id="blangko_phs" class="custom-dropdown__select custom-dropdown__select--white">
                                <option value='-1'>--Pilih Surat--</option>
                                <?php
									foreach($blangko_phs->result() as $data)
										{
											?><option value='<?php echo $data->kode; ?>'><?php echo $this->templatehelper->ucname($data->nama); ?></option><?php
										}
								?>
							</select> 
                        </span>
                    </td> 
                </tr> 
                <tr>
					<td colspan="2" style="background:white;" align="center">
						<input type="hidden" name="enc" id="enc" value="<?php echo $enc; ?>">
                        <input type="button" id="kembali" value="Kembali" class="btn">
                        <input type="submit" id="simpan_btn" value="Cetak" class="del_btn">
					</td>
				</tr>
            </table>
			</form>
		</div>
	</div>
</div>
<script type="text/javascript">
$('#kembali').closingFormWin();

$('#form_phs').submit(function(e) {
        
            if($("#blangko_phs").val() == '-1'){message_error_show('Silahkan Pilih Blangko PHS');e.preventDefault();}
        
    });
</script>