PHP Classes
Icontem

File: example_multiple_folder.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_multiple_folder.php  
File: example_multiple_folder.php
Role: Example script
Content type: text/plain
Description: example multiple folder in one 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");

//Check Multiple folder calculate total space and union them in one bar.
//do  not add subfolder folder_space can calculate the sub directories..
define('FOLDER1','folder/');
define('FOLDER2','folder2/');

$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'=>'Multiple Folder in One Bar',  //label
'dir'=> array(FOLDER1,FOLDER2),  ## set MULTIPLE folder !!!
'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);

?>

 
  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