Server IP : 162.240.98.243 / Your IP : 3.145.61.170 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("../patientmanager.php"); require_once("../DBManager.php"); include("dbconnection.php"); include("dashboarddocument.php"); ?> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <table id="example2" class="table table-bordered table-hover"> <thead> <div class='card-header d-flex p-0'> <ul class='nav nav-pills ml-auto p-2'> <tr> <th><strong>Investigation Details</strong></th> <th><strong>Specimen </strong></th> <th><strong>Result</strong></th> <th><strong>Report</strong></th> </tr> <?php include("dbconnection.php"); $sql ="SELECT * FROM investigation WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]' And Investigation_type='Pathology' AND Priority_slip='Urgent'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $sqlpatient1 = "SELECT * FROM list_Investigation WHERE ivid='$rs[ivid]'"; $qsqlpatient1 = mysqli_query($con,$sqlpatient1); while($rsn = mysqli_fetch_array($qsqlpatient1)) { echo "<tr style='background-color:#FFF2F2'> <td><b>Created At :</b>$rs[created_at] <br><b>Raised_at :</b> $rs[Raised_at]<br><b>Investigation type :</b> "; $sqlpatient1 = "SELECT * FROM list_Investigation WHERE ivid='$rs[ivid]'"; $qsqlpatient1 = mysqli_query($con,$sqlpatient1); while($rsn = mysqli_fetch_array($qsqlpatient1)) { echo" $rsn[Investigation]"; } echo"</td>"; if ($rs[Result]=='Done') { echo"<td>Report Created</td> "; } else if(is_numeric($rs[Result])) { echo"<td>Specimen Collected<br>Container Number :$rs[Result]</td>"; }else { echo"<td><u><a href='create_sample.php?patientid=$rs[patientid]&prescriptionid=$rs[prescriptionid]&id=$rs[id]'>Collect sample </a></u></td> "; } if (is_numeric($rs[Result])) { echo"<td>Pending</td> "; }else { echo"<td>$rs[Result]</td>"; } $DisplayForm=True; $sql1 ="SELECT * FROM pathreportfinal WHERE requesttestid='$rs[id]'"; $qsql1 = mysqli_query($con,$sql1); while($rh1 = mysqli_fetch_array($qsql1)) { $DisplayForm=False; echo ""; } if($DisplayForm) { echo" <td> <u><a href='createreport.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]&id=$rs[id]'>Create Result </a></u><br><br><u><a href='upload_path_report.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]&id=$rs[id]'> Upload Report</a></u></span> </td> </tr> "; } else{ echo "<td><a href='createreport.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]&id=$rs[id]' target='_blank'>View Result</a><br><br><u><a href='upate_report.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]&id=$rs[id]'> Update Report</a></u></span><br><br></span></td></tr> "; } } } ?> <?php include("dbconnection.php"); $sql ="SELECT * FROM investigation WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]' And Investigation_type='Pathology' AND Priority_slip='Normal'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo "<tr> <td><b>Created At :</b>$rs[created_at] <br><b>Raised_at :</b> $rs[Raised_at]<br><b>Investigation type :</b>$rs[Investigation_type]-"; $sqlpatient1 = "SELECT * FROM list_Investigation WHERE ivid='$rs[ivid]'"; $qsqlpatient1 = mysqli_query($con,$sqlpatient1); while($rsn = mysqli_fetch_array($qsqlpatient1)) { echo" $rsn[Investigation]"; } echo"</td> "; if ($rs[Result]=='Done') { echo"<td>Report Created</td> "; } else if(is_numeric($rs[Result])) { echo"<td>Specimen Collected<br>Container Number :$rs[Result]</td>"; }else { echo"<td><u><a href='create_sample.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]&id=$rs[id]'>Collect sample </a></u></td> "; } if (is_numeric($rs[Result])) { echo"<td>Pending</td> "; }else { echo"<td>$rs[Result]</td>"; } $DisplayForm=True; $sql1 ="SELECT * FROM pathreportfinal WHERE requesttestid='$rs[id]'"; $qsql1 = mysqli_query($con,$sql1); while($rh1 = mysqli_fetch_array($qsql1)) { $DisplayForm=False; echo ""; } if($DisplayForm) { echo" <td> <u><a href='createreport.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]&id=$rs[id]'>Create Result </a></u><br><br><u><a href='upload_path_report.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]&id=$rs[id]'> Upload Report</a></u></span> </td> </tr> "; } else{ echo "<td><a href='createreport.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]&id=$rs[id]' target='_blank'>View Result</a><br><br><u><a href='upate_report.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]&id=$rs[id]'> Update Report</a></u></span><br><br></span></td></tr> "; } } ?> </div>