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

examples

# ITDynamic 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, with a class-method user callback, that simulate a picture file upload operation.

Color scheme came from a UI pre-set model (class) called Progress_ITDynamic, defined on lines 16 to 27, and attached on progress bar at line 66.

The user callback defined on lines 29 to 55, and attached on progress bar at line 68, will simulate a picture file upload operation at 10%, 45% and 70%.

[Top]

## Render options

Here are the progress attributes:

    background-color = #EEE

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

    color            = navy
    background-color = #EEE

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

    inactive-color = #FFF
    active-color   = #444444

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]