UnknownSec Bypass
403
:
/
var
/
www
/
zenithentcare
/
stmedicosoftware
/ [
drwxrwxr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
newdailycollectionreport.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>Daily Collection Report</li> </ul> </div> </div> <!-- //breadcrumbs --> <div class="inner_content_w3_agile_info two_in"> <h2 class="w3_inner_tittle">Daily Collection Report</h2> <input type="hidden" class="form-control1" id="hduhid" name="hduhid"> <input type="hidden" class="form-control1" id="hdfileno" name="hdfileno"> <input type="hidden" class="form-control1" id="hdvoucherno" name="hdvoucherno"> <!--/forms--> <div class="forms-main_agileits"> <!--/forms-inner--> <div class="forms-inner"> <!--/set-1--> <div class="set-1_w3ls"> <div class="col-md-3 button_set_one agile_info_shadow graph-form"> <div class="form-body"> <div class="form-group"> <label for="testDepartmentyName">From Date :</label> <input type="date" class="form-control1" id="fromdate"> </div> <div class="form-group"> <label for="testDepartmentyName">To Date </label> <input type="date" class="form-control1" id="todate" placeholder="Please enter uhid..."> </div> <div class="form-group"> <label for="testDepartmentyName">Doctor </label> <select name="consultant" id="consultant" class="form-control1" style="width: 100%"> </select> </div> <div class="form-group"> <label for="testDepartmentyName">Category </label> <select name="category" id="category" class="form-control1" style="width: 100%"> </select> </div> <div class="form-group"> <label for="testDepartmentyName">Payment Mode </label> <select name="paymentmode" id="paymentmode" class="form-control1" style="width: 100%"> <option value="Select PaymentMode">Select PaymentMode</option> <option value="CASH">CASH</option> <option value="ONLINE">ONLINE</option> <option value="MOBILE WALLET">MOBILE WALLET</option> <option value="MOBILE WALLET">CHEQUE</option> <option value="MOBILE WALLET">BANK</option> <option value="MOBILE WALLET">POS</option> </select> </div> <button id="myBtn" class="btn btn-primary" >SHOW</button> </div> </div> <div class="col-md-9 graph-form general agile_info_shadow"> <h3 class="w3_inner_tittle two"></h3> <div id="daynamic-data" style="overflow-x:auto;"> <table id="studtable" class="table table-striped table-bordered"> <thead> <tr> <th></th> <th>Date</th> <th>File No\Vou. No.</th> <th>Uhid</th> <th>Name</th> <th>Charge Name </th> <th>Receive Amt</th> <th>Mode</th> <th>Bank</th> <th></th> </tr> </thead> <tbody id="displayArea"> </tbody> </table> </div> </div> <div class="clearfix"> </div> </div> <!--//set-1--> </div> <!--//forms-inner--> </div> <!--//forms--> </div> <!-- //inner_content_w3_agile_info--> </div> <!-- //inner_content--> </div> <!-- banner --> <style> .dropdown { position: relative; display: inline-block; } .dropdown-content { display: none; position: absolute; background-color: #f9f9f9; min-width: 160px; box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2); padding: 12px 16px; z-index: 1; } .dropdown:hover .dropdown-content { display: block; } </style> <head> <link href="style.css" rel="stylesheet" type="text/css" /> <script src="vendor/jquery/jquery-3.2.1.min.js" type="text/javascript"></script> <link rel="stylesheet" href="vendor/DataTables/jquery.datatables.min.css"> <script src="vendor/DataTables/jquery.dataTables.min.js" type="text/javascript"></script> <link rel="stylesheet" href="vendor/DataTables/buttons.datatables.min.css"> <script src="vendor/DataTables/dataTables.buttons.min.js" type="text/javascript"></script> <script src="vendor/DataTables/jszip.min.js" type="text/javascript"></script> <script src="vendor/DataTables/pdfmake.min.js" type="text/javascript"></script> <script src="vendor/DataTables/vfs_fonts.js" type="text/javascript"></script> <script src="vendor/DataTables/buttons.html5.min.js" type="text/javascript"></script> </head> <script type="text/javascript"> $(document).ready(function() { getdoctor("", ""); getcategory("", ""); $("#studtable").DataTable({ bLengthChange: true, "iDisplayLength": 10, bInfo: false, responsive: true, "bAutoWidth": false, dom: 'lBfrtip', buttons: [{ extend: 'copy', attr: { id: 'allan' } }, 'csv', 'excel', 'pdf'] }); var date = new Date(); $('#fromdate').val(formatDate(date)); $('#todate').val(formatDate(date)); }); 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 getdoctor(val, sid) { var identifier = 6; $.ajax({ type: "Post", url: "getalldepartment.php", data: '&identifier=' + identifier + '&sid=' + sid, success: function(res) { var data = JSON.parse(res); var sel = $("#consultant"); sel.empty(); for (var i = 0; i < data.length; i++) { if (data[i].parcode == val) { sel.append('<option value="' + data[i].parcode + '" selected=true>' + data[i] .parname + '</option>'); } else { sel.append('<option value="' + data[i].parcode + '">' + data[i].parname + '</option>'); } } /// $("#state").html(data); } }); } function getcategory(val, sid) { var identifier = 7; $.ajax({ type: "Post", url: "getalldepartment.php", data: '&identifier=' + identifier + '&sid=' + sid, success: function(res) { var data = JSON.parse(res); var sel = $("#category"); sel.empty(); for (var i = 0; i < data.length; i++) { if (data[i].parcode == val) { sel.append('<option value="' + data[i].parcode + '" selected=true>' + data[i] .parname + '</option>'); } else { sel.append('<option value="' + data[i].parcode + '">' + data[i].parname + '</option>'); } } /// $("#state").html(data); } }); } function abc(val, chargename) { if (chargename == "OPD" || chargename == "Emergency") { window.location.href = "opd.php?id=" + val + "&" + "op=Update"; } else { window.location.href = "manage_procedure.php?vou=" + val + "&" + "op=update"; } } function getbilldetails(val, chargename) { if (chargename == "OPD" || chargename == "Emergency") { window.location.href = "opd.php?id=" + val + "&" + "op=Update"; } else { window.location.href = "manage_procedure.php?vou=" + val + "&" + "op=update"; } } function abc1(val) { alert(val); } function Loaddailycollection() { var inputField1 = document.getElementById("fromdate"); if (inputField1.value == "") { flag = false; alert("Please enter from date."); document.getElementById("fromdate").focus(); return false; } var inputField2 = document.getElementById("todate"); if (inputField2.value == "") { flag = false; alert("Please enter to date."); document.getElementById("todate").focus(); return false; } var fromdate = document.getElementById("fromdate").value; var todate = document.getElementById("todate").value; var consultant = document.getElementById("consultant").value; var category = document.getElementById("category").value; var paymentmode = document.getElementById("paymentmode").value; var page = "1"; var query = ""; $.ajax({ url: "load_dailycollection.php", method: "POST", data: { page: page, query: query, fromdate: fromdate, todate: todate, consultant: consultant, category: category, paymentmode: paymentmode }, success: function(res) { $('#daynamic-data').html(res); // var data = JSON.parse(res); //table = $('#studtable').DataTable(); //table.clear(); //table.row.add(['','','','', 'Total Collection Report','','','','','']); //for (var i = 0; i < data.length; i++) { //table.row.add([data[i].trandate, data[i].sfileno,data[i].uhid,data[i].name,data[i].chargename, //data[i].recamt,data[i].paymentmode,data[i].bankname,data[i].chequeno,data[i].fileno]); // $('#displayArea').append("<tr>"+"<td>"+data[i].trandate+"</td>"+"<td>"+ data[i].sfileno+"</td>"+"<td>"+ data[i].uhid+"</td>"+ //"<td>"+data[i].name+"</td>"+"<td>"+data[i].chargename+"</td>"+"<td>"+data[i].recamt+"</td>"+"<td>"+data[i].paymentmode+"</td>"+ //"<td>"+data[i].bankname+"</td>"+"<td>"+data[i].chequeno+"</td>"+ // "</tr>" ); //} // table.draw(); } }); } </script> <script> // Get the modal // 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 inputField1 = document.getElementById("fromdate"); if (inputField1.value == "") { flag = false; alert("Please enter from date."); document.getElementById("fromdate").focus(); return false; } var inputField2 = document.getElementById("todate"); if (inputField2.value == "") { flag = false; alert("Please enter to date."); document.getElementById("todate").focus(); return false; } var fromdate = document.getElementById("fromdate").value; var todate = document.getElementById("todate").value; var consultant = document.getElementById("consultant").value; var category = document.getElementById("category").value; var paymentmode = document.getElementById("paymentmode").value; var table = $('#studtable').DataTable({ "ajax": { 'type': 'POST', 'url': 'load_collection.php', 'data': { fromdate: fromdate, todate: todate, consultant: consultant, category: category, paymentmode: paymentmode, // etc.. }, }, "bPaginate": true, destroy: true, "bProcessing": true, "pageLength": 10, dom: 'lBfrtip', buttons: [{ extend: 'copy', attr: { id: 'allan' } }, 'csv', 'excel', 'pdf'], "columns": [ { mData: null, defaultContent: '<button class="btn btn-warning">Select</button>', targets: -1 }, { mData: 'transactiondate' }, { mData: 'showfileno' }, { mData: 'suhid' }, { mData: 'name' }, { mData: 'chargename' }, { mData: 'recamt' }, { mData: 'paymentmode' }, { mData: 'bankname' }, { mData: 'fileno' } ] }); table.on('click', 'button', function(e) { var currentRow = $(this).closest("tr"); var voucherno = currentRow.find("td:eq(9)").text(); var chragename = currentRow.find("td:eq(5)").text(); getbilldetails(voucherno, chragename); }); } 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); } // 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> <?php include "footer.php";?>
Copyright © 2025 - UnknownSec