<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_ba" name="frm_ba"  class="templatepopform" target="_self" method="POST" action="<?php echo base_url().'c_template_agama_perdata_pemberitahuan_putusan/cetak_teguran_panjar';?>">        
             <table id="" style="padding:5px;">
                <tr><td colspan="2" class="templatepoptitle">
                <?php 
                    echo strtoupper($judul."<br/>Perkara ".$jnsperkara);
                ?>
                </td>
                </tr>                                            
                <tr>
                    <td class="templatepopleftcol" >Pembuat Penetapan</td>
                    <td style="padding-left:5px">
                        <span class="custom-dropdown custom-dropdown--emerald">
                        <select name="ditetapkanoleh" id="ditetapkanoleh" onchange="" style="width:250px;" class="custom-dropdown__select custom-dropdown__select--white">
                                <option value='1'><?php echo $this->templatehelper->ucname("Panitera ".$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 style="margin-bottom:5px">
                    <td class="templatepopleftcol" >Jumlah</td>
                    <td style="padding-left:5px">
                        <input type="text" id='b_panjar' name='b_panjar' value="" data-a-sep="." data-a-dec="," style="width:180px;text-align:right;" class="standard-input" maxlength="20">
                    </td>
                </tr>
                <tr>                    
                    <td colspan="2" style="background:white;padding:10px" align="center">
                        <input type="button" id="kembali" value="Kembali" class="btn">
                        <input type="hidden" name="enc" value=<?php echo $enc; ?>>
                        <input type="submit" id="print_btn"  value="Cetak" class="btn btn-danger">
                    </td>
                </tr>
            </table>
        </form>
    </div>
</div>
</div>
<script src="<?php echo base_url();?>resources/js/autoNumeric.js"></script>
<script type="text/javascript">
$('#kembali').closingFormWin();   

$( document ).ready(function() {
    $('#b_panjar').autoNumeric('init', {mDec: '0', dGroup:'3'});
    $('#b_panjar').ForceNumericOnly();
    });

$("#ditetapkanoleh").change(function(){
    var pansek=$('#ditetapkanoleh').val()

});
function print(){
    
    var pansek=$('#ditetapkanoleh option:selected').attr('value')
    if (pansek=='-1') {
        alert('Pilih Pejabat')
        return
    }
    
    var id = '<?php echo $enc; ?>';
    var idpihak = '<?php echo $encidpihak; ?>';

    window.open('<?php echo base_url("c_template_agama_perdata_pemberitahuan_putusan/cetak_teguran_panjar")?>/'+id+'/'+idpihak+'/1/'+jursit+'/'+jursitLabel+'/'+pbt,'_self');
};
</script>