Server IP : 162.240.98.243 / Your IP : 3.136.233.153 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('../../DBManager.php'); require_once('../../LoginManager.php'); include 'drmenu.php'; include 'header.php'; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content="Dashboard"> <meta name="keyword" content="Dashboard, Bootstrap, Admin, Template, Theme, Responsive, Fluid, Retina"> <title>Hospital Dashboard</title> </head> <body> <div class='content-wrapper'> <!-- Content Header (Page header) --> <section class='content-header'> <h3><i class="fa fa-angle-right"></i> Manage Appointment </h3> <style> form{ margin: 20px 0; } form input, button{ padding: 5px; } table{ width: 100%; margin-bottom: 20px; border-collapse: collapse; } table, th, td{ border: 1px solid #cdcdcd; } table th, table td{ padding: 10px; text-align: left; } <style> table{ border: solid 1px gray; width: 100%; } </style> </head> <div id="container"> <table border="1"> <tbody> <tr> <th><div align="center">Date </div></th> <th><div align="center">UHID</div></th> <th><div align="center">Patients name </div></th> <th><div align="center">View Patient Details</div></th> <th><div align="center">Type of Appointment </div></th> <th><div align="center">Time Slot</div></th> <th><div align="center">Action</div></th> <th><div align="center">Timing </div></th> <th><div align="center">Send confirmation & Link </div></th> <th><div align="center">Status </div></th> </tr> </tbody> <?php $narayan=LoginManager::currentUser(); $usertype=LoginManager::getUserTypeByuname("$narayan"); $sql ="SELECT * FROM dr WHERE drid='$usertype'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $sqlpatient = "SELECT * FROM bookap WHERE drid='$usertype'"; $qsqlpatient = mysqli_query($con,$sqlpatient); $rspatient = mysqli_fetch_array($qsqlpatient); $sqldoctor = "SELECT * FROM patient WHERE patientid='$rs[patientid]'"; $qsqldoctor = mysqli_query($con,$sqldoctor); $rsdoctor = mysqli_fetch_array($qsqldoctor); echo " <tbody> <tr> <td> $rspatient[selectdate]</td> <td> $rspatient[patientid]</td> <td> $rspatient[patientname]</td> <td><a href='viewprese.php?prescription_id=$rs[0]&patientid=$rs[patientid]' >View</td> <td> $rspatient[VisitConsultant]</td> <td> $rspatient[SelectTime]</td> <td><select name='Action'> <option value='' disabled selected>Action</option> <option value='Available'>Available</option> <option value='Unavailable'>Unavailable</option> </select> </td> <td></td> <td></td> <td><select name='Status'> <option value='' disabled selected>Status</option> <option value='Confirmed'>Confirmed</option> <option value='Awaiting'>Awaiting</option> <option value='Cancelled'>Cancelled </option> <option value='reschedule'>reschedule</option> </select> </td> </tr> "; } ?> </tbody> <tfoot> </tfoot> </table> </div> <?php if(isset($_SESSION[doctorid])) { ?> <hr> <table> <tr> <td> <div align="center"><strong><a href="prescription.php?patientid=<?php echo $_GET[patientid]; ?>&appid=<?php echo $rsappointment[appointmentid]; ?>">Add Prescription records</a></strong></div> </td> </tr> </table> <script> $(function () { $("#example1").DataTable({ "responsive": true, "autoWidth": false, }); $('#example2').DataTable({ "paging": true, "lengthChange": false, "searching": false, "ordering": true, "info": true, "autoWidth": false, "responsive": true, }); }); </script> <?php } ?>