* @package HTML_Progress */ require_once ('HTML/Progress.php'); $bar = new HTML_Progress(); $bar->setIncrement(10); $bar->setBorderPainted(true); $ui =& $bar->getUI(); $ui->setCellAttributes('active-color=#970038 inactive-color=#FFDDAA width=7 height=12'); $ui->setBorderAttributes('width=1'); $ui->setStringAttributes(array( 'font-size' => 10, 'background-color' => '#C3C6C3' )); ?> Smallest Progress example

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

<< Back examples TOC