PHP Classes

File: example_vertical.php

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

Contents

Class file image Download
<?php

require("folder_space.class.php");


$data = array(
'total'=>3072, //3 kb //quota please enter in byte format
'max_height'=>150, //Set your Graphic height (px).
'max_width'=>4, //Set your Graphic width (px).
'axis'=> 'vertical', //horizontal
'bar_name'=>'Folder Disk Space', //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
);
$folder = new handle();
$folder->create($data);

$data2 = array(
'total'=>3072, //3kb //quota enter in byte format
'max_height'=>250, //Set your Graphic height (px).
'max_width'=>10, //Set your Graphic width (px).
'axis'=> 'vertical', //horizontal
'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);

?>