Server IP : 162.240.98.243 / Your IP : 3.143.254.90 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 'header.php'; include("dbconnection.php"); ?> <?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); while($re = mysqli_fetch_array($qsql1)) { $sql2 ="SELECT * FROM site_users WHERE entered_by='$re[entered_by]' AND usertype='Hospital'"; $qsql2 = mysqli_query($con,$sql2); if($re1 = mysqli_fetch_array($qsql2)) { if(Hospital==$re1[usertype]) { ?> <?php include 'dashboarddocument.php'; ?> <?php } } } ?> <?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); while($re = mysqli_fetch_array($qsql1)) { $sql2 ="SELECT * FROM site_users WHERE entered_by='$re[entered_by]' AND usertype='LABORATORY'"; $qsql2 = mysqli_query($con,$sql2); if($re1 = mysqli_fetch_array($qsql2)) { if(LABORATORY==$re1[usertype]) { ?> <?php include 'patient_menu.php'; ?> <?php } } } ?> <?php session_start(); require_once("../patientmanager.php"); require_once("../DBManager.php"); include("dbconnection.php"); include("header.php"); if(isset($_POST[report])) { PatientManager::REPORTGenerated("$_GET[prescriptionid]","$_GET[patientid]","$_POST[requesttestid]","$_POST[Impression]","$_POST[Study_Reveals]","$_POST[Interpretation]","$_POST[marks_critical]","$_POST[entered_by]"); } ?> <?php include("dbconnection.php"); session_start(); $DisplayForm=True; $sql6 ="SELECT * FROM investigation WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]' And Investigation_type='Pathology' AND id='$_GET[id]'"; $qsql6 = mysqli_query($con,$sql6); while($rs6 = mysqli_fetch_array($qsql6)) { $sql61 ="SELECT * FROM labreports WHERE requesttestid='$rs6[id]'"; $qsql61 = mysqli_query($con,$sql61); if($rh1 = mysqli_fetch_array($qsql61)) { $DisplayForm=False; echo "<script>window.location='show_upate_report.php?prescriptionid=$rs6[prescriptionid]&patientid=$_GET[patientid]&id=$_GET[id]'</script>;</script>"; } if($DisplayForm) { ?> <style> .switch { position: relative; display: inline-block; width: 90px; height: 34px; } .switch input {display:none;} .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ca2222; -webkit-transition: .4s; transition: .4s; border-radius: 34px; } .slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; -webkit-transition: .4s; transition: .4s; border-radius: 50%; } input:checked + .slider { background-color: #2ab934; } input:focus + .slider { box-shadow: 0 0 1px #2196F3; } input:checked + .slider:before { -webkit-transform: translateX(26px); -ms-transform: translateX(26px); transform: translateX(55px); } /*------ ADDED CSS ---------*/ .slider:after { content:'No'; color: white; display: block; position: absolute; transform: translate(-50%,-50%); top: 50%; left: 50%; font-size: 10px; font-family: Verdana, sans-serif; } input:checked + .slider:after { content:'Yes'; } .center { border: 1px solid grey; text-align:; } </style> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <form name="report" method="post"> <h3 align='center'>Report</h3> <div class='center'> <?php $sql6 ="SELECT * FROM investigation WHERE patientid='$_GET[patientid]' And Investigation_type='Pathology' AND id='$_GET[id]'"; $qsql6 = mysqli_query($con,$sql6); if($rs6 = mysqli_fetch_array($qsql6)) { echo"<input type='hidden' name='requesttestid' value='$rs6[id]'>"; } ?> <table id='example2' class='table table-bordered table-hover' width='100%'><tr> <th>Patient Information</th></tr> </table> <table id='example2' class='table table-bordered table-hover' width='100%'> <?php $sql ="SELECT * FROM patient WHERE patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tr> <td width='50%'> Full Name : </td> <td width='50%'>$rs[patientname]</td> </tr> <tr> <td width='50%'> Phone : </td> <td width='50%'>$rs[numbers]</td> </tr> <tr> <td width='50%'> DOB: </td> <td width='50%'>$rs[dob]</td> </tr> <tr> <td width='50%'> Sex : </td> <td width='50%'>$rs[gendor]</td> </tr> "; echo "</td></tr>"; } ?> </table> </div> <br><br> <div class='center'> <table id='example2' class='table table-bordered table-hover'> <tr> <th>Test Description </th> <th>Unit </th> <th>Result </th> <th>Normal Value </th> </tr> <?php session_start(); include("dbconnection.php"); $sql ="SELECT * FROM investigation WHERE patientid='$_GET[patientid]' And Investigation_type='Pathology' AND id='$_GET[id]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $sql1 ="SELECT * FROM pathreportfinal WHERE requesttestid='$rs[id]'"; $qsql1 = mysqli_query($con,$sql1); while($rsi = mysqli_fetch_array($qsql1)) { $sql3 ="SELECT * FROM Test_Description_final WHERE testdesid='$rsi[testid]'"; $qsql3 = mysqli_query($con,$sql3); while($rspi = mysqli_fetch_array($qsql3)) { $sql2 ="SELECT * FROM patient WHERE patientid='$rs[patientid]'"; $qsql2 = mysqli_query($con,$sql2); while($rspi1 = mysqli_fetch_array($qsql2)) { echo" <tr> <td>$rspi[Test_Description] </td> <td>$rsi[unit]</td> <td>$rsi[result]</td> <td>";echo"$rsi[min]-$rsi[max] </td> </tr>"; } } } } ?> </table> </DIV> <br><br> <div class='center'><table id='example2' class='table table-bordered table-hover'> <tr><td width='50%'><span style="font-size: 20px">Critical</span></h3></td><td width='50%'><label class="switch"> <input name="marks_critical" value='Yes' type="checkbox"> <span class="slider"></span> </label> </td> </tr> <tr> <td width='50%'> Impression : </td> <td width='50%'><textarea name='Impression' rows="2" cols="80"> </textarea> </td> </tr> <tr> <td width='50%'> Study Reveals : </td> <td width='50%'><textarea name="Study_Reveals" rows="2" cols="80"> </textarea> </td> </tr> <tr> <td width='50%'> Interpretation : </td> <td width='50%'><textarea name="Interpretation" rows="2" cols="80"> </textarea> </td> </tr> </table> <div class='checkbox'> <b>Note</b></div> <div class='checkbox'><ol type='1'><li>Test results released pertain to the specimen submitted .</li> <li>All test results are dependent on the quality of the sample received by the Laboratory .</li> <li>Laboratory investigations are only a tool to facilitate in arriving at a diagnosis and should be clinically correlated by the Referring Physician .</li> <li>Sample repeats are accepted on request of Referring Physician within 7 days post reporting.</li> <li>Report delivery may be delayed due to unforeseen circumstances. Inconvenience is regretted.</li> <li>Certain tests may require further testing at additional cost.</li> </ol> </div> <input type='Submit' name='report' value='Submit'> <br> </div> </form> <?php } } ?>