PHP Classes
Icontem

File: example_horizontal.php


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Ersin Güvenç  >  Folder Space Folder Quota with Percent Bar  >  example_horizontal.php  
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
 

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);

?>

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products