Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/istore/
Upload File :
Current File : /var/www/html/mmishra/istore/inapproved.inc

<h2 align='left'>Approved Indents</h2>
<center>
<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>

<?php

$indentno = $_REQUEST["indent_no"];

$rs = mysql_query("select * from indents where status='Approved' 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>".employee_detail($o->emp_no)."</td>
	<td>
	<table width='100%' border='1' style='border-collapse: collapse' bgcolor='white'>
	<tr><th width='5%'>Sr.</th><th width='65%'>Particulars</th><th width='10%'>Qty<br>Demand</th><th width='10%'>Qty<br>Approve</th><th>Qty<br>Out</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>