Server IP : 162.240.98.243 / Your IP : 18.118.95.35 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/www/login.easenup.in/FO/ |
Upload File : |
<?php ?> <div class="clearfix"> <div class="pull-right tableTools-container"></div> </div> <select class="form-control" onchange="drugload(this.value)" name='Admitted_Under'> <option disabled selected>Admitted Under</option> <?php $db->where('userno',$userno); $site=$db->getOne('site_users'); if($site){ $sqldoctor= $db->rawQuery("SELECT * FROM site_users WHERE usertype='Doctor' and entered_by='$site[entered_by]'"); foreach($sqldoctor as $rsdoctor) { echo "<option value='$rsdoctor[userno]'>$rsdoctor[name]</option>"; } } ?> </select> <div class="table-header"> Out Patient </div> <!-- div.table-responsive --> <!-- div.dataTables_borderWrap --> <div id="myMainDiv"> <div class="result"> <!-- PAGE CONTENT BEGINS --> <table id="myRefreshDiv" class="table table-striped table-bordered table-hover"> <thead> <tr> <th>SR No</th> <th>Patient Details</th> <th>Admitted_Under</th> <th>Details </th> </tr> </thead> <tbody> <?php $count='0'; $today = date('Y-m-d'); $today = date('Y-m-d'); $db->where('userno',$userno); $site=$db->getOne('site_users'); if($site){ $sql2 =$db->rawQuery("SELECT * FROM discharge WHERE hospital_id='$site[entered_by]' AND typevisit='OPD' AND date(admissiondate) = '$today' AND status='Admission' OR hospital_id='$site[entered_by]' AND typevisit='Opd_Emergency' AND date(admissiondate) = '$today' AND status='Admission' OR hospital_id='$site[entered_by]' AND typevisit='OPD_Routine' AND date(admissiondate) = '$today' AND status='Admission' ORDER BY id ASC"); foreach($sql2 as $rs) { $count++; if($rs['typevisit']=='OPD'){ $a='OPD'; } if($rs['typevisit']=='Opd_Emergency'){ $a='OPD Private'; } if($rs['typevisit']=='OPD_Routine'){ $a='OPD Routine'; } $sql3 =$db->rawQuery("SELECT * FROM addaspatient WHERE prescriptionid='$rs[prescriptionid]'"); foreach($sql3 as $rsr) { $sql9 =$db->rawQuery("SELECT * FROM site_users WHERE userno='$rsr[Admitted_Under]'"); foreach($sql9 as $re9) { $sql4 =$db->rawQuery("SELECT * FROM patient WHERE patientid='$rsr[patientid]'"); foreach($sql4 as $rp) { if($rsr['triage'] == 'Immediate_Care'){ echo " <tr style='background-color:#cd3301; font-weight: 900;color:white'> <td>$count "; $DisplayForm=True; $rh =$db->rawQuery("SELECT * FROM potential WHERE prescriptionid='$rs[prescriptionid]'"); if($rh) { $DisplayForm=False; echo " <i style='font-size:16px;color:Green' class='fa fa-check' aria-hidden='true'></i>"; } echo"</td> <td>UHID :$rp[patientid]<br> Patient Name<br>$rp[patientname]</td> <td> $re9[name]<br> ("; if($rsr['casetype']=='Pregnancy' ) { echo"Pregnancy"; } else { echo"$rsr[casetype]"; } echo" ) <br> $a </td> <td><a href='Patient/treatment_timline.php?prescriptionid=$rs[prescriptionid]&patientid=$rs[patientid]'>View</td> </tr> "; } elseif($rsr['triage'] == 'Urgent_Care'){ echo " <tr style='background-color:#ffff00; font-weight: 900;'> <td>$count "; $DisplayForm=True; $rh =$db->rawQuery("SELECT * FROM potential WHERE prescriptionid='$rs[prescriptionid]'"); if($rh) { $DisplayForm=False; echo " <i style='font-size:16px;color:Green' class='fa fa-check' aria-hidden='true'></i>"; } echo"</td> <td>UHID :$rp[patientid] <br> Patient Name<br>$rp[patientname]</td> <td> $re9[name] <br> ("; if($rsr['casetype']=='Pregnancy' ) { echo"Pregnancy"; } else { echo"$rsr[casetype]"; } echo" ) <br> $a </td> <td><a href='Patient/treatment_timline.php?prescriptionid=$rs[prescriptionid]&patientid=$rs[patientid]'>View</td> </tr> "; } else { echo " <tr style='background-color:#00fe81; font-weight: 900;'> <td>$count "; $DisplayForm=True; $rh =$db->rawQuery("SELECT * FROM potential WHERE prescriptionid='$rs[prescriptionid]'"); if($rh) { $DisplayForm=False; echo " <i style='font-size:16px;color:Green' class='fa fa-check' aria-hidden='true'></i>"; } echo" </td> <td>UHID :$rp[patientid] <br> Patient Name<br>$rp[patientname]</td> <td> $re9[name] <br> ("; if($rsr['casetype']=='Pregnancy') { echo"Pregnancy"; } else { echo"$rsr[casetype]"; } echo" ) <br> $a</td> <td><a href='Patient/treatment_timline.php?prescriptionid=$rs[prescriptionid]&patientid=$rs[patientid]'>View</td> </tr> "; } } } } } } ?> </tbody> <tfoot> </tfoot> </table> </div> </div> <span style="background-color:#eef202"><b>Urgent Care</b></span> <span style="background-color:#05f76a"><b>Normal care</b></span> <span style="background-color:#eb020e"><b>Immediate Care</b></span>