Source for file default.php
Documentation is available at default.php
@include '../include_path.php';
* Observer ProgressBar example. Uses the default observer class.
* @version $Id: default.php,v 1.1 2004/06/27 13:08:28 farell Exp $
* @author Laurent Laville <pear@laurent-laville.org>
require_once 'HTML/Progress.php';
require_once 'HTML/Progress/observer.php';
// 1. Creates ProgressBar
$bar = new HTML_Progress ();
$bar->setBorderPainted (true );
// 2. Creates and attach a listener
$ok = $bar->addListener ($observer);
die ("Cannot add a valid listener to progress bar !");
// 3. Changes look-and-feel of ProgressBar
$ui->setBorderAttributes ('width = 2'); // border: 2px, solid, #000000
$ui->setComment ('Standard Observer ProgressBar example');
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>Standard Observer 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>
Contents of file 'progress_observer.log' generated by HTML_Progress_Observer class
<textarea readOnly="true" rows="12" cols="80" wrap="virtual">
a:2:{s:3:"log";s:8:"incValue";s:5:"value";i:10;}
a:2:{s:3:"log";s:8:"incValue";s:5:"value";i:20;}
a:2:{s:3:"log";s:8:"incValue";s:5:"value";i:30;}
a:2:{s:3:"log";s:8:"incValue";s:5:"value";i:40;}
a:2:{s:3:"log";s:8:"incValue";s:5:"value";i:50;}
a:2:{s:3:"log";s:8:"incValue";s:5:"value";i:60;}
a:2:{s:3:"log";s:8:"incValue";s:5:"value";i:70;}
a:2:{s:3:"log";s:8:"incValue";s:5:"value";i:80;}
a:2:{s:3:"log";s:8:"incValue";s:5:"value";i:90;}
a:2:{s:3:"log";s:8:"incValue";s:5:"value";i:100;}
<p><< <a href="../index.html">Back examples TOC</a></p>
Documentation generated on Mon, 11 Mar 2019 13:52:36 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|