| Current Path : /var/www/html/mmishra/istore/ |
| Current File : /var/www/html/mmishra/istore/stlocationuse.inc |
<h3 align='left'>Locational Usage</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>";
?>
<table width='90%' border='1' style='border-collapse: collapse' bgcolor='white'>
<tr><th>No.</th><th>IndentNo.</th><th>Dated</th><th>Indentor</th><th>Particulars</th></tr>
<?php
$rs = mysql_query("select * from indents where location='$location' order by indent_no desc");
while ($o = mysql_fetch_object($rs)) {
$i++;
$j = 0;
echo "<tr".($indentno == $o->indent_no ? " bgcolor='pink'" : '').">";
echo "<td>$i</td><td><a href='?pg=inindents&indent_no=$o->indent_no'>$o->indent_no</a></td>
<td>$o->date_indent</td><td><b>[ $o->status ]</b><br>".employee_detail($o->employee)."<br>
Location: $o->location<br>Reccomendation: $o->recommendation</td>
<td>
<table width='100%' border='1' style='border-collapse: collapse' bgcolor='white'>
<tr><th width='5%'>Sr.</th><th width='65%'>Item</th><th width='10%'>Qty<br>Demanded</th><th width='10%'>Qty<br>Approved</th><th>Qty<br>Issued</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></tr>";
}
echo "</table>
</td></tr>";
}
?>
</table>
</center>