| Current Path : /var/www/html/mmishra/irp/pcstore/report/ |
| Current File : /var/www/html/mmishra/irp/pcstore/report/report_pcseries.php |
<?php
//show page head
include "report_header.inc";
echo "<hr><center><font color='red' size='+1'>Product Balance Sheet (as on date)</font></center>
<table width='100%' border='1' cellspacing='0' cellpadding='1'
bordercolordark='white' bordercolor='black' frame='box' id='id4'>
<tr><th>Sr.</th><th>Series Name</th><th>Stock Quantity</th><th>Issued Quantity</th><th>Scrap Quantity</th></tr>";
$sql1 = "select * from product_series order by row_id";
$rs1 = mysql_query($sql1, $con);
if(!$rs1) echo sql_error();
while ($o = mysql_fetch_object($rs1)){
$name = $o->name;
$sqty = $o->stock_quantity;
$iqty = $o->issued_quantity;
$cqty = $o->scrap_quantity;
$tsqty += $sqty;
$tiqty += $iqty;
$tcqty += $cqty;
$i++;
//show figures
echo "<tr><td>$i</td><td>$name</td>
<td align='right'>$sqty</td>
<td align='right'>$iqty</td>
<td align='right'>$cqty</td></tr>";
}
echo "<tr><td colspan='2' align='right'><b>Total</b></td>
<td align='right'>$tsqty</td>
<td align='right'>$tiqty</td>
<td align='right'>$tcqty</td></tr>";
echo '</table>
<p><p><input type="submit" name="submit" value="PRINT" onclick="window.print()">';
include "report_footer.inc";
?>