UnknownSec Bypass
403
:
/
var
/
www
/
cotutilitydash
/ [
drwxrwxr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
testchart.php
<?php //$dataPoints = array( // array("y" => 3373.64, "label" => "Germany" ), //array("y" => 2435.94, "label" => "France" ), // array("y" => 1842.55, "label" => "China" ), // array("y" => 1828.55, "label" => "Russia" ), // array("y" => 1039.99, "label" => "Switzerland" ), // array("y" => 765.215, "label" => "Japan" ), // array("y" => 612.453, "label" => "Netherlands" ) // ); // Load the database configuration file include_once 'config.php'; $myarr=array(); // Get member rows $query=" SELECT * FROM v_consumptiondetails ORDER BY consumid DESC"; $result = mysqli_query($conn, $query); //$result = $db->query("SELECT * FROM v_consumptiondetails ORDER BY consumid DESC"); if($result->num_rows > 0){ $i=0; while($row = $result->fetch_array()) { $myarr[$i]["label"]=$row["subarea"]; $myarr[$i]["y"]=$row["totalconsumption"]; $i++; } } ?> <!DOCTYPE HTML> <html> <head> <script> window.onload = function() { var chart = new CanvasJS.Chart("chartContainer", { animationEnabled: true, theme: "light2", title: { text: "Consumption Report" }, axisY: { title: "Total Consumption" }, data: [{ type: "column", yValueFormatString: "#,##0.## Unit.", dataPoints: <?php echo json_encode($myarr, JSON_NUMERIC_CHECK); ?> }] }); chart.render(); } </script> </head> <body> <div id="chartContainer" style="height: 370px; width: 100%;"></div> <script src="https://cdn.canvasjs.com/canvasjs.min.js"></script> </body> </html>
Copyright © 2025 - UnknownSec