<?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="frm_put_pid_anak_f_biasa_terbukti" name="frm_put_pid_anak_f_biasa_terbukti" class="templatepopform" target="_self" method="POST" action="<?php echo base_url().'c_template_putusan_pidana/cetak_putusan_pidana_anak_format_biasa_terbukti';?>">
            <table style="padding:5px;">
                <tr><td colspan="2" class="templatepoptitle">
                <?php 
                    foreach ($template->result() as $template){
                        echo strtoupper($template->namatemplate."<br/>Perkara ".$template->jnsperkara);
                    }
                ?>
                </td></tr>
                    <tr>
                        <td class="templatepopleftcol">Jenis Dakwaan<font color=red>*</font></td>
                        <td style="padding-left:3px">
                            <span class="custom-dropdown custom-dropdown--emerald">
                            <select style='width:200px;'  name="jenisDakwaan" id="jenisDakwaan" class="custom-dropdown__select custom-dropdown__select--white">
                                <option value='-1'>Pilih Jenis Dakwaan</option>
                                <option value='1'>Dakwaan Tunggal</option>
                                <option value='2'>Dakwaan Alternatif</option>
                                <option value='3'>Dakwaan Subderitas</option>
                                <option value='4'>Dakwaan Kumulatif</option>
                                <option value='5'>Dakwaan Gabungan</option>
                            </select>
                            </span>
                        </td>
                    </tr>
                    </tr>
                        <td colspan="2" style="background:white;padding-top:15px;padding-bottom:15px" align="center">
                            <input type="hidden" id="enc" name="enc" value="<?php echo $enc;?>">
                            <input type="button" id="kembali" value="Kembali" class="btn">
							<input type="submit" id="simpan_btn" value="Cetak" class="btn btn-danger">
                        </td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
</div>

<script type="text/javascript">
$('#kembali').closingFormWin();
$('#frm_put_pid_anak_f_biasa_terbukti').submit(function(e) {
	var jenisDakwaan= $('#jenisDakwaan').val();
    if(jenisDakwaan==-1){
		message_error_show('Silahkan Pilih Jenis Dakwaan');
		e.preventDefault();
    }
});
</script>