Server IP : 162.240.98.243 / Your IP : 3.147.59.198 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/Pharmacy/ |
Upload File : |
<?php session_start(); require_once('../../DBManager.php'); require_once('../../LoginManager.php'); include("header.php"); include('menu.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'); $narayan=LoginManager::currentUser(); $usertype=LoginManager::getUserTypeByuname("$narayan"); $sql1 ="SELECT * FROM site_users WHERE userno='$usertype'"; $qsql1 = mysqli_query($con,$sql1); while($re = mysqli_fetch_array($qsql1)) { include("dbconnection.php"); $sql="SELECT count('patientid') FROM patient WHERE familyid='$re[entered_by]'"; $result=mysqli_query($con,$sql); $row=mysqli_fetch_array($result); echo "Total Patient : <b>$row[0]</b>"; 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); while($re = mysqli_fetch_array($qsql1)) { $showRecordPerPage = 5; if(isset($_GET['page']) && !empty($_GET['page'])){ $currentPage = $_GET['page']; }else{ $currentPage = 1; } $startFrom = ($currentPage * $showRecordPerPage) - $showRecordPerPage; $totalEmpSQL = "SELECT * FROM patient WHERE familyid='$re[entered_by]' "; $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 familyid='$re[entered_by]' 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>AGE : </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']; ?>'><i class="fa fa-eye" aria-hidden="true" style='font-size:30px;'></i> | </a> <a href='patient_basic.php?patientid=<?php echo $emp['patientid']; ?>'><i class="fa fa-pencil-square-o" aria-hidden="true" style='font-size:30px;'></i> </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>