Server IP : 162.240.98.243 / Your IP : 3.145.85.29 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'; require_once('../DBManager.php'); require_once('../patientmanager.php'); if(isset($_POST[drnote])) { $updated_at=date("F d, Y / h:i:s A"); $sql ="UPDATE potential SET treatment_Facility='$_POST[treatment_Facility]',Mode_Treatment='$_POST[Mode_Treatment]',Plan_Of_Care='$_POST[Plan_Of_Care]',operative_date='$_POST[operative_date]', 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."; } } ?> <script> function myFunction1031() { var checkBox = document.getElementById("myCheck1031"); var text = document.getElementById("text1031"); if (checkBox.checked == true){ text.style.display = "block"; } else { text.style.display = "none"; } } </script> <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: 24px; } .slider:before { position: absolute; content: ""; height: 10px; width: 10px; left: 2px; bottom: 2px; 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(46px); -ms-transform: translateX(46px); transform: translateX(55px); } /*------ ADDED CSS ---------*/ .slider:after { content:'Unavailable'; color: white; display: block; position: absolute; transform: translate(-50%,-50%); top: 50%; left: 50%; font-size: 9px; font-family: Verdana, sans-serif; } input:checked + .slider:after { content:'Available'; } .box{ display: none; } .center { border: 1px solid grey; text-align:; } </style> <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script> <script> $(document).ready(function(){ $("select").change(function(){ $(this).find("option:selected").each(function(){ var optionValue = $(this).attr("value"); if(optionValue){ $(".box").not("." + optionValue).hide(); $("." + optionValue).show(); } else{ $(".box").hide(); } }); }).change(); }); </script> <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <form name="drnote" method="post"> <table id="example2" class="table table-bordered table-hover"> <?php $sql ="SELECT * FROM potential WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { if($rs[treatment_Facility] == 'Available'){ echo" <tr><td> <span style='font-size: 20px'> Treatment Facility Option </span></h3></td><td><label class='switch'> <input name='treatment_Facility' value='Available' type='checkbox' checked> <span class='slider'></span> </label> </td> </tr> "; } else{ echo"<tr><td> <span style='font-size: 20px'> Treatment Facility Option </span></h3></td><td><label class='switch'> <input name='treatment_Facility' value='Available' id='myCheck1031' onclick='myFunction1031()' type='checkbox'> <span class='slider'></span> </label> </td> </tr>"; } echo" <tr><td> <span style='font-size: 20px'> Mode of Treatment</span></h3></td><td> <select name='Mode_Treatment'> <option value='$rs[Mode_Treatment]'>$rs[Mode_Treatment]</option> <option value='Not Required'>Not Required</option> <option value='Explained-Accepted-to-Continue'>Explained & Accepted to Continue</option> <option value='Explained & Denied'>Explained & Denied </option> </select> </td> </tr> <tr class='Explained-Accepted-to-Continue box'> <td width='50%'>Plan Of Care<textarea name='Plan_Of_Care' rows='2' cols='50'>$rs[Plan_Of_Care]</textarea></td></tr> <tr> <td height='62'> <span style='font-size: 20px'>Operative procedure date : </span></td> <td><input type='date' value='$rs[operative_date]' placeholder='Operative procedure date' name='operative_date'></td> </tr> </table> "; } ?> <input type="submit" name="drnote" id="drnote" value="Submit" /> </form> </body> </html>