UnknownSec Bypass
403
:
/
var
/
www
/
cotutilitydash
/ [
drwxrwxr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
subarea_comparison_report.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"> <h3> Month Wise Comparison Report </h3> <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 Month</label> <select class="form-control1 ng-invalid ng-invalid-required" ng-model="model.select" required="" id="month" name="month"> <option value="Select Month">Select Month</option> <option value="1">January</option> <option value="2">February</option> <option value="3">March</option> <option value="4">April</option> <option value="5">May</option> <option value="6">June</option> <option value="7">July</option> <option value="8">August</option> <option value="9">September</option> <option value="10">October</option> <option value="11">November</option> <option value="12">December</option> </select> </div> </div> </div> <div class="form-group"> <div class="row"> <div class="col-md-6"> <label class="control-label">Year</label> <select class="form-control1 ng-invalid ng-invalid-required" ng-model="model.select" required="" id="year" name="year"> <option value="Select Year">Select Year</option> <option value="2024">2024</option> <option value="2025">2025</option> <option value="2026">2026</option> <option value="2027">2027</option> <option value="2028">2028</option> <option value="2029">2029</option> <option value="2030">2030</option> <option value="2031">2031</option> <option value="2032">2032</option> <option value="2033">2033</option> <option value="2034">2034</option> <option value="2035">2035</option> </select> </div> <div class="col-md-6 grid_box1"> <label class="control-label">Select Last Year Month</label> <select class="form-control1 ng-invalid ng-invalid-required" ng-model="model.select" required="" id="lastmonth" name="lastmonth"> <option value="Select Month">Select Month</option> <option value="1">January</option> <option value="2">February</option> <option value="3">March</option> <option value="4">April</option> <option value="5">May</option> <option value="6">June</option> <option value="7">July</option> <option value="8">August</option> <option value="9">September</option> <option value="10">October</option> <option value="11">November</option> <option value="12">December</option> </select> </div> </div> </div> <div class="form-group"> <div class="row"> <div class="col-md-6"> <label class="control-label">Select Last Year</label> <select class="form-control1 ng-invalid ng-invalid-required" ng-model="model.select" required="" id="lastyear" name="lastyear"> <option value="Select Year">Select Year</option> <option value="2024">2024</option> <option value="2025">2025</option> <option value="2026">2026</option> <option value="2027">2027</option> <option value="2028">2028</option> <option value="2029">2029</option> <option value="2030">2030</option> <option value="2031">2031</option> <option value="2032">2032</option> <option value="2033">2033</option> <option value="2034">2034</option> <option value="2035">2035</option> </select> </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;"> <table width="100%"> <tr> <td width="50%"> <div id="columnchart_material" style="width: 50%; height: 500px;"> </td> <td width="50%"> <div id="columnchart_material1" style="width: 50%; height: 500px;"> </td> </tr> </table> <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("month").value="Select Month"; document.getElementById("year").value="Select Year"; window.location.href="subarea_comparison_report.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("month"); if (inputField4.value == "Select Month") { flag = false; alert("Please select Month."); document.getElementById("month").focus(); return false; } var inputField5 = document.getElementById("year"); if (inputField5.value == "Select Year") { flag = false; alert("Please select Year."); document.getElementById("year").focus(); return false; } var inputField6 = document.getElementById("lastmonth"); if (inputField6.value == "Select Month") { flag = false; alert("Please select Month."); document.getElementById("lastmonth").focus(); return false; } var inputField7 = document.getElementById("lastyear"); if (inputField7.value == "Select Year") { flag = false; alert("Please select Year."); document.getElementById("lastyear").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 month = document.getElementById("month").value; var ryear=document.getElementById("year").value; var Lastmonth=document.getElementById("lastmonth").value; var Lastyear=document.getElementById("lastyear").value; var title=""; load_monthwise_data(ryear,month,area,equipment,subarea,title); loadlastyear_monthwise_data(Lastyear,Lastmonth,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 loadlastyear_monthwise_data(year, month,area,equipment,subarea,title) { var temp_title = title+'Area :'+area+' Equipment :'+equipment + ' Last Year :'+year+' Last Year Month :'+month; $.ajax({ url:"load_subarea_comparison_report.php", method:"POST", data:{year:year,month:month,area:area,equipment:equipment,subarea:subarea}, dataType:"JSON", success:function(data) { drawLastyearMonthwiseChart(data, temp_title); } }); } function load_monthwise_data(year, month,area,equipment,subarea,title) { var temp_title = title+'Area :'+area+' Equipment :'+equipment + ' Year :'+year+' Month :'+month; $.ajax({ url:"load_subarea_comparison_report.php", method:"POST", data:{year:year,month:month,area:area,equipment:equipment,subarea:subarea}, dataType:"JSON", success:function(data) { drawMonthwiseChart(data, temp_title); } }); } function drawLastyearMonthwiseChart(chart_data, chart_main_title) { var jsonData = chart_data; var data = new google.visualization.DataTable(); data.addColumn('string', 'SubArea'); data.addColumn('number', 'Consumption'); $.each(jsonData, function(i, jsonData){ var subarea = jsonData.subarea; var consumption = parseFloat($.trim(jsonData.consumption)); data.addRows([[subarea, consumption]]); }); var options = { title:chart_main_title, hAxis: { title: "SubArea" }, vAxis: { title: 'Consumption' } }; var chart = new google.visualization.ColumnChart(document.getElementById('columnchart_material1')); chart.draw(data, options); } function drawMonthwiseChart(chart_data, chart_main_title) { var jsonData = chart_data; var data = new google.visualization.DataTable(); data.addColumn('string', 'SubArea'); data.addColumn('number', 'Consumption'); $.each(jsonData, function(i, jsonData){ var subarea = jsonData.subarea; var consumption = parseFloat($.trim(jsonData.consumption)); data.addRows([[subarea, consumption]]); }); var options = { title:chart_main_title, hAxis: { title: "SubArea" }, 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