Examples TOCexamples

Default ProgressBar Generator

$Date: 2005/07/25 12:52:15 $

 Table of contents

Introduction

This example requires :

Be aware that:


This example will run a default ProgressBar Controller Wizard that will help you to create your own progress bar. You may even save the CSS and/or PHP code at end !

Few lines of code are necessary to run this generator. First we start a session at line 15 (to keep data), then we create a HTML_Progress_Generator instance at line 17 without options, and finally run the controller wizard itself at line 18.

[Top]

 Render options

None, uses all defaults:

[Top]

 Output

Screenshot

[Top]

 PHP source syntax highlight

  1. <?php
  2. /**
  3.  * Generator usage example using Default QF renderer
  4.  * without any changes (all default options are used).
  5.  *
  6.  * @version    $Id: default.php,v 1.2 2005/07/25 12:52:15 farell Exp $
  7.  * @author     Laurent Laville <pear@laurent-laville.org>
  8.  * @package    HTML_Progress
  9.  * @subpackage Examples
  10.  */
  11.  
  12. require_once 'HTML/Progress/generator.php';
  13.  
  14.  
  15. session_start();
  16.  
  17. $tabbed = new HTML_Progress_Generator();
  18. $tabbed->run();
  19. ?>

[Top]