PEAR::HTML::Progress example: Determinate Monitor
Author: Laurent Laville

examples

# Determinate Monitor

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

- Introduction
- Render options
- Ouput
- PHP source syntax highlight
- Play demo

## Introduction

This example requires :

- PEAR::HTML_Progress_Monitor 1.2.2 or better (see source at line 12).

Be aware that:

- HTML_Progress_Monitor has dependencies (HTML_QuickForm 3.2.4+)

This example will run a simple ProgressBar Monitor, in determinate mode, with a class-method user callback.

Color scheme came from a UI pre-set model (class) called Progress_Default2, defined on lines 14 to 24.

The user callback defined on lines 26 to 36, and attached on progress bar at line 43, will echo each time +10% is reached.

QF renderer rules are defined on lines 73 to 85.

[Top]

## Render options

Here are the progress attributes:

    background-color = #e0e0e0

HTML_Progress_UI::setProgressAttributes()
Here are the progress string attributes:

    color            = #996
    background-color = #CCCC99

HTML_Progress_UI::setStringAttributes()
Here are the progress cells attributes:

    active-color = #996

HTML_Progress_UI::setCellAttributes()

[Top]

## Output

### Screenshot

[Top]

## PHP source syntax highlight

Open source listing in a new window.

[Top]

## Play demo

Run the script.

[Top]