Server IP : 162.240.98.243 / Your IP : 3.14.131.47 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 : |
<?php session_start(); require_once("../dbconnection.php"); require_once('../DBManager.php'); require_once('../LoginManager.php'); if($_GET['id']){ $Patient=$con->query("DELETE FROM `patient_referral` WHERE id='$_GET[id]'"); $qPatient=mysqli_query($con,$Patient); if(mysqli_affected_rows($qPatient) == 1) { echo "<script>alert('Delete successfully');</script> <script>window.location='Patient_Referralset.php</script>;</script>"; } } ?> <?php include("header.php"); $narayan=LoginManager::currentUser(); $usertype=LoginManager::getUserTypeByuname("$narayan"); $sql19 ="SELECT * FROM site_users WHERE userno='$usertype'"; $qsql19 = mysqli_query($con,$sql19); while($re12 = mysqli_fetch_array($qsql19)) { $sql78="SELECT count('id') FROM patient_referral WHERE entered_by='$re12[entered_by]' AND date(updated_at) = '$_GET[dateid]' "; $result45=mysqli_query($con,$sql78); $row1=mysqli_fetch_array($result45); echo"<h3 align='right'><b>Date</b> $_GET[dateid]</h3>"; if($row1[0]=='0') { echo"<h1 align='center'> No Record Found</h1>"; } echo "<h3><b>Total Patient : </b>$row1[0]</h3>"; mysqli_close($con); } ?> <table class="order-table table table-bordered table-hover css-serial"> <tr> <th>SR No</th> <th>Patient <br>Details</th> <th>Towords </th> <th><section class="content-header">Action</section> </th> <?php include("dbconnection.php"); require_once('../DBManager.php'); require_once('../LoginManager.php'); $narayan=LoginManager::currentUser(); $usertype=LoginManager::getUserTypeByuname("$narayan"); $today = date('Y-m-d'); $sql1 ="SELECT * FROM site_users WHERE userno='$usertype'"; $qsql1 = mysqli_query($con,$sql1); if($re = mysqli_fetch_array($qsql1)) { $sql2 ="SELECT * FROM patient_referral WHERE entered_by='$re[entered_by]' AND date(updated_at) = '$_GET[dateid]' "; $qsql2 = mysqli_query($con,$sql2); while($rs = mysqli_fetch_array($qsql2)) { $sql9 ="SELECT * FROM site_users WHERE userno='$rs[entered_by]'"; $qsql9 = mysqli_query($con,$sql9); while($re9 = mysqli_fetch_array($qsql9)) { $sql4 ="SELECT * FROM patient WHERE patientid='$rs[patientid]'"; $qsql4 = mysqli_query($con,$sql4); while($rp = mysqli_fetch_array($qsql4)) { echo " <tr> <td> </td> <td><b>UHID :</b>$rp[patientid] <br> <b>Name : </b>$rp[patientname] <br> <b>Age</b> : $rp[dob] <br><b>Sex : </b> $rp[gendor] </td> <td>Referred To : $rs[hs_referral] <br> <b>Referred On :</b> $rs[created_at]<br> <b>Referred By :</b> $re9[name]</td> <td><a href='EditPage_PatientReferralsetOutward.php?patientId=$rs[patientid]&prescriptionid=$rs[prescriptionid]&id=$rs[id]&hs_referral=$rs[hs_referral]'><i class='fa fa-pencil-square-o' aria-hidden='true' style='font-size:20px'></i></a> | <a href='Patient_Referralset.php?patientId=$rs[patientid]&prescriptionid=$rs[prescriptionid]&id=$rs[id]'><i class='fa fa-trash' aria-hidden='true' style='font-size:20px'></i></a> | <a href='ShowPage_PatientReferralsetOutward.php?patientId=$rs[patientid]&prescriptionid=$rs[prescriptionid]&id=$rs[id]&hs_referral=$rs[hs_referral]'><i class='fa fa-eye' aria-hidden='true' style='font-size:20px'></i></a></td> </tr> "; } } } } ?> </table>