Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/icure/staff/
Upload File :
Current File : /var/www/html/mmishra/icure/staff/expiry_print.inc

<h3 align='left'>Medicine Expiry</h3>
<center>
<div align='right'>
<b>
Dated: 

<?php

$tbl = 'expirys';
$expdate = $_REQUEST["expdate"];
if (!$expdate) $expdate = date("Y-m-d");

echo $expdate;

?>

</b>
</div>
<br><br>
<table border='1' width='80%' cellpadding='3pt'>
<tr><th>Sr</th><th>Medicine Name</th><th>Expiry Date</th><th>Expired Qty</th></tr>

<?php

$i = $pgno;
$rs = mysql_query("select * from $tbl where date(rec_date)='$expdate' order by rec_date,med_id");
while ($o = mysql_fetch_object($rs)) {
	$i++;
	echo "<tr><td>$i</td><td>".medicine_detail($o->med_id)."</td><td align='center'>$o->date_expiry</td>
	<td align='right'>".number_format($o->qty_expired,2)."</td></tr>";
	
	if ($staff != $o->login_id) $staffs .= "[ $o->login_id ]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
	$staff = $o->login_id;
}

?>

</table>
<br><br>
<div align='right'>
<b>
Settled by:  
<?php

echo ucwords($staffs);

?>

</b>
</div>
</center>