Server IP : 162.240.98.243 / Your IP : 3.128.200.71 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[investig])) { PatientManager::nwinvestigation("$_GET[prescriptionid]","$_GET[patientid]","$_POST[Investigation]","$_POST[Result]","$_POST[Evidence]","$_POST[enteredby]"); } else if( $_POST['submit_1'] ) { PatientManager::admissionipd("$_GET[prescriptionid]","$_GET[patientid]","$_POST[Admission_diagnosis]","$_POST[procedure_date]","$_POST[Potential_Side_effect]","$_POST[Mode_Treatment]","$_POST[treatment_Facility]","$_POST[Second_Opinious]","$_POST[Higher_Center]","$_POST[nameofhospital]","$_POST[NameofConsultant]","$_POST[enteredby]"); } ?> <?php if(isset($_POST[medical])) { PatientManager::Medicine("$_POST[patientid]","$_POST[DRUGS]","$_POST[Dose]","$_POST[Route]","$_POST[Frequency]","$_POST[enteredby]"); } ?> <?php if(isset($_POST[submit])) { { $sql ="INSERT INTO regularmedicine(patientid,medicinename,dose,Frequency) values('$_POST[patientid]','$_POST[medicinename]','$_POST[dose]','$_POST[Frequency]')"; if($qsql = mysqli_query($con,$sql)) { echo "<script>alert('Medicine record inserted successfully...');</script>"; } else { echo mysqli_error($con); } } } if(isset($_GET[editid])) { $sql="SELECT * FROM immunization WHERE patientid='$_GET[editid]' "; $qsql = mysqli_query($con,$sql); $rsedit = mysqli_fetch_array($qsql); } if(isset($_SESSION[patientid])) { $sqlpatient = "SELECT * FROM patient WHERE patientid='$_SESSION[patientid]' "; $qsqlpatient = mysqli_query($con,$sqlpatient); $rspatient = mysqli_fetch_array($qsqlpatient); $readonly = " readonly"; } ?> <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> <style> .center { border: 1px solid grey; text-align:; }</style> <div class="content-wrapper"> <h2 align="center">Initial Assessment</h2></lageng> <div Class="center"> <?php $sql ="SELECT * FROM request_for_admission_ipd WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tbody> <div> <h5 align='center'> <b> U.H.I.D NO </b> </h5></div> <div> <h5 align='center'> <b> $rs[patientid] </b> </h5></div> <h5 align='left'> <b>Admission Date/ Time :$rs[created_at]</b></h5> <div class='account-details'> <div> <h5> <b>Ward : $rs[Ward]</b></h5></div><div><h5> <b>Bed : $rs[Bed]</b></h5></div></div> "; } ?> <div><input type="button" onclick="myFunctionva('Demo1')" value="Request Of Admission"></div> <div id="Demo1" class="w3-container w3-hide"> <table id="example2" class="table table-bordered table-hover"> <thead> <tr> <div class='card-header d-flex p-0'> <ul class='nav nav-pills ml-auto p-2'> <th><strong>Medical Condition</strong></th> <th><strong>Status</strong></th> <th><strong>Edit</strong></th> </tr> </thead> <?php $sql ="SELECT * FROM medi_condition_final WHERE patientid='patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tbody> <tr> <td> $rs[medicalcon]</td> <td> $rs[Status]</td> <td><a href='edit_medicalcon.php?patientid=$rs[patientid]&medicalcoid=$rs[medicalcoid]'>Edit</a></td> </tr> "; } ?> </tr> </thead> </tbody> <tfoot> </tfoot> </table> <script> function myFunctionva(id) { var x = document.getElementById(id); if (x.className.indexOf("w3-show") == -1) { x.className += " w3-show"; } else { x.className = x.className.replace(" w3-show", ""); } } </script> </div><br></div> <br> <table id="example2" class="table table-bordered table-hover"> <?php $sqlpatient= "SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsqlpatient = mysqli_query($con,$sqlpatient); while($rr=mysqli_fetch_array($qsqlpatient)) { echo " <tr> <td height='62'> Under Consultant: </td> <td> Dr.$rr[Admitted_Under]</td></tr> </tr> "; } ?> </tbody> </table> <h3 align="center">Regular Medication </h3> <?php $sqlpatient= "SELECT * FROM regularmedicine WHERE patientid='$_GET[patientid]'"; $qsqlpatient = mysqli_query($con,$sqlpatient); if($rp=mysqli_fetch_array($qsqlpatient)) { $a = $rp['patientid']; if(is_null($a)){ echo "No Found"; } else{ echo ""; ?> <div id="mmenu"> <table id='example2' class='table table-bordered table-hover'> <tr><th>Drug</th><th>Dose</th><th>Route</th><th>Frequency </th></tr> <?php $sqlpatient= "SELECT * FROM regularmedicine WHERE patientid='$_GET[patientid]'"; $qsqlpatient = mysqli_query($con,$sqlpatient); while($rpm=mysqli_fetch_array($qsqlpatient)) { echo " <tr><td>$rpm[medicinename]</td><td>$rpm[dose]</td><td>$rpm[dose]</td><td>$rpm[Frequency]</td></tr> "; } ?> </table></div> <?php } } ?> <h3 align="center">Immunization </h3> <?php $sqlpatient= "SELECT * FROM immunization WHERE patientid='$_GET[patientid]'"; $qsqlpatient = mysqli_query($con,$sqlpatient); if($ri=mysqli_fetch_array($qsqlpatient)) { $a = $ri['patientid']; if(is_null($a)){ echo "No Found"; } else{ echo ""; ?> <div id="mmenu"> <table id='example2' class='table table-bordered table-hover'> <tr><th>Name of Vaccine </th><th>Given Date</th><th>Note</th></tr> <?php $sqlpatient= "SELECT * FROM immunization WHERE patientid='$_GET[patientid]'"; $qsqlpatient = mysqli_query($con,$sqlpatient); while($rpm=mysqli_fetch_array($qsqlpatient)) { echo " <tr><td>$rpm[Vaccine]</td><td>$rpm[DateGiven]</td><td>$rpm[Note]</td></tr> "; } ?> </table></div> <?php } } ?> <h2 align="center">OPD SLIP</h2> <table id="example2" class="table table-bordered table-hover"> <thead> <tr> <div class='card-header d-flex p-0'> <ul class='nav nav-pills ml-auto p-2'> <th>Wt </th> <th>SPo2 </th> <th>RBS </th> <th>Temp</th> <th>Pulse</th> <th>BP</th> </tr> </thead> <tr><?php $sql ="SELECT * FROM request_for_admission_ipd WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tbody> <tr> <td> $rs[Wt]</td> <td> $rs[SPo2]</td> <td> $rs[RBS]</td> <td> $rs[Temp]</td> <td> $rs[Pulse]</td> <td> $rs[BP]</td> "; } ?> </tr> </thead> </tbody> </table> <h3 align="center">Investigation Request </h3> <div class="card-body"> <form method="post"name="investig"> <table id="example2" class="table table-bordered table-hover"> <thead> <tr> <td>Request Investigation</td> <td><select name="Investigation" id="country"> <option value="">Investigation</option> <option value="CBC">CBC</option> <option value="RFT">RFT</option> <option value="ABG">ABG</option> <option value="LFT">LFT</option> <option value="X-RAY">X-RAY</option> <option value="Hypertension">SUGAR</option> <option value="2D ECHO">2D ECHO</option> <option value="CT">CT</option> <option value="MRI">MRI</option> <option value="PT/PTT">PT/PTT</option> <option value="ECG">ECG</option> <option value="USG">USG</option> </select></td> </tr> <tr><td></td><td> </tbody> </table> <input type="submit" value="Add" name="investig"></td></tr> </form> </div> <table id="example2" id ="demo" class="table table-bordered table-hover"> <thead> <tr> <div id="listingTable"> <div class='card-header d-flex p-0'> <ul class='nav nav-pills ml-auto p-2'> <th><strong>Date Time</strong></th> <th><strong>Investigation</strong></th> <th><strong>Result</strong></th> <th><strong>Evidence (Upload)</strong></th> </tr> </thead> <?php $sql ="SELECT * FROM investigation WHERE patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tbody> <tr> <td> $rs[created_at]</td> <td> $rs[Investigation]</td> <td> $rs[Result]</td> <td> $rs[Evidence]</td> </tr> "; } ?> </tbody> </table> <form method="post" name="submit_1"> <table id="example2" class="table table-bordered table-hover"> <thead> <tr> <td height="62">Initial Finding/ Diagnosis: </td> <td><input type="text" placeholder="Initial Finding/ Diagnosis" name="Admission_diagnosis" id="Admission_diagnosis" ></td> </tr> <tr> <td height="62">Operative procedure date : </td> <td><input type="date" placeholder="Operative procedure date" name="procedure_date" id="procedure_date" ></td> </tr> <tr><td>Potential Side effect</td><td><input type="text" placeholder="Potential Side effect" name="Potential_Side_effect"</td></tr> <tr><td> Alternative Mode of Treatment</td><td> <select name="Mode_Treatment"> <option value="" disabled selected>Alternative Mode of Treatment</option> <option value="Not Required">Not Required</option> <option value="Explained Accepted to Continue">Explained Accepted to Continue</option> <option value="Explained & Denied">Explained & Denied </option> </select> </td> </tr> <tr><td> Available Treatment Facility Options</td><td> <select name="treatment_Facility"> <option value="" disabled selected>Available Treatment Facility Options</option> <option value="Explained">Explained</option> <option value="Agreed To Continue">Agreed To Continue</option> <option value="Disagree To Continue">Disagree To Continue </option> </select> </td> </tr> <tr><td> Options for Second Opinious</td><td> <select name="Second_Opinious"> <option value="" disabled selected>Options for Second Opinious</option> <option value="Given And Consented to Continue Previous">Given And Consented to Continue Previous</option> <option value="Given And Accepted to go for Second Opinon">Given And Accepted to go for Second Opinon</option> <option value="Demanded /Lama">Demanded /Lama </option> </select> </td> </tr> <tr><td> Referral to Higher Center for Better Care</td><td> <select name="Higher_Center"> <option value="" disabled selected>Referral to Higher Center for Better Care</option> <option value="Denied & Consented to Continue With Treatment">Denied & Consented to Continue With Treatment </option> <option value="Accepted and Requested">Accepted and Requested</option> <option value="Lama">Lama </option> </select> </td> </tr> </table> <div><input type="button" onclick="myFunctionkare('Demo2')" value="Create Referral"></div></td></tr> <div id="Demo2" class="w3-container w3-hide"> <label>Name of hospital</label> <input type="text" name="nameofhospital" placeholder="Name of hospital"> <label>Name of Consultant</label> <input type="text" name="NameofConsultant" placeholder="Name of Consultant"> <script> function myFunctionkare(id) { var x = document.getElementById(id); if (x.className.indexOf("w3-show") == -1) { x.className += " w3-show"; } else { x.className = x.className.replace(" w3-show", ""); } } </script> </div> <br> <p align="center"><input type="submit" name="submit_1" id="submit_1" value="Submit" /></p> </form> <form name="medical" method="post"> <?php include('meditest.php');?> </form> <div class="content-wrapper"> <table id="example2" class="table table-bordered table-hover"> <thead> <tr> <ul class='nav nav-pills ml-auto p-2'> <th><strong>Drugs</strong></th> <th><strong>Dose</strong></th> <th><strong>Route</strong></th> <th><strong>Frequency</strong></th> </tr> </thead> <?php $sql ="SELECT * FROM medicinede WHERE patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tbody> <tr> <td> $rs[DRUGS]</td> <td> $rs[Dose]</td> <td> $rs[Route]</td> <td> $rs[Frequency]</td> </tr> "; } ?> </tbody> </table> <input type="submit" name="print" id="print" value="Print Page" onclick="myFunction()"/> </div> </div> </div> <div class="clear"></div> </div> </div> <?php include("footer.php"); ?> <script> function myFunction() { window.print(); } </script> <script type="application/javascript"> var alphaExp = /^[a-zA-Z]+$/; //Variable to validate only alphabets var alphaspaceExp = /^[a-zA-Z\s]+$/; //Variable to validate only alphabets and space var numericExpression = /^[0-9]+$/; //Variable to validate only numbers var alphanumericExp = /^[0-9a-zA-Z]+$/; //Variable to validate numbers and alphabets var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/; //Variable to validate Email ID function validateform() { if(document.frmpatapp.patiente.value == "") { alert("Patient name should not be empty.."); document.frmpatapp.patiente.focus(); return false; } else if(!document.frmpatapp.patiente.value.match(alphaspaceExp)) { alert("Patient name not valid.."); document.frmpatapp.patiente.focus(); return false; } else if(document.frmpatapp.textarea.value == "") { alert("Address should not be empty.."); document.frmpatapp.textarea.focus(); return false; } else if(document.frmpatapp.city.value == "") { alert("City should not be empty.."); document.frmpatapp.city.focus(); return false; } else if(!document.frmpatapp.city.value.match(alphaspaceExp)) { alert("City name not valid.."); document.frmpatapp.city.focus(); return false; } else if(document.frmpatapp.mobileno.value == "") { alert("Mobile number should not be empty.."); document.frmpatapp.mobileno.focus(); return false; } else if(!document.frmpatapp.mobileno.value.match(numericExpression)) { alert("Mobile number not valid.."); document.frmpatapp.mobileno.focus(); return false; } else if(document.frmpatapp.loginid.value == "") { alert("login ID should not be empty.."); document.frmpatapp.loginid.focus(); return false; } else if(!document.frmpatapp.loginid.value.match(alphanumericExp)) { alert("login ID not valid.."); document.frmpatapp.loginid.focus(); return false; } else if(document.frmpatapp.password.value == "") { alert("Password should not be empty.."); document.frmpatapp.password.focus(); return false; } else if(document.frmpatapp.password.value.length < 8) { alert("Password length should be more than 8 characters..."); document.frmpatapp.password.focus(); return false; } else if(document.frmpatapp.select6.value == "") { alert("Gender should not be empty.."); document.frmpatapp.select6.focus(); return false; } else if(document.frmpatapp.dob.value == "") { alert("Date Of Birth should not be empty.."); document.frmpatapp.dob.focus(); return false; } else if(document.frmpatapp.appointmentdate.value == "") { alert("Appointment date should not be empty.."); document.frmpatapp.appointmentdate.focus(); return false; } else if(document.frmpatapp.appointmenttime.value == "") { alert("Appointment time should not be empty.."); document.frmpatapp.appointmenttime.focus(); return false; } else { return true; } } function loaddoctor(deptid) { 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("divdoc").innerHTML = this.responseText; } }; xmlhttp.open("GET","departmentDoctor.php?deptid="+deptid,true); xmlhttp.send(); } </script> <script> $('#demo').pagination({ dataSource: [1, 2, 3, 4, 5, 6, 7, ... , 50], pageSize: 5, pageRange: null, showPageNumbers: true, callback: function(data, pagination) { // template method of yourself var html = template(data); dataContainer.html(html); } }) $(function () { $("#example1").DataTable({ "responsive": true, "autoWidth": false, }); $('#example2').DataTable({ "paging": true, "lengthChange": false, "searching": false, "ordering": true, "info": true, "autoWidth": false, "responsive": true, }); }); var current_page = 1; var records_per_page = 2; var objJson = [ { adName: "AdName 1"}, { adName: "AdName 2"}, { adName: "AdName 3"}, { adName: "AdName 4"}, { adName: "AdName 5"}, { adName: "AdName 6"}, { adName: "AdName 7"}, { adName: "AdName 8"}, { adName: "AdName 9"}, { adName: "AdName 10"} ]; // Can be obtained from another source, such as your objJson variable function prevPage() { if (current_page > 1) { current_page--; changePage(current_page); } } function nextPage() { if (current_page < numPages()) { current_page++; changePage(current_page); } } function changePage(page) { var btn_next = document.getElementById("btn_next"); var btn_prev = document.getElementById("btn_prev"); var listing_table = document.getElementById("listingTable"); var page_span = document.getElementById("page"); // Validate page if (page < 1) page = 1; if (page > numPages()) page = numPages(); listing_table.innerHTML = ""; for (var i = (page-1) * records_per_page; i < (page * records_per_page); i++) { listing_table.innerHTML += objJson[i].adName + "<br>"; } page_span.innerHTML = page; if (page == 1) { btn_prev.style.visibility = "hidden"; } else { btn_prev.style.visibility = "visible"; } if (page == numPages()) { btn_next.style.visibility = "hidden"; } else { btn_next.style.visibility = "visible"; } } function numPages() { return Math.ceil(objJson.length / records_per_page); } window.onload = function() { changePage(1); }; </script>