Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/icure/staff/
Upload File :
Current File : /var/www/html/mmishra/icure/staff/patients.php

<html>
<head>
<title>Patient History</title>
<link href='../css/style.css' rel='stylesheet' />
<script language='javascript'>
<!--
function changeparent(elmnt,vlu) {
        window.opener.document.getElementById(elmnt).value=vlu;
}
-->
</script>
</head>
<body>
<h3 align='left'>Treatment History</h3>
<form method='POST' action='patients.php'>

<?php

include "../session.inc";

$tbl = 'registrations';
$patid = $_REQUEST["patid"];

//multiple registrations
echo "<center>".patient_detail($patid)."</center><br><br>";

$rs = mysql_query("select * from $tbl where pat_id='$patid' order by reg_no desc");
while ($o = mysql_fetch_object($rs)) {
	$dependent = strtoupper($o->dependent);
        if ($o->pat_group == 'Others') $dependent = '';
	$i++;
        echo "Visit No. [ $i ] for ";
	echo (!$dependent || $dependent == 'DEPENDENT NAME' || $dependent == 'PARENT NAME' ? 'Self' : $dependent.' (dependent)');

	echo "<table style='font-size:x-small' border='1' width='99%'>
        <tr><th width='50%'>Registration</th><th>Medication</th></tr>
        <tr valign='top'><td nowrap>RegNo.: $o->reg_no<br>Dated: $o->reg_date $o->reg_time<br>
        For: ".doctor_detail($o->dr_id)."<br>By: ".staff_detail($o->login_id)."</td>
        <td nowrap style='font-size:xx-small'>".medications($o->reg_no)."</td>
        </tr></table><br>";

}

?>

</form>
</body>
</html>