<?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;">
            <?php if($alur==200){ ?>
			<form id="frm_penetapan_majelis_pid" name="frm_penetapan_majelis_pid"  class="templatepopform" target="_self" method="POST" action="<?php echo base_url().'c_template_penetapan/cetak_penetapan_majelis_hakim_pid';?>">
            <?php }elseif($alur==201){?>
            <form id="frm_penetapan_majelis_pid" name="frm_penetapan_majelis_pid"  class="templatepopform" target="_self" method="POST" action="<?php echo base_url().'c_template_penetapan_pidana_pra/cetak_pen_hakim_prapid';?>">
            <?php } ?>
            <table style="padding:5px;">                
                <tr><td colspan="2" class="templatepoptitle">
                <?php 
                    echo strtoupper($judul."<br/>Perkara ".$jnsperkara);
                ?>
                </td></tr>
                <?php if($enc_popup==1||$enc_popup==2){ ?>
                <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>
                <?php } 
                elseif($enc_popup==3||$enc_popup==4||$enc_popup==5){
                ?>
                <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">
                                <?php if($PansekPNNama!=NULL){ ?>
									<option value='1'><?php echo $this->templatehelper->ucname("Panitera/Sekretaris ")." :: ".$penandatangan->row(0)->PansekPNNama;?></option>
								<?php	} 
								 if($WaPanNama!=NULL){ ?>
									<option value='2'><?php echo $this->templatehelper->ucname("Wakil Panitera ")." :: ".$penandatangan->row(0)->WaPanNama;?></option>
								
								<?php	} ?>
								<?php if($plhPanitera!=NULL){ ?>
									<option value='6'><?php echo $this->templatehelper->ucname("Plh Panitera :: ".$penandatangan->row(0)->PlhPanitera);?></option>
								<?php	} ?>
								<?php if($pltPanitera!=NULL){ ?>
									<option value='8'><?php echo $this->templatehelper->ucname("Plt Panitera :: ".$penandatangan->row(0)->PltPanitera);?></option>
								<?php	} ?>
							</select>
                        </span>
                    </td> 
                </tr>
                <?php } ?>
                <tr>
                    <td colspan="2" style="background:white;padding:10px" align="center">
                        <input type="hidden" name="enc" id="enc" value="<?php echo $enc; ?>">
                        <input type="hidden" name="enc_popup" id="enc_popup" value="<?php echo $enc_popup; ?>">
						<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>