Source for file vertical.php
Documentation is available at vertical.php
@include '../include_path.php';
* Multiple Vertical ProgressBar example.
* @version $Id: vertical.php,v 1.1 2004/06/27 13:42:43 farell Exp $
* @author Laurent Laville <pear@laurent-laville.org>
require_once 'HTML/Progress.php';
$bar1->setBorderPainted (true );
$ui1->setFillWay ('natural');
$ui1->setCellAttributes ('active-color=#970038 inactive-color=#FFDDAA width=50 height=13');
$ui1->setBorderAttributes ('width=1 color=#000000');
$ui1->setStringAttributes (array (
'background-color' => '#C3C6C3',
$bar2->setBorderPainted (true );
$ui2->setFillWay ('reverse');
$ui2->setCellAttributes ('active-color=#3874B4 inactive-color=#FFDDAA width=50 height=13');
$ui2->setBorderAttributes ('width=1 style=dashed color=#000000');
$ui2->setStringAttributes (array (
'background-color' => '#C3C6C3',
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3c.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<title>Multiple Vertical ProgressBar example</title>
background-color: #C3C6C3;
font-family: Verdana, Arial;
a:visited, a:active, a:link {
<script type="text/javascript">
<?php echo $bar1->getScript (); ?>
<h1> <?php echo basename(__FILE__ ); ?></h1>
<table class="container">
<td width="50%" align="center">
<?php echo $bar1->toHTML (); ?>
<td width="50%" align="center">
<?php echo $bar2->toHTML (); ?>
if ($bar2->getPercentComplete () == 1 ) {
break; // the progress bar has reached 100%
if ($bar1->getPercentComplete () < 1 ) {
<p><< <a href="../index.html">Back examples TOC</a></p>
Documentation generated on Mon, 11 Mar 2019 13:52:39 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|