Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.133.124.80
function showgrid()
{
var $image_path="http://"+window.location.host+"/"+window.location.pathname.split('/')[1]+"/css/images/";
var $url="http://"+window.location.host+"/"+window.location.pathname.split('/')[1]+"/server.php?q=2";
jQuery("#list2").jqGrid({
url:$url,
datatype: "json",
colNames:['Inv No','Date', 'Client', 'Amount','Tax','Total','Notes'],
colModel:[ {name:'id',index:'id', width:55},
{name:'invdate',index:'invdate', width:90},
{name:'name',index:'name asc, invdate', width:100},
{name:'amount',index:'amount', width:80, align:"right", formatter: 'number'},
{name:'tax',index:'tax', width:80, align:"right", formatter: 'number'},
{name:'total',index:'total', width:80,align:"right", formatter: 'number'},
{name:'note',index:'note', width:150, sortable:false} ],
rowNum:5,
rowList:[10,20,30],
imgpath: $image_path,
pager: '#pager2',
sortname: 'id',
viewrecords: true,
sortorder: "desc",
caption:"JSON Example",
footerrow : true,
userDataOnFooter : true
}).navGrid('#pager2',{multipleSearch:true});
jQuery("#list3").jqGrid({
url:$url,
datatype: "json",
colNames:['Inv No','Date', 'Client', 'Amount','Tax','Total','Notes'],
colModel:[ {name:'id',index:'id', width:55},
{name:'invdate',index:'invdate', width:90},
{name:'name',index:'name asc, invdate', width:100},
{name:'amount',index:'amount', width:80, align:"right", formatter: 'number'},
{name:'tax',index:'tax', width:80, align:"right", formatter: 'number'},
{name:'total',index:'total', width:80,align:"right", formatter: 'number'},
{name:'note',index:'note', width:150, sortable:false} ],
rowNum:5,
rowList:[10,20,30],
imgpath: $image_path,
pager: '#pager3',
sortname: 'id',
viewrecords: true,
sortorder: "desc",
caption:"JSON Example",
footerrow : true,
userDataOnFooter : true
}).navGrid('#pager3',{multipleSearch:true});
}
|