Server IP : 162.240.98.243 / Your IP : 18.117.188.138 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('../dbconnection.php'); include('header.php'); include('menu.php'); if(isset($_POST['signup'])) { $sql="UPDATE medi_condition_final SET medicalcon='$_POST[medicalcon]',Status='$_POST[Status]' WHERE medicalcoid='$_GET[medicalcoid]'"; if($qsql = mysqli_query($con,$sql)) { echo "<script>alert('Update successfully');</script><script> window.history.go(-2)</script>"; } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('#myForm').submit(function() { $('#loaderImg').show(); return true; }); }); </script> <style> #loaderImg { position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; border: 10px solid grey; border-radius: 50%; border-top: 10px solid black; width: 100px; height: 100px; animation: spin 1s linear infinite; } @keyframes spin { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } </style> <style> .box{ display: none; } </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> </head> <body> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <div style = "display:none;" id = "loaderImg"> <div class="loader"> </div> </div> <form name="signup" method="post" id="myForm" enctype="multipart/form-data"> <?php $sql ="SELECT * FROM medi_condition_final WHERE patientid='$_GET[patientid]' AND medicalcoid='$_GET[medicalcoid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <div class='account-details'> <div><label for='item'>Medical Condition<span></span></label><input type='text' value='$rs[medicalcon]' name='medicalcon' readonly> </div> <div><label for='item'>Status<span></span></label> <select name='Status'> <option value='$rs[Status]' disabled selected>$rs[Status]</option> <option value='Active'>Active</option> <option value='Cured'>Cured</option> </select> </div> </div> "; } ?> <input type="submit" value="Update" name="signup"> </form> </div></div>