Server IP : 162.240.98.243 / Your IP : 18.116.65.130 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 include("dbconnection.php"); ?> <div class='center'> <h3 align='center'>Timeline</h3> <!-- /.card-header --> <div class="card-body"> <table id="example2" class="table table-bordered table-hover"> <thead> <tr> <th><strong>Date</strong></th> <th><strong>Diagnosis </strong></th> <th><strong>View</strong></th> </tr> </thead> <?php require_once('../DBManager.php'); require_once('../LoginManager.php'); require_once('../patientmanager.php'); $narayan=LoginManager::currentUser(); $harilal=LoginManager::getUserTypeByuname("$narayan"); $sql1 ="SELECT * FROM site_users WHERE userno='$harilal'"; $qsql1 = mysqli_query($con,$sql1); if($rh1 = mysqli_fetch_array($qsql1)) { $sql ="SELECT * FROM addaspatient WHERE patientid='$_GET[patientid]' AND hospitalid='$rh1[entered_by]' AND typevisit='OPD' OR patientid='$_GET[patientid]' AND hospitalid='$rh1[entered_by]' AND typevisit='Opd_Emergency' "; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $sqlpatient = "SELECT * FROM opdslip WHERE prescriptionid='$rs[prescriptionid]' AND patientid='$rs[patientid]'"; $qsqlpatient = mysqli_query($con,$sqlpatient); $rspatient = mysqli_fetch_array($qsqlpatient); { $sqldoctor = "SELECT * FROM admin WHERE id='$rs[hospitalid]'"; $qsqldoctor = mysqli_query($con,$sqldoctor); $rsdoctor = mysqli_fetch_array($qsqldoctor); { if($rspatient[Admission_diagnosis]!='') { echo " <tbody> <tr> <td> $rs[created_at]</td> <td> $rspatient[Admission_diagnosis]</td> <td><a target='_blank' href='printall.php?prescriptionid=$rs[prescriptionid]&patientid=$rs[patientid]' >View</td> </tr> "; } } } } } ?> </tbody> <tfoot> </tfoot> </table> </div></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 } ?>