Server IP : 162.240.98.243 / Your IP : 3.148.104.124 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"); include 'dashboarddocument.php'; include 'header.php'; if(isset($_POST['mlc'])) { $updated_at=date("F d, Y / h:i:s A"); $sql ="UPDATE Anesthesia_note SET Name_Anesthetist='$_POST[Name_Anesthetist]',Name_of_Surgeon='$_POST[Name_of_Surgeon]',member_1='$_POST[member_1]',member_2='$_POST[member_2]',Proposed_Surgery='$_POST[Proposed_Surgery]',Duration='$_POST[Duration]',Duration_time='$_POST[Duration_time]',Pre_Operative_Diagnosis='$_POST[Pre_Operative_Diagnosis]',Anesthesia_Type='$_POST[Anesthesia_Type]',Procedure_Executed='$_POST[Procedure_Executed]',Procedure_performed='$_POST[Procedure_performed]',Surgeon_Note='$_POST[Surgeon_Note]',Anesthetic_Note='$_POST[Anesthetic_Note]',Patient_Status='$_POST[Patient_Status]',Expected_Outcome='$_POST[Expected_Outcome]',Record_time_Death='$_POST[Record_time_Death]',Revesalr='$_POST[Revesalr]',Post_Op_advice='$_POST[Post_Op_advice]',updated_at='$updated_at' WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; if($qsql = mysqli_query($con,$sql)) { echo "<script>alert('Update successfully');</script><script>window.history.go(-2)</script>;</script>"; } else { echo "Sorry, there was an error uploading your file."; } } ?> <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:; } .box2{ display: none; } .center { border: 1px solid grey; text-align:; } .center2 { border: 5px solid grey; text-align:; } </style> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script> <form name="mlc" enctype="multipart/form-data" method="post" > <h3 align='center'>Anesthesia Consent</h3> <?php $sql ="SELECT * FROM Anesthesia_note WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { echo " <table id='example2' class='table table-bordered table-hover'> <tr> <td style='width:50%'> Name of Anesthetist:</td><td style='width:50%'><input type='text' name='Name_Anesthetist' value='$rs[Name_Anesthetist]' placeholder='Name of Anesthetist'></td> </tr> <tr> <td style='width:50%'> Name of Surgeon</td><td style='width:50%'><input type='text' value='$rs[Name_of_Surgeon]' name='Name_of_Surgeon' placeholder='Anesthesia Type'></td> </tr> <tr> <td style='width:50%'> Team member 1</td><td style='width:50%'><input type='text' value='$rs[member_1]' name='member_1' placeholder='Team member 1'></td> </tr> <tr> <td style='width:50%'> Team member 2</td><td style='width:50%'><input type='text' value='$rs[member_2]' name='member_2' placeholder='Team member 1'></td> </tr> <tr> <td style='width:50%'> Proposed Surgery</td><td style='width:50%'><input type='text' value='$rs[Proposed_Surgery]' name='Proposed_Surgery' placeholder='Proposed Surgery'></td> </tr> <tr> <td style='width:50%'> Duration </td><td style='width:50%'><input type='text' value='$rs[Duration]' name='Duration' placeholder='Duration'></td> </tr> <tr> <td style='width:50%'> Procedure time - In </td><td style='width:50%'><input type='time' value='$rs[Duration_time]' name='Duration_time' placeholder='Duration'></td> </tr> <tr> <td style='width:50%'> Pre-Operative Diagnosis </td><td style='width:50%'><textarea name='Pre_Operative_Diagnosis' rows='2' cols='70'>$rs[Pre_Operative_Diagnosis]</textarea></td> </tr> <tr> <td style='width:50%'> Anesthesia Type </td><td style='width:50%'><select name='Anesthesia_Type'> <option value='$rs[Anesthesia_Type]'>$rs[Anesthesia_Type]</option> <option value='GA'>GA</option> <option value='Spinal'>Spinal</option> <option value='CSE'>CSE (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> </table> <table class='table table-bordered table-hover'> <tr><td><h2 align='center'>Step Wise Procedure</td></tr> </table> <br> <table class='table table-bordered table-hover'> <tr> <td>Procedure Executed : </td><td> <input type='text' value='$rs[Procedure_Executed]' placeholder='Procedure Executed' name='Procedure_Executed'> </td> </tr> <tr> <td>Detail of Emergency procedure performed: </h3></td><td> <input type='text' value='$rs[Procedure_performed]' placeholder='Procedure Executed' name='Procedure_performed'> </td> </tr> <tr> <td>Surgeon Note : </h3></td><td> <textarea name='Surgeon_Note' rows='2' cols='70'>$rs[Surgeon_Note] </textarea> </td> </tr> <tr> <td>Anesthetic Note : </h3></td><td> <textarea name='Anesthetic_Note' rows='2' cols='70'>$rs[Anesthetic_Note] </textarea> </td> </tr> <tr> <tr> <td style='width:50%'>Patient Status: </td> <td style='width:50%'> <select name='Patient_Status'> <option value='$rs[Patient_Status]'>$rs[Patient_Status] </option> <option value='Under Observation'>Under Observation </option> <option value='Successful and Stable'>Successful and Stable </option> <option value='Critical and Unstable'>Critical and Unstable </option> <option value='Dead'>Dead </option> </select> </td> </tr> <tr> <td style='width:50%'>Expected Outcome: </td> <td style='width:50%'> <select name='Expected_Outcome'> <option value='$rs[Expected_Outcome]'>$rs[Expected_Outcome]</option> <option value='Good'>Good </option> <option value='Fair'>Fair </option> <option value='Poor(Not in case of Death)'>Poor(Not in case of Death) </option> </select> </td> </tr> <tr> <td>Record time of Death : </h3></td><td> <input type='text' value='$rs[Record_time_Death]' placeholder='Record time of Death' name='Record_time_Death'> </td> </tr> <tr> <td>Reversal : </h3></td><td> <textarea name='Revesalr' rows='3' cols='70'>$rs[Revesalr] </textarea> </td> </tr> <tr> <td>Post Op. advice: </h3></td><td> <textarea name='Post_Op_advice' rows='3' cols='70'>$rs[Post_Op_advice] </textarea> </td> </tr> </table> "; } ?> <button type="submit" name="mlc">Update</button> </form>