EVOLUTION-NINJA
Edit File: vendor_approval.php
<div class="container"> <div class="p_list"> <h3>Vendor Approval</h3> <table id="list2"></table> <div id="pager2"></div> </div> </div> <script> $(document).ready(function (){ jQuery("#list2").jqGrid({ url:"", mtype : "post", datatype: "json", colNames:['Id','Document Number','Product','Application','Segment','Upload Date','Download'], colModel:[ {name:'id',index:'id', width:50, align:'center',key:true,editable:true,hidden:true}, {name:'documentnumber',index:'documentnumber', width:50, align:'center',key:true,editable:true}, {name:'product', index:'product', align:'center',editable:true, width:50}, {name:'application', index:'application', align:'center',editable:true, width:50}, {name:'segment', index:'segment', align:'center',editable:true, width:50}, {name:'uploaddate', index:'uploaddate', align:'center',editable:true, width:50}, {name:'download', index:'download', align:'center',editable:true, width:50} ], rowNum:10, rowTotal: 2000, rowList : [10,20,40,80], rownumbers: true, rownumWidth: 40, pager:"#pager2", sortname:'id', viewrecords: true, loadonce:true, gridview: true, autowidth: true, sortorder:"asc", caption:"Case Notes" }); $("#list2").jqGrid('filterToolbar',{searchOperators : false});//for multisearch code,remove if not required $("#list2").jqGrid('navGrid','#pager2', {search:true,refreshstate:"current",edit:true,add:true,del:true}, { }, { }, { }, { sopt:['eq', 'ne', 'lt', 'gt', 'cn', 'bw', 'ew'], closeOnEscape: true, multipleSearch: true, closeAfterSearch: true, multipleGroup:true, caption:"search" } ); $('#pager2').css("height", "auto"); $("#list2").navButtonAdd('#pager2', { caption:"", buttonicon:"ui-icon-plus", onClickButton: addRow, position: "last", title:"", cursor:"pointer", id:"client_add" } ); $("#list2").navButtonAdd('#pager2', { caption:"", buttonicon:"ui-icon-pencil", onClickButton: editRow, position: "last", title:"", cursor: "pointer", id:"client_edit" } ); }); </script>