One Hat Cyber Team
Your IP :
172.16.0.254
Server IP :
58.26.163.33
Server :
Windows NT DGPENSV2LPKMN 10.0 build 14393 (Windows Server 2016) AMD64
Server Software :
Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/7.3.25
PHP Version :
7.3.25
Buat File
|
Buat Folder
Eksekusi
Dir :
C:
/
xampp7
/
htdocs
/
edgpens
/
dashboard
/
View File Name :
d2.php
<?php include_once "../access_inc.php"; ?> <?php $q1="SELECT COUNT(*) as bil, flagDG FROM permohonan_main WHERE submit='Y' AND status!='R' GROUP BY flagDG"; $res1=mysqli_query($mysqli_link,$q1) or die(mysqli_connect_error()); $stmt = $mysqli->stmt_init(); $stmt->prepare("SELECT COUNT(*) as bil, flagDG FROM permohonan_main WHERE submit='Y' AND status!='R' GROUP BY flagDG") ; $stmt->execute(); $result = $stmt->get_result(); $stmt->close(); ?> <script type="text/javascript"> google.charts.load("current", {packages:["corechart"]}); google.charts.setOnLoadCallback(drawChart); function drawChart() { var data = google.visualization.arrayToDataTable([ ['TYPE', 'NO'], <?php while($aa = $result->fetch_assoc()){ if($aa["flagDG"]=="Y"){ $tot1 = $aa['bil']; $type = "PENS + DG"; }else{ $tot2 = $aa['bil']; $type = "PENS"; } echo "['".$type."', ".$aa["bil"]."],"; } ?> ]); var options = { //title: 'My Daily Activities', is3D: true, // legend: 'none', legend: {position: 'labeled', textStyle: {color: 'black', bold: true}}, colors: ['#1b9e77', '#fa8654', '#99cc00', '#d95f02', '#9797ff', '#DEB25C'], //pieHole: 0.5, // pieStartAngle: 100, pieSliceText: 'none', chartArea: {'width': '100%', 'height': '100%'}, backgroundColor: "transparent" }; var chart = new google.visualization.PieChart(document.getElementById('piechart_3d')); chart.draw(data, options); $(window).smartresize(function () { chart.draw(data, options); }); // $(window).trigger("resize"); } $(document).ready(function(){ // $(window).trigger("resize"); $('#row-grid').isotope('layout'); }); </script> <div class="widget"> <div class="widget-content border-bottom text-dark"> <span class="pull-right text-muted">This Month</span> <?php echo $dtitle; ?> </div> <div class="widget-content border-bottom themed-background-muted"> <div id="piechart_3d"></div> </div> <div class="widget-content widget-content-full-top-bottom"> <div class="row text-center"> <div class="col-xs-6 border-right"> <h3 class="widget-heading text-dark push-bit"><?php echo $tot2; ?><BR><small>PENS</small></BR><span data-toggle="counter" data-to="<?php echo $rslt['tot_permohonan'];?>" ></span></h3> </div> <div class="col-xs-6"> <h3 class="widget-heading text-dark push-bit"><?php echo $tot1; ?></i><BR><small>PENS + DG</small></BR><span data-toggle="counter" data-to="<?php echo $rslt['tot_ack'];?>"></span></h3> </div> </div> </div> </div>