PEAR::HTML::Progress example: setModel
Author: Laurent Laville
Description: how to use the setmodel feature

examples

# setModel

$Date: 2005/07/25 10:25:43 $

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

## Introduction

This example requires :

- PEAR::HTML_Progress 1.2.2 or better.

This example will run a horizontal ProgressBar defined by an external configuration file.

The setModel feature is useful, when you don't want to change your php scripts but only the look and feel of the progress meter.

[Top]

## Render options

Here are options to build this progress bar :

    (1) speed  = 250
    (2) increment = 5
    (3) javascript = "../horizontal/progress_number.js"
    (4) fillway = reverse
    (5) count = 20
    (6) active-color   = #970038
    (6) inactive-color = #FFDDAA
    (6) width          = 20
    (6) height         = 20
    (7) width = 1
    (7) color = #000000
    (8) width     = 440
    (8) font-size = 14
    (8) color     = #FF0000
    (8) align     = center
    (8) valign    = bottom

HTML_Progress::setAnimSpeed (1)
HTML_Progress::setIncrement (2)
HTML_Progress_UI::setScript (3)
HTML_Progress_UI::setFillWay (4)
HTML_Progress_UI::setCellCount (5)
HTML_Progress_UI::setCellAttributes (6)
HTML_Progress_UI::setBorderAttributes (7)
HTML_Progress_UI::setStringAttributes (8)

[Top]

## Output

### Screenshot

[Top]

## PHP source syntax highlight

Open source listing in a new window.

[Top]

## Play demo

Run the script.

[Top]