<?php
include_once('../hdr_general.php');
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="../css/<?=$_SESSION['Xcssfile'];?>" type="text/css" media=all>
<link rel="stylesheet" href="../css/print.css" type="text/css" media="print">
<title>PMS-EVO</title>
</head>
<table border=1 cellspacing=1 cellpadding=2 width=928 style="border: 1px inset;">
  <form action="<?php echo $_SERVER['PHP_SELF'];?>?userid=<?php echo $_GET['userid'];?>&sup=<?php echo $_POST['suppliername'];?>&appr=<?php echo $_POST['approvedstatus'];?>&act=<?php echo $_POST['activestatus']; ?>&nob=<?php echo $_POST['suppliernob'];?>" method="post" name="filterform" id="filterform">
  <tr valign=top>
  <td valign=top width=50 class=listcontent>Name :</td>
  <td valign=top width=140 class=listcontent><input name="suppliername" id="suppliername" value="<?=$filtersuppliername;?>" style="width: 135px;"></td>
  <!--<td valign=top width=190 class=listcontent>Name: <input name="suppliername" id="suppliername" value="<?=$filtersuppliername;?>" style="width: 135px;"></td>-->
  <td valign=top width=70 class=listcontent>Approved?</td>
  <td valign=top width=60 class=listcontent>
  <select name="approvedstatus" id="approvedstatus" style="width: 50px;">
  <option value="" selected>Any</option>
  <option value="1" <? if ($filterapprovedstatus=="1") echo "selected"; ?>>Yes</option>
  <option value="0" <? if ($filterapprovedstatus=="0") echo "selected"; ?>>No</option>
  </select>
  </td>
  <td valign=top width=60 class=listcontent>Status :</td>
  <td valign=top width=70 class=listcontent>
  <select name="activestatus" id="activestatus" style="width: 60px;">
  <option value="" selected>Any</option>
  <option value="1" <? if ($filteractivestatus=="1") echo "selected"; ?>>Active</option>
  <option value="0" <? if ($filteractivestatus=="0") echo "selected"; ?>>Inactive</option>
  <option value="2" <? if ($filteractivestatus=="2") echo "selected"; ?>>Blacklisted</option>
  </select>
  </td>
  <td valign=top width=140 class=listcontent>Nature of Business :</td>
  <td valign=top width=130 class=listcontent>
  <select name="suppliernob" id="suppliernob" style="width: 125px;">
  <option value="" selected>--Any--</option>
  <option value="MANUFACTURER" <? if ($filtersuppliernob=="MANUFACTURER") echo "selected"; ?>>MANUFACTURER</option>
  <option value="TRADING" <? if ($filtersuppliernob=="TRADING") echo "selected"; ?>>TRADING</option>
  <option value="OTHERS" <? if ($filtersuppliernob=="OTHERS") echo "selected"; ?>>OTHERS</option>
  </select>
  </td>
  <td valign=top width=208 class=listcontent>
  <input name="pageno" id="pageno" type="hidden" value="1">
  <!--
  <button name="filter" id="filter" type="submit" style="width: 80px;">&nbsp;<img src='gfx/options/b_find.png' class='actionbutton'>&nbsp;Search&nbsp;</button>&nbsp;
  -->
  <input type="submit" value="Search">
  <button name="showall" id="showall" style="width: 90px;" onClick="window.location='<?php echo $_SERVER['PHP_SELF'];?>?userid=<?php echo $_GET['userid'];?>'">&nbsp;<img src='gfx/options/b_clear.png' class='actionbutton'>&nbsp;Show All&nbsp;</button>&nbsp;
  </td>
  </tr>
  </form>
  </table>
  
  
<iframe src ="rpt_supplierlist2.php?userid=<?php echo $_GET['userid']; ?>&sup=<?php echo $_POST['suppliername'];?>&appr=<?php echo $_POST['approvedstatus'];?>&act=<?php echo $_POST['activestatus']; ?>&nob=<?php echo $_POST['suppliernob'];?>" width="100%" height="100%" frameborder="0">