UnknownSec Bypass
403
:
/
var
/
www
/
cotutilitydash
/ [
drwxrwxr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
consumption_report.php
<?php include "header.php"?> <?php include "sidemenu.php"?> <!-- <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> --> <div id="page-wrapper"> <div class="col-md-12 graphs"> <div class="xs"> <h3>Consumption Report</h3> <input type="hidden" class="form-control1" id="hdid" name="hdid"> <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="getequipment(this.value,'')"> </select> </div> <div class="col-md-6"> <label class="control-label">Select Equipment</label> <select class="form-control1 ng-invalid ng-invalid-required" ng-model="model.select" required="" id="equipment" name="equipment" onclick="getsubarea(this.value,'')"> </select> </div> <div class="clearfix"> </div> </div> </div> <div class="form-group"> <div class="row"> <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="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="clearfix"> </div> </div> </div> <div class="form-group"> <div class="row"> <div class="col-md-6"> <label class="control-label">To Date</label> <input type="Date" id="txttodate" name="txttodate" class="form-control1" placeholder="To Date"> </div> <div class="col-md-6"> <button type="submit" class="btn btn-primary" id="btnsave" onclick="show();">SHOW</button> <button type="reset" class="btn btn-default">Reset</button> </div> <div class="clearfix"> </div> </div> </div> <div class="form-group"> </div> </fieldset> </div> <div class="bs-example4 tab-content" data-example-id="simple-responsive-table"> <div class="table-responsive"> <table id="customer_data" class="table table-bordered table-striped"> <thead> <tr> <th width="15%">Date</th> <th width="25%">Area</th> <th width="20%">Equipment</th> <th width="20%">Sub Area</th> <th width="20%">Total Consumption</th> </tr> </thead> </table> </div> </div> </div> <script> function getarea(val) { $.ajax({ type: "Post", url: "get_userwise_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 getsubarea(equipment,val) { var area = document.getElementById("area").value; var sel = $("#subarea"); sel.empty(); $.ajax({ type: "Post", url: "get_userwise_subarea.php", data: '&area=' + area+'&equipment=' + equipment, success: function(res) { var data = JSON.parse(res); $("#subarea").append('<option> </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>'); } } } }); } function getequipment(val,val1) { var sel = $("#equipment"); sel.empty(); $.ajax({ type: "Post", url: "get_userwise_equipment.php", data: '&area=' + val, success: function(res) { var data = JSON.parse(res); $("#equipment").append('<option>Select Equipment</option>'); for (var i = 0; i < data.length; i++) { if (data[i].tname == val1) { 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); } }); } $(document).ready(function() { getarea(""); }); function show() { var inputField1 = document.getElementById("area"); if (inputField1.value == "Select Area") { flag = false; alert("Please select area."); document.getElementById("area").focus(); return false; } var inputField1 = document.getElementById("equipment"); if (inputField1.value == "Select Equipment") { flag = false; alert("Please select equipment."); document.getElementById("equipment").focus(); return false; } var inputField2 = document.getElementById("txtfromdate"); if (inputField2.value == "") { flag = false; alert("Please select from date."); document.getElementById("txtfromdate").focus(); return false; } var inputField3 = document.getElementById("txttodate"); if (inputField3.value == "") { flag = false; alert("Please select to date."); document.getElementById("txttodate").focus(); return false; } var area = document.getElementById("area").value; var equipment = document.getElementById("equipment").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, equipment: equipment, fromdate: fromdate, todate: todate, subarea: subarea } }, dom: 'lBfrtip', buttons: [ 'excel', 'csv', 'pdf', 'copy' ], "lengthMenu": [ [10, 25, 50, -1], [10, 25, 50, "All"] ] }); } </script> <?php include "footer.php"?>
Copyright © 2025 - UnknownSec