* @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=#000084 inactive-color=#3A6EA5 width=20 spacing=0'); $ui->setBorderAttributes('width=1 style=inset color=white'); $ui->setStringAttributes(array( 'width' => 200, 'height' => 20, 'font-size' => 14, 'background-color' => '#C3C6C3', 'valign' => 'top' )); ?> Bullit Progress example

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

<< Back examples TOC