<div id="popupall" class="cssTable" style="width: 400px;margin:5% auto">
<table style="width: 400px">
		
				<tr>
					<td>Variabel</td>
					<td>Value</td>
				</tr>
	<tbody>
		<input type="hidden" id="file" value="<?php echo $file_name;?>">
		
		<tr>
			<td> perkara_id </td><td><input type="text" id="perkara_id" value="53021"></td></tr>
		<tr>
			<td> tahapan_id </td><td><input type="text" id="tahapan_id" value="10"></td></tr>
		<tr>
			<td> proses_id </td><td><input type="text" id="proses_id" value=""></td></tr>
		<tr>
			<td> Pihak Ke - </td><td><input type="text" id="pihak_ke" value=""></td></tr>
		<tr>
			<td> pihak_id </td><td><input type="text" id="pihak_id" value="1"></td></tr>
		<tr>
			<td> jadwal_sidang_id </td><td><input type="text" id="jadwal_sidang_id" value="1"></td></tr>
		<tr>
			<td><input class="btn" onclick="cetak_template()" value="CETAK"></td><td><input class="btn del-btn" onclick="tutup()" value="tutup"></td>
		</tr>
	</tbody>
</table>
</div>
	<script type="text/javascript">
		function cetak_template(){ 
			var file = $('#file').val();
			var perkara_id=$('#perkara_id').val();
			var tahapan_id=$('#tahapan_id').val();
			var proses_id=$('#proses_id').val();
			var pihak_ke=$('#pihak_ke').val();
			var pihak_id=$('#pihak_id').val();
			var jadwal_sidang_id=$('#jadwal_sidang_id').val();
			
			closeLoading();
			window.open("<?php echo base_url('c_new_template').'/tes_all_variabel/';?>"+file+'/'+perkara_id+'/'+tahapan_id+'/'+proses_id+'/'+pihak_ke+'/'+pihak_id+'/'+jadwal_sidang_id,"_parent");
			$('#popup_form').hide();
		}
		function tutup(){
			window.open("<?php echo base_url('All_template');?>","_parent");

		}
		
	</script>
