Server IP : 162.240.98.243 / Your IP : 18.117.189.228 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'; require_once("../DBManager.php"); require_once("../LoginManager.php"); include 'header.php'; include 'menur.php'; if(isset($_POST['signup'])) { LoginManager::opdmatrics("$_POST[adminid]","$_POST[Regular]","$_POST[Oncall]","$_POST[drid]","$_POST[drname]","$_POST[Specialization]","$_POST[regno]","$_POST[VideoConsultation]","$_POST[Video_fee]","$_POST[Teleconsultation]","$_POST[Tele_fee]","$_POST[VisitConsultant]","$_POST[Visit_fee]","$_POST[entered_by]"); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Admin | Dashboard</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 myFunction1() { var checkBox = document.getElementById("myCheck1"); var text = document.getElementById("text1"); 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> <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> </head> <body> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <form method="post" name="signup" enctype="multipart/form-data"> <h3 align="center">OPD Matrix</h3> <table id="example2" class="table table-bordered table-hover"> <tr><td> <span style="font-size: 20px">Regular (Consultation) </span></h3></td><td><label class="switch"> <input name="Regular" id='myCheck' onclick='myFunction()' type="checkbox"> <span class="slider"></span> </label> </td> <td> <span style="font-size: 20px">On call (Consultation)</span></h3></td><td><label class="switch"> <input id='myCheck5' onclick='myFunction5()' name="Oncall" type="checkbox"> <span class="slider"></span> </label> </td> </tr> </table> <div id='text' style='display:none' class='w3-row-padding'> <h3><i class="fa fa-angle-right"></i> Regular Consultation </h3> <form method="post" name="signup" enctype="multipart/form-data"> <?php $narayan=LoginManager::currentUser(); $usertype=LoginManager::getUserTypeByuname("$narayan"); $sql ="select * from admin where id='$usertype'"; $qsql = mysqli_query($con,$sql); while($qsql2=mysqli_fetch_array($qsql)) { echo" <input type='hidden' name='adminid' value='$qsql2[id]'> "; } ?> <label for="item">Name of Consultation <span>*</span></label> <?php $narayan=LoginManager::currentUser(); $usertype=LoginManager::getUserTypeByuname("$narayan"); $sql ="select * from dr where entered_by='$usertype'"; $qsql = mysqli_query($con,$sql); echo "<select onchange='loaddr(this.value)' name='drid'> <option value='' disabled selected>Name of Consultation</option>"; while($qsql2=mysqli_fetch_array($qsql)) { echo"<option value='$qsql2[drid]'>$qsql2[Drname]</option>"; } ?> </select> <p id="divst"> <label for="address">Select Consultation<span>*</span></label> <select size="1" name="Selectstate"> <option value="" disabled selected>Select Consultation First</option> </select> </p> <div class='checkbox'> <input name='VideoConsultation' id='myCheck2' onclick='myFunction2()' type='checkbox'><span>Video Consultation </span></div> <div id='text2' style='display:none' class='w3-row-padding'> <label for="item"> Video Consultation fee</label> <input class="input100" type="text" name="Video_fee" placeholder="Consultation fee"> </div> <div class='checkbox'> <input name='Teleconsultation' id='myCheck3' onclick='myFunction3()' type='checkbox'>Tele Consultation</div> <div id='text3' style='display:none' class='w3-row-padding'> <label for="item">Tele Consultation fee</label> <input class="input100" type="text" name="Tele_fee" placeholder="Consultation fee"> </div> <div class='checkbox'> <input name='VisitConsultant' id='myCheck4' onclick='myFunction4()' type='checkbox'>Face to face Consultation </div> <div id='text4' style='display:none' class='w3-row-padding'> <label for="item">Face to face Consultation fee</label> <input class="input100" type="text" name="Visit_fee" placeholder="Consultation fee"></div></div> <div id='text5' style='display:none' class='w3-row-padding'> <h3><i class="fa fa-angle-right"></i> On call (Consultation) </h3> <label>Name of Consultation</label> <input type="text" placeholder="Name of Consultation" name="drname"> <label for="item"> Specialty<span>*</span></label> <select name="Specialization" class="form-control"> <option value="" disabled selected>Choose Specialty </option> <option> General Physician</option> <option>General Medicine</option> <option> General Surgery</option> <option> ENT</option> <option> Opthalmology/Eye Care</option> <option>Obstetrics & Gynaecology</option> <option>Orthopaedics</option> <option>Paediatric </option> <option>Paediatric Surgery</option> <option> Genitourinary Surgery</option> <option>Neurology</option> <option> Neuro Surgery</option> <option> Medical Oncology</option> <option> Surgical Oncology</option> <option>Paediatrics Cancer</option> <option> Radiation Oncology</option> <option> Burns,Plastic& reconstructive Surgery</option> <option>Polytrauma</option> <option> Dental Surgery</option> <option>Critical Care Unit</option> <option>Paediatrics</option> <option> Neonatology</option> <option> Cardiology</option> <option>Cardio Thoracic Surgery</option> <option>Nephrology</option> <option>Chest diseases and respiratory medicine (Pulmonology)</option> </select> <label>Reg No.</label> <input type="text" placeholder="Reg No" name="regno"> <div class='checkbox'> <input name='VideoConsultation' id='myCheck2' onclick='myFunction2()' type='checkbox'><span>Video Consultation </span></div> <div id='text2' style='display:none' class='w3-row-padding'> <label for="item"> Video Consultation fee</label> <input class="input100" type="text" name="Video_fee" placeholder="Consultation fee"> </div> <div class='checkbox'> <input name='Teleconsultation' id='myCheck3' onclick='myFunction3()' type='checkbox'>Tele Consultation</div> <div id='text3' style='display:none' class='w3-row-padding'> <label for="item">Tele Consultation fee</label> <input class="input100" type="text" name="Tele_fee" placeholder="Consultation fee"> </div> <div class='checkbox'> <input name='VisitConsultant' id='myCheck4' onclick='myFunction4()' type='checkbox'>Face to face Consultation </div> <div id='text4' style='display:none' class='w3-row-padding'> <label for="item">Face to face Consultation fee</label> <input class="input100" type="text" name="Visit_fee" placeholder="Consultation fee"></div> </div> <input type="submit" name="signup" id="signup" value="Submit"> </div> </div> </div> </div> <div class="clear"></div> </div> </div> </section> </form> <script> function loaddr(stid) { if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp = new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { document.getElementById("divst").innerHTML = this.responseText; } }; xmlhttp.open("GET","loaddr.php?stid="+stid,true); xmlhttp.send(); } </script>