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("../LoginManager.php"); require_once("../DBManager.php"); include("workdeskmenu.php"); include("header.php"); ?> <style> .p{ color: black; font-weight: 900; } /* Automatic Serial Number Row */ .css-serial { font-weight: 900; color: black; counter-reset: serial-number; /* Set the serial number counter to 0 */ } .css-serial td:first-child:before { counter-increment: serial-number; /* Increment the serial number counter */ content: counter(serial-number); /* Display the counter */ } </style> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <!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>OPD Matrix</title> <link rel="stylesheet" href="assets/style.css"> <body> <center> <h3 class='code'> OPD Matrix </h3> <a href="#" style="float:right;font-size:20px;margin-top:-23px;"><i class="fa fa-info-circle" aria-hidden="true" ></i></a></center> <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> <h3><input type="search" class="light-table-filter" data-table="order-table" placeholder="Search" /></h3> <div id="container"> <table border="1" class="order-table"> <tbody> <tr> <th><div align="center">Doctor Details </div></th> <th><div align="center">Visit Details</div></th> <th><div align="center">Action </div></th> </tr> </tbody> <?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)) { $sql2 ="SELECT * FROM dr WHERE entered_by='$re[entered_by]'"; $qsql2 = mysqli_query($con,$sql2); while($rs = mysqli_fetch_array($qsql2)) { echo " <tbody> <tr> <td><b>Created at:</b>$rs[created_at]<br> <b>Name :</b> $rs[Drname]<br> <b>Reg.no :</b>$rs[regi_nm] <br> <b>Contact no :</b>$rs[numbers]</td> <td> <br><b>Type of Visit :</b>$rs[typevisit]<br> <b><u>Consultation</u> <br> "; $sql12 ="SELECT * FROM dr WHERE drid='$rs[drid]'"; $qsql12 = mysqli_query($con,$sql12); if($rs12 = mysqli_fetch_array($qsql12)) { if($rs12[Teleconsultation] == 'on'){ echo " Tele Consultation <i class='fa fa-check' aria-hidden='true'></i><br>"; } else{ echo "Tele Consultation <i class='fa fa-times' aria-hidden='true'></i><br>"; } if($rs12[VideoConsultation] == 'on'){ echo " Video Consultation <i class='fa fa-check' aria-hidden='true'></i><br>"; } else{ echo "Video Consultation <i class='fa fa-times' aria-hidden='true'></i><br>"; } if($rs12[VisitConsultant] == 'on'){ echo "In Patient Consultation<i class='fa fa-check' aria-hidden='true'></i><br>"; } else{ echo "In Patient Consultation <i class='fa fa-times' aria-hidden='true'></i><br>"; } if($rs12[ipd] == 'on'){ echo "Visit Consultation<i class='fa fa-check' aria-hidden='true'></i><br>"; } else{ echo "Visit Consultation<i class='fa fa-times' aria-hidden='true'></i><br>"; } } $sql13 ="SELECT * FROM dr WHERE drid='$rs[drid]'"; $qsql13 = mysqli_query($con,$sql13); if($rs13 = mysqli_fetch_array($qsql13)) { if($rs13[Teleconsultation] == 'on'){ echo " <b>Tele Consultation Charges:</b>$rs13[Tele_fee] <br>"; } else{ echo ""; } if($rs13[VideoConsultation] == 'on'){ echo " <b>Video Consultation Charges:</b>$rs13[Video_fee] <br>"; } else{ echo ""; } if($rs13[VisitConsultant] == 'on'){ echo " <b>In Patient Consultation Charges:</b>$rs13[Visit_fee] <br>"; } else{ echo ""; } if($rs12[ipd] == 'on'){ echo "Visit Consultation Charges: $rs12[ipd_visit_fee]<br>"; } else{ echo ""; } echo" </td> <td><a href='dr_profile.php?drid=$rs13[drid]'>View</a> <br> <br><a href='dropdmatrix.php?drid=$rs13[drid]'>Edit</a></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 } ?>