  <table class ="tablefixed"   border="0">
		  <tr class="trauto">
			<td class="tdauto" id="container_pasi_ceisa_bc_<?php echo $bc_prefix;  ?>_out_header_module">	   
						
		 	<div class="pane-header ui-state-active" id="pasi_ceisa_bc_<?php echo $bc_prefix;  ?>_out_header_module_bar" >LIST HEADER   </div> 
			<table id="pasi_ceisa_bc_<?php echo $bc_prefix;  ?>_out_header_module_tbl"></table> <div id="ppasi_ceisa_bc_<?php echo $bc_prefix;  ?>_out_header_module_tbl"></div> 

			</td>
		  </tr>
		  <tr class="tr50">
			<td  class="tdauto"  valign="top">
				 <div  class="ui-layout-content ui-widget-content-panel">
				 <table width="100%" border="0">
				   <tr>
					 <td width="70" valign="middle"><strong>SELECTED:</strong></td>
					 <td width="91" valign="middle"><span class="style1">
					   <label id="total_rows<?php echo $bc_prefix;  ?>"> 0 row</label>
					 </span></td>
					 <td width="111" valign="middle"><input class="replace_if_exist"; name="replace_if_exist<?php echo $bc_prefix;  ?>" type="checkbox" id="replace_if_exist<?php echo $bc_prefix;  ?>"  value='Yes' offval='No'  hidden />
					 <label  for="replace_if_exist<?php echo $bc_prefix;  ?>" class="replace_if_exist<?php echo $bc_prefix;  ?>" hidden>REPLACE IF EXISTS:</label></td>
					</tr>
				 </table> 
			</div>  
			</td>
		  </tr>
		</table> 



<script type="text/javascript">
    
    $(document).ready(function(){
	
	$(window).bind('resize', function() {  
		setTimeout(function(){
			setGridHight($("#pasi_ceisa_bc_<?php echo $bc_prefix;  ?>_out_header_module_tbl"),$("#container_pasi_ceisa_bc_<?php echo $bc_prefix;  ?>_out_header_module"),$("#pasi_ceisa_bc_<?php echo $bc_prefix;  ?>_out_header_module_bar")); 
		},10); 
	});  

		jQuery("#pasi_ceisa_bc_<?php echo $bc_prefix;  ?>_out_header_module_tbl").jqGrid({
			url:'<?php echo base_url().'pasi_ceisa_bc_in/ct_pasi_ceisa_bc_out_from_po/load_header_module_for_import'; ?>',
			mtype : "post",
			postData:{bc_prefix:'<?php echo $bc_prefix;  ?>'},
			datatype: "json",
			colNames:[
			'ID','Status','Aju','Nomor','Tanggal','Invoice','NPWP','Kode'
			,'Skep','Nama','Alamat','Kode','NDPBM'
			]
			,colModel:[
			{name:'rID',index:'rID', width:80, hidden:true, align :'right'}
			,{name:'rs',index:'rs', width:100, hidden:false, align :'left'}
			,{name:'r1',index:'r1', width:180, hidden:false, align :'left'}
			,{name:'r2',index:'r2', width:50, hidden:false, align :'left'}
			,{name:'r3',index:'r3', width:60, hidden:false, align :'left'}
			,{name:'ri',index:'ri', width:120, hidden:false, align :'left'}
			,{name:'r4',index:'r4', width:100, hidden:false, align :'left'}
			,{name:'r5',index:'r5', width:80, hidden:true, align :'left'}

			,{name:'r6',index:'r6', width:100, hidden:false, align :'left'}
			,{name:'r7',index:'r7', width:150, hidden:false, align :'left'}
			,{name:'r8',index:'r8', width:350, hidden:false, align :'left'}
			,{name:'r9',index:'r9', width:80, hidden:false, align :'left'}
			,{name:'r10',index:'r10', width:80, hidden:false, align :'right'}

			],
			rowNum:10,
			rowList:[10,20,30],
			pager: '#ppasi_ceisa_bc_<?php echo $bc_prefix;  ?>_out_header_module_tbl',
			sortname: 'r3',
			viewrecords: true,
			sortorder: "desc",
			width: '',
			height: 100,
			//width: 950,
			//height:300,
			jsonReader: { repeatitems : false },
			rownumbers: true,
			loadonce: false,
			shrinkToFit: false,
			multiselect: true,
			gridComplete: function(){
			
			},
			afterInsertRow: function(rowid, aData){
	 		},
			// subGrid: true,
			// subGridRowExpanded: function(subgrid_id, row_id) {
	 			// var subgrid_table_id, pager_id;
				// var celValue = jQuery("#tblheader").jqGrid ('getCell', row_id, 'ID'); 
				// subgrid_table_id = subgrid_id+"_t";
				// pager_id = "p_"+subgrid_table_id;
				// $("#"+subgrid_id).html("<table id='"+subgrid_table_id+"' class='scroll'></table><div id='"+pager_id+"' class='scroll'></div>");
				// $("#"+subgrid_table_id).jqGrid({
					// url:'<?php echo base_url().'exim/ct_importdatafrom_ciesatpb_select_komp/list_detail'; ?>',
					// mtype : "post",
					// postData:{'q':'1', 'id_header':celValue},
					// datatype: "json",
					// colNames:[  'rID','SEQ.', 'KODE_BARANG', 'URAIAN', 'TIPE ', 'MERK', 'QTY', 'UNIT', 'PACK QTY', 'PACKAGE'
					// ],
					// colModel:[
					// {name:'ID',index:'ID', width:59, hidden:true},
					// {name:'SERI_BARANG',index:'SERI_BARANG', width:40 ,align: 'right'},
					// {name:'KODE_BARANG',index:'KODE_BARANG', width:120},
					// {name:'URAIAN',index:'URAIAN', width:300},
					// {name:'TIPE',index:'TIPE', width:80},
					// {name:'MERK',index:'MERK', width:80,align: 'right'},
					// {name:'JUMLAH_SATUAN',index:'JUMLAH_SATUAN', width:80},
					// {name:'KODE_SATUAN',index:'KODE_SATUAN', width:50,align: 'right'},
					// {name:'JUMLAH_KEMASAN',index:'JUMLAH_KEMASAN', width:80},
					// {name:'KODE_KEMASAN',index:'KODE_KEMASAN', width:50}, 
					// ], 
	 				// rowNum:10,
					// rowList:[10,20,30],
					// pager: pager_id,
					// sortname: 'rID',
					// viewrecords: true,
					// sortorder: "asc",
					// width: 930,
					// height:120,
					// shrinkToFit:false,
					// jsonReader: { repeatitems : false }, 
					// rownumbers: true,
					// afterInsertRow: function(rowid, aData){
						
					// },
					// loadError : function(xhr,status,error) {
						// alert( error);  //alert 500, error, My custom error
					// }
				// }); 
				// jQuery("#"+subgrid_table_id).jqGrid('navGrid',"#"+pager_id,{edit:false,add:false,del:false,view:false,search:false});  
		 		 
			// },
			// subGridRowColapsed: function(subgrid_id, row_id) {
			 	// var subgrid_table_id;
				// subgrid_table_id = subgrid_id+"_t";
				// jQuery("#"+subgrid_table_id).remove();
			 // },
		    onSelectRow: function(id){ 
				var s;
			 	s = jQuery("#pasi_ceisa_bc_<?php echo $bc_prefix;  ?>_out_header_module_tbl").jqGrid('getGridParam','selarrrow');
			 		$("#total_rows<?php echo $bc_prefix;  ?>").text(s.length + ' row');
  		 	 },
			onSelectAll: function(id){ 
				var s;
			 	s = jQuery("#pasi_ceisa_bc_<?php echo $bc_prefix;  ?>_out_header_module_tbl").jqGrid('getGridParam','selarrrow');
				$("#total_rows<?php echo $bc_prefix;  ?>").text(s.length + ' row');
			},
			loadError : function(xhr,status,error) {
				alert( error);  //alert 500, error, My custom error
			},
		}); 
		
		jQuery("#pasi_ceisa_bc_<?php echo $bc_prefix;  ?>_out_header_module_tbl").jqGrid('setGroupHeaders', 
            { useColSpanStyle: true, groupHeaders:[
			{startColumnName: 'r1', numberOfColumns: 3, titleText: '<em><center>Dokumen</center></em>'},
			{startColumnName: 'r4', numberOfColumns:5, titleText: '<em><center>Pengirim</center></em>'},
   			{startColumnName: 'r9', numberOfColumns:2, titleText: '<em><center>Kurs</center></em>'},
        ] });
			               
		jQuery("#pasi_ceisa_bc_<?php echo $bc_prefix;  ?>_out_header_module_tbl").jqGrid('navGrid','#ppasi_ceisa_bc_<?php echo $bc_prefix;  ?>_out_header_module_tbl',{del:false,add:false,edit:false},{},{},{},{multipleSearch:false});
		jQuery("#pasi_ceisa_bc_<?php echo $bc_prefix;  ?>_out_header_module_tbl").jqGrid('filterToolbar',{stringResult: true,searchOnEnter : true, defaultSearch: 'cn', ignoreCase: true});

		if ('<?php echo $bc_prefix;  ?>'=='23') 
		{
			var hildecols<?php echo $bc_prefix;  ?> = new Array("r5","r6","r4"); 
			jQuery("#pasi_ceisa_bc_<?php echo $bc_prefix;  ?>_out_header_module_tbl").jqGrid('hideCol',hildecols<?php echo $bc_prefix;  ?>);
		}else if ('<?php echo $bc_prefix;  ?>'=='40') 
		{
			var hildecols<?php echo $bc_prefix;  ?> = new Array("r6"); 
			jQuery("#pasi_ceisa_bc_<?php echo $bc_prefix;  ?>_out_header_module_tbl").jqGrid('hideCol',hildecols<?php echo $bc_prefix;  ?>);
		}else if ('<?php echo $bc_prefix;  ?>'=='262') 
		{
			var hildecols<?php echo $bc_prefix;  ?> = new Array("r6"); 
			jQuery("#pasi_ceisa_bc_<?php echo $bc_prefix;  ?>_out_header_module_tbl").jqGrid('hideCol',hildecols<?php echo $bc_prefix;  ?>);
		};
 
	
		
	setTimeout(function(){
			setGridHight($("#pasi_ceisa_bc_<?php echo $bc_prefix;  ?>_out_header_module_tbl"),$("#container_pasi_ceisa_bc_<?php echo $bc_prefix;  ?>_out_header_module"),$("#pasi_ceisa_bc_<?php echo $bc_prefix;  ?>_out_header_module_bar")); 
		},100); 
	});
		  	
</script>

	
	