Server IP : 162.240.98.243 / Your IP : 52.15.196.15 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("../dbconnection.php"); $sql2 ="SELECT * FROM save_activity WHERE srno='$_GET[srno]'"; $qsql2 = mysqli_query($con,$sql2); if($re1 = mysqli_fetch_array($qsql2)) { include 'dashboarddocument.php'; } ?> <?php include 'fileheader.php'; ?> <?php include("dbconnection.php"); $sqlpatient = "SELECT * FROM save_activity WHERE prescriptionid='$_GET[prescriptionid]' AND discription='Examination <br> Glass Advices Distance'"; $qsqlpatient = mysqli_query($con,$sqlpatient); if($rsp = mysqli_fetch_array($qsqlpatient)) { if($rsp[discription]== 'Examination <br> Glass Advices Distance'){ echo"<h3 align='center'>Glass Advices Distance</h3>"; echo"<h4>Doc.no : $rsp[srno]</h4><br>"; } else{ echo ""; } } $occui=$con->query("SELECT * FROM occutracker WHERE occuid='".$_GET['occuid']."'"); $rowOccui=$occui->fetch_assoc(); ?> <br> <h4>Examination Id: <b><?php echo $_GET['occuid'] ?> / <?php echo $rowOccui['occu'] ?></b></h4> <table id="example2" class="table table-bordered table-hover"> <thead> <tr> <th>Glass Advices Distance</th> <th>Right Eye</th> <th>Left Eye</th> </tr> </thead> <?php include("dbconnection.php"); $sql ="SELECT * FROM Glass_Advices WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]' AND Examination_type='Distance' AND occuid='$_GET[occuid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tbody> <tr> <td> $rs[SPH]</td> <td> $rs[SPH_right]</td> <td> $rs[SPH_left]</td> </tr> <tr> <td> $rs[CYL]</td> <td> $rs[CYL_right]</td> <td> $rs[CYL_left]</td> </tr> <tr> <td> $rs[AXIS]</td> <td> $rs[AXIS_right]</td> <td> $rs[AXIS_left]</td> </tr> <tr> <td> $rs[VISION]</td> <td> $rs[VISION_right]</td> <td> $rs[VISION_left]</td> </tr> "; } ?> </tbody> </table> <?php $sql ="SELECT * FROM Glass_Advices WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]' AND Examination_type='Distance' AND occuid='$_GET[occuid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $sql1 ="SELECT * FROM site_users WHERE userno='$rs[entered_by]'"; $qsql1 = mysqli_query($con,$sql1); if($rs1 = mysqli_fetch_array($qsql1)) { echo"<h5><b> Created & Updated </b><h5> <table id='example2' class='table table-bordered table-hover'> <tr><td width=50%><b>By :</b>$rs1[name] </b><td width='50%'><b>At :</b> $rs[created_at] </tr>"; } } ?> </table> <?php include("dbconnection.php"); $sqlpatient = "SELECT * FROM save_activity WHERE prescriptionid='$_GET[prescriptionid]' AND discription='Examination <br> Glass Advices Distance' AND occuid='$_GET[occuid]'"; $qsqlpatient = mysqli_query($con,$sqlpatient); if($rsp = mysqli_fetch_array($qsqlpatient)) { if($rsp[discription]== 'Examination <br> Glass Advices near'){ echo"<h3 align='center'>Glass Advices Near</h3>"; echo"<h4>Doc.no : $rsp[srno]</h4>"; } else{ echo ""; } } ?> <?php include("dbconnection.php"); $sql ="SELECT * FROM Glass_Advices WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]' AND Examination_type='near' AND occuid='$_GET[occuid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { ?> <table id="example2" class="table table-bordered table-hover"> <thead> <tr> <th>Glass Advices Near</th> <th>Right Eye</th> <th>Left Eye</th> </tr> </thead> <?php include("dbconnection.php"); $sql ="SELECT * FROM Glass_Advices WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]' AND Examination_type='near' AND occuid='$_GET[occuid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tbody> <tr> <td> $rs[SPH]</td> <td> $rs[SPH_right]</td> <td> $rs[SPH_left]</td> </tr> <tr> <td> $rs[CYL]</td> <td> $rs[CYL_right]</td> <td> $rs[CYL_left]</td> </tr> <tr> <td> $rs[AXIS]</td> <td> $rs[AXIS_right]</td> <td> $rs[AXIS_left]</td> </tr> <tr> <td> $rs[VISION]</td> <td> $rs[VISION_right]</td> <td> $rs[VISION_left]</td> </tr> "; } ?> </tbody> </table> <?php $sql ="SELECT * FROM Glass_Advices WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]' AND Examination_type='near' AND occuid='$_GET[occuid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $sql1 ="SELECT * FROM site_users WHERE userno='$rs[entered_by]'"; $qsql1 = mysqli_query($con,$sql1); if($rs1 = mysqli_fetch_array($qsql1)) { echo"<h5><b> Created & Updated </b><h5> <table id='example2' class='table table-bordered table-hover'> <tr><td width=50%><b>By :</b>$rs1[name] </b><td width='50%'><b>At :</b> $rs[created_at] </tr>"; } } ?> </table> <?php } ?>