PEAR::HTML::Progress example: BullIt
Author: Laurent Laville
Description: basic horizontal progress meter

examples

# BullIt

$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 plain horizontal ProgressBar.

Have a look on cell spacing attribute (important):

- greater than zero, make a cell group look and feel
- equal zero, make a plain bar

Percent text info is right aligned on top side of the progress bar.

[Top]

## Render options

Here are options to build the progress bar cells :

    active-color     = #000084
    inactive-color   = #3A6EA5
    width            = 20
    spacing          = 0

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

    width = 1
    style = inset
    color = white

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

    width            = 200
    height           = 20
    font-size        = 14
    background-color = #C3C6C3
    valign           = top

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]