Server IP : 162.240.98.243 / Your IP : 3.144.17.137 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(); include("dbconnection.php"); require_once('../DBManager.php'); require_once("../LoginManager.php"); require_once('../patientmanager.php'); include 'header.php'; include 'dashboarddocument.php'; if(isset($_POST[oneexamnation])) { PatientManager::oneexamnation("$_GET[prescriptionid]","$_GET[patientid]","$_POST[Examination]","$_POST[eye]","$_POST[Result]","$_POST[left_result]","$_POST[entered_by]"); } if(isset($_POST[status])) { $sql ="UPDATE medicinede SET status='$_POST[status]' WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]' AND id='$_GET[id]'"; if($qsql = mysqli_query($con,$sql)) { echo "<script> window.history.go(-1)</script>"; } } ?> <?php include("dbconnection.php"); if(isset($_GET[delid])) { $sql ="DELETE FROM onexamnation WHERE id='$_GET[delid]'"; $qsql=mysqli_query($con,$sql); if(mysqli_affected_rows($con) == 1) { echo "<script>alert('Deleted successfully..');</script>"; echo "<script> window.location.replace('onexamnaton.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]');</script>"; } } ?> <style> .box{ display: none; } .box1{ display: none; } </style> <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script> <script> $(document).ready(function(){ $("select").change(function(){ $(this).find("option:selected").each(function(){ var optionValue = $(this).attr("value"); if(optionValue){ $(".box").not("." + optionValue).hide(); $("." + optionValue).show(); } else{ $(".box").hide(); } }); }).change(); }); </script> <script> $(document).ready(function(){ $("select").change(function(){ $(this).find("option:selected").each(function(){ var optionValue = $(this).attr("value"); if(optionValue){ $(".box1").not("." + optionValue).hide(); $("." + optionValue).show(); } else{ $(".box1").hide(); } }); }).change(); }); </script> </head> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <body> <h2 Align="center">Examination </h2> <table id="example2" class="table table-bordered table-hover"> <thead> <tr> <th>Examination</th> <th>Right Eye</th> <th>Left Eye</th> <th>Action</th> </tr> </thead> <?php $sql12 ="SELECT * FROM onexamnation WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]' AND Examination!='Aided / Present Glass' OR patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]' AND Examination!='Un-Aided'"; $qsql12 = mysqli_query($con,$sql12); while($rs12 = mysqli_fetch_array($qsql12)) { if($rs12[Examination]!=='Aided / Present Glass') { if($rs12[Examination]!=='Un-Aided') { echo " <tbody> <tr> <td> $rs12[Examination]</td> <td> $rs12[Result]</td> <td> $rs12[left_result]</td> <td> <a href='edit_show_oneexamnation.php?prescriptionid=$rs12[prescriptionid]&patientid=$rs12[patientid]&delid=$rs12[id]'><i class='fa fa-trash-o' style='font-size:20px;color:red;'></i></a></td> </tr> "; } } } ?> </tbody> <tfoot> </tfoot> </table> <br> <form name="oneexamnation" method="post"> <table id="example2" class="table table-bordered table-hover"> <thead> <tr><td> <select class="form-control" name="Examination" id="Examination"> <option value="" disabled selected>Examination </option> <option value="NCT"> NCT</option> <option value="AT">AT</option> <option value="BASE LINE IOP (With Glasses)">BASE LINE IOP (With Glasses)</option> <option value="BASE LINE IOP (Without Glasses)">BASE LINE IOP (Without Glasses)</option> <option value="CCT">CCT</option> <option value="UCVA">UCVA</option> <option value="DSPH">DSPH</option> <option value="DCLY">DCLY</option> <option value="Axis">Axis</option> <option value="PGVA">PGVA</option> <option value="PHVA">PHVA</option> <option value="Vision (With Glasses)">Vision (With Glasses) </option> <option value="Vision (Without Glasses)">Vision (Without Glasses)</option> <option value="Vision (with lens)">Vision (with lens)</option> <option value="CSL">CSL</option> <option value="Retinoscopy">Retinoscopy</option> <option value="Squint">Squint</option> <option value="fundus">fundus</option> <option value="Top con">Top con</option> <option value="Auto ref">Auto ref</option> <option value="Specular">Specular</option> <option value="A Scan">A Scan</option> <option value="B scan">B scan</option> <option value="Adnexa">Adnexa</option> <option value="Ant Segment">Ant Segment</option> <option value="Pachy">Pachy</option> <option value="Pupil">Pupil</option> <option value="Gonioscop ">Gonioscop </option> </select> </td><td> <input type="text" placeholder="Result" name="Result" id="Result" class="form-control"/> </td><td> <input type="text" placeholder="Result" name="left_result" id="Result" class="form-control"/> </td> </tr> </thead> </table> <input type="submit" value="Add More" name="oneexamnation"> </form> </div> </body> </html>