Server IP : 162.240.98.243 / Your IP : 13.58.51.228 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"); $target_dir = "uploads/"; $filename = basename($_FILES["Upload_Consent"]["name"]); $target_file = $target_dir . basename($_FILES["Upload_Consent"]["name"]); $uploadOk = 1; $imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION)); if(isset($_POST['GeneralConsent'])) { PatientManager::Anesthesiapavam("$_GET[prescriptionid]","$_GET[patientid]","$_GET[surgeryid]","$_POST[Patient_not_accepted]","$_POST[Patient_accepted]","$_POST[Anesthesia_procedure]","$filename","$_POST[entered_by]"); if (move_uploaded_file($_FILES["Upload_Consent"]["tmp_name"], $target_file)) { echo "The file ". basename( $_FILES["Upload_Consent"]["name"]). " has been uploaded."; } else { echo "Sorry, there was an error uploading your file."; } } ?> <!DOCTYPE html> <html lang="en"> <head><meta charset="ibm866"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('#GeneralConsent').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:; } </style> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> <title>Document</title> <script> function myFunction1035() { var checkBox = document.getElementById("myCheck1035"); var text = document.getElementById("text1035"); if (checkBox.checked == true){ text.style.display = "block"; } else { text.style.display = "none"; } } function myFunction2() { var checkBox = document.getElementById("myCheck2"); var text = document.getElementById("text2"); if (checkBox.checked == true){ text.style.display = "block"; } else { text.style.display = "none"; } } function myFunction3() { var checkBox = document.getElementById("myCheck3"); var text = document.getElementById("text3"); if (checkBox.checked == true){ text.style.display = "block"; } else { text.style.display = "none"; } } function myFunction4() { var checkBox = document.getElementById("myCheck4"); var text = document.getElementById("text4"); if (checkBox.checked == true){ text.style.display = "block"; } else { text.style.display = "none"; } } </script> <style> .center { border: 1px solid grey; text-align:; } </style> </head> <body> <div style = "display:none;" id = "loaderImg"> <div class="loader"> </div> </div> <form name="GeneralConsent" method="post" id="GeneralConsent" > <h2 align="center">Anesthesia Consent</h2> <br> <div class="center"> <table id="example2" class="table table-bordered table-hover"> <thead> <tr><td><span style="font-size: 20px">Patient not accepted for anesthesia </span></h3></td><td><label class="switch"> <input type="checkbox" name='Patient_not_accepted'> <span class="slider"></span> </label> </td> </tr> <tr><td><span style="font-size: 20px">Patient accepted for anesthesia & Explained</span></h3></td><td><label class="switch"> <input type="checkbox" name='Patient_accepted' id="myCheck1035" onclick="myFunction1035()"> <span class="slider"></span> </label> </td> </tr> </table> <div id="text1035" style="display:none"> <table id="example2" class="table table-bordered table-hover"> <tr> <td width='50%'> Type of Anesthesia Procedure: </td> <td width='50%'><select name="Anesthesia_procedure"> <option value="Local Anesthesia">Local Anesthesia</option> <option value="General Anesthesia">General Anesthesia</option> <option value="Spinal Anesthesia">Spinal Anesthesia</option> <option value="Combined Spinal Epidural Anesthesia">Combined Spinal Epidural Anesthesia </option> <option value="Epidural">Epidural</option> <option value="Nerve Block">Nerve Block </option> <option value="Stand By">Stand By</option> </select></td> </tr> <tr><td><div> <label for="item">Upload Consent<span>*</span></td><td><input name="Upload_Consent" type="file"> </div></td></tr> <tr> <td> <div> <Button style="height:20%;width:100%">Download Consent Formate </Button> </div></td> </tr> </table> </div> <input type="submit" name="GeneralConsent" value="Submit"> </div> </form> </body> </html>