Server IP : 162.240.98.243 / Your IP : 18.188.96.39 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/www/login.easenup.in/ |
Upload File : |
<?php session_start(); require_once('../dbconnection.php'); require_once('../DBManager.php'); require_once('../LoginManager.php'); include 'menu.php'; include 'header.php'; $DisplayForm=True; $narayan=LoginManager::currentUser(); $hari=LoginManager::getUserTypeByuname("$narayan"); $sql ="SELECT * FROM services WHERE adminid='$hari'"; $qsql = mysqli_query($con,$sql); if($rh = mysqli_fetch_array($qsql)) { $DisplayForm=False; echo "<script>window.location='show_Services.php'</script>"; } if($DisplayForm) { ?> <?php if(isset($_POST['signup'])) { $narayan=LoginManager::currentUser(); $hari=LoginManager::getUserTypeByuname("$narayan"); $adminid=$hari; $Emergency=$_POST['Emergency']; $Physiotherapy=$_POST['Physiotherapy']; $Pharmacy=$_POST['Pharmacy']; $Blood=$_POST['Blood']; $radiologybc=$_POST['radiologybc']; $xray=$_POST['xray']; $ECG=$_POST['ECG']; $radiologyad=$_POST['radiologyad']; $CT=$_POST['CT']; $MRI=$_POST['MRI']; $TMT=$_POST['TMT']; $ECHO=$_POST['ECHO']; $PFT=$_POST['PFT']; $Ultrasonograph=$_POST['Ultrasonograph']; $Laboratory=$_POST['Laboratory']; $Ambulance=$_POST['Ambulance']; $Sperm_bank=$_POST['Sperm_bank']; $Eyebank=$_POST['Eyebank']; $ART=$_POST['ART']; $Surrogacy=$_POST['Surrogacy']; $Optical=$_POST['Optical']; $PharmcyName=$_POST['PharmcyName']; $GSTNo=$_POST['GSTNo']; $LIC_No=$_POST['LIC_No']; $msg=mysqli_query($con,"insert into services(adminid,Emergency,Physiotherapy,Pharmacy,Blood,radiologybc,xray,ECG,radiologyad,CT,MRI,TMT,ECHO,PFT,Ultrasonograph,Laboratory,Ambulance,Sperm_bank,Eyebank,ART,Surrogacy,Optical,pharmacyName,GSTNo,LicNO) values('$adminid','$Emergency','$Physiotherapy','$Pharmacy','$Blood','$radiologybc','$xray','$ECG','$radiologyad','$CT','$MRI','$TMT','$ECHO','$PFT','$Ultrasonograph','$Laboratory','$Ambulance','$Sperm_bank','$Eyebank','$ART','$Surrogacy','$Optical','$PharmcyName','$GSTNo','$LIC_No')"); if($msg) { echo "<script>alert('Services Added successfully');</script><script>window.location='hospital_Manpower.php'</script>;</script>"; } } ?> <!DOCTYPE html> <html> <title>Testing new </title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <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"; } } </script> <script> $('input[type="checkbox"]').change(function(e) { var checked = $(this).prop("checked"), container = $(this).parent(), siblings = container.siblings(); container.find('input[type="checkbox"]').prop({ indeterminate: false, checked: checked }); function checkSiblings(el) { var parent = el.parent().parent(), all = true; el.siblings().each(function() { let returnValue = all = ($(this).children('input[type="checkbox"]').prop("checked") === checked); return returnValue; }); if (all && checked) { parent.children('input[type="checkbox"]').prop({ indeterminate: false, checked: checked }); checkSiblings(parent); } else if (all && !checked) { parent.children('input[type="checkbox"]').prop("checked", checked); parent.children('input[type="checkbox"]').prop("indeterminate", (parent.find('input[type="checkbox"]:checked').length > 0)); checkSiblings(parent); } else { el.parents("li").children('input[type="checkbox"]').prop({ indeterminate: true, checked: false }); } } checkSiblings(container); }); </script> <style> .checkbox input, .children input { width: auto; margin: 6px 10px 0 0; } </style> <body> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <form name="signup" method="post"> <h2 style="text-align: center;"> Services offered </h2> <div class="container-fluid"> <div class="row"> <div class="col-sm-1"></div> <div class="col-sm-10"> <div class="checkbox"> <input type="checkbox" name="Emergency" id="GeneralSurgery"> <span>Emergency Department </span> </div><div class="checkbox"> <input type="checkbox" name="Physiotherapy" id="GeneralSurgery"> <span>Physiotherapy </span> </div> <div class="checkbox" style="margin-left: -20px;"> <label> <input type="checkbox" class='checkbox1' name="Pharmacy" id="ENT"> <span>Pharmacy </span> </label> <p id="yesBday" style="display: none"> <input type="text" id="" class="form-control" name="PharmcyName" placeholder="Pharmcy Name" /><br> <input type="text" id="" class="form-control" name="GSTNo" placeholder="GST No" /><br> <input type="text" id="" class="form-control" name="LIC_No" placeholder="LIC No" /> </p> </div> <!-- <div class="checkbox">--> <!-- <input type="checkbox" name="Pharmacy" id="ENT">--> <!-- <span>Pharmacy </span>--> <!--</div>--> <div class="checkbox"> <input type="checkbox" name="Blood" id="Opthalmology"> <span>Blood bank </span> </div> <h3>Radiology</h3> <div class="checkbox"> <input type="checkbox" name="xray"> <span>X-Ray </span> </div> <div class="checkbox"> <input type="checkbox" name="ECG"> <span>ECG </span> </div><div class="checkbox"> <input type="checkbox" name="CT"> <span>CT </span> </div><div class="checkbox"> <input type="checkbox" name="MRI"> <span>MRI</label> </div> <div class="checkbox"> <input type="checkbox" name="TMT"> <span>TMT</label> </div> <div class="checkbox"> <input type="checkbox" name="ECHO"> <span>ECHO</label> </div> <div class="checkbox"> <input type="checkbox" name="PFT"> <span>PFT</label> </div> <div class="checkbox"> <input type="checkbox" name="Ultrasonograph"> <span>Ultrasonograph</label> </div> <div class="checkbox"> <input type="checkbox" name="Laboratory"> <span>Laboratory services </span> </div><div class="checkbox"> <input type="checkbox" name="Ambulance" id="Ambulance"> <span>Ambulance service </span> </div> <div class="checkbox"> <input type="checkbox" name="Sperm_bank" id="Ambulance"> <span>Sperm bank</span> </div> <div class="checkbox"> <input type="checkbox" name="Eyebank" id="Ambulance"> <span>Eyebank </span> </div> <div class="checkbox"> <input type="checkbox" name="ART" id="Ambulance"> <span>ART Centre </span> </div> <div class="checkbox"> <input type="checkbox" name="Surrogacy" id="Ambulance"> <span>Surrogacy Centre </span> </div> <div class="checkbox"> <input type="checkbox" name="Optical" id="Ambulance"> <span>Optical shop </span> </div> <input type="submit" value="Save & Next" name="signup"> </div> <div class="col-sm-1"></div> </div> </div> </div> </div> </form> <?php } ?> </body> </html> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script> $(".checkbox1").click(function() { if ($(this).is(":checked")) { $(this).parent().parent().find('p').show(); //$("#yesAnn").show(); } else { $(this).parent().parent().find('p').hide(); } }); </script>