* @package HTML_Progress */ require_once ('HTML/Progress.php'); $bar1 = new HTML_Progress(HTML_PROGRESS_BAR_VERTICAL); $bar1->setIdent('PB1'); $bar1->setIncrement(10); $bar1->setBorderPainted(true); $ui1 =& $bar1->getUI(); $ui1->setFillWay('natural'); $ui1->setCellCount(15); $ui1->setCellAttributes('active-color=#970038 inactive-color=#FFDDAA width=50 height=13'); $ui1->setBorderAttributes('width=1 color=#000000'); $ui1->setStringAttributes(array( 'font-size' => 8, 'color' => '#FF0000', 'background-color' => '#C3C6C3', 'align' => 'center', 'valign' => 'bottom' )); $bar2 = new HTML_Progress(HTML_PROGRESS_BAR_VERTICAL); $bar2->setIdent('PB2'); $bar2->setIncrement(5); $bar2->setBorderPainted(true); $ui2 =& $bar2->getUI(); $ui2->setFillWay('reverse'); $ui2->setCellCount(15); $ui2->setCellAttributes('active-color=#3874B4 inactive-color=#FFDDAA width=50 height=13'); $ui2->setBorderAttributes('width=1 style=dashed color=#000000'); $ui2->setStringAttributes(array( 'font-size' => 8, 'color' => 'navy', 'background-color' => '#C3C6C3', 'align' => 'center', 'valign' => 'bottom' )); ?> Multiple Vertical ProgressBar example

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

<< Back examples TOC