PHP Classes

File: example_horizontal.php

Recommend this page to a friend!
  Classes of Ersin Güvenç   Folder Space Folder Quota with Percent Bar   example_horizontal.php   Download  
File: example_horizontal.php
Role: Example script
Content type: text/plain
Description: example horizontal bar
Class: Folder Space Folder Quota with Percent Bar
Shows bars with the available space in directories
Author: By
Last change:
Date: 15 years ago
Size: 1,651 bytes
 

Contents

Class file image Download
<?php
require("folder_space.class.php");

$data = array(
'total'=>3072, //3 kb //quota enter byte format
'max_height'=>150, //Set your Graphic height (px)
'max_width'=>15, //Set your Graphic width (px).
'axis'=> 'horizontal', //vertical
'bar_name'=>'Folder Disk Space 1', //label
'dir'=> "folder/", //set your directory url
'empty_color'=>'#DDDDDD', //empty bar color
'full_color'=>'#bb3902', //full bar color
'float'=>'left', //css float control left or right
'var_dump'=> false //var_dump() function for testing.
);
$folder = new handle();
$folder->create($data);

echo
"<div style=\"clear:both;\"></div>";

$data2 = array(
'total'=>3072, //3 kb //quota enter byte format
'max_height'=>400, //Set your Graphic height (px)
'max_width'=>4, //Set your Graphic width (px).
'axis'=> 'horizontal', //vertical
'bar_name'=>'Folder Disk Space 2', //label
'dir'=> "folder/", //set your directory url
'empty_color'=>'#DDDDDD', //empty bar color
'full_color'=>'#3300FF', //full bar color
'float'=>'left' //css float control left or right
);
$folder2 = new handle();
$folder2->create($data2);

$data3 = array(
'total'=>3072, //3 kb //quota enter byte format
'max_height'=>200, //Set your Graphic height (px).
'max_width'=>4, //Set your Graphic width (px).
'axis'=> 'horizontal', //horizontal
'bar_name'=>'Folder Disk Space 3', //label
'dir'=> "folder/", //set your directory url
'empty_color'=>'#DDDDDD', //empty bar color
'full_color'=>'#3300FF', //full bar color
'float'=>'left' //css float control left or right
);
$folder3 = new handle();
$folder3->create($data3);

?>