Default Generator

Overview

This example will run the default Progress2 Generator Wizard that will help you to build your own progress bar.
You may even save the CSS and/or PHP code.

Screenshot

sample screenshot

Demonstration

Give it a try

Dependencies

This example requires mandatory resources :

And also but optional :

Explains step by step

The wizard windows (ProgressGenerator) have default actions (preview, display, process) : see class constructor parameters (line 16).

Attribute Value Default
preview   ActionPreview =
HTML/Progress2/Generator/Preview.php
display   ActionDisplay =
HTML/Progress2/Generator/Display.php
process   ActionProcess =
HTML/Progress2/Generator/Process.php

Source Code

  1. <?php
  2. /**
  3. * Generator example using Default QF renderer
  4. * without any changes (all default options are used).
  5. *
  6. * @version    $Id: generatordef.php,v 1.1 2005/06/12 21:03:35 farell Exp $
  7. * @author     Laurent Laville <pear@laurent-laville.org>
  8. * @package    HTML_Progress2
  9. * @subpackage Examples
  10. * @access     public
  11. */
  12. require_once 'HTML/Progress2/Generator.php';
  13.  
  14. session_start();
  15.  
  16. $tabbed = new HTML_Progress2_Generator();
  17. $tabbed->run();
  18. ?>