UnknownSec Bypass
403
:
/
var
/
www
/
zenithentcare
/
stmedicosoftware
/ [
drwxrwxr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
followup.php
<?php include "top1.php";?> <!-- /inner_content--> <div class="inner_content"> <!-- /inner_content_w3_agile_info--> <!-- breadcrumbs --> <div class="w3l_agileits_breadcrumbs"> <div class="w3l_agileits_breadcrumbs_inner"> <ul> <li><a href="dashboard.php">Dashboard</a><span>«</span></li> <li>Follow Up </li> </ul> </div> </div> <!-- //breadcrumbs --> <div class="inner_content_w3_agile_info two_in"> <table width="100%"> <tr> <td width="70%"> <h2 class="w3_inner_tittle">MANAGE FOLLOW UP</h2> </td> <td width="30%" align="right"><a href="appointment_list.php" class="btn btn-primary"><i class="fa fa-list"></i> Follow Up List</a></td> </tr> </table> <!--/forms--> <div class="forms-main_agileits"> <!--/forms-inner--> <div class="forms-inner"> <!--/set-1--> <div class="set-1_w3ls"> <div class="col-md-12 button_set_one two agile_info_shadow graph-form"> <!-- <h3 class="w3_inner_tittle two">Inline Form </h3> --> <div class="grid-1"> <div class="form-body"> <div data-example-id="simple-form-inline"> <div align="cemter"><button class="btn btn-warning" id="myBtn"><i class="fa fa-search"></i> Find Old Patient</button> </div> <div class="form-inline"> <div class="col-md-6 form-group"> <input type="hidden" class="form-control1" id="hdid" name="hdid"> <input type="hidden" class="form-control1" id="hdappid" name="hdappid"> <input type="hidden" class="form-control1" id="hdfileno" name="hdfileno"> <p style="margin-top: 20px"></p> <label for="ddlpatienttype">Is New Patient</label> <select class="form-control1" name="ddlpatienttype" id="ddlpatienttype" onchange="enabledisable(this.value)" style="width: 100%; font-size:14px;"> <option value="Yes">Yes</option> <option value="No">No</option> </select> </div> <div class="col-md-6 form-group"> <p style="margin-top: 20px"></p> <label for="txtsuhid">UHID</label> <input class="form-control1" name="txtsuhid" id="txtsuhid" type="text" disabled="false" placeholder="uhid" style="width: 100%; font-size:14px;" required /> </div> </div> <div class="form-inline"> <div class="col-md-6 form-group"> <p style="margin-top: 20px"></p> <label for="txtPatientName">Patient Name</label> <input class="form-control" name="txtPatientName" id="txtPatientName" type="text" placeholder="Ex. Sanjeev Kumar Singh" style="width: 100%" required /> </div> <div class="col-md-6 form-group"> <p style="margin-top: 20px"></p> <label for="txtMobileNo">Mobile No.</label> <input class="form-control" name="txtMobileNo" id="txtMobileNo" type="number" placeholder="Ex. 9999999999" style="width: 100%" required /> </div> </div> <div class="form-inline"> <div class="col-md-6 form-group"> <p style="margin-top: 20px"></p> <label for="txtAge">Age</label> <div> <table width="100%"> <tr> <td width="30%"> <input type="text" class="form-control1" id="txtage" name="txtage" onkeypress="return isNumberKey(event,this);" placeholder="Age" style="font-size: 14px; width: 100%;"> </td> <td width="70%" align="right"> <select class="form-control1" id="cmbyear" name="cmbyear" style="font-size: 14px"> <option>Year</option> <option>Months</option> <option>Days</option> </select> </td> </tr> </table> </div> </div> <div class="col-md-6 form-group"> <p style="margin-top: 20px"></p> <label for="ddlGender">Gender</label> <select class="form-control1" name="ddlGender" id="ddlGender" style="font-size: 14px; width: 100%;"> <option value="Male">Male</option> <option value="Female">Female</option> <option value="Other">Other</option> </select> </div> </div> <div class="form-inline"> <div class="col-md-6 form-group"> <p style="margin-top: 20px"></p> <label for="inputEmail">Appointment Date</label> <input class="form-control1" name="txtAppointmentDate" style="font-size: 14px; width: 100%;" id="txtAppointmentDate" type="date" placeholder="Ex. dd/mm/yyyy" /> </div> <div class="col-md-6 form-group"> <p style="margin-top: 20px"></p> <label for="ddlDoctorName">Doctor Name</label> <select class="form-control1" style="font-size: 14px; width: 100%;" name="ddlDoctorName" id="ddlDoctorName"> </select> </div> </div> <div class="form-inline"> <div class="col-md-12 form-group" align="center"> <p style="margin-top: 20px"></p> <button type="submit" class="btn btn-default mt-4" id="btnsave" name="btnsave" onclick="saveapp();">SaveFollowUp</button> <button type="submit" class="btn btn-default" id="btnclear" name="btnclear" onclick="c1()">CLEAR</button> </div> </div> </div> </div> </div> </div> <div class="clearfix"> </div> </div> <!--//set-1--> </div> <!--//forms-inner--> </div> <!--//forms--> </div> <!-- //inner_content_w3_agile_info--> </div> <!-- //inner_content--> <div id="myModal" class="modal"> <!-- Modal content --> <div class="modal-content"> <span class="close">×</span> <div class="inner_content_w3_agile_info two_in"> <!--/forms--> <div class="forms-main_agileits"> <!--/forms-inner--> <div class="forms-inner"> <!--/set-1--> <div class="set-1_w3ls"> <div class="col-md-12 graph-form general agile_info_shadow"> <h3 class="w3_inner_tittle two">Patient List </h3> <div class="form-body"> <table id="example" class="display" width="100%" cellspacing="0" class="table table-striped table-bordered"> <thead> <tr> <th>UHID</th> <th>Name</th> <th>Age</th> <th>Sex</th> <th>Mobile</th> <th>Address</th> <th></th> </tr> </thead> </table> </div> </div> <div class="clearfix"> </div> </div> <!--//set-1--> </div> <!--//forms-inner--> </div> <!--//forms--> </div> </div> </div> </div> <!-- banner --> <?php include "footer.php";?> <style> /* The Modal (background) */ .modal { display: none; /* Hidden by default */ position: fixed; /* Stay in place */ z-index: 1; /* Sit on top */ left: 0; top: 0; width: 100%; /* Full width */ height: 100vh; /* Full height */ overflow: auto; /* Enable scroll if needed */ background-color: rgb(0, 0, 0); /* Fallback color */ background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */ } /* Modal Content/Box */ .modal-content { background-color: #fefefe; margin: 5% auto; /* 15% from the top and centered */ padding: 15px; border: 1px solid #888; width: 80%; /* Could be more or less, depending on screen size */ } /* The Close Button */ .close { color: #ff0000; float: right; font-size: 28px; font-weight: bold; } .close:hover, .close:focus { color: black; text-decoration: none; cursor: pointer; } </style> <script> $(document).ready(function() { getalldoctor(""); //alert(document.getElementById("ddlpatienttype").value); getappointmentdetails(); var date = new Date(); $('#txtAppointmentDate').val(formatDate(date)); //$("#ddlpatienttype").prop('disabled', true); // filldatatable(); }); function getUrlVars() { var vars = [], hash; var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); for (var i = 0; i < hashes.length; i++) { hash = hashes[i].split('='); vars.push(hash[0]); vars[hash[0]] = hash[1]; } return vars; } function getappointmentdetails() { var id = getUrlVars()['id']; var op = getUrlVars()['op']; if(jQuery.type(id)=="undefined") { return; } if (id != "") { $.ajax({ method: 'POST', url: 'get_opddetails.php', data: '&id=' + id, dataType: "JSON", success: function(data) { $('#hdid').val(data.uhid); $('#hdfileno').val(data.fileno); $('#txtPatientName').val(data.name); $('#txtMobileNo').val(data.mobile); $('#txtage').val(data.age); $('#cmbyear').val(data.pntageyrs); $('#ddlGender').val(data.sex); $('#ddlpatienttype').val(data.patienttype); // $('#txtsuhid').val(data.appdate); getalldoctor(data.examid); } }); } } function formatDate(dt) { var d, y, m; d = dt.getDate(); m = dt.getMonth() + 1; y = dt.getFullYear(); var ret = ''; if (d < 10) d = '0' + d; if (m < 10) m = '0' + m; ret = y + "-" + m + "-" + d; return ret; } function enabledisable(val) { if(val=="Yes") { $("#txtsuhid").prop('disabled', true); } else { $("#txtsuhid").prop('disabled', false); } } function getalldoctor(val) { $.ajax({ type: "Get", url: "get_alldoctor.php", success: function(res) { var data = JSON.parse(res); var sel = $("#ddlDoctorName"); sel.empty(); $("#ddlDoctorName").append('<option>Select Consultant</option>'); for (var i = 0; i < data.length; i++) { if (data[i].id == val) { sel.append('<option value="' + data[i].id + '" selected=true>' + data[i] .accountname + '</option>'); } else { sel.append('<option value="' + data[i].id + '">' + data[i].accountname + '</option>'); } } /// $("#state").html(data); } }); } function clear1() { document.getElementById("txtPatientName").value=""; document.getElementById("txtMobileNo").value=""; document.getElementById("txtAge").value=""; document.getElementById("ddlYears").value="Year"; document.getElementById("ddlGender").value="Male"; //document.getElementById("txtAppointmentDate").value=$date; document.getElementById("ddlDoctorName").value=""; document.getElementById("ddlpatienttype").value=""; document.getElementById("txtsuhid").value=""; document.getElementById("hdid").value=""; document.getElementById("hdappid").value=""; document.getElementById("ddlpatienttype").value="Yes"; $('#btnsave').text("SaveAppointment"); window.location.href="add_appointment.php"; } function saveapp() { var flag = true; var inputField1 = document.getElementById("txtPatientName"); if (inputField1.value == "") { flag = false; alert("Please enter patient name"); document.getElementById("txtPatientName").focus(); return false; } var inputField2 = document.getElementById("txtMobileNo"); if (inputField2.value == "") { flag = false; alert("Please enter mobile no"); document.getElementById("txtMobileNo").focus(); return false; } var inputField3 = document.getElementById("txtage"); if (inputField3.value == "") { flag = false; alert("Please enter age"); document.getElementById("txtage").focus(); return false; } var inputField4 = document.getElementById("cmbyear"); if (inputField4.value == "") { flag = false; alert("Please select age"); document.getElementById("cmbyear").focus(); return false; } var inputField5 = document.getElementById("ddlGender"); if (inputField5.value == "") { flag = false; alert("Please select gender"); document.getElementById("ddlGender").focus(); return false; } var inputField6 = document.getElementById("txtAppointmentDate"); if (inputField6.value == "") { flag = false; alert("Please enter date of appointment"); document.getElementById("txtAppointmentDate").focus(); return false; } var inputField7 = document.getElementById("ddlDoctorName"); if (inputField7.value == "Select Consultant") { flag = false; alert("Please select consultant."); document.getElementById("ddlDoctorName").focus(); return false; } var followupdate = document.getElementById("txtAppointmentDate").value; var consultant = document.getElementById("ddlDoctorName").value; var uhid = document.getElementById("hdid").value; var fileno = document.getElementById("hdfileno").value; var mobileno = document.getElementById("txtMobileNo").value; var name = document.getElementById("txtPatientName").value; var age = document.getElementById("txtage").value; var ageinyear = document.getElementById("cmbyear").value; var sex = document.getElementById("ddlGender").value; var btnopration = document.getElementById("btnsave").innerHTML; var text = "Do you want " + btnopration; if (confirm(text) == false) { flag = false; return false; } try { if (flag == true) { var urlgetcode = 'manage_followup.php'; $.ajax({ method: 'POST', url: urlgetcode, data: '&uhid=' + uhid + '&consultant=' + consultant + '&fileno=' + fileno + '&followupdate=' + followupdate+'&mobileno=' + mobileno+'&name=' + name +'&age=' + age+'&ageinyear=' + ageinyear +'&sex=' + sex, dataType: 'json', async: true, cache: false, success: function(msg) { if (msg == "1") { alert("Save Successfully"); $('#hdid').val(""); $('#txtPatientName').val(""); $('#txtMobileNo').val(""); $('#txtage').val(""); $('#cmbyear').val(""); $('#ddlGender').val(""); $('#txtAppointmentDate').val(""); $('#ddlDoctorName').val(""); window.location.href = "followup.php"; } else if (msg == "2") { alert("Follow up already save"); } }, error: function(request) { alert(request.responseText); } }); } } catch (Error) { alert(Error); } return; } </script> <script> function showpatient() { var flag = true; var inputField1 = document.getElementById("txtsuhid"); if (inputField1.value == "") { flag = false; alert("Please enter uhid"); document.getElementById("txtsuhid").focus(); return false; } var uhid = document.getElementById("txtsuhid").value; try { if (flag == true) { var urlgetcode = 'get_patientdetails.php'; $.ajax({ method: 'POST', url: urlgetcode, data: '&suhid=' +uhid, dataType: 'json', async: true, cache: false, success: function(data) { if(data=="") { alert("No record found"); return; } $('#hdid').val(data.uhid); $('#txtPatientName').val(data.name); $('#txtMobileNo').val(data.mobile); $('#txtage').val(data.agey); $('#cmbyear').val(data.pntageyrs); $('#ddlGender').val(data.sex); }, error: function(request) { alert(request.responseText); } }); } } catch (Error) { alert(Error); } return; } // Get the modal var modal = document.getElementById("myModal"); // Get the button that opens the modal var btn = document.getElementById("myBtn"); var btnselect = document.getElementById("select"); // Get the <span> element that closes the modal var span = document.getElementsByClassName("close")[0]; // When the user clicks on the button, open the modal btn.onclick = function() { var table = $('#example').DataTable({ "ajax": "loadmaster_patient.php", "bPaginate": true, destroy: true, "bProcessing": true, "pageLength": 10, "columns": [{ mData: 'suhid' }, { mData: 'name' }, { mData: 'age' }, { mData: 'sex' }, { mData: 'mobile' }, { mData: 'address1' }, { mData: null, defaultContent: '<button class="btn btn-warning">Select</button>', targets: -1 } ] }); modal.style.display = "block"; table.on('click', 'button', function(e) { var currentRow = $(this).closest("tr"); var col1 = currentRow.find("td:eq(0)").text(); modal.style.display = "none"; document.getElementById("txtsuhid").value = col1; showpatient(); document.getElementById("ddlpatienttype").value = "No"; $("#ddlpatienttype").prop('disabled', true); }); } function isNumberKey(evt, element) { var charCode = (evt.which) ? evt.which : event.keyCode if (charCode > 31 && (charCode < 48 || charCode > 57) && !(charCode == 46 || charCode == 8)) return false; else { var len = $(element).val().length; var index = $(element).val().indexOf('.'); if (index > 0 && charCode == 46) { return false; } if (index > 0) { var CharAfterdot = (len + 1) - index; if (CharAfterdot > 3) { return false; } } } return true; } function refresh() { myModal.ajax.reload(); } function closemodalpopup(val) { modal.style.display = "none"; // getpatientdetails(val); showpatient(); } // When the user clicks on <span> (x), close the modal span.onclick = function() { modal.style.display = "none"; } // When the user clicks anywhere outside of the modal, close it window.onclick = function(event) { if (event.target == modal) { modal.style.display = "none"; } } </script>
Copyright © 2025 - UnknownSec