403Webshell
Server IP : 127.0.0.1  /  Your IP : 192.168.99.1
Web Server : Apache/2.4.35 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9
System : Windows NT WIN-JEJMB9EN0L0 10.0 build 14393 (Windows Server 2016) AMD64
User : Administrator ( 0)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /wamp/www/simbada_2017/application/modules/inventaris_ruangan/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /wamp/www/simbada_2017/application/modules/inventaris_ruangan/views/inventarisruangan_view.php
<fieldset>
  <legend><?php echo $breadcrumbs;?></legend>
</fieldset>

<div id="grid_container">
  <div id="search" class="row">
  </div>
  <table id="grid"></table>
  <div id="pager"></div>
</div>

<script type="text/javascript">
	$(document).ready(function() {
		var grid = $("#grid");
		var id;
		var last = 0;
		
		var params = {
			container : $('#search'),
			grid : grid,
			cols : <?php echo json_encode($grid['fields']); ?>,
		}
		Search.init(params);				
		
		grid.jqGrid({
			height:300,
			url:root + modul + '/get_daftar',		
			datatype:'json',
			mtype:'POST',
			colNames: [
				'ID Inventaris',
				'Kode SKPD',
				'Nama SKPD',
				'Kode Lokasi',
				'Nama Lokasi',
				'Kode Ruangan',
				'Nama Ruangan'
			],
			colModel:[
				{name:'id', hidden:true, width:100},
				{name:'kd_skpd', width:110},
				{name:'nm_skpd', width:250},		
				{name:'kd_lokasi', width:110},
				{name:'nama_lokasi', width:250},
				{name:'kd_ruangan', width:110},
				{name:'nama_ruangan', width:250},
			],
			rownumbers:false,
			rowNum:10,
			rowList:[10, 20, 30],
			pager:'#pager',
			toolbarfilter:true,
			viewrecords:true,			
			autowidth:true,
			shrinkToFit:false,
			multiselect:true,
			ondblClickRow:edit_row,
			sortname:'id',
			sortorder:'desc',
			subGrid:true,
			subGridBeforeExpand: subGridBeforeExpand,
			subGridRowExpanded: subGridRowExpanded,
			footerrow:true,
			userDataOnFooter:true
		});
		
		grid.jqGrid('navGrid', "#pager", {
			add:true,
			addtext:'Tambah&nbsp;',
			addfunc:add_row,
			edit:true,
			edittext:'Ubah&nbsp;',
			editfunc:edit_row,
			del:true,
			deltext:'Hapus&nbsp;',
			delfunc:del_row,
			search:false,
			refresh:true,
			refreshtext:'Refresh&nbsp;',
		})
		
		function add_row(){
			location.href = root + modul + '/form';
		}
		
		function edit_row(id){
			location.href = root + modul + '/form/' + id;
		}
		
		function del_row(id){
			var answer = confirm('Hapus dari daftar?');
			if(answer == true){
				var selectedrows = grid.jqGrid("getGridParam", "selarrrow");
				var i;					
				var purge_rincian = new Array();

				if (selectedrows.length) {
					for (i = 0; i < selectedrows.length; i++) {							
						purge_rincian.push(selectedrows[i]);							
					}					
				}
				
				$.ajax({
					type: "post",
					dataType: "json",
					url: root + modul + '/hapus',
					data: {purge_rincian : purge_rincian},
					success: function(res) {
						
						if (res.isSuccess) {
							show_info(res.message, 'Sukses');
						} else {
							show_error(res.message, 'Gagal');
						}
						
						if (true == res.isSuccess){
							grid.trigger("reloadGrid");
						};
					},
				});
			}
		}
		
		function print_list(){			
			preview({"tipe":"daftar"}, grid);
		}
		
		function subGridBeforeExpand(subgrid_id, row_id){
			if (isNaN(row_id)) return false;
		}

		function subGridRowExpanded(subgrid_id, row_id){
			var tblBarang, pgrBarang;
			tblBarang = subgrid_id+"_t"; pgrBarang = subgrid_id+"p_";
			$("#"+subgrid_id).html("<table id='"+tblBarang+"' class='scroll'></table><div id='"+pgrBarang+"' class='scroll'></div>");
			$("#"+tblBarang).jqGrid({
			  url:'<?php echo base_url()?>inventaris_ruangan/rinci_barang/'+row_id,
			  editurl:'',
			  datatype:'json',
			  mtype:'POST',
			  colNames:['', '', 'Kode Barang', 'Nama Barang', 'Nama Inventaris', 'KIB', 'No.Reg', 'Tahun', 'Status', 'Harga Perolehan'],
			  colModel:[
					{name:'id', hidden:true},
					{name:'id_maba', hidden:true},
					{name:'kd_brg', width:120},
					{name:'nm_brg', width:250},
					{name:'nm_inv', width:250},
					{name:'kib', width:50, align:'center'},
					{name:'no_reg', width:100, align:'center'},
					{name:'tahun', width:80, align:'center'},
					{name:'status', width:80, align:'center'},
					{name:'harga', width:150, align:'right', formatter:'currency'},
			  ],
			  rownumbers:true,
			  rowNum:10,
			  pager:"#"+pgrBarang,
			  sortorder:'asc',
			  viewrecords:true,
			  gridview:true,
			  height: '100%'
			});
			$("#"+tblBarang).jqGrid( 'navGrid', "#"+pgrBarang, {
			  add: false,
			  edit: false,
			  del: false,
			  search: false,
			  refresh: true,
			  refreshtext: 'Refresh',
			},{},{},{},{});
		}
	});
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit