Server IP : 162.240.98.243 / Your IP : 18.227.102.50 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('../DBManager.php'); require_once('../LoginManager.php'); require_once('../patientmanager.php'); if(isset($_POST['signup'])) { PatientManager::Suspected_Reaction("$_POST[prescriptionid]","$_POST[patientid]","$_GET[surgeryid]","$_POST[Minor]","$_POST[Major]","$_POST[Minor_Reaction]","$_POST[Major_Reaction]","$_POST[Specify]","$_POST[otherAnswer]","$_POST[otherAnswer_date]","$_POST[Name_Medicine]","$_POST[Treatment_Given]","$_POST[Outcome]","$_POST[Corrective_action]","$_POST[Recovery_time]","$_POST[entered_by]"); } ?> <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 charset="UTF-8"> <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 src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> function myFunction120() { var checkBox = document.getElementById("myCheck120"); var text = document.getElementById("text120"); if (checkBox.checked == true){ text.style.display = "block"; } else { text.style.display = "none"; } } function myFunction121() { var checkBox = document.getElementById("myCheck121"); var text = document.getElementById("text121"); if (checkBox.checked == true){ text.style.display = "block"; } else { text.style.display = "none"; } } $(document).ready(function() { $("input[type='radio']").change(function() { if ($(this).val() == "Death") { $("#otherAnswer").show(); } else { $("#otherAnswer").hide(); } }); }); $(document).ready(function() { $("input[type='radio']").change(function() { if ($(this).val() == "Other") { $("#other").show(); } else { $("#other").hide(); } }); }); </script> <style> .center { border: 1px solid grey; text-align:; } </style> <form name='signup' method='POST'> <div class='center'> <h3 align='center'>Suspected Adverse Drug Reaction</h3> <br> <br> <table id='example2' class='table table-bordered table-hover' width='100%'> <tr><td><h4 align='center'>Seriousness of Reaction</h4></td></tr> </table> <table id='example2' class='table table-bordered table-hover' width='100%'> <tr> <td width='25%'><span style="font-size: 20px">Minor Reaction </span></h3></td><td width='25%'><label class="switch"> <input name="Minor" type="checkbox" id="myCheck120" onclick="myFunction120()"> <span class="slider"></span> </label> </td> <td width='25%'><span style="font-size: 20px">Major Reaction </span></h3></td><td width='25%'><label class="switch"> <input name="Major" type="checkbox" id="myCheck121" onclick="myFunction121()"> <span class="slider"></span> </label> </td> <?php $sql ="SELECT * FROM addaspatient WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <input type='hidden' name='prescriptionid' value='$rs[prescriptionid]'> <input type='hidden' name='patientid' value='$rs[patientid]'> "; } ?> </tr> </table> <div id="text120" style="display:none"> <table id="example2" class="table table-bordered table-hover"> <tr><td width='50%'> Minor Reaction</td> <td width='50%'><select name='Minor_Reaction'> <option value='' >Minor Reaction</option> <option value='Fever'>Fever</option> <option value='Chills'>Chills</option> <option value='Skin_Rash'>Skin Rash</option> <option value='Urticaria'>Urticaria</option> <option value='Bodyache'>Bodyache</option> </select> </td> </tr> </table></div> <div id="text121" style="display:none"> <table id="example2" class="table table-bordered table-hover"> <tr> <tr> <div class="checkbox"> <input type="radio" name="Major_Reaction" value="Death"> <span>Death </span> </div> <div class="checkbox"> <input type="radio" name="Major_Reaction" value="Life threatening"> <span>Life threatening </span> </div> <div class="checkbox"> <input type="radio" name="Major_Reaction" value="Disability"> <span>Disability </span> </div> <div class="checkbox"> <input type="radio" name="Major_Reaction" value="Chest pain"> <span>Chest pain </span> </div> <div class="checkbox"> <input type="radio" name="Major_Reaction" value="Loin Pain"> <span>Loin Pain </span> </div> <div class="checkbox"> <input type="radio" name="Major_Reaction" value="Breathlessness"> <span>Breathlessness </span> </div> <div class="checkbox"> <input type="radio" name="Major_Reaction" value="Decreased urine Output"> <span>Decreased urine Output </span> </div> <div class="checkbox"> <input type="radio" name="Major_Reaction" value="Other"> <span>Other </span> </div> </td> </tr> </table></div> <div style="display:none;" name="other" id="other"> <table id="example2" class="table table-bordered table-hover"> <tr><td>Specify </td><td><input type='text' name='Specify' ></td></tr> </table> </div> <div style="display:none;" name="otherAnswer" id="otherAnswer"> <table id="example2" class="table table-bordered table-hover"> <tr><td>Date and time </td><td><input type='datetime-local' name='otherAnswer_date' ></td></tr> </table> </div> <table id="example2" class="table table-bordered table-hover"> <form name="signup" method="post"> <tr> <td width='50%'> Name of Medicine : </td> <td width='50%'><input type="text" placeholder="Name of Medicine" name="Name_Medicine"></td> </tr> <tr> <td width='50%'> Native description of Occurrence: </td> <td width='50%'><textarea name="Native_description" rows="2" cols="70"> </textarea></td> </tr> <tr> <td width='50%'> Treatment Given : </td> <td width='50%'><textarea name="Treatment_Given" rows="2" cols="70"> </textarea></td> </tr> <tr> <td width='50%'> Outcome: </td> <td width='50%'><select name='Outcome'> <option value='' >Outcome</option> <option value='Fatal'>Fatal</option> <option value='Used'>Used</option> <option value='Recovering'>Recovering</option> <option value='Unknown'>Unknown</option> <option value='Continuing'> Continuing </option> <option value='Recovered'> Recovered </option> <option value='Other'> Other </option> </select></td> </tr> <tr> <td width='50%'> Corrective And Preventive Action Taken : </td> <td width='50%'><textarea name="Corrective_action" rows="2" cols="70"> </textarea></td> </tr> <tr> <td width='50%'> Date and time of Recovery : </td> <td width='50%'><input type='datetime-local' name='Recovery_time'></td> </tr> <br> </table> <br> <br> <input type="submit" name="signup" value="Submit"> </form> </div> <script> n = new Date(); y = n.getFullYear(); m = n.getMonth() + 1; d = n.getDate(); document.getElementById("date").innerHTML = m + "/" + d + "/" + y; </script>