Source for file model.php
Documentation is available at model.php
@include '../include_path.php';
* ProgressBar model example.
* @version $Id: model.php,v 1.1 2004/07/05 21:32:09 farell Exp $
* @author Laurent Laville <pear@laurent-laville.org>
require_once 'HTML/Progress.php';
$obj->setString ('Fourth part way done!');
$obj->setString ('Half way done!');
$obj->setString ('Three quarters way done!');
$obj->setString ('All done!');
$bar = new HTML_Progress ($timer);
$bar->setStringPainted (true ); // get space for the string
$bar->setString (''); // but don't paint it
$bar->setProgressHandler ('myFunctionHandler');
$ui->setStringAttributes ('width=170 height=20 valign=bottom align=center');
<title>ProgressBar model 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>
<p><< <a href="../index.html">Back examples TOC</a></p>
Documentation generated on Mon, 11 Mar 2019 13:52:38 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|