Server IP : 162.240.98.243 / Your IP : 3.22.70.206 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("../patientmanager.php"); require_once("../DBManager.php"); if(isset($_POST['Final_Decision'])) { PatientManager::FinalDecision("$_GET[prescriptionid]","$_GET[patientid]","$_POST[symptoms_fever]","$_POST[difficulty_breathing]","$_POST[country_days]","$_POST[other_cities]","$_POST[two_weeks]","$_POST[health_facility]","$_POST[entered_by]"); } ?> <style> .switch { position: relative; display: inline-block; width: 130px; height: 34px; } .switch input {display:none;} .slider5{ position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ca2222; -webkit-transition: .4s; transition: .4s; border-radius: 24px; } .slider5:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px; background-color: white; -webkit-transition: .4s; transition: .4s; border-radius: 50%; } input:checked + .slider5 { background-color: #2ab934; } input:focus + .slider5 { box-shadow: 0 0 1px #2196F3; } input:checked + .slider5:before { -webkit-transform: translateX(26px); -ms-transform: translateX(26px); transform: translateX(55px); } /*------ ADDED CSS ---------*/ .slider5:after { content:'Denied'; color: white; display: block; position: absolute; transform: translate(-50%,-50%); top: 50%; left: 50%; font-size: 10px; font-family: Verdana, sans-serif; } input:checked + .slider5:after { content:'Accepted'; } </style> <table id="example2" class="table table-bordered table-hover"> <thead> <tr> <div class='card-header d-flex p-0'> <ul class='nav nav-pills ml-auto p-2'> <th><strong>Investigation/Treatment</strong></th> <th><strong>Decision Made </strong></th> </tr> </thead> <?php $sql ="SELECT * FROM SharedDecision WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $sql1 ="SELECT * FROM finaldecision WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]' AND requesttestid='$rs[id]'"; $qsql1 = mysqli_query($con,$sql1); if($rs1 = mysqli_fetch_array($qsql1)) { echo " <tbody><input type='hidden' name='prescriptionid[]' value='$_GET[prescriptionid]'> <input type='hidden' name='patientid[]' value='$_GET[patientid]'> <input type='hidden' name='requesttestid[]' value='$rs[id]'> <tr> <td width='50%'> $rs[Investigation]</td> <td width='50%'> Accept </td> </tr> "; } } ?> </tr> </table> <table id="example2" class="table table-bordered table-hover"> <div style = "display:none;" id = "loaderImg"> <div class="loader"> </div> </div> <form name='FinalDecision' id="FinalDecision" method="POST"> <!--<form action="newfinaldecision.php" id="FinalDecision" method="POST"> --> <?php $sql ="SELECT * FROM SharedDecision WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $sql1 ="SELECT * FROM finaldecision WHERE patientid!='$_GET[patientid]' AND prescriptionid!='$_GET[prescriptionid]' AND requesttestid!='$rs[id]'"; $qsql1 = mysqli_query($con,$sql1); if($rs1 = mysqli_fetch_array($qsql1)) { echo " <tbody><input type='hidden' name='prescriptionid[]' value='$_GET[prescriptionid]'> <input type='hidden' name='patientid[]' value='$_GET[patientid]'> <input type='hidden' name='requesttestid[]' value='$rs[id]'> <tr> <td width='50%'> $rs[Investigation]</td> <td width='50%'> <label class='switch'> <input name='Decision[]' type='checkbox'> <span class='slider5'></span> </label> </td> </tr> "; } } ?> </tr> </thead> </tbody> <tfoot> </tfoot> </table> <input type="submit" value="Submit"> </form> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('#FinalDecision').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>