Mr.Fn4ticHz Shell
Server IP : 162.240.98.243  /  Your IP : 3.147.84.157
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//operativeprocedure.php
<?php
session_start();
require_once('../DBManager.php');
require_once('../LoginManager.php');
include("header.php");
include("dbconnection.php");
include 'workdeskmenu.php';
?>
 <div class="content-wrapper">
 <section class="content-header">

<!DOCTYPE html>
<html lang="en">
  <head>
   <link rel="stylesheet" href="select2.min.css" />
      <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>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="Dashboard">
    <meta name="keyword" content="Dashboard, Bootstrap, Admin, Template, Theme, Responsive, Fluid, Retina">

    <title>Operative Procedure</title>
 
  <link rel="stylesheet" href="assets/style.css">
  <body>
      
            <center>	<h3 class='code'>  Operative Procedure	</h3>
           	
          <a href="#" style="float:right;font-size:20px;margin-top:-23px;"><i class="fa fa-info-circle" aria-hidden="true" ></i></a></center>
          
  </head>
<input type="search" class="light-table-filter" data-table="order-table" placeholder="Search" />
  
                 <form action="" method="GET">
                            <div class="row">
                                <div class="col-md-4">
                                    <div class="form-group">
                                        <label>From Date</label>
                                        <input type="date" name="from_date" value="<?php if(isset($_GET['from_date'])){ echo $_GET['from_date']; } ?>" class="form-control">
                                    </div>
                                </div>
                                <div class="col-md-4">
                                    <div class="form-group">
                                        <label>To Date</label>
                                        <input type="date" name="to_date" value="<?php if(isset($_GET['to_date'])){ echo $_GET['to_date']; } ?>" class="form-control">
                                    </div>
                                </div>
                                <div class="col-md-4">
                                    <div class="form-group">
                                        <label>Click to Filter</label> <br>
                                      <button type="submit" class="btn btn-primary">Filter</button>
                                    </div>
                                </div>
                            </div>
                        </form>
 <table id="example2"  class="order-table table table-bordered table-hover css-serial">
     
                  <tr>
                      <th>SR No</th>
          <th>Patient Details</th>
            <th>Summary</th>
                <th>Details </th>
               </tr>
               <br>

<?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))
		{
		       if(isset($_GET['from_date']) && isset($_GET['to_date']))
                                {
                                    $from_date = $_GET['from_date'];
                                    $to_date = $_GET['to_date'];
                                    $list_vendor=$_GET['list_vendor'];
}
$sql78 ="SELECT * FROM tat  WHERE hospital_id='$re[entered_by]'  AND type='IPD'  AND start_date BETWEEN '$from_date' AND '$to_date' ";
$result45=mysqli_query($con,$sql78);
$row1=mysqli_fetch_array($result45);


echo"<p align='right'  style='color:red; font-size:20px;'><b>From Date</b> $_GET[from_date] -<b>TO</b> $_GET[to_date]</p>";
if($row1[0]=='0')
{

    echo"<h1 align='center'>
  No Record Found</h1>";
}

mysqli_close($con);
}
?>                     
<?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))
		{
		       if(isset($_GET['from_date']) && isset($_GET['to_date']))
                                {
                                    $from_date = $_GET['from_date'];
                                    $to_date = $_GET['to_date'];
}
		$sql2 ="SELECT * FROM Routine_Information  WHERE entered_by='$re[entered_by]'  AND date(Date_of_Operative_procedure) BETWEEN '$from_date' AND '$to_date' ";
		$qsql2 = mysqli_query($con,$sql2);
		while($rs = mysqli_fetch_array($qsql2))
		{
		     
	 	$type="IPD";
		    	$sql4 ="SELECT * FROM patient WHERE patientid='$rs[patientid]'";
		$qsql4 = mysqli_query($con,$sql4);
		while($rp = mysqli_fetch_array($qsql4)){
		
		 	$sql ="SELECT * FROM surgerytracker WHERE  patientid='$rp[patientid]'";
		$qsql = mysqli_query($con,$sql);
	$re = mysqli_fetch_array($qsql);
		
		 $sql1 ="SELECT * FROM list_tretment WHERE trid='$re[surgery]'";
		$qsql1 = mysqli_query($con,$sql1);
		$re1 = mysqli_fetch_array($qsql1);
		
	 
		
		  
	 $request=$con->query("SELECT * FROM `request_for_admission` WHERE prescriptionid='$rs[prescriptionid]' AND patientid='$rs[patientid]' AND entered_by='$re[entered_by]'");
         $RowRequest=$request->fetch_array();  
		  
	
	
	$Anesthesia_note =$con->query("SELECT * FROM Anesthesia_note WHERE  patientid='$rs[patientid]'");
		
		while($RowAnesthesiaNote =$Anesthesia_note->fetch_array()){	
	
		  
		 $datetime_1 = $rs['Time_of_Operative_procedure']; 
$datetime_2 = $RowAnesthesiaNote['TimeIn']; 
 
// $from_time = strtotime($datetime_1); 
// $to_time = strtotime($datetime_2); 
// $diff_minutes = round(abs($from_time - $to_time) / 60,2). " minutes";

$start_date = new DateTime($datetime_1);
$since_start = $start_date->diff(new DateTime($datetime_2));
//  $since_start->days.' days total<br>';
//  $since_start->y.' years<br>';
//  $since_start->m.' months<br>';
//  $since_start->d.' days<br>';
// echo  $since_start->h.' hours<br>';
// echo  $since_start->i.' minutes<br>';
// echo $since_start->s.' seconds<br>';


echo " 
	                <tr>
               <td>&nbsp;</td>
                 <td><b>UHID :</B>$rp[patientid]
                 <br>
            <b>Patient Name :</b> $rp[patientname]<br>
            <b>Type :</b>$type<br>
            <b>Reason for request :</b>$RowRequest[Reason_for_Admission]<br>
            <b>Treatment</b>:$re1[tratment]
            
            </td>
              <td><b>Date:</b>$rs[created_at] 
              <br><b>Time in :</b>$rs[Time_of_Operative_procedure]<br>
              <b>Time out :</b>$RowAnesthesiaNote[TimeIn]<br>
              
              
              <b>Duration :</b>$since_start->h hours. $since_start->i minutes . $since_start->s seconds<br>";
              
            
              
              
           echo    "</td><td>
	  ";

	  	 echo"
	      <a href='update_tat.php?tatid=$rs[tatid]'> <i class='fa fa-eye' style='font-size:25px;'></i></a>
	      
	      
	  	  </ul>
	</div>
             </td>
                					  
          </tr>                   
    
          ";


}
			    
		}
         }
		
		}
		
?>   
</table>
  
<?php
if(isset($_SESSION[doctorid]))
{
?>  
<hr>
	<table>
		<tr>
			<td>
			<div align="center"><strong><a href="prescription.php?patientid=<?php echo $_GET[patientid]; ?>&appid=<?php echo $rsappointment[appointmentid]; ?>">Add Prescription records</a></strong></div>
			</td>
		</tr>
	</table>
	<script>
  $(function () {
    $("#example1").DataTable({
      "responsive": true,
      "autoWidth": false,
    });
    $('#example2').DataTable({
      "paging": true,
      "lengthChange": false,
      "searching": false,
      "ordering": true,
      "info": true,
      "autoWidth": false,
      "responsive": true,
    });
  });
</script>

<?php
}
?>  <script>

<script>
 $(document).ready(function () {
      $('select12').selectize({
          sortField: 'text'
      });
  });
  </script>
  
   <script src="https://code.jquery.com/jquery-3.5.1.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js"></script>


Anon7 - 2022
AnonSec Team