cvs: pear /HTML_Progress/examples/horizontal ancestor.html ancestor.php bgimages.html bgimages.php bluesand.html bluesand.php bluesandplus.html
bluesandplus.php bullit.html bullit.php javadanse.html javadanse.php model.html model.php nostring.html nostring.php progress_number.js
redsandback.html redsandback.php smallest.html smallest.php string.html string.php

From: Date: Mon, 25 Jul 2005 10:25:31 +0000
Subject: cvs: pear /HTML_Progress/examples/horizontal ancestor.html ancestor.php bgimages.html bgimages.php bluesand.html bluesand.php bluesandplus.html
bluesandplus.php bullit.html bullit.php javadanse.html javadanse.php model.html model.php nostring.html nostring.php progress_number.js
redsandback.html redsandback.php smallest.html smallest.php string.html string.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-33289@lists.php.net to get a copy of this message
farell Mon Jul 25 06:25:31 2005 EDT Modified files: /pear/HTML_Progress/examples/horizontal ancestor.html ancestor.php bgimages.html bgimages.php bluesand.html bluesand.php bluesandplus.html bluesandplus.php bullit.html bullit.php javadanse.html javadanse.php model.html model.php nostring.html nostring.php progress_number.js redsandback.html redsandback.php smallest.html smallest.php string.html string.php Log: Prepare examples to be removed from main package and moved into the optional package

http://cvs.php.net/diff.php/pear/HTML_Progress/examples/horizontal/ancestor.html?r1=1.2&r2=1.3&ty=u Index: pear/HTML_Progress/examples/horizontal/ancestor.html diff -u pear/HTML_Progress/examples/horizontal/ancestor.html:1.2 pear/HTML_Progress/examples/horizontal/ancestor.html:1.3 --- pear/HTML_Progress/examples/horizontal/ancestor.html:1.2 Tue Aug 10 14:12:17 2004 +++ pear/HTML_Progress/examples/horizontal/ancestor.html Mon Jul 25 06:25:30 2005 @@ -18,7 +18,7 @@ <h1><span class="chapter">Ancestor </span></h1> -<p align="right">$Date: 2004/08/10 18:12:17 $</p> +<p align="right">$Date: 2005/07/25 10:25:30 $</p> <div class="toc">&nbsp;Table of contents </div> <ul> @@ -32,10 +32,10 @@ <a name="intro"> <h2><img src="../images/info.gif"/> Introduction</h2> - + <p>This example requires : <ul> -<li>PEAR::HTML_Progress 1.2.0RC3 or better.</li> +<li>PEAR::HTML_Progress 1.2.2 or better.</li> </ul> </p> @@ -51,7 +51,7 @@ <li>cell spacing = 2px </ul> Percent text info is centered on a white background area of 60 pixels width.</p> - + <p>[<a href="#top">Top</a>]</p> @@ -74,7 +74,7 @@ <h3>Screenshot </h3> <p><img src="../screenshots/ancestor.png"/></p> <p>[<a href="#top">Top</a>]</p> - + <a name="source"> <h2><img src="../images/source.gif"/>&nbsp;PHP source syntax highlight</h2> @@ -90,4 +90,4 @@ <p>[<a href="#top">Top</a>]</p> </body> -</html> +</html> \ No newline at end of file http://cvs.php.net/diff.php/pear/HTML_Progress/examples/horizontal/ancestor.php?r1=1.1&r2=1.2&ty=u Index: pear/HTML_Progress/examples/horizontal/ancestor.php diff -u pear/HTML_Progress/examples/horizontal/ancestor.php:1.1 pear/HTML_Progress/examples/horizontal/ancestor.php:1.2 --- pear/HTML_Progress/examples/horizontal/ancestor.php:1.1 Mon Jul 5 17:32:09 2004 +++ pear/HTML_Progress/examples/horizontal/ancestor.php Mon Jul 25 06:25:30 2005 @@ -1,12 +1,12 @@ -<?php -@include '../include_path.php'; +<?php /** * Basic Horizontal ProgressBar v0.5 style example. * See also ProgressMaker usage with pre-set UI model 'Ancestor'. - * - * @version $Id: ancestor.php,v 1.1 2004/07/05 21:32:09 farell Exp $ + * + * @version $Id: ancestor.php,v 1.2 2005/07/25 10:25:30 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress + * @subpackage Examples */ require_once 'HTML/Progress.php'; @@ -16,6 +16,7 @@ $bar->setIncrement(10); $ui =& $bar->getUI(); +$ui->setTab(' '); $ui->setStringAttributes('width=60 font-size=14 align=center'); ?> <html> @@ -26,13 +27,13 @@ <?php echo $bar->getStyle(); ?> body { - background-color: #444444; - color: #EEEEEE; - font-family: Verdana, Arial; + background-color: #444444; + color: #EEEEEE; + font-family: Verdana, Arial; } a:visited, a:active, a:link { - color: yellow; + color: yellow; } // --> </style> @@ -43,14 +44,11 @@ </script> </head> <body> -<h1><?php echo basename(__FILE__); ?></h1> -<?php -echo $bar->toHtml(); +<?php +echo $bar->toHtml(); $bar->run(); ?> -<p>&lt;&lt; <a href="../index.html">Back examples TOC</a></p> - </body> </html> \ No newline at end of file http://cvs.php.net/diff.php/pear/HTML_Progress/examples/horizontal/bgimages.html?r1=1.2&r2=1.3&ty=u Index: pear/HTML_Progress/examples/horizontal/bgimages.html diff -u pear/HTML_Progress/examples/horizontal/bgimages.html:1.2 pear/HTML_Progress/examples/horizontal/bgimages.html:1.3 --- pear/HTML_Progress/examples/horizontal/bgimages.html:1.2 Tue Aug 10 14:12:17 2004 +++ pear/HTML_Progress/examples/horizontal/bgimages.html Mon Jul 25 06:25:30 2005 @@ -18,7 +18,7 @@ <h1><span class="chapter">Background Images </span></h1> -<p align="right">$Date: 2004/08/10 18:12:17 $</p> +<p align="right">$Date: 2005/07/25 10:25:30 $</p> <div class="toc">&nbsp;Table of contents </div> <ul> @@ -32,10 +32,10 @@ <a name="intro"> <h2><img src="../images/info.gif"/> Introduction</h2> - + <p>This example requires : <ul> -<li>PEAR::HTML_Progress 1.2.0RC3 or better.</li> +<li>PEAR::HTML_Progress 1.2.2 or better.</li> </ul> </p> @@ -43,9 +43,9 @@ <p><b>This example will run a natural horizontal ProgressBar and show you how to use a picture instead of simple color for active cells.</b></p> -<p>Percent text info is centered on a 60 pixels width area, +<p>Percent text info is centered on a 60 pixels width area, on left side of the progress bar.</p> - + <p>[<a href="#top">Top</a>]</p> @@ -89,7 +89,7 @@ <p><img src="../screenshots/bgimages.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=./horizontal/bgimages.php">Open</a> source listing in a new window. @@ -105,4 +105,4 @@ </body> -</html> +</html> \ No newline at end of file http://cvs.php.net/diff.php/pear/HTML_Progress/examples/horizontal/bgimages.php?r1=1.1&r2=1.2&ty=u Index: pear/HTML_Progress/examples/horizontal/bgimages.php diff -u pear/HTML_Progress/examples/horizontal/bgimages.php:1.1 pear/HTML_Progress/examples/horizontal/bgimages.php:1.2 --- pear/HTML_Progress/examples/horizontal/bgimages.php:1.1 Mon Jul 5 17:32:09 2004 +++ pear/HTML_Progress/examples/horizontal/bgimages.php Mon Jul 25 06:25:30 2005 @@ -1,12 +1,12 @@ -<?php -@include '../include_path.php'; +<?php /** * Natural Horizontal with background images ProgressBar example. * See also ProgressMaker usage with pre-set UI model 'BgImages'. - * - * @version $Id: bgimages.php,v 1.1 2004/07/05 21:32:09 farell Exp $ + * + * @version $Id: bgimages.php,v 1.2 2005/07/25 10:25:30 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress + * @subpackage Examples */ require_once 'HTML/Progress.php'; @@ -17,6 +17,7 @@ $bar->setBorderPainted(true); $ui =& $bar->getUI(); +$ui->setTab(' '); $ui->setCellAttributes(array( 'active-color' => '#000084', 'inactive-color' => '#3A6EA5', @@ -45,13 +46,13 @@ <?php echo $bar->getStyle(); ?> body { - background-color: #C3C6C3; - color: #000000; - font-family: Verdana, Arial; + background-color: #C3C6C3; + color: #000000; + font-family: Verdana, Arial; } a:visited, a:active, a:link { - color: navy; + color: navy; } // --> </style> @@ -62,14 +63,11 @@ </script> </head> <body> -<h1><?php echo basename(__FILE__); ?></h1> -<?php -echo $bar->toHtml(); +<?php +echo $bar->toHtml(); $bar->run(); ?> -<p>&lt;&lt; <a href="../index.html">Back examples TOC</a></p> - </body> </html> \ No newline at end of file http://cvs.php.net/diff.php/pear/HTML_Progress/examples/horizontal/bluesand.html?r1=1.2&r2=1.3&ty=u Index: pear/HTML_Progress/examples/horizontal/bluesand.html diff -u pear/HTML_Progress/examples/horizontal/bluesand.html:1.2 pear/HTML_Progress/examples/horizontal/bluesand.html:1.3 --- pear/HTML_Progress/examples/horizontal/bluesand.html:1.2 Tue Aug 10 14:12:17 2004 +++ pear/HTML_Progress/examples/horizontal/bluesand.html Mon Jul 25 06:25:30 2005 @@ -18,7 +18,7 @@ <h1><span class="chapter">Blue Sand </span></h1> -<p align="right">$Date: 2004/08/10 18:12:17 $</p> +<p align="right">$Date: 2005/07/25 10:25:30 $</p> <div class="toc">&nbsp;Table of contents </div> <ul> @@ -32,21 +32,21 @@ <a name="intro"> <h2><img src="../images/info.gif"/> Introduction</h2> - + <p>This example requires : <ul> -<li>PEAR::HTML_Progress 1.2.0RC3 or better.</li> +<li>PEAR::HTML_Progress 1.2.2 or better.</li> </ul> </p> <hr/> <p><b>This example will run a natural horizontal ProgressBar with blue skin. -It will also show you how to simulate percent text info outside the progress bar cell group, +It will also show you how to simulate percent text info outside the progress bar cell group, delimited by a thin border.</b></p> -<p>Percent text info is centered on a 60 pixels width area, +<p>Percent text info is centered on a 60 pixels width area, on right side of the progress bar.</p> - + <p>[<a href="#top">Top</a>]</p> @@ -85,7 +85,7 @@ <h3>Screenshot </h3> <p><img src="../screenshots/bluesand.png"/></p> <p>[<a href="#top">Top</a>]</p> - + <a name="source"> <h2><img src="../images/source.gif"/>&nbsp;PHP source syntax highlight</h2> @@ -101,4 +101,4 @@ <p>[<a href="#top">Top</a>]</p> </body> -</html> +</html> \ No newline at end of file http://cvs.php.net/diff.php/pear/HTML_Progress/examples/horizontal/bluesand.php?r1=1.1&r2=1.2&ty=u Index: pear/HTML_Progress/examples/horizontal/bluesand.php diff -u pear/HTML_Progress/examples/horizontal/bluesand.php:1.1 pear/HTML_Progress/examples/horizontal/bluesand.php:1.2 --- pear/HTML_Progress/examples/horizontal/bluesand.php:1.1 Mon Jul 5 17:32:09 2004 +++ pear/HTML_Progress/examples/horizontal/bluesand.php Mon Jul 25 06:25:30 2005 @@ -1,12 +1,12 @@ -<?php -@include '../include_path.php'; +<?php /** * Natural Horizontal ProgressBar example with blue skin. * See also ProgressMaker usage with pre-set UI model 'BlueSand'. - * - * @version $Id: bluesand.php,v 1.1 2004/07/05 21:32:09 farell Exp $ + * + * @version $Id: bluesand.php,v 1.2 2005/07/25 10:25:30 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress + * @subpackage Examples */ require_once 'HTML/Progress.php'; @@ -17,6 +17,7 @@ $bar->setBorderPainted(true); $ui =& $bar->getUI(); +$ui->setTab(' '); $ui->setCellAttributes('active-color=#3874B4 inactive-color=#EEEECC width=10'); $ui->setBorderAttributes('width=1 color=navy'); $ui->setStringAttributes('width=60 font-size=14 background-color=#EEEEEE align=center'); @@ -33,13 +34,13 @@ <?php echo $bar->getStyle(); ?> body { - background-color: #EEEEEE; - color: #000000; - font-family: Verdana, Arial; + background-color: #EEEEEE; + color: #000000; + font-family: Verdana, Arial; } a:visited, a:active, a:link { - color: navy; + color: navy; } // --> </style> @@ -50,14 +51,11 @@ </script> </head> <body> -<h1><?php echo basename(__FILE__); ?></h1> -<?php -echo $bar->toHtml(); +<?php +echo $bar->toHtml(); $bar->run(); ?> -<p>&lt;&lt; <a href="../index.html">Back examples TOC</a></p> - </body> </html> \ No newline at end of file http://cvs.php.net/diff.php/pear/HTML_Progress/examples/horizontal/bluesandplus.html?r1=1.2&r2=1.3&ty=u Index: pear/HTML_Progress/examples/horizontal/bluesandplus.html diff -u pear/HTML_Progress/examples/horizontal/bluesandplus.html:1.2 pear/HTML_Progress/examples/horizontal/bluesandplus.html:1.3 --- pear/HTML_Progress/examples/horizontal/bluesandplus.html:1.2 Tue Aug 10 14:12:17 2004 +++ pear/HTML_Progress/examples/horizontal/bluesandplus.html Mon Jul 25 06:25:30 2005 @@ -18,7 +18,7 @@ <h1><span class="chapter">Blue Sand Plus </span></h1> -<p align="right">$Date: 2004/08/10 18:12:17 $</p> +<p align="right">$Date: 2005/07/25 10:25:30 $</p> <div class="toc">&nbsp;Table of contents </div> <ul> @@ -32,10 +32,10 @@ <a name="intro"> <h2><img src="../images/info.gif"/> Introduction</h2> - + <p>This example requires : <ul> -<li>PEAR::HTML_Progress 1.2.0RC3 or better.</li> +<li>PEAR::HTML_Progress 1.2.2 or better.</li> </ul> </p> @@ -44,9 +44,9 @@ It will also show you how to print something inside cells with an external javascript (replaced internal code).</b></p> -<p>Percent text info is centered on a 60 pixels width area, +<p>Percent text info is centered on a 60 pixels width area, on right side of the progress bar.</p> - + <p>[<a href="#top">Top</a>]</p> @@ -92,20 +92,20 @@ prog = document.all[pIdent+'installationProgress']; if (isNS4) prog = document.layers[pIdent+'installationProgress']; - if (prog != null) - prog.innerHTML = pString; + if (prog != null) + prog.innerHTML = pString; if (pValue == pDeterminate) { - for (i=0; i < cellCount; i++) { - showCell(i, pIdent, "hidden"); + for (i=0; i < cellCount; i++) { + showCell(i, pIdent, "hidden"); } } if ((pDeterminate > 0) && (pValue > 0)) { i = (pValue-1) % cellCount; - showCell(i, pIdent, "visible"); + showCell(i, pIdent, "visible"); } else { for (i=pValue-1; i >=0; i--) { - showCell(i, pIdent, "visible"); + showCell(i, pIdent, "visible"); if (isDom) document.getElementById(pIdent+'progressCell'+i+'A').innerHTML = i; if (isIE) @@ -113,17 +113,17 @@ if (isNS4) document.layers[pIdent+'progressCell'+i+'A'].innerHTML = i; } - } + } } function showCell(pCell, pIdent, pVisibility) { - if (isDom) - document.getElementById(pIdent+'progressCell'+pCell+'A').style.visibility = pVisibility; - if (isIE) - document.all[pIdent+'progressCell'+pCell+'A'].style.visibility = pVisibility; - if (isNS4) - document.layers[pIdent+'progressCell'+pCell+'A'].style.visibility = pVisibility; + if (isDom) + document.getElementById(pIdent+'progressCell'+pCell+'A').style.visibility = pVisibility; + if (isIE) + document.all[pIdent+'progressCell'+pCell+'A'].style.visibility = pVisibility; + if (isNS4) + document.layers[pIdent+'progressCell'+pCell+'A'].style.visibility = pVisibility; } </pre> @@ -137,7 +137,7 @@ <h3>Screenshot </h3> <p><img src="../screenshots/bluesandplus.png"/></p> <p>[<a href="#top">Top</a>]</p> - + <a name="source"> <h2><img src="../images/source.gif"/>&nbsp;PHP source syntax highlight</h2> @@ -153,4 +153,4 @@ <p>[<a href="#top">Top</a>]</p> </body> -</html> +</html> \ No newline at end of file http://cvs.php.net/diff.php/pear/HTML_Progress/examples/horizontal/bluesandplus.php?r1=1.1&r2=1.2&ty=u Index: pear/HTML_Progress/examples/horizontal/bluesandplus.php diff -u pear/HTML_Progress/examples/horizontal/bluesandplus.php:1.1 pear/HTML_Progress/examples/horizontal/bluesandplus.php:1.2 --- pear/HTML_Progress/examples/horizontal/bluesandplus.php:1.1 Mon Jul 5 17:32:09 2004 +++ pear/HTML_Progress/examples/horizontal/bluesandplus.php Mon Jul 25 06:25:30 2005 @@ -1,12 +1,12 @@ -<?php -@include '../include_path.php'; +<?php /** * Natural Horizontal ProgressBar example with JavaScript customization. * See also ProgressMaker usage with pre-set UI model 'BlueSandPlus'. - * - * @version $Id: bluesandplus.php,v 1.1 2004/07/05 21:32:09 farell Exp $ + * + * @version $Id: bluesandplus.php,v 1.2 2005/07/25 10:25:30 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress + * @subpackage Examples */ require_once 'HTML/Progress.php'; @@ -17,6 +17,7 @@ $bar->setBorderPainted(true); $ui =& $bar->getUI(); +$ui->setTab(' '); $ui->setCellAttributes('active-color=#3874B4 inactive-color=#EEEECC width=10'); $ui->setBorderAttributes('width=1 color=navy'); $ui->setStringAttributes('width=60 font-size=14 background-color=#EEEEEE align=center'); @@ -44,27 +45,24 @@ <?php echo $bar->getStyle(); ?> body { - background-color: #EEEEEE; - color: #000000; - font-family: Verdana, Arial; + background-color: #EEEEEE; + color: #000000; + font-family: Verdana, Arial; } a:visited, a:active, a:link { - color: navy; + color: navy; } // --> </style> <script type="text/javascript" src="<?php echo $bar->getScript(); ?>"></script> </head> <body> -<h1><?php echo basename(__FILE__); ?></h1> -<?php -echo $bar->toHtml(); +<?php +echo $bar->toHtml(); $bar->run(); ?> -<p>&lt;&lt; <a href="../index.html">Back examples TOC</a></p> - </body> </html> \ No newline at end of file http://cvs.php.net/diff.php/pear/HTML_Progress/examples/horizontal/bullit.html?r1=1.2&r2=1.3&ty=u Index: pear/HTML_Progress/examples/horizontal/bullit.html diff -u pear/HTML_Progress/examples/horizontal/bullit.html:1.2 pear/HTML_Progress/examples/horizontal/bullit.html:1.3 --- pear/HTML_Progress/examples/horizontal/bullit.html:1.2 Tue Aug 10 14:12:17 2004 +++ pear/HTML_Progress/examples/horizontal/bullit.html Mon Jul 25 06:25:30 2005 @@ -18,7 +18,7 @@ <h1><span class="chapter">BullIt </span></h1> -<p align="right">$Date: 2004/08/10 18:12:17 $</p> +<p align="right">$Date: 2005/07/25 10:25:30 $</p> <div class="toc">&nbsp;Table of contents </div> <ul> @@ -32,10 +32,10 @@ <a name="intro"> <h2><img src="../images/info.gif"/> Introduction</h2> - + <p>This example requires : <ul> -<li>PEAR::HTML_Progress 1.2.0RC3 or better.</li> +<li>PEAR::HTML_Progress 1.2.2 or better.</li> </ul> </p> @@ -49,7 +49,7 @@ <p>Percent text info is right aligned on top side of the progress bar.</p> - + <p>[<a href="#top">Top</a>]</p> @@ -92,7 +92,7 @@ <p><img src="../screenshots/bullit.png"/></p> <p>[<a href="#top">Top</a>]</p> - + <a name="source"> <h2><img src="../images/source.gif"/>&nbsp;PHP source syntax highlight</h2> @@ -108,4 +108,4 @@ <p>[<a href="#top">Top</a>]</p> </body> -</html> +</html> \ No newline at end of file http://cvs.php.net/diff.php/pear/HTML_Progress/examples/horizontal/bullit.php?r1=1.1&r2=1.2&ty=u Index: pear/HTML_Progress/examples/horizontal/bullit.php diff -u pear/HTML_Progress/examples/horizontal/bullit.php:1.1 pear/HTML_Progress/examples/horizontal/bullit.php:1.2 --- pear/HTML_Progress/examples/horizontal/bullit.php:1.1 Mon Jul 5 17:32:09 2004 +++ pear/HTML_Progress/examples/horizontal/bullit.php Mon Jul 25 06:25:30 2005 @@ -1,12 +1,12 @@ -<?php -@include '../include_path.php'; +<?php /** * Natural Horizontal plain ProgressBar example. * See also ProgressMaker usage with pre-set UI model 'Bullit'. - * - * @version $Id: bullit.php,v 1.1 2004/07/05 21:32:09 farell Exp $ + * + * @version $Id: bullit.php,v 1.2 2005/07/25 10:25:30 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress + * @subpackage Examples */ require_once 'HTML/Progress.php'; @@ -17,14 +17,15 @@ $bar->setBorderPainted(true); $ui =& $bar->getUI(); +$ui->setTab(' '); $ui->setCellAttributes('active-color=#000084 inactive-color=#3A6EA5 width=20 spacing=0'); $ui->setBorderAttributes('width=1 style=inset color=white'); $ui->setStringAttributes(array( - 'width' => 200, - 'height' => 20, - 'font-size' => 14, - 'background-color' => '#C3C6C3', - 'valign' => 'top' + 'width' => 200, + 'height' => 20, + 'font-size' => 14, + 'background-color' => '#C3C6C3', + 'valign' => 'top' )); ?> <!DOCTYPE html @@ -39,13 +40,13 @@ <?php echo $bar->getStyle(); ?> body { - background-color: #C3C6C3; - color: #000000; - font-family: Verdana, Arial; + background-color: #C3C6C3; + color: #000000; + font-family: Verdana, Arial; } a:visited, a:active, a:link { - color: navy; + color: navy; } // --> </style> @@ -56,14 +57,11 @@ </script> </head> <body> -<h1><?php echo basename(__FILE__); ?></h1> -<?php -echo $bar->toHtml(); +<?php +echo $bar->toHtml(); $bar->run(); ?> -<p>&lt;&lt; <a href="../index.html">Back examples TOC</a></p> - </body> </html> \ No newline at end of file http://cvs.php.net/diff.php/pear/HTML_Progress/examples/horizontal/javadanse.html?r1=1.2&r2=1.3&ty=u Index: pear/HTML_Progress/examples/horizontal/javadanse.html diff -u pear/HTML_Progress/examples/horizontal/javadanse.html:1.2 pear/HTML_Progress/examples/horizontal/javadanse.html:1.3 --- pear/HTML_Progress/examples/horizontal/javadanse.html:1.2 Tue Aug 10 14:12:17 2004 +++ pear/HTML_Progress/examples/horizontal/javadanse.html Mon Jul 25 06:25:30 2005 @@ -18,7 +18,7 @@ <h1><span class="chapter">JavaDanse </span></h1> -<p align="right">$Date: 2004/08/10 18:12:17 $</p> +<p align="right">$Date: 2005/07/25 10:25:30 $</p> <div class="toc">&nbsp;Table of contents </div> <ul> @@ -32,10 +32,10 @@ <a name="intro"> <h2><img src="../images/info.gif"/> Introduction</h2> - + <p>This example requires : <ul> -<li>PEAR::HTML_Progress 1.2.0RC3 or better.</li> +<li>PEAR::HTML_Progress 1.2.2 or better.</li> </ul> </p> @@ -44,7 +44,7 @@ as <i>bluesandplus.php</i>. It also show how to increase cell number (default is 10).</b></p> <p>Percent text info is center aligned on bottom side of the progress bar.</p> - + <p>[<a href="#top">Top</a>]</p> @@ -89,7 +89,7 @@ <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> @@ -105,4 +105,4 @@ <p>[<a href="#top">Top</a>]</p> </body> -</html> +</html> \ No newline at end of file http://cvs.php.net/diff.php/pear/HTML_Progress/examples/horizontal/javadanse.php?r1=1.1&r2=1.2&ty=u Index: pear/HTML_Progress/examples/horizontal/javadanse.php diff -u pear/HTML_Progress/examples/horizontal/javadanse.php:1.1 pear/HTML_Progress/examples/horizontal/javadanse.php:1.2 --- pear/HTML_Progress/examples/horizontal/javadanse.php:1.1 Mon Jul 5 17:32:09 2004 +++ pear/HTML_Progress/examples/horizontal/javadanse.php Mon Jul 25 06:25:30 2005 @@ -1,11 +1,11 @@ -<?php -@include '../include_path.php'; +<?php /** * 20 cells Reverse Horizontal ProgressBar example with JavaScript customization. - * - * @version $Id: javadanse.php,v 1.1 2004/07/05 21:32:09 farell Exp $ + * + * @version $Id: javadanse.php,v 1.2 2005/07/25 10:25:30 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress + * @subpackage Examples */ require_once 'HTML/Progress.php'; @@ -16,6 +16,7 @@ $bar->setBorderPainted(true); $ui =& $bar->getUI(); +$ui->setTab(' '); $ui->setFillWay('reverse'); $ui->setCellCount(20); $ui->setCellAttributes('active-color=#970038 inactive-color=#FFDDAA width=20 height=20'); @@ -45,27 +46,24 @@ <?php echo $bar->getStyle(); ?> body { - background-color: #FFFFFF; - color: #000000; - font-family: Verdana, Arial; + background-color: #FFFFFF; + color: #000000; + font-family: Verdana, Arial; } a:visited, a:active, a:link { - color: navy; + color: navy; } // --> </style> <script type="text/javascript" src="<?php echo $bar->getScript(); ?>"></script> </head> <body> -<h1><?php echo basename(__FILE__); ?></h1> -<?php -echo $bar->toHtml(); +<?php +echo $bar->toHtml(); $bar->run(); ?> -<p>&lt;&lt; <a href="../index.html">Back examples TOC</a></p> - </body> </html> \ No newline at end of file http://cvs.php.net/diff.php/pear/HTML_Progress/examples/horizontal/model.html?r1=1.2&r2=1.3&ty=u Index: pear/HTML_Progress/examples/horizontal/model.html diff -u pear/HTML_Progress/examples/horizontal/model.html:1.2 pear/HTML_Progress/examples/horizontal/model.html:1.3 --- pear/HTML_Progress/examples/horizontal/model.html:1.2 Tue Aug 10 14:12:17 2004 +++ pear/HTML_Progress/examples/horizontal/model.html Mon Jul 25 06:25:30 2005 @@ -18,7 +18,7 @@ <h1><span class="chapter">Model </span></h1> -<p align="right">$Date: 2004/08/10 18:12:17 $</p> +<p align="right">$Date: 2005/07/25 10:25:30 $</p> <div class="toc">&nbsp;Table of contents </div> <ul> @@ -32,15 +32,15 @@ <a name="intro"> <h2><img src="../images/info.gif"/> Introduction</h2> - + <p>This example requires : <ul> -<li>PEAR::HTML_Progress 1.2.0RC3 or better.</li> +<li>PEAR::HTML_Progress 1.2.2 or better.</li> </ul> </p> <hr/> -<p><b>This example will run a horizontal ProgressBar, with limits (min = 0, max = 60) +<p><b>This example will run a horizontal ProgressBar, with limits (min = 0, max = 60) and increment set to 5 in the mathematical model <b>TimerProgress</b>.</b></p> <p>The custom string is center aligned at bottom side of the progress bar. @@ -48,7 +48,7 @@ <p>First introduction of progress handler (user-callback). Function is defined on lines 21 thru 38, and attached on progress bar at line 45.</p> - + <p>[<a href="#top">Top</a>]</p> @@ -58,9 +58,9 @@ Here are options to build this progress bar string (percent text info): <pre> -width = 170 -height = 20 -valign = bottom +width = 170 +height = 20 +valign = bottom align = center </pre> <div class="fig">HTML_Progress_UI::setStringAttributes()</div> @@ -74,7 +74,7 @@ <p><img src="../screenshots/model.png"/></p> <p>[<a href="#top">Top</a>]</p> - + <a name="source"> <h2><img src="../images/source.gif"/>&nbsp;PHP source syntax highlight</h2> @@ -90,4 +90,4 @@ <p>[<a href="#top">Top</a>]</p> </body> -</html> +</html> \ No newline at end of file http://cvs.php.net/diff.php/pear/HTML_Progress/examples/horizontal/model.php?r1=1.1&r2=1.2&ty=u Index: pear/HTML_Progress/examples/horizontal/model.php diff -u pear/HTML_Progress/examples/horizontal/model.php:1.1 pear/HTML_Progress/examples/horizontal/model.php:1.2 --- pear/HTML_Progress/examples/horizontal/model.php:1.1 Mon Jul 5 17:32:09 2004 +++ pear/HTML_Progress/examples/horizontal/model.php Mon Jul 25 06:25:30 2005 @@ -1,11 +1,11 @@ -<?php -@include '../include_path.php'; +<?php /** * ProgressBar model example. - * - * @version $Id: model.php,v 1.1 2004/07/05 21:32:09 farell Exp $ + * + * @version $Id: model.php,v 1.2 2005/07/25 10:25:30 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress + * @subpackage Examples */ require_once 'HTML/Progress.php'; @@ -13,7 +13,7 @@ class TimerProgress extends HTML_Progress_DM { function TimerProgress() - { + { $this->HTML_Progress_DM(0,60,5); } } @@ -45,6 +45,7 @@ $bar->setProgressHandler('myFunctionHandler'); $ui =& $bar->getUI(); +$ui->setTab(' '); $ui->setStringAttributes('width=170 height=20 valign=bottom align=center'); ?> <html> @@ -55,13 +56,13 @@ <?php echo $bar->getStyle(); ?> body { - background-color: #FFFFFF; - color: #000000; - font-family: Verdana, Arial; + background-color: #FFFFFF; + color: #000000; + font-family: Verdana, Arial; } a:visited, a:active, a:link { - color: navy; + color: navy; } // --> </style> @@ -72,14 +73,11 @@ </script> </head> <body> -<h1><?php echo basename(__FILE__); ?></h1> -<?php -echo $bar->toHtml(); +<?php +echo $bar->toHtml(); $bar->run(); ?> -<p>&lt;&lt; <a href="../index.html">Back examples TOC</a></p> - </body> </html> \ No newline at end of file http://cvs.php.net/diff.php/pear/HTML_Progress/examples/horizontal/nostring.html?r1=1.2&r2=1.3&ty=u Index: pear/HTML_Progress/examples/horizontal/nostring.html diff -u pear/HTML_Progress/examples/horizontal/nostring.html:1.2 pear/HTML_Progress/examples/horizontal/nostring.html:1.3 --- pear/HTML_Progress/examples/horizontal/nostring.html:1.2 Tue Aug 10 14:12:17 2004 +++ pear/HTML_Progress/examples/horizontal/nostring.html Mon Jul 25 06:25:30 2005 @@ -18,7 +18,7 @@ <h1><span class="chapter">NoString </span></h1> -<p align="right">$Date: 2004/08/10 18:12:17 $</p> +<p align="right">$Date: 2005/07/25 10:25:30 $</p> <div class="toc">&nbsp;Table of contents </div> <ul> @@ -32,10 +32,10 @@ <a name="intro"> <h2><img src="../images/info.gif"/> Introduction</h2> - + <p>This example requires : <ul> -<li>PEAR::HTML_Progress 1.2.0RC3 or better.</li> +<li>PEAR::HTML_Progress 1.2.2 or better.</li> </ul> </p> @@ -51,7 +51,7 @@ <li>cell spacing = 2px </ul> Percent text info is hidden (see lines 16 and 17).</p> - + <p>[<a href="#top">Top</a>]</p> @@ -68,7 +68,7 @@ <h3>Screenshot </h3> <p><img src="../screenshots/nostring.png"/></p> <p>[<a href="#top">Top</a>]</p> - + <a name="source"> <h2><img src="../images/source.gif"/>&nbsp;PHP source syntax highlight</h2> @@ -84,4 +84,4 @@ <p>[<a href="#top">Top</a>]</p> </body> -</html> +</html> \ No newline at end of file http://cvs.php.net/diff.php/pear/HTML_Progress/examples/horizontal/nostring.php?r1=1.1&r2=1.2&ty=u Index: pear/HTML_Progress/examples/horizontal/nostring.php diff -u pear/HTML_Progress/examples/horizontal/nostring.php:1.1 pear/HTML_Progress/examples/horizontal/nostring.php:1.2 --- pear/HTML_Progress/examples/horizontal/nostring.php:1.1 Mon Jul 5 17:32:09 2004 +++ pear/HTML_Progress/examples/horizontal/nostring.php Mon Jul 25 06:25:30 2005 @@ -1,11 +1,11 @@ -<?php -@include '../include_path.php'; +<?php /** * Horizontal no String ProgressBar example. - * - * @version $Id: nostring.php,v 1.1 2004/07/05 21:32:09 farell Exp $ + * + * @version $Id: nostring.php,v 1.2 2005/07/25 10:25:30 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress + * @subpackage Examples */ require_once 'HTML/Progress.php'; @@ -24,13 +24,13 @@ <?php echo $bar->getStyle(); ?> body { - background-color: #FFFFFF; - color: #000000; - font-family: Verdana, Arial; + background-color: #FFFFFF; + color: #000000; + font-family: Verdana, Arial; } a:visited, a:active, a:link { - color: navy; + color: navy; } // --> </style> @@ -41,14 +41,11 @@ </script> </head> <body> -<h1><?php echo basename(__FILE__); ?></h1> -<?php -echo $bar->toHtml(); +<?php +echo $bar->toHtml(); $bar->run(); ?> -<p>&lt;&lt; <a href="../index.html">Back examples TOC</a></p> - </body> </html> \ No newline at end of file http://cvs.php.net/diff.php/pear/HTML_Progress/examples/horizontal/progress_number.js?r1=1.1&r2=1.2&ty=u Index: pear/HTML_Progress/examples/horizontal/progress_number.js diff -u pear/HTML_Progress/examples/horizontal/progress_number.js:1.1 pear/HTML_Progress/examples/horizontal/progress_number.js:1.2 --- pear/HTML_Progress/examples/horizontal/progress_number.js:1.1 Mon Jul 5 17:32:09 2004 +++ pear/HTML_Progress/examples/horizontal/progress_number.js Mon Jul 25 06:25:30 2005 @@ -11,20 +11,20 @@ prog = document.all[pIdent+'installationProgress']; if (isNS4) prog = document.layers[pIdent+'installationProgress']; - if (prog != null) - prog.innerHTML = pString; + if (prog != null) + prog.innerHTML = pString; if (pValue == pDeterminate) { - for (i=0; i < cellCount; i++) { - showCell(i, pIdent, "hidden"); + for (i=0; i < cellCount; i++) { + showCell(i, pIdent, "hidden"); } } if ((pDeterminate > 0) && (pValue > 0)) { i = (pValue-1) % cellCount; - showCell(i, pIdent, "visible"); + showCell(i, pIdent, "visible"); } else { for (i=pValue-1; i >=0; i--) { - showCell(i, pIdent, "visible"); + showCell(i, pIdent, "visible"); if (isDom) document.getElementById(pIdent+'progressCell'+i+'A').innerHTML = i; if (isIE) @@ -32,16 +32,16 @@ if (isNS4) document.layers[pIdent+'progressCell'+i+'A'].innerHTML = i; } - } + } } function showCell(pCell, pIdent, pVisibility) { - if (isDom) - document.getElementById(pIdent+'progressCell'+pCell+'A').style.visibility = pVisibility; - if (isIE) - document.all[pIdent+'progressCell'+pCell+'A'].style.visibility = pVisibility; - if (isNS4) - document.layers[pIdent+'progressCell'+pCell+'A'].style.visibility = pVisibility; + if (isDom) + document.getElementById(pIdent+'progressCell'+pCell+'A').style.visibility = pVisibility; + if (isIE) + document.all[pIdent+'progressCell'+pCell+'A'].style.visibility = pVisibility; + if (isNS4) + document.layers[pIdent+'progressCell'+pCell+'A'].style.visibility = pVisibility; -} +} \ No newline at end of file http://cvs.php.net/diff.php/pear/HTML_Progress/examples/horizontal/redsandback.html?r1=1.2&r2=1.3&ty=u Index: pear/HTML_Progress/examples/horizontal/redsandback.html diff -u pear/HTML_Progress/examples/horizontal/redsandback.html:1.2 pear/HTML_Progress/examples/horizontal/redsandback.html:1.3 --- pear/HTML_Progress/examples/horizontal/redsandback.html:1.2 Tue Aug 10 14:12:17 2004 +++ pear/HTML_Progress/examples/horizontal/redsandback.html Mon Jul 25 06:25:30 2005 @@ -18,7 +18,7 @@ <h1><span class="chapter">Red Sand Back </span></h1> -<p align="right">$Date: 2004/08/10 18:12:17 $</p> +<p align="right">$Date: 2005/07/25 10:25:30 $</p> <div class="toc">&nbsp;Table of contents </div> <ul> @@ -32,10 +32,10 @@ <a name="intro"> <h2><img src="../images/info.gif"/> Introduction</h2> - + <p>This example requires : <ul> -<li>PEAR::HTML_Progress 1.2.0RC3 or better.</li> +<li>PEAR::HTML_Progress 1.2.2 or better.</li> </ul> </p> @@ -44,7 +44,7 @@ as <i>javadanse.php</i>. It also show how to decrease cell number (default is 10).</b></p> <p>Percent text info is center aligned on bottom side of the progress bar.</p> - + <p>[<a href="#top">Top</a>]</p> @@ -84,7 +84,7 @@ <p><img src="../screenshots/redsandback.png"/></p> <p>[<a href="#top">Top</a>]</p> - + <a name="source"> <h2><img src="../images/source.gif"/>&nbsp;PHP source syntax highlight</h2> @@ -100,4 +100,4 @@ <p>[<a href="#top">Top</a>]</p> </body> -</html> +</html> \ No newline at end of file http://cvs.php.net/diff.php/pear/HTML_Progress/examples/horizontal/redsandback.php?r1=1.1&r2=1.2&ty=u Index: pear/HTML_Progress/examples/horizontal/redsandback.php diff -u pear/HTML_Progress/examples/horizontal/redsandback.php:1.1 pear/HTML_Progress/examples/horizontal/redsandback.php:1.2 --- pear/HTML_Progress/examples/horizontal/redsandback.php:1.1 Mon Jul 5 17:32:09 2004 +++ pear/HTML_Progress/examples/horizontal/redsandback.php Mon Jul 25 06:25:30 2005 @@ -1,12 +1,12 @@ -<?php -@include '../include_path.php'; +<?php /** * 5 cells Reverse Horizontal ProgressBar example with red skin. * See also ProgressMaker usage with pre-set UI model 'RedSandBack'. - * - * @version $Id: redsandback.php,v 1.1 2004/07/05 21:32:09 farell Exp $ + * + * @version $Id: redsandback.php,v 1.2 2005/07/25 10:25:30 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress + * @subpackage Examples */ require_once 'HTML/Progress.php'; @@ -17,6 +17,7 @@ $bar->setBorderPainted(true); $ui =& $bar->getUI(); +$ui->setTab(' '); $ui->setFillWay('reverse'); $ui->setCellCount(5); $ui->setCellAttributes('active-color=#970038 inactive-color=#FFDDAA width=20'); @@ -35,13 +36,13 @@ <?php echo $bar->getStyle(); ?> body { - background-color: #FFFFFF; - color: #000000; - font-family: Verdana, Arial; + background-color: #FFFFFF; + color: #000000; + font-family: Verdana, Arial; } a:visited, a:active, a:link { - color: navy; + color: navy; } // --> </style> @@ -52,14 +53,11 @@ </script> </head> <body> -<h1><?php echo basename(__FILE__); ?></h1> -<?php -echo $bar->toHtml(); +<?php +echo $bar->toHtml(); $bar->run(); ?> -<p>&lt;&lt; <a href="../index.html">Back examples TOC</a></p> - </body> </html> \ No newline at end of file http://cvs.php.net/diff.php/pear/HTML_Progress/examples/horizontal/smallest.html?r1=1.2&r2=1.3&ty=u Index: pear/HTML_Progress/examples/horizontal/smallest.html diff -u pear/HTML_Progress/examples/horizontal/smallest.html:1.2 pear/HTML_Progress/examples/horizontal/smallest.html:1.3 --- pear/HTML_Progress/examples/horizontal/smallest.html:1.2 Tue Aug 10 14:12:17 2004 +++ pear/HTML_Progress/examples/horizontal/smallest.html Mon Jul 25 06:25:30 2005 @@ -18,7 +18,7 @@ <h1><span class="chapter">Smallest </span></h1> -<p align="right">$Date: 2004/08/10 18:12:17 $</p> +<p align="right">$Date: 2005/07/25 10:25:30 $</p> <div class="toc">&nbsp;Table of contents </div> <ul> @@ -32,19 +32,19 @@ <a name="intro"> <h2><img src="../images/info.gif"/> Introduction</h2> - + <p>This example requires : <ul> -<li>PEAR::HTML_Progress 1.2.0RC3 or better.</li> +<li>PEAR::HTML_Progress 1.2.2 or better.</li> </ul> </p> <hr/> <p><b>This example will run the smallest ProgressBar, you can build.</b></p> -<p>Percent text info is right aligned on 50 pixels width area +<p>Percent text info is right aligned on 50 pixels width area at right side of the progress bar (default).</p> - + <p>[<a href="#top">Top</a>]</p> @@ -82,7 +82,7 @@ <p><img src="../screenshots/smallest.png"/></p> <p>[<a href="#top">Top</a>]</p> - + <a name="source"> <h2><img src="../images/source.gif"/>&nbsp;PHP source syntax highlight</h2> @@ -98,4 +98,4 @@ <p>[<a href="#top">Top</a>]</p> </body> -</html> +</html> \ No newline at end of file http://cvs.php.net/diff.php/pear/HTML_Progress/examples/horizontal/smallest.php?r1=1.1&r2=1.2&ty=u Index: pear/HTML_Progress/examples/horizontal/smallest.php diff -u pear/HTML_Progress/examples/horizontal/smallest.php:1.1 pear/HTML_Progress/examples/horizontal/smallest.php:1.2 --- pear/HTML_Progress/examples/horizontal/smallest.php:1.1 Mon Jul 5 17:32:09 2004 +++ pear/HTML_Progress/examples/horizontal/smallest.php Mon Jul 25 06:25:30 2005 @@ -1,12 +1,12 @@ -<?php -@include '../include_path.php'; +<?php /** * Natural Horizontal smallest ProgressBar example. * See also ProgressMaker usage with pre-set UI model 'Smallest'. - * - * @version $Id: smallest.php,v 1.1 2004/07/05 21:32:09 farell Exp $ + * + * @version $Id: smallest.php,v 1.2 2005/07/25 10:25:30 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress + * @subpackage Examples */ require_once 'HTML/Progress.php'; @@ -17,11 +17,12 @@ $bar->setBorderPainted(true); $ui =& $bar->getUI(); +$ui->setTab(' '); $ui->setCellAttributes('active-color=#970038 inactive-color=#FFDDAA width=7 height=12'); $ui->setBorderAttributes('width=1'); $ui->setStringAttributes(array( - 'font-size' => 10, - 'background-color' => '#C3C6C3' + 'font-size' => 10, + 'background-color' => '#C3C6C3' )); ?> <!DOCTYPE html @@ -36,13 +37,13 @@ <?php echo $bar->getStyle(); ?> body { - background-color: #C3C6C3; - color: #000000; - font-family: Verdana, Arial; + background-color: #C3C6C3; + color: #000000; + font-family: Verdana, Arial; } a:visited, a:active, a:link { - color: navy; + color: navy; } // --> </style> @@ -53,14 +54,11 @@ </script> </head> <body> -<h1><?php echo basename(__FILE__); ?></h1> -<?php -echo $bar->toHtml(); +<?php +echo $bar->toHtml(); $bar->run(); ?> -<p>&lt;&lt; <a href="../index.html">Back examples TOC</a></p> - </body> </html> \ No newline at end of file http://cvs.php.net/diff.php/pear/HTML_Progress/examples/horizontal/string.html?r1=1.2&r2=1.3&ty=u Index: pear/HTML_Progress/examples/horizontal/string.html diff -u pear/HTML_Progress/examples/horizontal/string.html:1.2 pear/HTML_Progress/examples/horizontal/string.html:1.3 --- pear/HTML_Progress/examples/horizontal/string.html:1.2 Tue Aug 10 14:12:17 2004 +++ pear/HTML_Progress/examples/horizontal/string.html Mon Jul 25 06:25:30 2005 @@ -18,7 +18,7 @@ <h1><span class="chapter">Custom String </span></h1> -<p align="right">$Date: 2004/08/10 18:12:17 $</p> +<p align="right">$Date: 2005/07/25 10:25:30 $</p> <div class="toc">&nbsp;Table of contents </div> <ul> @@ -32,10 +32,10 @@ <a name="intro"> <h2><img src="../images/info.gif"/> Introduction</h2> - + <p>This example requires : <ul> -<li>PEAR::HTML_Progress 1.2.0RC3 or better.</li> +<li>PEAR::HTML_Progress 1.2.2 or better.</li> </ul> </p> @@ -51,7 +51,7 @@ <li>cell spacing = 2px </ul> Percent text info is left aligned on a white background area of 350 pixels width.</p> - + <p>[<a href="#top">Top</a>]</p> @@ -73,7 +73,7 @@ <h3>Screenshot </h3> <p><img src="../screenshots/string.png"/></p> <p>[<a href="#top">Top</a>]</p> - + <a name="source"> <h2><img src="../images/source.gif"/>&nbsp;PHP source syntax highlight</h2> @@ -89,4 +89,4 @@ <p>[<a href="#top">Top</a>]</p> </body> -</html> +</html> \ No newline at end of file http://cvs.php.net/diff.php/pear/HTML_Progress/examples/horizontal/string.php?r1=1.1&r2=1.2&ty=u Index: pear/HTML_Progress/examples/horizontal/string.php diff -u pear/HTML_Progress/examples/horizontal/string.php:1.1 pear/HTML_Progress/examples/horizontal/string.php:1.2 --- pear/HTML_Progress/examples/horizontal/string.php:1.1 Mon Jul 5 17:32:09 2004 +++ pear/HTML_Progress/examples/horizontal/string.php Mon Jul 25 06:25:30 2005 @@ -1,29 +1,29 @@ -<?php -@include '../include_path.php'; +<?php /** * Horizontal String ProgressBar example. - * - * @version $Id: string.php,v 1.1 2004/07/05 21:32:09 farell Exp $ + * + * @version $Id: string.php,v 1.2 2005/07/25 10:25:30 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress + * @subpackage Examples */ require_once 'HTML/Progress.php'; -$pkg = array('PEAR', 'Archive_Tar', 'Config', - 'HTML_QuickForm', 'HTML_CSS', 'HTML_Page', 'HTML_Template_Sigma', +$pkg = array('PEAR', 'Archive_Tar', 'Config', + 'HTML_QuickForm', 'HTML_CSS', 'HTML_Page', 'HTML_Template_Sigma', 'Log', 'MDB', 'PHPUnit'); function myFunctionHandler($progressValue, &$obj) { global $pkg; - + $obj->sleep(); $i = floor($progressValue / 10); if ($progressValue == 100) { - $msg = ''; + $msg = ''; } else { - $msg = "&nbsp; installing package ($progressValue %) ... : ".$pkg[$i]; + $msg = "&nbsp; installing package ($progressValue %) ... : ".$pkg[$i]; } $obj->setString($msg); } @@ -36,6 +36,7 @@ $bar->setProgressHandler('myFunctionHandler'); $ui =& $bar->getUI(); +$ui->setTab(' '); $ui->setStringAttributes('width=350 align=left'); ?> <html> @@ -46,13 +47,13 @@ <?php echo $bar->getStyle(); ?> body { - background-color: #FFFFFF; - color: #000000; - font-family: Verdana, Arial; + background-color: #FFFFFF; + color: #000000; + font-family: Verdana, Arial; } a:visited, a:active, a:link { - color: navy; + color: navy; } // --> </style> @@ -63,15 +64,12 @@ </script> </head> <body> -<h1><?php echo basename(__FILE__); ?></h1> -<?php -echo $bar->toHtml(); +<?php +echo $bar->toHtml(); $bar->run(); $bar->display(); // to display the last custom string (blank) ?> -<p>&lt;&lt; <a href="../index.html">Back examples TOC</a></p> - </body> </html> \ No newline at end of file
« previous php.pear.cvs (#33289) next »