Current File : //opt/RZphp82/includes/doc/HTML_Progress/examples/indeterminate/half_monitor.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, indeterminate, progress meter, monitor" />
<meta name="description" content"="HTML_Progress begin in indeterminate mode and finish process in determinate mode" />
<meta name="author" content="Laurent Laville" />
<title>PEAR::HTML::Progress example: Half Indeterminate and Monitor</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">Half Indeterminate and Monitor</span></h1>

<p align="right">$Date: 2005/07/25 11:33:24 $</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">Ouput</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 line 12).</li>
</ul>
</p>

<hr/>
<p><b>This example will run a basic ProgressBar in indeterminate mode (with monitor)
then switch back to determinate mode when reached a limit-level (internal value > 240).</b></p>

<p>Actions to switch back to determinate mode are allowed by user callback
myProgressHandler defined on lines 14 to 38.</p>

<p>This callback is attached on progress bar at line 66 and monitor renders are defined
on lines 102 to 113 (following QF rendering rules).</p>

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


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

Here are options to build this progress bar :
<pre>
background-color = #e0e0e0
</pre>
<div class="fig">HTML_Progress_UI::setProgressAttributes()</div>

Here are options to build this progress bar string (percent text info):
<pre>
color            = #996
background-color = #CCCC99
</pre>
<div class="fig">HTML_Progress_UI::setStringAttributes()</div>

Here are options to build the progress bar cells :
<pre>
active-color   = #996
</pre>
<div class="fig">HTML_Progress_UI::setCellAttributes()</div>

Here are options to run the progress bar :
<pre>
speed     = 100
increment = 10
</pre>
<div class="fig">HTML_Progress::setAnimSpeed()</div>
<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/indeterminate.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=./indeterminate/half_monitor.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="half_monitor.php">Run</a> the script.</p>

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

</body>
</html>