cvs: pear /HTML_Progress/examples/multiple vertical.html vertical.php

From: Date: Mon, 25 Jul 2005 11:46:02 +0000
Subject: cvs: pear /HTML_Progress/examples/multiple vertical.html vertical.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-33297@lists.php.net to get a copy of this message
farell Mon Jul 25 07:46:02 2005 EDT Modified files: /pear/HTML_Progress/examples/multiple vertical.html vertical.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/multiple/vertical.html?r1=1.2&r2=1.3&ty=u Index: pear/HTML_Progress/examples/multiple/vertical.html diff -u pear/HTML_Progress/examples/multiple/vertical.html:1.2 pear/HTML_Progress/examples/multiple/vertical.html:1.3 --- pear/HTML_Progress/examples/multiple/vertical.html:1.2 Tue Aug 10 14:12:37 2004 +++ pear/HTML_Progress/examples/multiple/vertical.html Mon Jul 25 07:46:01 2005 @@ -18,7 +18,7 @@ <h1><span class="chapter">Multiple ProgressBar </span></h1> -<p align="right">$Date: 2004/08/10 18:12:37 $</p> +<p align="right">$Date: 2005/07/25 11:46:01 $</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 (see source at line 11).</li> +<li>PEAR::HTML_Progress 1.2.2 or better (see source at line 11).</li> </ul> </p> @@ -44,21 +44,21 @@ <p>It will show two vertical progress bar running in opposite sides (down to up and reverse) with different increment step.</p> - + <p><b>Important: </b>In case you want to use more than one progress meter on a same page. <br/> -To manage all bars easily, you need to identify them by a free simple code to avoid system to generate +To manage all bars easily, you need to identify them by a free simple code to avoid system to generate random values (see at lines 15 and 35).</p> -<p><b>bar1</b> (on left side) will be filled from down to up (see line 20) with color scheme +<p><b>bar1</b> (on left side) will be filled from down to up (see line 20) with color scheme defined on lines 22 to 30.</p> - -<p><b>bar2</b> (on right side) will be filled from up to down (see line 40) with color scheme + +<p><b>bar2</b> (on right side) will be filled from up to down (see line 40) with color scheme defined on lines 42 to 50.</p> <p>The loop that will display both progress meter at same time is defined on lines 117 to 119.</p> <p>If you want to do something corresponding to bar1 and bar2 process (see lines 114 and 117) -you should set your own progress handler with method HTML_Progress::setProgressHandler(). +you should set your own progress handler with method HTML_Progress::setProgressHandler(). Default is to do the HTML_Progress::sleep() action (see setAnimSpeed).</p> <p>[<a href="#top">Top</a>]</p> @@ -130,7 +130,7 @@ <p><img src="../screenshots/vumeter.png"/></p> <p>[<a href="#top">Top</a>]</p> - + <a name="source"> <h2><img src="../images/source.gif"/>&nbsp;PHP source syntax highlight</h2> @@ -146,4 +146,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/multiple/vertical.php?r1=1.1&r2=1.2&ty=u Index: pear/HTML_Progress/examples/multiple/vertical.php diff -u pear/HTML_Progress/examples/multiple/vertical.php:1.1 pear/HTML_Progress/examples/multiple/vertical.php:1.2 --- pear/HTML_Progress/examples/multiple/vertical.php:1.1 Sun Jun 27 09:42:43 2004 +++ pear/HTML_Progress/examples/multiple/vertical.php Mon Jul 25 07:46:01 2005 @@ -1,11 +1,11 @@ -<?php -@include '../include_path.php'; +<?php /** * Multiple Vertical ProgressBar example. - * - * @version $Id: vertical.php,v 1.1 2004/06/27 13:42:43 farell Exp $ + * + * @version $Id: vertical.php,v 1.2 2005/07/25 11:46:01 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress + * @subpackage Examples */ require_once 'HTML/Progress.php'; @@ -22,11 +22,11 @@ $ui1->setCellAttributes('active-color=#970038 inactive-color=#FFDDAA width=50 height=13'); $ui1->setBorderAttributes('width=1 color=#000000'); $ui1->setStringAttributes(array( - 'font-size' => 8, - 'color' => '#FF0000', - 'background-color' => '#C3C6C3', - 'align' => 'center', - 'valign' => 'bottom' + 'font-size' => 8, + 'color' => '#FF0000', + 'background-color' => '#C3C6C3', + 'align' => 'center', + 'valign' => 'bottom' )); @@ -42,11 +42,11 @@ $ui2->setCellAttributes('active-color=#3874B4 inactive-color=#FFDDAA width=50 height=13'); $ui2->setBorderAttributes('width=1 style=dashed color=#000000'); $ui2->setStringAttributes(array( - 'font-size' => 8, - 'color' => 'navy', - 'background-color' => '#C3C6C3', - 'align' => 'center', - 'valign' => 'bottom' + 'font-size' => 8, + 'color' => 'navy', + 'background-color' => '#C3C6C3', + 'align' => 'center', + 'valign' => 'bottom' )); ?> <!DOCTYPE html @@ -58,28 +58,28 @@ <title>Multiple Vertical ProgressBar example</title> <style type="text/css"> <!-- -<?php +<?php echo $bar1->getStyle(); echo $bar2->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; } table.container { - border: 1; - border-color: navy; - border-style: dotted; - cell-spacing: 4; - cell-padding: 10; - width: 25%; + border: 1; + border-color: navy; + border-style: dotted; + cell-spacing: 4; + cell-padding: 10; + width: 25%; // --> </style> <script type="text/javascript"> @@ -89,7 +89,7 @@ </script> </head> <body> -<h1><?php echo basename(__FILE__); ?></h1> + <table class="container"> <tr> @@ -102,7 +102,7 @@ </tr> </table> -<?php +<?php do { $bar1->display(); @@ -119,7 +119,5 @@ } while(1); ?> -<p>&lt;&lt; <a href="../index.html">Back examples TOC</a></p> - </body> </html> \ No newline at end of file

« previous php.pear.cvs (#33297) next »