Current File : //opt/RZphp81/includes/doc/HTML_Progress/examples/observer/simple.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="robots" content="index,nofollow" />
<meta name="keywords" content"="HTML_Progress, observer, progress meter" />
<meta name="description" content"="HTML_Progress logs all changes in its observer pattern" />
<meta name="author" content="Laurent Laville" />
<title>PEAR::HTML::Progress example: Simple ProgressBar Observer</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="../examples.css" />
</head>
<body>

<a name="top">

<p><a href="../index.html"><img src="../images/home.gif" alt="Examples TOC"/>examples</a></p>

<h1><span class="chapter">Simple ProgressBar Observer </span></h1>

<p align="right">$Date: 2005/07/25 12:27:28 $</p>

<div class="toc">&nbsp;Table of contents </div>
<ul>
<li><a href="#intro">Introduction<a>
<li><a href="#render">Render options<a>
<li><a href="#output">Output</a>
<li><a href="#source">PHP source syntax highlight<a>
<li><a href="#run">Play demo<a>
</ul>


<a name="intro">
<h2><img src="../images/info.gif"/> Introduction</h2>

<p>This example requires :
<ul>
<li>PEAR::HTML_Progress 1.2.2 or better (see source at lines 11, 12).</li>
</ul>
</p>

<hr/>
<p><b>This example will run a ProgressBar with a custom class observer mechanism.
Output could be send to screen or on flat file 'observer_complex.log'.</b></p>

<p>Here are the contents of that file :
<form>
<textarea readOnly="true" rows="21" cols="50" wrap="virtual">
incValue = 5
incValue = 10
incValue = 15
incValue = 20
incValue = 25
incValue = 30
incValue = 35
incValue = 40
incValue = 45
incValue = 50
incValue = 55
incValue = 60
incValue = 65
incValue = 70
incValue = 75
incValue = 80
incValue = 85
incValue = 90
incValue = 95
incValue = 100
</textarea>
</form>

<p>[<a href="#top">Top</a>]</p>


<a name="render">
<h2><img src="../images/config.gif"/>&nbsp;Render options </h2>

<pre>
speed = 50 is set at line 46
</pre>
<div class="fig">HTML_Progress::setAnimSpeed()</div>
<pre>
increment = 5 is set at line 47
</pre>
<div class="fig">HTML_Progress::setIncrement()</div>

<p>[<a href="#top">Top</a>]</p>


<a name="output">
<h2><img src="../images/image.gif"/>&nbsp;Output</h2>
<h3>Screenshot </h3>
<p><img src="../screenshots/observer_simple.png"/></p>

<p>[<a href="#top">Top</a>]</p>


<a name="source">
<h2><img src="../images/source.gif"/>&nbsp;PHP source syntax highlight</h2>
<a target="_blank" href="../highlighter.php?file=./observer/simple.php">Open</a> source listing in a new window.

<p>[<a href="#top">Top</a>]</p>

<a name="run">
<h2><img src="../images/run.gif"/>&nbsp;Play demo</h2>
<p><a href="simple.php?out=screen">Run</a> the screen version.</p>
<p><a href="simple.php?out=file">Run</a> the file version.</p>

<p>[<a href="#top">Top</a>]</p>

</body>
</html>