PEAR::HTML::Progress example: Red Sand Back
Author: Laurent Laville
Description: an horizontal progress meter with less than 10 default cells

examples

# Red Sand Back

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

- 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 reverse horizontal ProgressBar, as javadanse.php. It also show how to decrease cell number (default is 10).

Percent text info is center aligned on bottom side of the progress bar.

[Top]

## Render options

Here are options to build the progress bar cells :

    active-color   = #970038
    inactive-color = #FFDDAA
    width          = 20

HTML_Progress_UI::setCellAttributes()
Here are options to build the progress bar border :

    width = 1
    color = #000000

HTML_Progress_UI::setBorderAttributes()
Here are options to build the progress bar string (percent text info):

    font-size = 14
    color     = #FF0000
    align     = left
    valign    = bottom

HTML_Progress_UI::setStringAttributes()

[Top]

## Output

### Screenshot

[Top]

## PHP source syntax highlight

Open source listing in a new window.

[Top]

## Play demo

Run the script.

[Top]