* @package HTML_Progress */ require_once ('HTML/Progress.php'); $bar = new HTML_Progress(); $bar->setIncrement(10); $bar->setBorderPainted(true); $ui =& $bar->getUI(); $ui->setFillWay('reverse'); $ui->setCellCount(5); $ui->setCellAttributes('active-color=#970038 inactive-color=#FFDDAA width=20'); $ui->setBorderAttributes('width=1 color=#000000'); $ui->setStringAttributes('font-size=14 color=#FF0000 align=left valign=bottom'); ?> RedSandBack Progress example

toHtml(); do { $bar->display(); if ($bar->getPercentComplete() == 1) { break; // the progress bar has reached 100% } $bar->incValue(); } while(1); ?>

<< Back examples TOC