Server IP : 162.240.98.243 / Your IP : 3.145.7.208 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"); include("header.php"); include("dashboarddocument.php"); if(isset($_POST['signup'])) { $sql ="UPDATE Decision_making SET Presented_all='$_POST[Presented_all]', Discussed_risks='$_POST[Discussed_risks]',Asked_patient='$_POST[Asked_patient]',patient_teach='$_POST[patient_teach]',Patient_demonstrated='$_POST[Patient_demonstrated]',Encouraged_patient='$_POST[Encouraged_patient]',Listened_actively='$_POST[Listened_actively]',decision_might='$_POST[decision_might]',Acknowledged='$_POST[Acknowledged]',preferred='$_POST[preferred]',additional='$_POST[additional]',consult='$_POST[consult]',Treating_Doctor='$_POST[Treating_Doctor]' 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."; } } ?> <h3 align='center'>Decision making </h3> <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"> <div class='center'> <form name='signup' method='post'> <table id='example2' class='table table-bordered table-hover'> <?php include("dbconnection.php"); $sql ="SELECT * FROM Decision_making WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { if($rs[Presented_all] == 'on'){ echo " <tr><td width='50%'> Presented all of the reasonable treatment/intervention options to patient: </td> <td width='50%'><label class='switch'> <input name='Presented_all' type='checkbox' checked> <span class='slider'></span> </label></td></tr>"; } else{ echo "<tr><td width='50%'> Presented all of the reasonable treatment/intervention options to patient: </td> <td width='50%'><label class='switch'> <input name='Presented_all' type='checkbox'> <span class='slider'></span> </label></td></tr>"; } if($rs[Discussed_risks] == 'on'){ echo " <tr><td width='50%'>Discussed the risks and benefits of each option with patient: </td> <td width='50%'><label class='switch'> <input name='Discussed_risks' type='checkbox' checked> <span class='slider'></span> </label></td></tr>"; } else{ echo "<tr><td width='50%'>Discussed the risks and benefits of each option with patient: </td> <td width='50%'><label class='switch'> <input name='Discussed_risks' type='checkbox'> <span class='slider'></span> </label></td></tr>"; } if($rs[Asked_patient] == 'on'){ echo " <tr><td width='50%'>Asked patient to review relevant decision tools (booklets/videos/Web sites): </td> <td width='50%'><label class='switch'> <input name='Asked_patient' type='checkbox' checked> <span class='slider'></span> </label></td></tr>"; } else{ echo "<tr><td width='50%'>Asked patient to review relevant decision tools (booklets/videos/Web sites): </td> <td width='50%'><label class='switch'> <input name='Asked_patient' type='checkbox'> <span class='slider'></span> </label></td></tr>"; } if($rs[patient_teach] == 'on'){ echo " <tr><td width='50%'>Asked patient to teach back what was discussed: </td> <td width='50%'><label class='switch'> <input name='patient_teach' type='checkbox' checked> <span class='slider'></span> </label></td></tr>"; } else{ echo "<tr><td width='50%'>Asked patient to teach back what was discussed: </td> <td width='50%'><label class='switch'> <input name='patient_teach' type='checkbox'> <span class='slider'></span> </label></td></tr>"; } if($rs[Patient_demonstrated] == 'on'){ echo " <tr><td width='50%'>Patient demonstrated an understanding of the options: </td> <td width='50%'><label class='switch'> <input name='Patient_demonstrated' type='checkbox' checked> <span class='slider'></span> </label></td></tr>"; } else{ echo "<tr><td width='50%'>Patient demonstrated an understanding of the options: </td> <td width='50%'><label class='switch'> <input name='Patient_demonstrated' type='checkbox'> <span class='slider'></span> </label></td></tr>"; } if($rs[Encouraged_patient] == 'on'){ echo " <tr><td width='50%'>Encouraged patient to talk about what matters most to him/her: </td> <td width='50%'><label class='switch'> <input name='Encouraged_patient' type='checkbox' checked> <span class='slider'></span> </label></td></tr>"; } else{ echo "<tr><td width='50%'>Encouraged patient to talk about what matters most to him/her: </td> <td width='50%'><label class='switch'> <input name='Encouraged_patient' type='checkbox'> <span class='slider'></span> </label></td></tr>"; } if($rs[Listened_actively] == 'on'){ echo " <tr><td width='50%'>Listened actively to patient and asked open-ended questions: </td> <td width='50%'><label class='switch'> <input name='Listened_actively' type='checkbox' checked> <span class='slider'></span> </label></td></tr>"; } else{ echo "<tr><td width='50%'>Listened actively to patient and asked open-ended questions: </td> <td width='50%'><label class='switch'> <input name='Listened_actively' type='checkbox'> <span class='slider'></span> </label></td></tr>"; } if($rs[decision_might] == 'on'){ echo " <tr><td width='50%'>Asked patient how his or her decision might impact their daily life: </td> <td width='50%'><label class='switch'> <input name='decision_might' type='checkbox' checked> <span class='slider'></span> </label></td></tr>"; } else{ echo "<tr><td width='50%'>Asked patient how his or her decision might impact their daily life: </td> <td width='50%'><label class='switch'> <input name='decision_might' type='checkbox'> <span class='slider'></span> </label></td></tr>"; } if($rs[Acknowledged] == 'on'){ echo " <tr><td width='50%'>Acknowledged and agreed with my patient on what matters most to him/her: </td> <td width='50%'><label class='switch'> <input name='Acknowledged' type='checkbox' checked> <span class='slider'></span> </label></td></tr>"; } else{ echo "<tr><td width='50%'>Acknowledged and agreed with my patient on what matters most to him/her: </td> <td width='50%'><label class='switch'> <input name='Acknowledged' type='checkbox'> <span class='slider'></span> </label></td></tr>"; } if($rs[preferred] == 'on'){ echo " <tr><td width='50%'>Asked patient what option he/she preferred: </td> <td width='50%'><label class='switch'> <input name='preferred' type='checkbox' checked> <span class='slider'></span> </label></td></tr>"; } else{ echo "<tr><td width='50%'>Asked patient what option he/she preferred: </td> <td width='50%'><label class='switch'> <input name='preferred' type='checkbox'> <span class='slider'></span> </label></td></tr>"; } if($rs[additional] == 'on'){ echo " <tr><td width='50%'>Asked patient, if he/she needed additional information: </td> <td width='50%'><label class='switch'> <input name='additional' type='checkbox' checked> <span class='slider'></span> </label></td></tr>"; } else{ echo "<tr><td width='50%'>Asked patient, if he/she needed additional information: </td> <td width='50%'><label class='switch'> <input name='additional' type='checkbox'> <span class='slider'></span> </label></td></tr>"; }if($rs[consult] == 'on'){ echo " <tr><td width='50%'>Asked patient, if he/she wanted to consult others before making a decision: </td> <td width='50%'><label class='switch'> <input name='consult' type='checkbox' checked> <span class='slider'></span> </label></td></tr>"; } else{ echo "<tr><td width='50%'>Asked patient, if he/she wanted to consult others before making a decision: </td> <td width='50%'><label class='switch'> <input name='consult' type='checkbox'> <span class='slider'></span> </label></td></tr>"; }if($rs[Treating_Doctor] == 'on'){ echo " <tr><td width='50%'>Patient and Treating Doctor agreed on the decision: </td> <td width='50%'><label class='switch'> <input name='Treating_Doctor' type='checkbox' checked> <span class='slider'></span> </label></td></tr>"; } else{ echo "<tr><td width='50%'>Patient and Treating Doctor agreed on the decision: </td> <td width='50%'><label class='switch'> <input name='Treating_Doctor' type='checkbox'> <span class='slider'></span> </label></td></tr>"; } } ?> </table> <button type="submit" name="signup"> <span style="color:WHITE">Update</SPAN></button> </form> </div>