Server IP : 162.240.98.243 / Your IP : 18.119.111.179 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/www/login.easenup.in/ |
Upload File : |
<table id="example2" class="order-table table table-bordered table-hover css-serial"> <?php include("dbconnection.php"); require_once('../DBManager.php'); require_once('../LoginManager.php'); $narayan=LoginManager::currentUser(); $usertype=LoginManager::getUserTypeByuname("$narayan"); 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` WHERE entered_by='12571' 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>