UnknownSec Bypass
403
:
/
var
/
www
/
html
/
adminpnl
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
order_print_report.php
<?php include "top.php"; ?> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js"></script> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css" integrity="sha384-Zug+QiDoJOrZ5t4lssLdxGhVrurbmBWopoEl+M6BdEfwnCJZtKxi1KgxUyJq13dy" crossorigin="anonymous"> <link rel="stylesheet" href="https://unpkg.com/placeholder-loading/dist/css/placeholder-loading.min.css"> <script> $(document).ready(function(){ function load_data(page, query = '') { $.ajax({ url:"fetch.php", method:"POST", data:{page:page, query:query}, success:function(data) { $('#dynamic_content').html(data); } }); } $(document).on('click', '.page-link', function(){ var page = $(this).data('page_number'); if(page="undefined") { return; } var query =""; var inputField1 =document.getElementById("txtfromdate"); if (inputField1.value == "") { flag = false; alert("Please enter from date."); document.getElementById("txtfromdate").focus(); return false; } // Parse the date parts to integers var parts = inputField1.value.split("-"); var day = parseInt(parts[0], 10); if(isNaN(day)) { alert("Date is not correct."); document.getElementById("txtfromdate").focus(); return false; } var month = parseInt(parts[1], 10); if(isNaN(month)) { alert("Month is not correct."); document.getElementById("txtfromdate").focus(); return false; } var year = parseInt(parts[2], 10); if(isNaN(year)) { alert("Year is not correct."); document.getElementById("txtfromdate").focus(); return false; } // Check the ranges of month and year if (year < 2020 || year > 3000 || day > 31 || month == 0 || month > 12) { if (day > 31) { alert("day is not correct"); document.getElementById("txtfromdate").focus(); return false; } if (month == 0 || month > 12) { alert("month is not correct"); document.getElementById("txtfromdate").focus(); return false; } if (year < 2020 || year > 3000) { alert("year is not correct"); document.getElementById("txtfromdate").focus(); return false; } } var inputField2 =document.getElementById("txttodate"); if (inputField2.value == "") { flag = false; alert("Please enter to date date."); document.getElementById("txttodate").focus(); return false; } // Parse the date parts to integers var parts = inputField2.value.split("-"); var day = parseInt(parts[0], 10); if(isNaN(day)) { alert("Date is not correct."); document.getElementById("txttodate").focus(); return false; } var month = parseInt(parts[1], 10); if(isNaN(month)) { alert("Month is not correct."); document.getElementById("txttodate").focus(); return false; } var year = parseInt(parts[2], 10); if(isNaN(year)) { alert("Year is not correct."); document.getElementById("txttodate").focus(); return false; } // Check the ranges of month and year if (year < 2020 || year > 3000 || day > 31 || month == 0 || month > 12) { if (day > 31) { alert("day is not correct"); document.getElementById("txttodate").focus(); return false; } if (month == 0 || month > 12) { alert("month is not correct"); document.getElementById("txttodate").focus(); return false; } if (year < 2020 || year > 3000) { alert("year is not correct"); document.getElementById("txttodate").focus(); return false; } } var fromdate = document.getElementById("txtfromdate").value; var todate = document.getElementById("txttodate").value; var canteen = document.getElementById("hdcanteen").value; $.ajax({ url:"load_token_report.php", method:"POST", data:{page:page, query:query,fromdate:fromdate,todate:todate,canteen:canteen}, success:function(data) { aler(data); $('#dynamic_content').html(data); } }); }); $('#search_box').keyup(function(){ var query = $('#search_box').val(); load_data(1, query); }); }); function Loadbooktokendata() { var inputField1 =document.getElementById("txtfromdate"); if (inputField1.value == "") { flag = false; alert("Please enter from date."); document.getElementById("txtfromdate").focus(); return false; } // Parse the date parts to integers var parts = inputField1.value.split("-"); var day = parseInt(parts[0], 10); if(isNaN(day)) { alert("Date is not correct."); document.getElementById("txtfromdate").focus(); return false; } var month = parseInt(parts[1], 10); if(isNaN(month)) { alert("Month is not correct."); document.getElementById("txtfromdate").focus(); return false; } var year = parseInt(parts[2], 10); if(isNaN(year)) { alert("Year is not correct."); document.getElementById("txtfromdate").focus(); return false; } // Check the ranges of month and year if (year < 2020 || year > 3000 || day > 31 || month == 0 || month > 12) { if (day > 31) { alert("day is not correct"); return false; } if (month == 0 || month > 12) { alert("month is not correct"); return false; } if (year < 2020 || year > 3000) { alert("year is not correct"); return false; } } var inputField2 =document.getElementById("txttodate"); if (inputField2.value == "") { flag = false; alert("Please enter to date date."); document.getElementById("txttodate").focus(); return false; } // Parse the date parts to integers var parts = inputField2.value.split("-"); var day = parseInt(parts[0], 10); if(isNaN(day)) { alert("Date is not correct."); document.getElementById("txttodate").focus(); return false; } var month = parseInt(parts[1], 10); if(isNaN(month)) { alert("Month is not correct."); document.getElementById("txttodate").focus(); return false; } var year = parseInt(parts[2], 10); if(isNaN(year)) { alert("Year is not correct."); document.getElementById("txttodate").focus(); return false; } // Check the ranges of month and year if (year < 2020 || year > 3000 || day > 31 || month == 0 || month > 12) { if (day > 31) { alert("day is not correct"); document.getElementById("txttodate").focus(); return false; } if (month == 0 || month > 12) { alert("month is not correct"); document.getElementById("txttodate").focus(); return false; } if (year < 2020 || year > 3000) { alert("year is not correct"); document.getElementById("txttodate").focus(); return false; } } var fromdate = document.getElementById("txtfromdate").value; var todate = document.getElementById("txttodate").value; var canteen = document.getElementById("hdcanteen").value; var page="1"; var query=""; $.ajax({ url:"load_orderdetails.php", method:"POST", data:{page:page, query:query,fromdate:fromdate,todate:todate,canteen:canteen}, success:function(data) { $('#dynamic_content').html(data); } }); } function PrintPanel() { var panel = document.getElementById("dynamic_content"); var printWindow = window.open('', '', 'height=400,width=800'); printWindow.document.write('<html><head><title>ORDER LIST REPORT</title>'); printWindow.document.write('</head><body >'); printWindow.document.write(panel.innerHTML); printWindow.document.write('</body></html>'); printWindow.document.close(); setTimeout(function () { printWindow.print(); }, 500); return false; } </script> <!-- /contact-form --> <section class="w3l-contact-main"> <div class="contact-infhny py-5"> <div class="container py-lg-3"> <div class="row align-form-map"> <div class="col-lg-10 title-content text-left mb-lg-4 mb-4"> <h4 class="hny-title mb-3"> Order<span> VIEW & PRINT REPORT</span></h4> </div> <div class="col-lg-2"> </div> <!-- /give-set1--> <div class="col-lg-12 form-inner-cont"> <input type="hidden" name="hdID" id="hdcanteen" value="<?php echo $_SESSION['admincanteenname']; ?>" /> <div class="row"> <div class="col-md-6 col-6 mt-4"> From Date: <input type="text" name="search_box" id="txtfromdate" class="form-control" placeholder="dd-MM-yyyy" /> </div> <div class="col-md-6 col-6 mt-4"> To Date: <input type="text" name="search_box" id="txttodate" class="form-control" placeholder="dd-MM-yyyy" /> </div> <div class="col-md-6 col-6 mt-4"> <button type="submit" style="width: 100%" name="btnsavecustomer" id="btnsavecustomer" onclick="Loadbooktokendata();" class="btn btn-contact">Show</button> </div> <div class="col-md-6 col-6 mt-4"> <button type="submit" style="width: 100%" name="btnprint" id="btnsavecustomer" onclick="return PrintPanel();" class="btn btn-contact">Print</button> </div> <br> <div class="table-responsive" id="dynamic_content"> </div> </div> <!-- /give-set1--> </div> <div> </div> </section> <!-- //contact-form --> <?php include "footer.php";?>
Copyright © 2025 - UnknownSec