| Current Path : /var/www/html/mmishra/istore/ |
| Current File : /var/www/html/mmishra/istore/inlocation.inc |
<h3 align='left'>Location Demand</h3>
<center>
<?php
$tbl = 'st_stockout';
$location = $_REQUEST['location'];
echo "Select location <select name='location' onchange=\"javascript: document.location.href='?pg=$pg&location='+this.value\">";
foreach ($locations as $lc) {
echo "<option value='$lc'".($lc == $location ? ' selected' : '').">$lc</option>";
}
echo "</select>";
//if ($location) {
$rs = mysql_query("select * from indents where status='Issued' and location='$location' order by indent_no desc");
echo "<table width='90%' border='1' style='border-collapse: collapse' bgcolor='white'>
<tr><th>No.</th><th>Indent No.</th><th>Dated</th><th>Indentor</th><th>Particulars</th></tr>";
while ($o = mysql_fetch_object($rs)) {
$i++;
$j = 0;
echo "<tr><td>$i</td><th><a href='?pg=inindents&indent_no=$o->indent_no'>$o->indent_no</a></th><td>$o->date_indent</td>
<td>".employee_detail($o->emp_no)."<br>Recommendor: $o->recommendation<br>$o->account Account ($o->status)</td>
<td>
<table width='100%' border='1' style='border-collapse: collapse' bgcolor='white'>
<tr><th width='5%'>Sr.</th><th width='55%'>Particulars</th><th width='10%'>Demand Qty</th>
<th width='10%'>Approve Qty</th><th>Out Qty</th><th>Approx Cost</th></tr>";
$sr = mysql_query("select * from indent_items where indent_no=$o->indent_no order by item");
while ($q = mysql_fetch_object($sr)) {
$j++;
echo "<tr><td>$j</td><td>".item_detail($q->item)."</td><td>$q->qty_demand $q->unit</td>
<td>$q->qty_approve $q->unit</td><td>$q->qty_out $q->unit</td><td>$q->approx_cost</td></tr>";
}
echo "</table>
</td></tr>";
}
//}
?>
</table>
</center>