ESH/flexi_vendor_flag.php

99 lines
2.7 KiB
PHP
Raw Normal View History

2024-10-23 18:28:06 +05:30
<title>Vendors</title>
<?php
include('top.php');
?>
<script type="text/javascript">
$(function() {
$("#flex1").flexigrid({
url: 'flexi_vendor_flag_script.php',
dataType: 'json',
colModel : [
{display: '<input type=checkbox>', name : 'vendor_flag', sortable : false, align: 'left',width:20},
{display: 'Sr', name : 'count', width : 30, sortable : false, align: 'left'},
{display: 'ID', name : 'client_id', width : 30, sortable : true, align: 'left'},
{display: 'Vendor', name : 'client_name', width : 250, sortable : true, align: 'left'},
{display: 'City', name : 'city', width : 200, sortable : true, align: 'left'},
{display: 'State', name : 'state', width : 200, sortable : true, align: 'left'},
{display: 'Flag', name : 'vendor_flag', width : 70, sortable : false, align: 'center'},
],
buttons : [{name:'<b><font size="2">Vendor Flag List</font></b>'},
//{name: 'Add', bclass: 'add', onpress : doCommand}
],
searchitems : [
{display: 'Vendor', name : 'client_name', isdefault: true},
{display: 'City', name : 'client_City'},
{display: 'State', name : 'vendor_state'},
],
sortname: "client_name",
sortorder: "asc",
usepager: true,//pagination
useRp: true,
rp: 25,//records per page
showTableToggleBtn: false,//toggle button for the whole table
resizable: false,
width: window.innerWidth,
height: window.innerHeight-130,
singleSelect: true
});
});
function doCommand(com, grid) {
if (com == 'Add') {
window.open('vendor_city_flag.php?acn=update', 'DoSubmit', 'width=400,height=300,left=200,top=100, scrollbars=1');
}
}
function checkVendor(val){
//alert(val);
function stateChangedState()
{
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
//document.getElementById('').value=xmlHttp.responseText;
//For response the data
}
}
Params='request_type=checkVendor&val='+val;
SendAjaxRequest('ajax.php','POST',true,Params,stateChangedState);
}
</script>
<tr>
<td height="350" valign="top" align="center">
<table width="700px" border="0" cellspacing="0" cellpadding="0" align="center">
<tr height="3px"></tr>
<tr>
<td align="justify">
<form name="f1" method="post" action="<?php echo $this_script?>">
<table width="100%" border="0" cellspacing="0" cellpadding="4" id="flex1" >
</table>
</form>
</td>
</tr>
</table>
</td>
</tr>