Server IP : 162.240.98.243 / Your IP : 18.221.136.142 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/FO/Patient/ |
Upload File : |
<?php session_start(); include("../../dbconnection.php"); require_once("../../../LoginManager.php"); require_once("../../../DBManager.php"); require_once("../../../patientmanager.php"); $title='Patient'; if(!isset($_SESSION['uname'])) { echo "<script>alert('Session Expired..');</script><script>window.location='../index.php';</script>"; } $narayan=LoginManager::currentUser(); $harilal=LoginManager::getUserTypeByuname("$narayan"); $sql ="SELECT * FROM site_users WHERE userno='$harilal'"; $qsql = mysqli_query($con,$sql); $rs = mysqli_fetch_array($qsql); $entered_by="$harilal"; date_default_timezone_set("Asia/Kolkata"); //India time (GMT+5:30) $Start_date=date('d-m-Y'); $Start_time=date('H:i:s'); $sql ="SELECT * FROM hco WHERE adminid='$rs[entered_by]'"; $qsql = mysqli_query($con,$sql); $rs1 = mysqli_fetch_array($qsql); $usertype=$rs1['adminid']; if(isset($_POST[signup])) { PatientManager::testpatientfinal26MARC("$_POST[patientid]","$_POST[hospitalid]","$_POST[typevisit]","$_POST[casetype]","$_POST[Admitted_Under]","$_POST[triage]","$_POST[P_Mode]","$_POST[entered_by]","$_POST[dATE]","$_POST[time]"); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta charset="utf-8" /> <title><?php echo $title ?></title> <meta name="description" content="Common form elements and layouts" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" /> <!-- bootstrap & fontawesome --> <link rel="stylesheet" href="../assets/css/bootstrap.min.css" /> <link rel="stylesheet" href="../assets/font-awesome/4.5.0/css/font-awesome.min.css" /> <!-- page specific plugin styles --> <link rel="stylesheet" href="../assets/css/jquery-ui.custom.min.css" /> <link rel="stylesheet" href="../assets/css/chosen.min.css" /> <link rel="stylesheet" href="../assets/css/bootstrap-datepicker3.min.css" /> <link rel="stylesheet" href="../assets/css/bootstrap-timepicker.min.css" /> <link rel="stylesheet" href="../assets/css/daterangepicker.min.css" /> <link rel="stylesheet" href="../assets/css/bootstrap-datetimepicker.min.css" /> <link rel="stylesheet" href="../assets/css/bootstrap-colorpicker.min.css" /> <!-- text fonts --> <link rel="stylesheet" href="../assets/css/fonts.googleapis.com.css" /> <!-- ace styles --> <link rel="stylesheet" href="../assets/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style" /> <!--[if lte IE 9]> <link rel="stylesheet" href="../assets/css/ace-part2.min.css" class="ace-main-stylesheet" /> <![endif]--> <link rel="stylesheet" href="../assets/css/ace-skins.min.css" /> <link rel="stylesheet" href="../assets/css/ace-rtl.min.css" /> <!--[if lte IE 9]> <link rel="stylesheet" href="../assets/css/ace-ie.min.css" /> <![endif]--> <!-- inline styles related to this page --> <!-- ace settings handler --> <script src="../assets/js/ace-extra.min.js"></script> <!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries --> <!--[if lte IE 8]> <script src="../assets/js/html5shiv.min.js"></script> <script src="../assets/js/respond.min.js"></script> <![endif]--> </head> <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> <body class="no-skin"> <?php include('../includes/header.php'); ?> <div class="main-container ace-save-state" id="main-container"> <script type="text/javascript"> try{ace.settings.loadState('main-container')}catch(e){} </script> <div id="sidebar" class="sidebar responsive ace-save-state"> <script type="text/javascript"> try{ace.settings.loadState('sidebar')}catch(e){} </script> <div class="sidebar-shortcuts" id="sidebar-shortcuts"> <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large"> <button class="btn btn-success"> <i class="ace-icon fa fa-signal"></i> </button> <button class="btn btn-info"> <i class="ace-icon fa fa-pencil"></i> </button> <button class="btn btn-warning"> <i class="ace-icon fa fa-users"></i> </button> <button class="btn btn-danger"> <i class="ace-icon fa fa-cogs"></i> </button> </div> <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini"> <span class="btn btn-success"></span> <span class="btn btn-info"></span> <span class="btn btn-warning"></span> <span class="btn btn-danger"></span> </div> </div><!-- /.sidebar-shortcuts --> <?php include('../includes/PatientMenu.php'); ?><!-- /.nav-list --> <div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse"> <i id="sidebar-toggle-icon" class="ace-icon fa fa-angle-double-left ace-save-state" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i> </div> </div> <div class="main-content"> <div class="main-content-inner"> <div class="breadcrumbs ace-save-state" id="breadcrumbs"> <ul class="breadcrumb"> <li> <i class="ace-icon fa fa-home home-icon"></i> <a href="#">Home</a> </li> <li> <a href="#">Add</a> </li> <li class="active"><?php echo $title ?></li> </ul><!-- /.breadcrumb --> <div class="nav-search" id="nav-search"> <form class="form-search"> <span class="input-icon"> <input type="text" placeholder="Search ..." class="nav-search-input" id="nav-search-input" autocomplete="off" /> <i class="ace-icon fa fa-search nav-search-icon"></i> </span> </form> </div><!-- /.nav-search --> </div> <div class="page-content"> <div class="ace-settings-container" id="ace-settings-container"> <div class="btn btn-app btn-xs btn-warning ace-settings-btn" id="ace-settings-btn"> <i class="ace-icon fa fa-cog bigger-130"></i> </div> <div class="ace-settings-box clearfix" id="ace-settings-box"> <div class="pull-left width-50"> <div class="ace-settings-item"> <div class="pull-left"> <select id="skin-colorpicker" class="hide"> <option data-skin="no-skin" value="#438EB9">#438EB9</option> <option data-skin="skin-1" value="#222A2D">#222A2D</option> <option data-skin="skin-2" value="#C6487E">#C6487E</option> <option data-skin="skin-3" value="#D0D0D0">#D0D0D0</option> </select> </div> <span> Choose Skin</span> </div> <div class="ace-settings-item"> <input type="checkbox" class="ace ace-checkbox-2 ace-save-state" id="ace-settings-navbar" autocomplete="off" /> <label class="lbl" for="ace-settings-navbar"> Fixed Navbar</label> </div> <div class="ace-settings-item"> <input type="checkbox" class="ace ace-checkbox-2 ace-save-state" id="ace-settings-sidebar" autocomplete="off" /> <label class="lbl" for="ace-settings-sidebar"> Fixed Sidebar</label> </div> <div class="ace-settings-item"> <input type="checkbox" class="ace ace-checkbox-2 ace-save-state" id="ace-settings-breadcrumbs" autocomplete="off" /> <label class="lbl" for="ace-settings-breadcrumbs"> Fixed Breadcrumbs</label> </div> <div class="ace-settings-item"> <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-rtl" autocomplete="off" /> <label class="lbl" for="ace-settings-rtl"> Right To Left (rtl)</label> </div> <div class="ace-settings-item"> <input type="checkbox" class="ace ace-checkbox-2 ace-save-state" id="ace-settings-add-container" autocomplete="off" /> <label class="lbl" for="ace-settings-add-container"> Inside <b>.container</b> </label> </div> </div><!-- /.pull-left --> <div class="pull-left width-50"> <div class="ace-settings-item"> <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-hover" autocomplete="off" /> <label class="lbl" for="ace-settings-hover"> Submenu on Hover</label> </div> <div class="ace-settings-item"> <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-compact" autocomplete="off" /> <label class="lbl" for="ace-settings-compact"> Compact Sidebar</label> </div> <div class="ace-settings-item"> <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-highlight" autocomplete="off" /> <label class="lbl" for="ace-settings-highlight"> Alt. Active Item</label> </div> </div><!-- /.pull-left --> </div><!-- /.ace-settings-box --> </div><!-- /.ace-settings-container --> <div class="page-header"> <h1> Add <small> <i class="ace-icon fa fa-angle-double-right"></i> <?php echo $title ?> </small> </h1> </div><!-- /.page-header --> <div class="row"> <div class='col-xs-12'> <table id="dynamic-table" class="table table-striped table-bordered table-hover"> <?php $admin =$con->query("SELECT * FROM admin WHERE id='$rs[entered_by]'"); while($RowAdmin = $admin->fetch_array()) { $patient =$con->query("SELECT * FROM patient WHERE patientid='$_GET[patientid]'"); while($rp = mysqli_fetch_array($patient)) { echo " <form method='post'> <table id='example2' width='100%' class='table table-bordered table-hover'> <tr> <td width='50%'> Name of Hospital: </td> <td width='50%'>$RowAdmin[hsname]</td> </tr> <input type='hidden' name='patientid' value='$rp[patientid]'> <input type='hidden' name='hospitalid' value='$RowAdmin[id]'> <input type='hidden' name='entered_by' value='$entered_by'> <input type='hidden' name='dATE' value='$Start_date'> <input type='hidden' name='time' value='$Start_time'> <tr> <td width='50%'> Type of visit : </td> <td width='50%'><select onchange='typevisitVA(this.value)' name='typevisit' class='form-control' required> <option value='' disabled selected>Type of visit </option> <option value='Opd_Emergency'>OPD Private</option> <option value='OPD'>OPD</option> <option value='OPD_Routine'>OPD Routine</option> "; $acs=$RowAdmin['ipdacs']; if($acs == 'on'){ echo "<option value='IPD'>IPD</option>"; // <option value='Ipd_Emergency'>Emergency & Accidental</option>"; } else{ echo ""; } echo" </select></td> </tr> <tr> <td width='50%'> Department: </td> <td width='50%'><select name='casetype' required class='form-control'> "; } } ?> <option value='' disabled selected>Case Type </option> <option value='Unspecified'>Unspecified</option> <?php $spc =$con->query("SELECT * FROM spc WHERE adminid='$rs[entered_by]'"); while($rh = mysqli_fetch_array($spc)) { $patient =$con->query("SELECT * FROM patient WHERE patientid='$_GET[patientid]'"); while($rspi1 = mysqli_fetch_array($patient)) { if($rh[GeneralSurgery] == 'on'){ echo " <option value='GeneralSurgery'>General Surgery</option> "; } else{ echo ""; } if($rh[ENT] == 'on'){ echo " <option value='ENT'>ENT</option> "; } else{ echo ""; } if($rh[Opthalmology] == 'on'){ echo " <option value='Eye_Care'>Opthalmology</option> "; } else{ echo ""; } if($rh[Orthopaedics] == 'on'){ echo " <option value='Orthopaedics'>Orthopaedics</option> "; } else{ echo ""; } if($rh[Cardi] == 'on'){ echo " <option value='Cardi'>Cardio Thoracic Surgery</option> "; } else{ echo ""; } if($rh[Paediatric] == 'on'){ echo " <option value='Paediatric_surgery'>Paediatric surgery</option> "; } else{ echo ""; } if($rh[Genitourinary] == 'on'){ echo " <option value='Genitourinary_Surgery'>Genitourinary Surgery</option> "; } else{ echo ""; } if($rh[Neuro] == 'on'){ echo " <option value='Neuro_Surgery'>Neuro Surgery</option> "; } else{ echo ""; } if($rh[Surgical] == 'on'){ echo " <option value='Surgical_Oncology'>Surgical Oncology</option> "; } else{ echo ""; } if($rh[Medical] == 'on'){ echo " <option value='Medical_Oncology'>Medical Oncology</option> "; } else{ echo ""; } if($rh[Radiation] == 'on'){ echo " <option value='Radiation_Oncology'>Radiation Oncology</option> "; } else{ echo ""; } if($rh[Burns] == 'on'){ echo " <option value='Burns'>Burns,Plastic& reconstructive Surgery </option> "; } else{ echo ""; } if($rh[Polytrauma] == 'on'){ echo " <option value='Polytrauma'>Polytrauma</option> "; } else{ echo ""; } if($rh[Dental] == 'on'){ echo " <option value='Dental'>Dental</option> "; } else{ echo ""; } if($rh[Paedi] == 'on'){ echo " <option value='Paediatric_Cancer'>Paediatric Cancer</option> "; } else{ echo ""; } if($rh[Critical] == 'on'){ echo " <option value='Critical'>Critical Care Unit</option> "; } else{ echo ""; } if($rh[General] == 'on'){ echo " <option value='General'>General Medicine</option> "; } else{ echo ""; } if($rh[Paediatr] == 'on'){ echo " <option value='Paediatrics'>Paediatrics</option> "; } else{ echo ""; } if($rh[Neonatology] == 'on'){ echo " <option value='Neonatology'>Neonatology</option> "; } else{ echo ""; } if($rh[Cardiology] == 'on'){ echo " <option value='Cardiology'>Cardiology</option> "; } else{ echo ""; } if($rh[Nephrology] == 'on'){ echo " <option value='Nephrology'>Nephrology</option> "; } else{ echo ""; } if($rh[Neurology] == 'on'){ echo " <option value='Neurology'>Neurology</option> "; } else{ echo ""; } if($rh[Pulmonology] == 'on'){ echo " <option value='Pulmonology'>Pulmonology</option> "; } else{ echo ""; } if($rh[Gastroenterology] == 'on'){ echo " <option value='Gastroenterology'>Gastroenterology</option> "; } else{ echo ""; } if($rh[anesthesiologist] == 'on'){ echo " <option value='anesthesiologist'>Anesthesiologist</option> "; } else{ echo ""; } if($rh[hematologist] == 'on'){ echo " <option value='hematologist'>Hematologist</option> "; } else{ echo ""; } if($rh[endocrinology] == 'on'){ echo " <option value='endocrinology'>Endocrinology</option> "; } else{ echo ""; } if($rh[family_medicine] == 'on'){ echo " <option value='family_medicine'>Family Medicine</option> "; } else{ echo ""; } if($rh[Physiology] == 'on'){ echo " <option value='Physiology'>Physiology</option> "; } else{ echo ""; } if($rh[Emergency_Trauma] == 'on'){ echo " <option value='Emergency_Trauma'>Emergency_Trauma</option> "; } else{ echo ""; } if($rh[Radiotherapy] == 'on'){ echo " <option value='Radiotherapy'>Radiotherapy</option> "; } else{ echo ""; } if($rh[Plastic_Surgery] == 'on'){ echo " <option value='Plastic_Surgery'>Plastic Surgery</option> "; } else{ echo ""; } if($rh[Urology] == 'on'){ echo " <option value='Urology'>Urology</option> "; } else{ echo ""; } if($rh[Dermatology] == 'on'){ echo " <option value='Dermatology'>Dermatology</option> "; } else{ echo ""; } if($rh[Diabetologists] == 'on'){ echo " <option value='Diabetologists'>Diabetologists</option> "; } else{ echo ""; } if($rh[Immunologist] == 'on'){ echo " <option value='Immunologist'>Immunologist</option> "; } else{ echo ""; } if($rh[Otorhinolaryngology] == 'on'){ echo " <option value='Otorhinolaryngology'>Otorhinolaryngology</option> "; } else{ echo ""; } if($rh[Pharmacology] == 'on'){ echo " <option value='Pharmacology'>Pharmacology</option> "; } else{ echo ""; } if($rh[Psychiatry] == 'on'){ echo " <option value='Psychiatry'>Psychiatry</option> "; } else{ echo ""; } if($rh[Community] == 'on'){ echo " <option value='Community'>Community</option> "; } else{ echo ""; } if($rh[Forensic] == 'on'){ echo " <option value='Forensic'>Forensic</option> "; } else{ echo ""; } if($rh[IVF] == 'on'){ echo " <option value='IVF'>IVF</option> "; } else{ echo ""; } if($rh[laparoscopic_general_surgery] == 'on'){ echo " <option value='Laparoscopic Surgery'>Laparoscopic Surgery</option> "; } else{ echo ""; } $sex=$rspi1['gendor']; if($sex == 'Female'){ if($rh[Gynaecology] == 'on') echo " <option value='Pregnancy'>Obstetrics & Gynaecology</option> "; } else{ echo ""; } } } ?> </select></td> </tr> <tr><td width='50%'> Triage </td><td width='50%'> <select name='triage' required class='form-control'> <option value='' disabled selected>Triage</option> <option value='Normal_care'>Normal care</option> <option value='Urgent_Care'>Urgent Care</option> <option value='Immediate_Care'>Immediate Care</option> </select></td></tr> <tr> <td width='50%'> Admitted Under</td> <td width='50%'> <select name='Admitted_Under' id='select2' required class='form-control'> <option value='' disabled selected>Admitted Under</option> "; <?php $sqldoctor= "SELECT * FROM site_users WHERE usertype='Doctor' and entered_by='$rs[entered_by]'"; $qsqldoctor = mysqli_query($con,$sqldoctor); while($rsdoctor = mysqli_fetch_array($qsqldoctor)) { echo "<option value='$rsdoctor[userno]'>$rsdoctor[name]</option>"; } ?> echo" </td> </select> </tr> <tr> <td width='50%'> Mode of Payment</td> <td width='50%'> <select name='P_Mode' required class='form-control'> <option value='Genaral' selected>Genaral</option> <?php $sqldoctor= "SELECT * FROM emp WHERE (abpmjay='on' OR rsby='on' OR esic='on') and adminid='$rs[entered_by]' "; $qsqldoctor = mysqli_query($con,$sqldoctor); if($rsdoctor = mysqli_fetch_array($qsqldoctor)) { echo "<option value='AB-PMJAY'>AB-PMJAY</option>"; echo "<option value='RSBY'>RSBY</option>"; echo "<option value='ESIC'>ESIC</option>"; $sql ="SELECT * FROM empanelled WHERE adminid='$rs[entered_by]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $sqlpatient1 = "SELECT * FROM tpa_insurance where id='$rs[Nameofempanelled]'"; $qsqlpatient1 = mysqli_query($con,$sqlpatient1); while($rsn = mysqli_fetch_array($qsqlpatient1)) { echo "<option value='Cashless-$rsn[Name]'><b>Cashless</b>-$rsn[Name]</option>"; } } } ?> </td> </select> </td> </tr> <tr><td colspan='2'><button type="submit" id="btn" name="signup" class="btn btn-info" style='float:right;'>Proceed</button></td></tr> </table> </form> </table> </div> </div><!-- /.row --> </div><!-- /.page-content --> </div> </div><!-- /.main-content --> <?php include('includes/footer.php'); ?> <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse"> <i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i> </a> </div><!-- /.main-container --> <!-- basic scripts --> <!--[if !IE]> --> <script src="../assets/js/jquery-2.1.4.min.js"></script> <!-- <![endif]--> <!--[if IE]> <script src="../assets/js/jquery-1.11.3.min.js"></script> <![endif]--> <script type="text/javascript"> if('ontouchstart' in document.documentElement) document.write("<script src='../assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>"); </script> <script src="../assets/js/bootstrap.min.js"></script> <!-- page specific plugin scripts --> <!--[if lte IE 8]> <script src="../assets/js/excanvas.min.js"></script> <![endif]--> <script src="../assets/js/jquery-ui.custom.min.js"></script> <script src="../assets/js/jquery.ui.touch-punch.min.js"></script> <script src="../assets/js/chosen.jquery.min.js"></script> <script src="../assets/js/spinbox.min.js"></script> <script src="../assets/js/bootstrap-datepicker.min.js"></script> <script src="../assets/js/bootstrap-timepicker.min.js"></script> <script src="../assets/js/moment.min.js"></script> <script src="../assets/js/daterangepicker.min.js"></script> <script src="../assets/js/bootstrap-datetimepicker.min.js"></script> <script src="../assets/js/bootstrap-colorpicker.min.js"></script> <script src="../assets/js/jquery.knob.min.js"></script> <script src="../assets/js/autosize.min.js"></script> <script src="../assets/js/jquery.inputlimiter.min.js"></script> <script src="../assets/js/jquery.maskedinput.min.js"></script> <script src="../assets/js/bootstrap-tag.min.js"></script> <!-- ace scripts --> <script src="../assets/js/ace-elements.min.js"></script> <script src="../assets/js/ace.min.js"></script> <!-- inline scripts related to this page --> <script> document.getElementById('btn').addEventListener("click", function(){ this.classList.add("loading"); this.innerHTML = "Loading..."; }); </script> <script> function typevisitVA(drmeid) { 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("divmedidr").innerHTML = this.responseText; } }; xmlhttp.open("GET","LoadTypeVisit.php?drmeid="+drmeid,true); xmlhttp.send(); } </script> </body> </html>