echo "<style type='text/css'>";
echo "\r\n.patientName{\r\n\tborder: 1px solid #000;\r\n\tcolor: #000;\r\n\theight: 28px;\r\n\twidth: 340px;\r\n\tborder-color:white white black white;\r\n\tfont-size:17px;\r\n\r\n}\r\n\r\n.patientAge{\r\n\tborder: 1px solid #000;\r\n\tcolor: #000;\r\n\theight: 28px;\r\n\twidth: 120px;\r\n\tborder-color:white white black white;\r\n\tfont-size:17px;\r\n\r\n}\r\n\r\n.patientAddress{\r\n\tborder: 1px solid #000;\r\n\tcolor: #000;\r\n\theight: 28px;\r\n\twidth: 80%;\r\n\tborder-color:white white black white;\r\n\tfont-size:17px;\r\n\r\n}\r\n\r\n.medicoLegalInformation{\r\n\tborder: 1px solid #000;\r\n\tcolor: #000;\r\n\theight: 28px;\r\n\twidth: 50%;\r\n\tborder-color:white white black white;\r\n\tfont-size:17px;\r\n\r\n}\r\n\r\n.medicoLegalInformation1{\r\n\tborder: 1px solid #000;\r\n\tcolor: #000;\r\n\theight: 28px;\r\n\twidth: 60%;\r\n\tborder-color:white white black white;\r\n\tfont-size:17px;\r\n\r\n}\r\n\r\n.txtBox {\r\n\tborder: 1px solid #000;\r\n\tcolor: #000;\r\n\theight: 130px;\r\n\twidth: 80%;\r\n\tpadding:4px 4px 4px 5px;\r\n}\r\n\r\n";
echo "</style>";
echo "<center>";
echo "<font size=3>Cabrera St,Pagadian City</font>";
echo "<br><font size=2>Philipines</font>";
echo "<br><font size=2>Tel No.(062) 2143737</font>";
echo "<hr>";
echo "<br><b><font size=5>MEDICO LEGAL</font></b>";
$ro->coconutFormStart("post", "medicoLegal_edit1.php");
$ro->coconutHidden("registrationNo", $registrationNo);
echo "<br><br><br>";
echo "<table border=0 width='70%'>";
echo "<Tr>";
echo "<td width='70%'>Name:&nbsp;<input type='text' class='patientName' value='" . $ro->getPatientRecord_lastName() . ", " . $ro->getPatientRecord_firstName() . "'></td>";
echo "<td width='30%'>Age:&nbsp;<input type='text' class='patientAge' value='" . $ro->getPatientRecord_Age() . "'></td>";
echo "</tr>";
echo "</table>";
echo "<table border=0 width='70%'>";
echo "<td>Address:&nbsp;<input type='text' class='patientAddress' value='" . $ro->getPatientRecord_address() . "'></td>";
echo "</table>";
echo "<Br><br>";
echo "<table border=0 width='70%'>";
echo "<tr>";
echo "<td>DATE OF INCIDENCCE:&nbsp;<input type='text' autocomplete='off' name='dateOfIncidence' class='medicoLegalInformation' value='" . $ro->selectNow("medicoLegal", "dateOfIncidence", "registrationNo", $registrationNo) . "'></td>";
echo "</tr>";
echo "<tr>";
echo "<td>TIME OF INCIDENCCE:&nbsp;<input type='text' autocomplete='off' name='timeOfIncidence' class='medicoLegalInformation' value='" . $ro->selectNow("medicoLegal", "timeOfIncidence", "registrationNo", $registrationNo) . "'></td>";
echo "</tr>";
echo "<tr>";
echo "<td>DATE OF EXAMINATION:&nbsp;<input type='text' autocomplete='off' name='dateOfExamination' class='medicoLegalInformation' value='" . $ro->selectNow("medicoLegal", "dateOfExamination", "registrationNo", $registrationNo) . "'></td>";
$ro->getPatientProfile($registrationNo);
/*
if(isset($_GET['submit']))
{

$result = $_GET['result'];

addLaboratoryResultInPatient($registrationNo,$itemNo,$chargesCode,$medtech,$date,$result);

}
*/
echo "<script type='text/javascript' src='/ckeditor/ckeditor.js'></script>";
echo "<table border=0 cellspacing=0 cellpadding=1 width='100%' >";
echo "<tr>";
echo "<td>&nbsp;<b>Name:</b>&nbsp;" . $ro->getPatientRecord_lastName() . ", " . $ro->getPatientRecord_firstName() . "</td>";
echo "<td>&nbsp;<b>Age/Sex:</b>&nbsp;" . $ro->getPatientRecord_Age() . "/" . $ro->getPatientRecord_gender() . "</td>";
echo "<Td>&nbsp;<b>Date:</b>&nbsp;" . date("M d, Y") . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td>&nbsp;<b>D.O.B:</b>&nbsp;" . $ro->getPatientRecord_birthDate() . "</td>";
echo "<Td>&nbsp;<b>WARD:</b>&nbsp;" . $ro->getRegistrationDetails_type() . "</td>";
echo "</tr>";
echo "</table>";
echo "</centeR>";
/*
if( $ro->selectNow("availableCharges","reagents","chargesCode",$chargesCode) != "" ) {
$reagentsz = preg_split ("/\-/", $ro->selectNow("availableCharges","reagents","chargesCode",$chargesCode) ); 
$ro->getReagentsWillBeUse($reagentsz[0]);
echo "<Br>";
$ro->getReagentsWillBeUse($reagentsz[1]);
echo "<Br>";
Exemple #3
0
<?php

include "../../myDatabase2.php";
$registrationNo = $_GET['registrationNo'];
$dateCharge = $_GET['dateCharge'];
$ro = new database2();
$ro->getPatientProfile($registrationNo);
echo "<Br>";
echo "<table border=0 width='70%'>";
echo "<Tr>";
echo "<td><b>Patient ID:</b>&nbsp;" . $ro->getRegistrationDetails_patientNo() . "</td>";
echo "<TD><b>Registration#:</b>&nbsp;{$registrationNo}</tD>";
echo "</tr>";
echo "<Tr>";
echo "<td><b>Patients Name:</b>&nbsp;" . $ro->getPatientRecord_lastName() . ", " . $ro->getPatientRecord_firstName() . " " . $ro->getPatientRecord_middleName() . "</td>";
echo "<td><b>Age:</b>&nbsp;" . $ro->getPatientRecord_Age() . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td><b>D.O.B:</b>&nbsp;" . $ro->getPatientRecord_birthDate() . "</td>";
echo "<tD><b>Sex:</b>&nbsp;" . $ro->getPatientRecord_Gender() . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td><b>Physician:</b>&nbsp;" . $ro->getAttendingDoc($registrationNo, "ATTENDING") . "</td>";
echo "<td><b>Room:</b>&nbsp;" . $ro->getRegistrationDetails_room() . "</td>";
echo "</tr>";
echo "</table>";
echo "<br>";
$ro->printLabRequest($registrationNo, $dateCharge);