Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/iws8/html/ilight/
Upload File :
Current File : /var/www/html/mmishra/iws8/html/ilight/ststockstatus.inc

<h3>Stock Status</h3>
<center>
<table width='90%' border='1' style='border-collapse: collapse'>
<tr><th>No.</th><th>Item Description</th><th>Qty In</th><th>Qty Out</th><th>Dated</th></tr>

<?php

$rs = mysql_query("select * from st_items where qty_in > 0 order by code");
/*
if (mysql_num_rows($rs)) {
        $colHeads = mysql_num_fields($rs);

        echo "<table border='1' width='90%' align='center'>
	<tr><th>No.</th>";
        for ($i=0; $i < $colHeads; $i++) { // Header
                echo "<th>".ucwords(str_replace("_"," ",mysql_field_name($rs, $i)))."</th>";
        }
        echo "</tr>";

        $no++;
        while ($row = mysql_fetch_row($rs)) { //data
                $j++;
                if ($j % 2 == 0)
                        echo "<tr bgcolor='lightpink'><td>$j</td><td>".implode($row,'</td><td>')."</td></tr>";
                else
                        echo "<tr><td>$j</td><td>".implode($row,'</td><td>')."</td></tr>\n";
        }
        echo "</table>";
} else {
        echo "---";
}

*/

while ($o = mysql_fetch_object($rs)) {
	$i++;        
       	echo "<tr><th>$i</th><td>".item_category($o->category).' ('.item_subcategory($o->subcategory).') '.item_detail($o->id)."</td>";
	echo ($o->qty_in==0 ? "<th>$o->qty_in</th>" : "<td>$o->qty_in</td>")."<td>$o->qty_out</td><td nowrap>$o->dated</td></tr>";
}

?>

</table>
</center>