Example #1
0
function get_perc()
{
    $info = array();
    $info['net_info'] = get_network();
    $info['cpu_info'] = get_cpu();
    $info['disk_info'] = get_disk();
    $info['mem_info'] = get_mem();
    return $info;
}
Example #2
0
?>
,
        color: "#949FB1",
        highlight: "#A8B3C5",
        label: "Drops"
    }
];

            // get pie chart canvas
            var network= document.getElementById("network").getContext("2d");
            // draw pie chart
            new Chart(network).PolarArea(netData, netOptions);
</script>
<script>
<?php 
$disk_info = get_disk();
$diskUse = $disk_info['used'];
$diskFre = $disk_info['free'];
?>
var diskData = {
    labels: ["Disk Free", "Disk Used" ],
    datasets: [
        {
            label: "Root Disk",
            fillColor: "rgba(220,220,220,0.5)",
            strokeColor: "rgba(220,220,220,0.8)",
            highlightFill: "rgba(220,220,220,0.75)",
            highlightStroke: "rgba(220,220,220,1)",
            data: [<?php 
print $diskFre;
?>
Example #3
0
        </nav>
        </div>
        <?php 
$url = $this->uri->segment(2);
if ($url) {
    $this->load->view($url);
} else {
    $this->load->view('dashboard');
}
?>
            <div class="footer">
                <div class="pull-right">
                    <?php 
$free = disk_free_space(FCPATH);
$total = disk_total_space(FCPATH);
echo get_disk($free) . " Free of <strong>" . get_disk($total) . '</strong>';
?>
                </div>
                <div>
                    <strong>Copyright</strong> SMK Taruna Bhakti &copy; <?php 
echo date('Y');
?>
                </div>
            </div>
        </div>
        </div>
    <script src="<?php 
echo base_url('assets');
?>
/js/bootstrap.min.js"></script>
    <script src="<?php