Source for file horizontal_string.php
Documentation is available at horizontal_string.php
@include '../../include_path.php';
* Horizontal String ProgressBar example.
* @version $Id: horizontal_string.php,v 1.2 2004/04/18 13:25:43 farell Exp $
* @author Laurent Laville <pear@laurent-laville.org>
require_once 'HTML/Progress.php';
$bar = new HTML_Progress ();
$bar->setStringPainted (true ); // get space for the string
$bar->setString (''); // but don't paint it
$ui->setStringAttributes ('width=350 align=left');
<title>Horizontal String ProgressBar example</title>
<?php echo $bar->getStyle (); ?>
background-color: #FFFFFF;
font-family: Verdana, Arial;
a:visited, a:active, a:link {
<script type="text/javascript">
<?php echo $bar->getScript (); ?>
<h1> <?php echo basename(__FILE__ ); ?></h1>
$pkg = array ('PEAR', 'Archive_Tar', 'Config',
'HTML_QuickForm', 'HTML_CSS', 'HTML_Page', 'HTML_Template_Sigma',
'Log', 'MDB', 'PHPUnit');
$msg = ($val == 100 ) ? '' : " installing package ($val %) ... : ". $pkg[$i];
if ($bar->getPercentComplete () == 1 ) {
break; // the progress bar has reached 100%
<p><< <a href="index.html">Back examples TOC</a></p>
Documentation generated on Mon, 11 Mar 2019 10:15:08 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|