Your IP : 216.73.216.40


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

<h2 align='left'>Indent Status</h2>
<center>

<?php

$tbl = 'indents';
$indent_no = $_REQUEST["indent_no"];

?>

Indent No. <input type='text' name='indent_no' value='<?php echo $indent_no; ?>' size='10'>
<input type='submit' name='submit' value='FIND'>
<br><br>

<?php

echo "<table width='95%' border='1' style='border-collapse: collapse'>
<tr><th>Sr</th><th>Indent No</th><th>Dated</th><th>Fund Head</th><th>Purpose</th><th>Indentor</th><th>Recommendation</th><th>Status</th></tr>";

$rs = mysql_query("select * from $tbl order by indent_no desc");
/* fetch values */
while ($o = mysql_fetch_object($rs)) {
	$i++;
	echo "<tr><td>$i</td>";

	if ($indent_no == $o->indent_no) {
		echo "<td><b style='color: red'>$o->indent_no</b></td>";
	} else {
		echo "<td><a href='staff/?pg=$pg&indent_no=$o->indent_no'>$o->indent_no</a></td>";
	}

	echo "<td>$o->indent_date</td>
	<td>$o->fund_head</td>
	<td>$o->purpose</td>
	<td>".employee_detail($o->indentor)."</td>
	<td>$o->recommendation</td>
	<td>$o->status</td></tr>";

	if ($indent_no == $o->indent_no) {
		echo "<tr><td colspan='8' align='center'>
		<b align='left'>Items</b>
		<table width='90%' border='1' style='border-collapse: collapse'>
		<tr><th>Sr</th><th>Particulars</th><th>Demanded Qty</th><th>Approved Qty</th><th>Issued Qty</th><th>Approx Cost</th></tr>";

		$sr = mysql_query("select * from indent_items where indent_no=$indent_no order by item_id");
		/* fetch values */
		while ($q = mysql_fetch_object($sr)) {
			$j++;
			echo "<tr><td>$j</td>
			<td>".item_detail($q->item_no)."</td>
			<td>$q->demanded_qty</td>
			<td>$q->approved_qty</td>
			<td>$q->issued_qty</td>
			<td>$q->approx_cost</td></tr>";
		}
		echo "</table></td></tr>";
	}
}
echo "</table>";
?>