Server IP : 162.240.98.243 / Your IP : 18.225.254.192 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(); require_once("../LoginManager.php"); require_once("../DBManager.php"); include("dbconnection.php"); include("header.php"); include("dashboarddocument.php"); if(isset($_POST['signup'])) { $sql ="UPDATE PatientInformation SET Diagnosis='$_POST[Diagnosis]',Investigation='$_POST[Investigation]',Duration_hospital='$_POST[Duration_hospital]',Estimatedexpenses='$_POST[Estimatedexpenses]',Possible_outcome='$_POST[Possible_outcome]',Invited_patient='$_POST[Invited_patient]',Explained_importance='$_POST[Explained_importance]',Discussed_essential='$Discussed_essential' 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"> <h3 align='center'>Patient Information</h3> <form name='signup' method='post'> <table id='example2' class='table table-bordered table-hover'> <?php $sql ="SELECT * FROM PatientInformation WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { if($rs[Diagnosis] == 'on'){ echo " <tr><td width='50%'>Diagnosis/ Nature of disease: </td> <td width='50%'><label class='switch'> <input name='Diagnosis' type='checkbox' checked> <span class='slider'></span> </label></td></tr>"; } else{ echo "<tr><td width='50%'>Diagnosis/ Nature of disease: </td> <td width='50%'><label class='switch'> <input name='Diagnosis' type='checkbox'> <span class='slider'></span> </label></td></tr>"; } if($rs[Investigation] == 'on'){ echo " <tr><td width='50%'>Investigation / treatment that may need to undergo: </td> <td width='50%'><label class='switch'> <input name='Investigation' type='checkbox' checked> <span class='slider'></span> </label></td></tr>"; } else{ echo "<tr><td width='50%'>Investigation / treatment that may need to undergo: </td> <td width='50%'><label class='switch'> <input name='Investigation' type='checkbox'> <span class='slider'></span> </label></td></tr>"; } if($rs[Duration_hospital] == 'on'){ echo " <tr><td width='50%'>Duration of hospital stay: </td> <td width='50%'><label class='switch'> <input name='Duration_hospital' type='checkbox' checked> <span class='slider'></span> </label></td></tr>"; } else{ echo "<tr><td width='50%'>Duration of hospital stay: </td> <td width='50%'><label class='switch'> <input name='Duration_hospital' type='checkbox'> <span class='slider'></span> </label></td></tr>"; } if($rs[Estimatedexpenses] == 'on'){ echo " <tr><td width='50%'>Estimated expenses of Treatment: </td> <td width='50%'><label class='switch'> <input name='Estimatedexpenses' type='checkbox' checked> <span class='slider'></span> </label></td></tr>"; } else{ echo "<tr><td width='50%'>Estimated expenses of Treatment: </td> <td width='50%'><label class='switch'> <input name='Estimatedexpenses' type='checkbox'> <span class='slider'></span> </label></td></tr>"; } if($rs[Possible_outcome] == 'on'){ echo " <tr><td width='50%'>Possible outcome of treatment: </td> <td width='50%'><label class='switch'> <input name='Possible_outcome' type='checkbox' checked> <span class='slider'></span> </label></td></tr>"; } else{ echo "<tr><td width='50%'>Possible outcome of treatment: </td> <td width='50%'><label class='switch'> <input name='Possible_outcome' type='checkbox'> <span class='slider'></span> </label></td></tr>"; } if($rs[Invited_patient] == 'on'){ echo " <tr><td width='50%'>Invited patient to participate in the decisionmaking process: </td> <td width='50%'><label class='switch'> <input name='Invited_patient' type='checkbox' checked> <span class='slider'></span> </label></td></tr>"; } else{ echo "<tr><td width='50%'>Invited patient to participate in the decisionmaking process: </td> <td width='50%'><label class='switch'> <input name='Invited_patient' type='checkbox'> <span class='slider'></span> </label></td></tr>"; } if($rs[Explained_importance] == 'on'){ echo " <tr><td width='50%'>Explained the importance of patient’s role in the decisionmaking process: </td> <td width='50%'><label class='switch'> <input name='Explained_importance' type='checkbox' checked> <span class='slider'></span> </label></td></tr>"; } else{ echo "<tr><td width='50%'>Explained the importance of patient’s role in the decisionmaking process: </td> <td width='50%'><label class='switch'> <input name='Explained_importance' type='checkbox'> <span class='slider'></span> </label></td></tr>"; } if($rs[Discussed_essential] == 'on'){ echo " <tr><td width='50%'>Discussed the essential issues about patient’s condition: </td> <td width='50%'><label class='switch'> <input name='Discussed_essential' type='checkbox' checked> <span class='slider'></span> </label></td></tr>"; } else{ echo "<tr><td width='50%'>Discussed the essential issues about patient’s condition: </td> <td width='50%'><label class='switch'> <input name='Discussed_essential' type='checkbox'> <span class='slider'></span> </label></td></tr>"; } } ?> </table> <button type="submit" name="signup"> <span style="color:WHITE">Update</SPAN></button> </form>