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/inhistory.inc

<h3>Indentor History</h3>
<center>

<?php

$tbl = 'indents';

$empno = $_REQUEST["emp_no"];

echo "Select indentor <select name='emp_no' style='width:230'onchange=\"javascript: document.location.href='?pg=$pg&emp_no='+this.value\"-->>
<option value=''>Indentor</option>";

$rs = mysql_query("select * from employees order by emp_name");
while ($o = mysql_fetch_object($rs)) {
	echo "<option value='$o->emp_no'";
	if ($empno == $o->emp_no) echo ' selected';
	echo ">$o->emp_name</option>";
}
echo "</select>";

?>

<table width='60%' border='1' style='border-collapse: collapse'>
<tr><th>No.</th><th>Particulars</th><th>Qty</th><th>Indent</th><th>Dated</th></tr>

<?php

$rs = mysql_query("select * from indent_items where indent_no in (select indent_no from $tbl where emp_no='$empno' and status='Issued') order by item, dateCreation");
//$rs = mysql_query("select * from $tbl where employee='$employee' and status='Issued' order by indent_no desc");
/* fetch values */
while ($o = mysql_fetch_object($rs)) {
	$i++;
	echo "<tr><td>$i</td><td>".item_detail($o->item)."</td><td>$o->qty_demand $o->qty_unit</td>
	<th><a href='?pg=inindents&indent_no=$o->indent_no'>$o->indent_no</a></th><td>$o->dateCreation</td></tr>";
}

?>
</table>
</center>