Server IP : 162.240.98.243 / Your IP : 3.138.120.136 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("../patientmanager.php"); require_once("../DBManager.php"); include 'header.php'; include 'dashboarddocument.php'; if(isset($_POST['signup'])) { PatientManager::transferreferal("$_GET[prescriptionid]","$_GET[patientid]","$_POST[Transfer_IPD]","$_POST[Word]","$_POST[Bed]","$_POST[Referred_To]","$_POST[Name_Hospital]","$_POST[Name_of_Consultant]","$_POST[followup]","$_POST[followup_date]","$_POST[enteredby]"); } ?> <!DOCTYPE html> <html lang="en"> <head> <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> function myFunction() { var checkBox = document.getElementById("myCheck"); var text = document.getElementById("text"); if (checkBox.checked == true){ text.style.display = "block"; } else { text.style.display = "none"; } } function myFunction2() { var checkBox = document.getElementById("myCheck2"); var text = document.getElementById("text2"); if (checkBox.checked == true){ text.style.display = "block"; } else { text.style.display = "none"; } } function myFunction3() { var checkBox = document.getElementById("myCheck3"); var text = document.getElementById("text3"); if (checkBox.checked == true){ text.style.display = "block"; } else { text.style.display = "none"; } } function myFunction4() { var checkBox = document.getElementById("myCheck4"); var text = document.getElementById("text4"); if (checkBox.checked == true){ text.style.display = "block"; } else { text.style.display = "none"; } } function myFunction5() { var checkBox = document.getElementById("myCheck5"); var text = document.getElementById("text5"); if (checkBox.checked == true){ text.style.display = "block"; } else { text.style.display = "none"; } } </script> </head> <body> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <form name="signup" method="post" > <fieldset> <legend> <p> <h3>Transfer & Refral</h3> </legend> </p> <?php $sql ="SELECT * FROM Request_for_Admission WHERE patient='patientid'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <div><label for='item'>Hospital name<span></span></label><input type='text' value='rs[patientid]' name='patientid'> </div> "; } ?> <div class="checkbox"> <input type="checkbox" name="Transfer_IPD" id="myCheck3" onclick="myFunction3()"><span>Transfer to IPD </span> </div> <div id="text3" style="display:none" > <div><label> Ward </label> <select name="Ward" id="select2"> <option value="" disabled selected>Ward</option> <?php $narayan=LoginManager::currentUser(); $usertype=LoginManager::getUserTypeByuname("$narayan"); $sql1 ="SELECT * FROM site_users WHERE userno='$harilal'"; $qsql1 = mysqli_query($con,$sql1); while($rh1 = mysqli_fetch_array($qsql1)) { $sqldoctor= "SELECT * FROM department WHERE entered_by='$rh1[entered_by]' AND name='DP_Intensive_care' OR entered_by='$rh1[entered_by]' AND name='DP_General_ward' OR entered_by='$rh1[entered_by]' AND name='DP_SEMI_Pvt_ward' OR entered_by='$rh1[entered_by]' AND name='DP_Pvt_Ward'"; $qsqldoctor = mysqli_query($con,$sqldoctor); while($rsdoctor = mysqli_fetch_array($qsqldoctor)) { echo "<option value='$rsdoctor[name]-$rsdoctor[department_section]'>$rsdoctor[name]-$rsdoctor[department_section]</option>"; } } ?> </select></div> <div><label> Bed</label> <select name='Ward' id='select2'> <option value='' disabled selected> </option> </select></div> </div> <div class="checkbox"> <input type="checkbox" name="Referred_To" id="myCheck4" onclick="myFunction4()"><span>Referred To </span> </div> <div id="text4" style="display:none" > <div> <label for="item">Name of Hospital<span>*</span><input name="Name_Hospital" type="text"> </div> <div> <label for="item">Name of Consultant<span>*</span><input name="Name_of_Consultant" type="text"> </div> </div> <div class="checkbox"> <input type="checkbox" name="followup" id="myCheck5" onclick="myFunction5()"><span>follow-up </span> </div> <div id="text5" style="display:none" > <div> <label for="item">follow-up Date<span>*</span><input name="followup_date" type="date"> </div> </div> <input type="submit" name="signup" value="Submit"> </div> </form> </body> </html>