UnknownSec Bypass
403
:
/
var
/
www
/
cotutilitydash
/ [
drwxrwxr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
report_test.php
<html> <head> <title></title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script> <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/r/dt/jq-2.1.4,jszip-2.5.0,pdfmake-0.1.18,dt-1.10.9,af-2.0.0,b-1.0.3,b-colvis-1.0.3,b-html5-1.0.3,b-print-1.0.3,se-1.0.1/datatables.min.css"/> <script type="text/javascript" src="https://cdn.datatables.net/r/dt/jq-2.1.4,jszip-2.5.0,pdfmake-0.1.18,dt-1.10.9,af-2.0.0,b-1.0.3,b-colvis-1.0.3,b-html5-1.0.3,b-print-1.0.3,se-1.0.1/datatables.min.js"></script> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" /> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> </head> <body> <div class="container box"> <h3 align="center">Export jQuery Datatables Data to Excel, CSV, PDF using PHP Ajax</h3> <br /> <div class="well1 white"> <fieldset> <div class="form-group"> <div class="row"> <div class="col-md-6 grid_box1"> <label class="control-label">Select Area</label> <select class="form-control1 ng-invalid ng-invalid-required" ng-model="model.select" required="" id="area" name="area" onchange="getsubarea(this.value);" > </select> </div> <div class="col-md-6"> <label class="control-label">Select Sub Area</label> <select class="form-control1 ng-invalid ng-invalid-required" ng-model="model.select" required="" id="subarea" name="subarea"> </select> </div> <div class="clearfix"> </div> </div> </div> <div class="form-group"> <div class="row"> <div class="col-md-6 grid_box1"> <label class="control-label">From Date</label> <input type="date" id="txtfromdate" name="txtfromdate" class="form-control1" placeholder="from date"> </div> <div class="col-md-6"> <label class="control-label">Total Consumption</label> <input type="Date" id="txttodate" name="txttodate" class="form-control1" placeholder="To Date"> </div> <div class="clearfix"> </div> </div> </div> <!-- <div class="form-group filled"> <label class="control-label">Select Area</label> <select class="form-control1 ng-invalid ng-invalid-required" ng-model="model.select" required=""> <option value="? undefined:undefined ?"></option> <option value="Select a pirate">Select a pirate</option> <option value="Monkey D. Luffy">Monkey D. Luffy</option> <option value="Roronoa Zoro">Roronoa Zoro</option> <option value="Tony Tony Chopper">Tony Tony Chopper</option> <option value="Nico Robin">Nico Robin</option> <option value="Bon Clay">Bon Clay</option> </select> </div> <div class="form-group"> <label class="control-label">Sub Area Name</label> <input type="text" class="form-control1 ng-invalid ng-invalid-required ng-touched" required=""> </div> --> <div class="form-group"> <button type="submit" class="btn btn-primary" id="btnsave" onclick="show();">SHOW</button> <button type="reset" class="btn btn-default">Reset</button> </div> </fieldset> </div> <div class="table-responsive"> <table id="customer_data" class="table table-bordered table-striped"> <thead> <tr> <th>Date</th> <th>Area</th> <th>Sub Area</th> <th>Total Consumption</th> </tr> </thead> </table> </div> </div> <br /> <br /> </body> </html> <script type="text/javascript" language="javascript" > $(document).ready(function(){ getarea(""); }); function getarea(val) { $.ajax({ type: "Post", url: "get_area.php", success: function(res) { var data = JSON.parse(res); var sel = $("#area"); sel.empty(); $("#area").append('<option>Select Area</option>'); for (var i = 0; i < data.length; i++) { if (data[i].tname == val) { sel.append('<option value="' + data[i].tname + '" selected=true>' + data[i] .tname + '</option>'); } else { sel.append('<option value="' + data[i].tname + '">' + data[i].tname + '</option>'); } } // $('#particular').editableSelect(); /// $("#state").html(data); } }); } function show() { var area = document.getElementById("area").value; //var subarea = document.getElementById("subarea").value; var fromdate = document.getElementById("txtfromdate").value var todate = document.getElementById("txttodate").value $('#customer_data').DataTable().destroy(); $('#customer_data').DataTable({ "processing" : true, "serverSide" : true, "searching" : false, "ajax" : { url:"fetch.php", type:"POST", data:{ area:area, fromdate:fromdate,todate:todate } }, dom: 'lBfrtip', buttons: [ 'excel', 'csv', 'pdf', 'copy' ], "lengthMenu": [ [10, 25, 50, -1], [10, 25, 50, "All"] ] }); } </script>
Copyright © 2025 - UnknownSec