UnknownSec Bypass
403
:
/
var
/
www
/
cotutilitydash
/ [
drwxrwxr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
dashboard.php
<?php include "header.php"?> <?php include "sidemenu.php"?> <div id="page-wrapper"> <div class="graphs"> <div class="col_3"> <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">Equipment</label> <select class="form-control1 ng-invalid ng-invalid-required" ng-model="model.select" required="" id="equipment" name="equipment" onchange="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">Sub Area</label> <select class="form-control1 ng-invalid ng-invalid-required" ng-model="model.select" required="" id="subarea" name="subarea[]" multiple="multiple" > </select> </div> <div class="col-md-6 grid_box1"> <label class="control-label">Select From Date</label> <input type="date" id="txtfromdate" name="txtfromdate" class="form-control1" placeholder="from date"> </div> </div> </div> <div class="form-group"> <div class="row"> <div class="col-md-6"> <label class="control-label">Select To Date</label> <input type="date" id="txttodate" name="txtfromdate" class="form-control1" placeholder="from date"> </div> <div class="col-md-6"> <button type="submit" onclick="show();" class="btn btn-primary" id="btnshow">SHOW</button> <button type="reset" class="btn btn-default" onclick="clearall();">Reset</button> </div> </div> </div> <input type="text" id="testq" name="testq" class="form-control1 ng-invalid ng-invalid-required ng-touched" required=""> <div class="span_12" style="border: 1px solid #333; padding: 10px; background-color: #FFFFFF;"> <div id="columnchart_material" style="width: 100%; height: 500px;"> <script type="text/javascript"> 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>'); } } } }); } 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); } }); } function getsubarea1(area,equipment, val) { 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>Select Subarea</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 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>'); } } } }); } $(document).ready(function() { getarea(""); }); function clearall() { document.getElementById("area").value="Select Area"; document.getElementById("equipment").value="Select Equipment"; document.getElementById("subarea").value=""; document.getElementById("txtfromdate").value=""; document.getElementById("txttodate").value=""; window.location.href="dashboard.php"; } 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 inputField2 = document.getElementById("equipment"); if (inputField2.value == "Select Equipment") { flag = false; alert("Please select Equipment."); document.getElementById("equipment").focus(); return false; } var inputField4 = document.getElementById("txtfromdate"); if (inputField4.value == "") { flag = false; alert("Please select from date."); document.getElementById("txtfromdate").focus(); return false; } var inputField5 = document.getElementById("txttodate"); if (inputField5.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 subarea=$('#subarea').val(); var foo = $('#subarea').val(); var subarea=foo.toString(); document.getElementById("testq").value=subarea; var fromdate = document.getElementById("txtfromdate").value; var todate=document.getElementById("txttodate").value; var title=""; load_monthwise_data(fromdate,todate,area,equipment,subarea,title); } </script> </div> <div class="clearfix"> </div> </div> <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> <script type="text/javascript"> google.charts.load('current', {packages: ['corechart', 'bar']}); google.charts.setOnLoadCallback(); function load_monthwise_data(fromdate,todate,area,equipment,subarea,title) { var temp_title = title+'Area :'+area+' Equipment :'+equipment + ' From date :'+fromdate+' To Date :'+todate; $.ajax({ url:"grap_fetch.php", method:"POST", data:{fromdate:fromdate,todate:todate,area:area,equipment:equipment,subarea:subarea}, dataType:"JSON", success:function(data) { drawMonthwiseChart(data, temp_title); } }); } function drawMonthwiseChart(chart_data, chart_main_title) { var jsonData = chart_data; var data = new google.visualization.DataTable(); data.addColumn('string', 'Date'); data.addColumn('number', 'Consumption'); $.each(jsonData, function(i, jsonData){ var month = jsonData.date; var profit = parseFloat($.trim(jsonData.consumption)); data.addRows([[month, profit]]); }); var options = { title:chart_main_title, hAxis: { title: "Sub Area" }, vAxis: { title: 'Consumption' } }; var chart = new google.visualization.ColumnChart(document.getElementById('columnchart_material')); chart.draw(data, options); } </script> <?php include "footer.php"?>
Copyright © 2025 - UnknownSec