Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/icure/doctor/
Upload File :
Current File : /var/www/html/mmishra/icure/doctor/verification.inc

<h3 align='left'>Verification</h3>

<?php

$tbl = 'bills';
$billno = $_REQUEST["billno"];

if ($_POST["submit"] == 'SAVE') {
	
	$amount = $_POST["amount"];
	$billdatetime = $_POST["billdatetime"];

	if (mysql_num_rows(mysql_query("select * from $tbl where bill_no=$billno"))) {
		mysql_query("update $tbl set amount=$amount,date_updation=now(),login_id='$user' where bill_no=$billno");
	}

}

$rs = mysql_query("select * from $tbl order by reg_no");
while ($o = mysql_fetch_object($rs)) {
	$i++;

	$regno = $o->reg_no;

	echo registration_detail($regno);

	echo prescription_detail($regno);

	echo "<table border='1' width='80%'>
	<tr><th>Sr.</th><th>Bill No.</th><th>Amount</th><th>Bill Date</th><td align='center'>Action</td></tr>";

        echo "<tr><td>$i</td>";
	if ($billno == $o->bill_no) {
       		echo "<td>$o->bill_no<input type='hidden' name='billno' value='$o->bill_no')</td>
       		<td align='center'>Rs. <input type='text' name='amount' value='$o->amount' size='10'></td>
       		<td align='center'>$o->bill_datetime</td>
		<td align='center'><input type='submit' name='submit' value='SAVE'> 
		<a href='doctor/?pg=$pg&del=1&billno=$billno'>x</a></td>";     
	} else {
 		echo "<td><a href='doctor/?pg=$pg&regno=$regno&billno=$o->bill_no'>$o->bill_no</td>
		<td align='right'>Rs. $o->amount</td>
		<td align='center'>$o->bill_datetime</td>";	
	}
	echo "</tr>
	</table>";
}

?>