Current File : //opt/RZphp81/includes/doc/HTML_Progress/examples/model/inicommented.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, model, progress meter" />
<meta name="description" content="how to use the setmodel feature " />
<meta name="author" content="Laurent Laville" />
<title>PEAR::HTML::Progress example: setModel</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">setModel </span></h1>

<p align="right">$Date: 2005/07/25 10:25:43 $</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.</li>
</ul>
</p>

<hr/>
<p><b>This example will run a horizontal ProgressBar defined by an external
configuration file.</b></p>

<p>The setModel feature is useful, when you don't want to change your php scripts
but only the look and feel of the progress meter.</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>
(1) speed  = 250
(2) increment = 5
(3) javascript = "../horizontal/progress_number.js"
(4) fillway = reverse
(5) count = 20
(6) active-color   = #970038
(6) inactive-color = #FFDDAA
(6) width          = 20
(6) height         = 20
(7) width = 1
(7) color = #000000
(8) width     = 440
(8) font-size = 14
(8) color     = #FF0000
(8) align     = center
(8) valign    = bottom
</pre>
<div class="fig">HTML_Progress::setAnimSpeed (1)</div>
<div class="fig">HTML_Progress::setIncrement (2)</div>
<div class="fig">HTML_Progress_UI::setScript (3)</div>
<div class="fig">HTML_Progress_UI::setFillWay (4)</div>
<div class="fig">HTML_Progress_UI::setCellCount (5)</div>
<div class="fig">HTML_Progress_UI::setCellAttributes (6)</div>
<div class="fig">HTML_Progress_UI::setBorderAttributes (7)</div>
<div class="fig">HTML_Progress_UI::setStringAttributes (8)</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/javadanse.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=./model/inicommented.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="inicommented.php">Run</a> the script.</p>

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

</body>
</html>