<div style="font-size:14px;">
	<table id='infoPerkara' style="font-size:14px;">
		<col width="20%">
		<col width="80%">
		<tbody>
		
				<tr>
					<?php
					if ($this->encrypt->decode(base64_decode($enc_alur))=='2' AND $status_kirim==0){
						if($this->session->userdata('idgroup')==1 OR $this->session->userdata('idgroup')==10 OR $this->session->userdata('idgroup')==30 OR $this->session->userdata('idgroup')==410 OR $this->session->userdata('idgroup')==420 OR $this->session->userdata('idgroup')==650){
									echo '<td><a href="#" onClick="popup_form(\''.base_url('manage_delegasi_perkara/edit_data_umum/'.$enc_alur.'/'.$enc_delegasi.'/'.$enc_pn_asal.'/'.$enc_pn_tujuan).'\')">[ Edit ]</a></td>';
						}
					}
					?>
				</tr>
					<tr>
						<td id="first-child">Tanggal Permohonan Delegasi</td>
						<td><?php echo $tgl_delegasi;?></td>
					</tr>
					<tr>
						<td id="first-child">Tanggal Sidang</td>
						<td><?php echo $tgl_sidang;?></td>
					</tr>
					<tr>
						<td id="first-child">Tanggal Pengiriman Berkas Asli</td>
						<td><?php echo $tgl_pengiriman;?></td>
					</tr>
					<tr>
						<td id="first-child">Nomor Surat Pengantar</td>
						<td><?php echo $nomor_surat;?></td>
					</tr>
					<tr>
						<td id="first-child">Tanggal Surat Pengantar</td>
						<td><?php echo $tgl_surat;?></td>
					</tr>
					<tr>
						<td id="first-child">Tanggal Resi Pengiriman Biaya</td>
						<td><?php echo $tgl_resi;?></td>
					</tr>
					<tr>
						<td id="first-child">Nomor Resi Pengiriman Biaya</td>
						<td><?php echo $nomor_resi;?></td>
					</tr>
					<tr>
						<td id="first-child">Biaya yang dikirim</td>
						<?php 
						if (intval($biaya)!=0) {
							$terbilang=$this->templatehelper->Terbilang($biaya);
							$biaya=number_format(strval($biaya),2,",",".");
						}else{
							$terbilang="";
							$biaya=0;
						}
						?>
						<td><?php echo $biaya.' ('.$terbilang.' rupiah )'; ?></td>
					</tr>
					<tr>
						<td id="first-child">Catatan</td>
						<td><?php echo $catatan;?></td>
					</tr>
					<?php
					if($this->session->userdata('jenis_pengadilan')==4){?>
						<tr>
							<td id="first-child">Template Surat Pengantar</td>
							<td colspan="2"><a href="#" onClick="cetak_pengantar_delegasi();"><span style="color:red;"><img src="<?php echo base_url();?>resources/img/nm_icon_doc.gif"></span></a></td>
						</tr>
					<?php }?>
						<input  type="hidden" id="enc_alur" name="enc_alur" value="<?php echo $enc_alur;?>">						
						<input  type="hidden" id="enc_delegasi" name="enc_delegasi" value="<?php echo $enc_delegasi;?>">
						<input  type="hidden" id="enc_pn_asal" name="enc_pn_asal" value="<?php echo $enc_pn_asal;?>">
						<input  type="hidden" id="enc_pn_tujuan" name="enc_pn_tujuan"value="<?php echo $enc_pn_tujuan;?>">

		</tbody>
	</table>
</div>

<script type="text/javascript">
    closeLoading();
    function cetak_pengantar_delegasi(){
		var enc_alur=$('#enc_alur').val();
		var enc_delegasi=$('#enc_delegasi').val();
		var enc_pn_asal=$('#enc_pn_asal').val();
		var enc_pn_tujuan=$('#enc_pn_tujuan').val();
		window.open("<?php echo base_url()?>manage_delegasi_perkara/cetak_surat_pengantar_keluar/"+enc_alur+'/'+enc_delegasi+'/'+enc_pn_asal+'/'+enc_pn_tujuan);
    }
</script>