<?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;">
            <?php if($asal==1){ ?>           
                <form id="frm_penetapan_majelis_pid" name="frm_penetapan_majelis_pid"  class="templatepopform" target="_self" method="POST" action="<?php echo base_url().'c_template_diversi/cetak_penetapan_kpn_penyidik_12';?>">
            <?php } if($asal==2) { ?>
                <form id="frm_penetapan_majelis_pid" name="frm_penetapan_majelis_pid"  class="templatepopform" target="_self" method="POST" action="<?php echo base_url().'c_template_diversi/cetak_penetapan_kpn_diversi';?>">
            <?php } ?>
            <table style="padding:5px;">                
                <tr><td colspan="2" class="templatepoptitle">
                <?php 
                    echo strtoupper($judul);
                ?>
                </td></tr>
                <tr>
                    <td class="templatepopleftcol">Nomor Penetapan</td>
                    <td><?php echo $nomor_penetapan; ?></td>
                </tr>
                <tr>
                    <td class="templatepopleftcol">Pembuat Penetapan<font color=red>*</font></td>
                    <td style="">
                        <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'><?php echo $this->templatehelper->ucname("Ketua :: ".$penandatangan->row(0)->KetuaPNNama);?></option>
                                <option value='2'><?php echo $this->templatehelper->ucname("Wakil Ketua:: ".$penandatangan->row(0)->WakilKetuaPNNama);?></option>
								<?php if($plhKetua!=NULL){ ?>
									<option value='5'><?php echo $this->templatehelper->ucname("Plh Ketua :: ".$penandatangan->row(0)->PlhKetua);?></option>
								<?php	} ?>
								<?php if($pltKetua!=NULL){ ?>
									<option value='7'><?php echo $this->templatehelper->ucname("Plt Ketua :: ".$penandatangan->row(0)->PltKetua);?></option>
								<?php	} ?>
								
                            </select>
                        </span>
                    </td> 
                </tr>                
                <tr>
                    <td colspan="2" style="background:white;padding:10px" align="center">
                        <input type="hidden" name="enc_register" id="enc_register" value="<?php echo $enc_register; ?>">
                        <input type="hidden" name="enc_pemohon" id="enc_pemohon" value="<?php echo $enc_pemohon; ?>">
                        <input type="hidden" name="enc_perkara" id="enc_perkara" value="<?php echo $enc_perkara; ?>">
						<input type="button" id="kembali" value="Kembali" class="btn">
                        <input type="submit" id="cetak_btn" value="Cetak" class="btn btn-danger">
                    </td>
                </tr>
            </table>
			</form>
		</div>
	</div>
</div>

<script type="text/javascript">
$('#kembali').closingFormWin();
</script>