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

examples

# Indeterminate 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 function user callback. Its starts in indeterminate mode then switch back in determinate mode.

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

The user callback defined on lines 27 to 47, and attached on progress bar at line 54, will run progress bar until its reached 60 then switch back to determinate mode to complete process. All 10%, we will echo result on monitor.

QF renderer rules are defined on lines 91 to 103.

[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]