cvs: pear /HTML_Progress/examples/upload formbasic.php formpopup.php formselfref.php ftpupload.php hbar.php http1.html http2.html http3.html
http4.html mixedupload.php progressbar.php vbar.php
| From: | Laurent Laville | Date: | Mon, 25 Jul 2005 11:43:58 +0000 |
| Subject: | cvs: pear /HTML_Progress/examples/upload formbasic.php formpopup.php formselfref.php ftpupload.php hbar.php http1.html http2.html http3.html http4.html mixedupload.php progressbar.php vbar.php |
||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-33296@lists.php.net to get a copy of this message | ||
farell Mon Jul 25 07:43:58 2005 EDT
Modified files:
/pear/HTML_Progress/examples/upload formbasic.php formpopup.php
formselfref.php ftpupload.php
hbar.php http1.html http2.html
http3.html http4.html
mixedupload.php progressbar.php
vbar.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/upload/formbasic.php?r1=1.2&r2=1.3&ty=u Index: pear/HTML_Progress/examples/upload/formbasic.php diff -u pear/HTML_Progress/examples/upload/formbasic.php:1.2 pear/HTML_Progress/examples/upload/formbasic.php:1.3 --- pear/HTML_Progress/examples/upload/formbasic.php:1.2 Fri Jul 2 13:49:06 2004 +++ pear/HTML_Progress/examples/upload/formbasic.php Mon Jul 25 07:43:56 2005 @@ -1,13 +1,13 @@ <?php -@include '../include_path.php'; /** * Frameset Page Upload - * A form is used to select and submit any kind of file to webserver (frame 1) while + * A form is used to select and submit any kind of file to webserver (frame 1) while * a progress meter is running in indeterminate mode in the bottom of page (frame 2) * - * @version $Id: formbasic.php,v 1.2 2004/07/02 17:49:06 farell Exp $ + * @version $Id: formbasic.php,v 1.3 2005/07/25 11:43:56 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress + * @subpackage Examples */ require_once 'HTML/QuickForm.php'; @@ -16,7 +16,7 @@ { global $form; $destination = './uploads/'; - + $file =& $form->getElement('tstUpload'); if ($file->isUploadedFile()) { $ok = $file->moveUploadedFile($destination); @@ -43,7 +43,7 @@ parent.files.selfref.submit(); } //--> -</script> +</script> </head> <body> <?php @@ -84,7 +84,7 @@ $destination = './uploads/'; $fp = fopen($destination . $_GET['ID'],'w',false); fwrite($fp, 'error'); - fclose($fp); + fclose($fp); } $form->display(); ?> http://cvs.php.net/diff.php/pear/HTML_Progress/examples/upload/formpopup.php?r1=1.2&r2=1.3&ty=u Index: pear/HTML_Progress/examples/upload/formpopup.php diff -u pear/HTML_Progress/examples/upload/formpopup.php:1.2 pear/HTML_Progress/examples/upload/formpopup.php:1.3 --- pear/HTML_Progress/examples/upload/formpopup.php:1.2 Fri Jul 2 13:49:06 2004 +++ pear/HTML_Progress/examples/upload/formpopup.php Mon Jul 25 07:43:56 2005 @@ -1,13 +1,13 @@ <?php -@include '../include_path.php'; /** * Single Page Upload * A form is used to select and submit any kind of file to webserver * while a progress meter is running in indeterminate mode inside a popup. * - * @version $Id: formpopup.php,v 1.2 2004/07/02 17:49:06 farell Exp $ + * @version $Id: formpopup.php,v 1.3 2005/07/25 11:43:56 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress + * @subpackage Examples */ require_once 'HTML/QuickForm.php'; @@ -16,7 +16,7 @@ { global $form; $destination = './uploads/'; - + $file =& $form->getElement('tstUpload'); if ($file->isUploadedFile()) { $ok = $file->moveUploadedFile($destination); @@ -44,7 +44,7 @@ document.formpopup.submit(); } //--> -</script> +</script> </head> <body> <?php @@ -88,7 +88,7 @@ $destination = './uploads/'; $fp = fopen($destination . $_GET['ID'],'w',false); fwrite($fp, 'error'); - fclose($fp); + fclose($fp); } $form->display(); ?> http://cvs.php.net/diff.php/pear/HTML_Progress/examples/upload/formselfref.php?r1=1.2&r2=1.3&ty=u Index: pear/HTML_Progress/examples/upload/formselfref.php diff -u pear/HTML_Progress/examples/upload/formselfref.php:1.2 pear/HTML_Progress/examples/upload/formselfref.php:1.3 --- pear/HTML_Progress/examples/upload/formselfref.php:1.2 Fri Jul 2 13:49:06 2004 +++ pear/HTML_Progress/examples/upload/formselfref.php Mon Jul 25 07:43:56 2005 @@ -1,13 +1,13 @@ <?php -@include '../include_path.php'; /** * Frameset Page Upload - * A form is used to select and submit any kind of file to webserver (frame 1) while + * A form is used to select and submit any kind of file to webserver (frame 1) while * a progress meter is running in indeterminate mode in the bottom of page (frame 2) * - * @version $Id: formselfref.php,v 1.2 2004/07/02 17:49:06 farell Exp $ + * @version $Id: formselfref.php,v 1.3 2005/07/25 11:43:56 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress + * @subpackage Examples */ require_once 'HTML/QuickForm.php'; @@ -16,7 +16,7 @@ { global $form; $destination = './uploads/'; - + $file =& $form->getElement('tstUpload'); if ($file->isUploadedFile()) { $ok = $file->moveUploadedFile($destination); @@ -43,7 +43,7 @@ parent.files.selfref.submit(); } //--> -</script> +</script> </head> <body> <?php @@ -84,7 +84,7 @@ $destination = './uploads/'; $fp = fopen($destination . $_GET['ID'],'w',false); fwrite($fp, 'error'); - fclose($fp); + fclose($fp); } $form->display(); ?> http://cvs.php.net/diff.php/pear/HTML_Progress/examples/upload/ftpupload.php?r1=1.1&r2=1.2&ty=u Index: pear/HTML_Progress/examples/upload/ftpupload.php diff -u pear/HTML_Progress/examples/upload/ftpupload.php:1.1 pear/HTML_Progress/examples/upload/ftpupload.php:1.2 --- pear/HTML_Progress/examples/upload/ftpupload.php:1.1 Fri Jul 2 13:51:34 2004 +++ pear/HTML_Progress/examples/upload/ftpupload.php Mon Jul 25 07:43:56 2005 @@ -1,13 +1,13 @@ <?php -@include '../include_path.php'; /** * FTP file Upload * This example shows how to upload file on a ftp server, * that may be different than web server. * - * @version $Id: ftpupload.php,v 1.1 2004/07/02 17:51:34 farell Exp $ + * @version $Id: ftpupload.php,v 1.2 2005/07/25 11:43:56 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress + * @subpackage Examples */ require_once 'HTML/QuickForm.php'; @@ -83,7 +83,7 @@ parent.files.selfref.submit(); } //--> -</script> +</script> </head> <body> http://cvs.php.net/diff.php/pear/HTML_Progress/examples/upload/hbar.php?r1=1.1&r2=1.2&ty=u Index: pear/HTML_Progress/examples/upload/hbar.php diff -u pear/HTML_Progress/examples/upload/hbar.php:1.1 pear/HTML_Progress/examples/upload/hbar.php:1.2 --- pear/HTML_Progress/examples/upload/hbar.php:1.1 Sat Jun 26 08:22:52 2004 +++ pear/HTML_Progress/examples/upload/hbar.php Mon Jul 25 07:43:56 2005 @@ -1,13 +1,13 @@ <?php -@include '../include_path.php'; /** * Progress meter is running in indeterminate mode while a file upload operation. - * This example may work with HTML_Progress 1.1 + * This example may work with HTML_Progress 1.1 * but version 1.2.0 or better allows more easy facilities. * - * @version $Id: hbar.php,v 1.1 2004/06/26 12:22:52 farell Exp $ + * @version $Id: hbar.php,v 1.2 2005/07/25 11:43:56 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress + * @subpackage Examples */ require_once 'HTML/Progress.php'; @@ -16,7 +16,7 @@ class logsUpload extends HTML_Progress_Observer { var $_console; - + function logsUpload() { $isodate = date('Y-m-d'); @@ -60,7 +60,7 @@ global $version; global $stop; $semaphore = './uploads/'.$_GET['ID']; - + if (file_exists($semaphore)) { $stop = file_get_contents($semaphore); $obj->setValue(100); @@ -119,9 +119,9 @@ <style type="text/css"> <!-- body { - background-color: #C3C6C3; - color: #000000; - font-family: Verdana, Arial; + background-color: #C3C6C3; + color: #000000; + font-family: Verdana, Arial; } <?php echo $progress->getStyle(); ?> // --> @@ -134,13 +134,13 @@ </head> <body> -<?php -echo $progress->toHtml(); +<?php +echo $progress->toHtml(); if (isset($_GET['ID'])) { if ($version > 1.1) { - $progress->run(); // run method is born on version 1.2.0RC3 + $progress->run(); // run method is born on version 1.2.0RC3 } else { // do the same as run() method do { @@ -161,7 +161,7 @@ } else { echo '<b>Upload Complete...</b>'; } -} +} ?> </body> http://cvs.php.net/diff.php/pear/HTML_Progress/examples/upload/http1.html?r1=1.2&r2=1.3&ty=u Index: pear/HTML_Progress/examples/upload/http1.html diff -u pear/HTML_Progress/examples/upload/http1.html:1.2 pear/HTML_Progress/examples/upload/http1.html:1.3 --- pear/HTML_Progress/examples/upload/http1.html:1.2 Tue Aug 10 14:13:10 2004 +++ pear/HTML_Progress/examples/upload/http1.html Mon Jul 25 07:43:56 2005 @@ -18,7 +18,7 @@ <h1><span class="chapter">Web-HTTP ProgressBar uploader </span></h1> -<p align="right">$Date: 2004/08/10 18:13:10 $</p> +<p align="right">$Date: 2005/07/25 11:43:56 $</p> <div class="toc"> Table of contents </div> <ul> @@ -32,7 +32,7 @@ <a name="intro"> <h2><img src="../images/info.gif"/> Introduction</h2> - + <p>This example requires : <ul> <li>PEAR::HTML_Progress 1.1 or better.</li> @@ -41,28 +41,28 @@ <hr/> <p><b>This example allows you to upload files from a web browser to your web server.</b></p> - -<p>It requires no client side software and operates on the server via standard + +<p>It requires no client side software and operates on the server via standard multipart HTML forms as defined in RFC 1867.</p> <p>PEAR::HTML_QuickForm package is used to make and manage the form that will send file to your web server, while HTML_Progress is only used to display a progress meter running in indeterminate mode.</p> -<p>Be aware that your web server could returns a timeout on long upload operation, by running +<p>Be aware that your web server could returns a timeout on long upload operation, by running the HTML_Progress script (See technical notes below).</p> - - + + <p>[<a href="#top">Top</a>]</p> <h2><img src="../images/hands.gif"/> Technical notes </h2> -<p>The script time-out refers to the number of seconds a PHP page is given before the script -is assumed to have failed and the page terminated. -If you are uploading a large file the script that is receiving the transfer may time out -before the file has been completely uploaded. -To alter this setting you should insert the following code into your uploading page +<p>The script time-out refers to the number of seconds a PHP page is given before the script +is assumed to have failed and the page terminated. +If you are uploading a large file the script that is receiving the transfer may time out +before the file has been completely uploaded. +To alter this setting you should insert the following code into your uploading page prior to creating any HTML_Progress and HTML_QuickForm objects.</p> <table class="hl-table" width="100%"> @@ -75,7 +75,7 @@ </td> </tr> </table> -<p>See also: +<p>See also: <a target="_blank" href="http://www.php.net/manual/en/function.set-time-limit.php">set_time_limit</a> manual.</p> <p>[<a href="#top">Top</a>]</p> @@ -119,7 +119,7 @@ <p><img src="../screenshots/upload_selfref.png"/></p> <p>[<a href="#top">Top</a>]</p> - + <a name="source"> <h2><img src="../images/source.gif"/> PHP source syntax highlight</h2> @@ -140,4 +140,4 @@ </body> -</html> +</html> \ No newline at end of file http://cvs.php.net/diff.php/pear/HTML_Progress/examples/upload/http2.html?r1=1.2&r2=1.3&ty=u Index: pear/HTML_Progress/examples/upload/http2.html diff -u pear/HTML_Progress/examples/upload/http2.html:1.2 pear/HTML_Progress/examples/upload/http2.html:1.3 --- pear/HTML_Progress/examples/upload/http2.html:1.2 Tue Aug 10 14:13:10 2004 +++ pear/HTML_Progress/examples/upload/http2.html Mon Jul 25 07:43:56 2005 @@ -18,7 +18,7 @@ <h1><span class="chapter">Web-HTTP ProgressBar uploader </span></h1> -<p align="right">$Date: 2004/08/10 18:13:10 $</p> +<p align="right">$Date: 2005/07/25 11:43:56 $</p> <div class="toc"> Table of contents </div> <ul> @@ -32,7 +32,7 @@ <a name="intro"> <h2><img src="../images/info.gif"/> Introduction</h2> - + <p>This example requires : <ul> <li>PEAR::HTML_Progress 1.1 or better.</li> @@ -41,25 +41,25 @@ <hr/> <p><b>This example allows you to upload files from a web browser to your web server.</b></p> - + <p>PEAR::HTML_QuickForm package is used to make and manage the form that will send file to your web server, while HTML_Progress is only used to display a progress meter running in indeterminate mode inside a windows popup.</p> -<p>Be aware that your web server could returns a timeout on long upload operation, by running +<p>Be aware that your web server could returns a timeout on long upload operation, by running the HTML_Progress script (See technical notes below).</p> - - + + <p>[<a href="#top">Top</a>]</p> <h2><img src="../images/hands.gif"/> Technical notes </h2> -<p>The script time-out refers to the number of seconds a PHP page is given before the script -is assumed to have failed and the page terminated. -If you are uploading a large file the script that is receiving the transfer may time out -before the file has been completely uploaded. -To alter this setting you should insert the following code into your uploading page +<p>The script time-out refers to the number of seconds a PHP page is given before the script +is assumed to have failed and the page terminated. +If you are uploading a large file the script that is receiving the transfer may time out +before the file has been completely uploaded. +To alter this setting you should insert the following code into your uploading page prior to creating any HTML_Progress and HTML_QuickForm objects.</p> <table class="hl-table" width="100%"> @@ -72,7 +72,7 @@ </td> </tr> </table> -<p>See also: +<p>See also: <a target="_blank" href="http://www.php.net/manual/en/function.set-time-limit.php">set_time_limit</a> manual.</p> <p>[<a href="#top">Top</a>]</p> @@ -116,7 +116,7 @@ <p><img src="../screenshots/upload_popup.png"/></p> <p>[<a href="#top">Top</a>]</p> - + <a name="source"> <h2><img src="../images/source.gif"/> PHP source syntax highlight</h2> @@ -136,4 +136,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/upload/http3.html?r1=1.2&r2=1.3&ty=u Index: pear/HTML_Progress/examples/upload/http3.html diff -u pear/HTML_Progress/examples/upload/http3.html:1.2 pear/HTML_Progress/examples/upload/http3.html:1.3 --- pear/HTML_Progress/examples/upload/http3.html:1.2 Tue Aug 10 14:13:10 2004 +++ pear/HTML_Progress/examples/upload/http3.html Mon Jul 25 07:43:56 2005 @@ -18,7 +18,7 @@ <h1><span class="chapter">Web-HTTP ProgressBar uploader </span></h1> -<p align="right">$Date: 2004/08/10 18:13:10 $</p> +<p align="right">$Date: 2005/07/25 11:43:56 $</p> <div class="toc"> Table of contents </div> <ul> @@ -32,7 +32,7 @@ <a name="intro"> <h2><img src="../images/info.gif"/> Introduction</h2> - + <p>This example requires : <ul> <li>PEAR::HTML_Progress 1.1 or better.</li> @@ -41,25 +41,25 @@ <hr/> <p><b>This example allows you to upload files from a web browser to your web server.</b></p> - + <p>PEAR::HTML_QuickForm package is used to make and manage the form that will send file -to your web server (right frame), while HTML_Progress is only used to display a vertical +to your web server (right frame), while HTML_Progress is only used to display a vertical progress meter running in indeterminate mode (left frame).</p> -<p>Be aware that your web server could returns a timeout on long upload operation, by running +<p>Be aware that your web server could returns a timeout on long upload operation, by running the HTML_Progress script (See technical notes below).</p> - - + + <p>[<a href="#top">Top</a>]</p> <h2><img src="../images/hands.gif"/> Technical notes </h2> -<p>The script time-out refers to the number of seconds a PHP page is given before the script -is assumed to have failed and the page terminated. -If you are uploading a large file the script that is receiving the transfer may time out -before the file has been completely uploaded. -To alter this setting you should insert the following code into your uploading page +<p>The script time-out refers to the number of seconds a PHP page is given before the script +is assumed to have failed and the page terminated. +If you are uploading a large file the script that is receiving the transfer may time out +before the file has been completely uploaded. +To alter this setting you should insert the following code into your uploading page prior to creating any HTML_Progress and HTML_QuickForm objects.</p> <table class="hl-table" width="100%"> @@ -72,7 +72,7 @@ </td> </tr> </table> -<p>See also: +<p>See also: <a target="_blank" href="http://www.php.net/manual/en/function.set-time-limit.php">set_time_limit</a> manual.</p> <p>[<a href="#top">Top</a>]</p> @@ -119,7 +119,7 @@ <p><img src="../screenshots/upload_mixed.png"/></p> <p>[<a href="#top">Top</a>]</p> - + <a name="source"> <h2><img src="../images/source.gif"/> PHP source syntax highlight</h2> @@ -139,4 +139,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/upload/http4.html?r1=1.2&r2=1.3&ty=u Index: pear/HTML_Progress/examples/upload/http4.html diff -u pear/HTML_Progress/examples/upload/http4.html:1.2 pear/HTML_Progress/examples/upload/http4.html:1.3 --- pear/HTML_Progress/examples/upload/http4.html:1.2 Tue Aug 10 14:13:10 2004 +++ pear/HTML_Progress/examples/upload/http4.html Mon Jul 25 07:43:56 2005 @@ -18,7 +18,7 @@ <h1><span class="chapter">Web-HTTP ProgressBar uploader </span></h1> -<p align="right">$Date: 2004/08/10 18:13:10 $</p> +<p align="right">$Date: 2005/07/25 11:43:56 $</p> <div class="toc"> Table of contents </div> <ul> @@ -32,7 +32,7 @@ <a name="intro"> <h2><img src="../images/info.gif"/> Introduction</h2> - + <p>This example requires : <ul> <li>PEAR::HTML_Progress 1.1 or better.</li> @@ -42,29 +42,29 @@ <hr/> <p><b>This example allows you to upload files from a web browser to your web server and logs operations.</b></p> - + <p>PEAR::HTML_QuickForm package is used to make and manage the form that will send file -to your web server (top frame), while HTML_Progress is only used to display a horizontal +to your web server (top frame), while HTML_Progress is only used to display a horizontal progress meter running in indeterminate mode (bottom frame).</p> -<p>Be aware that your web server could returns a timeout on long upload operation, by running +<p>Be aware that your web server could returns a timeout on long upload operation, by running the HTML_Progress script (See technical notes below).</p> <p>To logs all file uploads, we used the observer pattern with HTML_Progress_Observer class. -Results are written in a series of files 'http4_[iso date].log', where <i>iso date</i> +Results are written in a series of files 'http4_[iso date].log', where <i>iso date</i> corresponding to current date in format YYYY-MM-DD.</p> - - + + <p>[<a href="#top">Top</a>]</p> <h2><img src="../images/hands.gif"/> Technical notes </h2> -<p>The script time-out refers to the number of seconds a PHP page is given before the script -is assumed to have failed and the page terminated. -If you are uploading a large file the script that is receiving the transfer may time out -before the file has been completely uploaded. -To alter this setting you should insert the following code into your uploading page +<p>The script time-out refers to the number of seconds a PHP page is given before the script +is assumed to have failed and the page terminated. +If you are uploading a large file the script that is receiving the transfer may time out +before the file has been completely uploaded. +To alter this setting you should insert the following code into your uploading page prior to creating any HTML_Progress and HTML_QuickForm objects.</p> <table class="hl-table" width="100%"> @@ -77,7 +77,7 @@ </td> </tr> </table> -<p>See also: +<p>See also: <a target="_blank" href="http://www.php.net/manual/en/function.set-time-limit.php">set_time_limit</a> manual.</p> <p>[<a href="#top">Top</a>]</p> @@ -128,7 +128,7 @@ <p><img src="../screenshots/upload_logs.png"/></p> <p>[<a href="#top">Top</a>]</p> - + <a name="source"> <h2><img src="../images/source.gif"/> PHP source syntax highlight</h2> @@ -148,4 +148,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/upload/mixedupload.php?r1=1.2&r2=1.3&ty=u Index: pear/HTML_Progress/examples/upload/mixedupload.php diff -u pear/HTML_Progress/examples/upload/mixedupload.php:1.2 pear/HTML_Progress/examples/upload/mixedupload.php:1.3 --- pear/HTML_Progress/examples/upload/mixedupload.php:1.2 Fri Jul 2 13:49:06 2004 +++ pear/HTML_Progress/examples/upload/mixedupload.php Mon Jul 25 07:43:56 2005 @@ -1,13 +1,13 @@ <?php -@include '../include_path.php'; /** * Mixed Field Upload - * This example shows how to upload a form containing a mix of standard form + * This example shows how to upload a form containing a mix of standard form * and file input fields. * - * @version $Id: mixedupload.php,v 1.2 2004/07/02 17:49:06 farell Exp $ + * @version $Id: mixedupload.php,v 1.3 2005/07/25 11:43:56 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress + * @subpackage Examples */ require_once 'HTML/QuickForm.php'; @@ -16,7 +16,7 @@ { global $form; $destination = './uploads/'; - + $file =& $form->getElement('tstUpload'); if ($file->isUploadedFile()) { $ok = $file->moveUploadedFile($destination); @@ -43,7 +43,7 @@ parent.files.mixed.submit(); } //--> -</script> +</script> </head> <body> <?php @@ -98,7 +98,7 @@ $destination = './uploads/'; $fp = fopen($destination . $_GET['ID'],'w',false); fwrite($fp, 'error'); - fclose($fp); + fclose($fp); } $form->display(); ?> http://cvs.php.net/diff.php/pear/HTML_Progress/examples/upload/progressbar.php?r1=1.2&r2=1.3&ty=u Index: pear/HTML_Progress/examples/upload/progressbar.php diff -u pear/HTML_Progress/examples/upload/progressbar.php:1.2 pear/HTML_Progress/examples/upload/progressbar.php:1.3 --- pear/HTML_Progress/examples/upload/progressbar.php:1.2 Fri Jul 2 13:52:45 2004 +++ pear/HTML_Progress/examples/upload/progressbar.php Mon Jul 25 07:43:56 2005 @@ -1,13 +1,13 @@ <?php -@include '../include_path.php'; /** * Progress meter is running in indeterminate mode while a file upload operation. - * This example may work with HTML_Progress 1.1 + * This example may work with HTML_Progress 1.1 * but version 1.2.0 or better allows more easy facilities. * - * @version $Id: progressbar.php,v 1.2 2004/07/02 17:52:45 farell Exp $ + * @version $Id: progressbar.php,v 1.3 2005/07/25 11:43:56 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress + * @subpackage Examples */ require_once 'HTML/Progress.php'; @@ -33,7 +33,7 @@ global $version; global $stop; $semaphore = './uploads/'.$_GET['ID']; - + if (file_exists($semaphore)) { $stop = file_get_contents($semaphore); $obj->setValue(100); @@ -67,14 +67,14 @@ } $ui = & $progress->getUI(); $ui->setProgressAttributes(array( - 'background-color' => '#e0e0e0' -)); + 'background-color' => '#e0e0e0' +)); $ui->setStringAttributes(array( - 'color' => '#996', - 'background-color' => '#CCCC99' -)); + 'color' => '#996', + 'background-color' => '#CCCC99' +)); $ui->setCellAttributes(array( - 'active-color' => '#996' + 'active-color' => '#996' )); ?> <html> @@ -82,9 +82,9 @@ <style type="text/css"> <!-- body { - background-color: #CCCC99; - color: #996; - font-family: Verdana, Arial; + background-color: #CCCC99; + color: #996; + font-family: Verdana, Arial; } <?php echo $progress->getStyle(); ?> // --> @@ -97,13 +97,13 @@ </head> <body> -<?php -echo $progress->toHtml(); +<?php +echo $progress->toHtml(); if (isset($_GET['ID'])) { if ($version > 1.1) { - $progress->run(); // run method is born on version 1.2.0RC3 + $progress->run(); // run method is born on version 1.2.0RC3 } else { // do the same as run() method do { @@ -125,7 +125,7 @@ echo '<b>File was not uploaded !</b>'; echo '<br/><font size="1">'.$stop.'</font>'; } -} +} ?> </body> http://cvs.php.net/diff.php/pear/HTML_Progress/examples/upload/vbar.php?r1=1.1&r2=1.2&ty=u Index: pear/HTML_Progress/examples/upload/vbar.php diff -u pear/HTML_Progress/examples/upload/vbar.php:1.1 pear/HTML_Progress/examples/upload/vbar.php:1.2 --- pear/HTML_Progress/examples/upload/vbar.php:1.1 Sat Jun 26 08:22:52 2004 +++ pear/HTML_Progress/examples/upload/vbar.php Mon Jul 25 07:43:56 2005 @@ -1,13 +1,13 @@ <?php -@include '../include_path.php'; /** * Progress meter is running in indeterminate mode while a file upload operation. - * This example may work with HTML_Progress 1.1 + * This example may work with HTML_Progress 1.1 * but version 1.2.0 or better allows more easy facilities. * - * @version $Id: vbar.php,v 1.1 2004/06/26 12:22:52 farell Exp $ + * @version $Id: vbar.php,v 1.2 2005/07/25 11:43:56 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress + * @subpackage Examples */ require_once 'HTML/Progress.php'; @@ -33,7 +33,7 @@ global $version; global $stop; $semaphore = './uploads/'.$_GET['ID']; - + if (file_exists($semaphore)) { $stop = file_get_contents($semaphore); $obj->setValue(100); @@ -69,10 +69,10 @@ $ui->setCellCount(20); $ui->setBorderAttributes('width=1 color=#000000'); $ui->setCellAttributes(array( - 'active-color' => '#970038', - 'inactive-color' => '#FFDDAA', - 'width' => 20, - 'height' => 20 + 'active-color' => '#970038', + 'inactive-color' => '#FFDDAA', + 'width' => 20, + 'height' => 20 )); ?> <!DOCTYPE html @@ -84,10 +84,10 @@ <style type="text/css"> <!-- body { - background-color: White; - color: red; - font-family: Verdana, Arial; - font-size: 10px; + background-color: White; + color: red; + font-family: Verdana, Arial; + font-size: 10px; } <?php echo $progress->getStyle(); ?> // --> @@ -100,8 +100,8 @@ </head> <body> -<?php -echo $progress->toHtml(); +<?php +echo $progress->toHtml(); if (isset($_GET['ID'])) { @@ -127,7 +127,7 @@ } else { echo '<b>Upload Complete...</b>'; } -} +} ?> </body>
http://cvs.php.net/diff.php/pear/HTML_Progress/examples/upload/formbasic.php?r1=1.2&r2=1.3&ty=u Index: pear/HTML_Progress/examples/upload/formbasic.php diff -u pear/HTML_Progress/examples/upload/formbasic.php:1.2 pear/HTML_Progress/examples/upload/formbasic.php:1.3 --- pear/HTML_Progress/examples/upload/formbasic.php:1.2 Fri Jul 2 13:49:06 2004 +++ pear/HTML_Progress/examples/upload/formbasic.php Mon Jul 25 07:43:56 2005 @@ -1,13 +1,13 @@ <?php -@include '../include_path.php'; /** * Frameset Page Upload - * A form is used to select and submit any kind of file to webserver (frame 1) while + * A form is used to select and submit any kind of file to webserver (frame 1) while * a progress meter is running in indeterminate mode in the bottom of page (frame 2) * - * @version $Id: formbasic.php,v 1.2 2004/07/02 17:49:06 farell Exp $ + * @version $Id: formbasic.php,v 1.3 2005/07/25 11:43:56 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress + * @subpackage Examples */ require_once 'HTML/QuickForm.php'; @@ -16,7 +16,7 @@ { global $form; $destination = './uploads/'; - + $file =& $form->getElement('tstUpload'); if ($file->isUploadedFile()) { $ok = $file->moveUploadedFile($destination); @@ -43,7 +43,7 @@ parent.files.selfref.submit(); } //--> -</script> +</script> </head> <body> <?php @@ -84,7 +84,7 @@ $destination = './uploads/'; $fp = fopen($destination . $_GET['ID'],'w',false); fwrite($fp, 'error'); - fclose($fp); + fclose($fp); } $form->display(); ?> http://cvs.php.net/diff.php/pear/HTML_Progress/examples/upload/formpopup.php?r1=1.2&r2=1.3&ty=u Index: pear/HTML_Progress/examples/upload/formpopup.php diff -u pear/HTML_Progress/examples/upload/formpopup.php:1.2 pear/HTML_Progress/examples/upload/formpopup.php:1.3 --- pear/HTML_Progress/examples/upload/formpopup.php:1.2 Fri Jul 2 13:49:06 2004 +++ pear/HTML_Progress/examples/upload/formpopup.php Mon Jul 25 07:43:56 2005 @@ -1,13 +1,13 @@ <?php -@include '../include_path.php'; /** * Single Page Upload * A form is used to select and submit any kind of file to webserver * while a progress meter is running in indeterminate mode inside a popup. * - * @version $Id: formpopup.php,v 1.2 2004/07/02 17:49:06 farell Exp $ + * @version $Id: formpopup.php,v 1.3 2005/07/25 11:43:56 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress + * @subpackage Examples */ require_once 'HTML/QuickForm.php'; @@ -16,7 +16,7 @@ { global $form; $destination = './uploads/'; - + $file =& $form->getElement('tstUpload'); if ($file->isUploadedFile()) { $ok = $file->moveUploadedFile($destination); @@ -44,7 +44,7 @@ document.formpopup.submit(); } //--> -</script> +</script> </head> <body> <?php @@ -88,7 +88,7 @@ $destination = './uploads/'; $fp = fopen($destination . $_GET['ID'],'w',false); fwrite($fp, 'error'); - fclose($fp); + fclose($fp); } $form->display(); ?> http://cvs.php.net/diff.php/pear/HTML_Progress/examples/upload/formselfref.php?r1=1.2&r2=1.3&ty=u Index: pear/HTML_Progress/examples/upload/formselfref.php diff -u pear/HTML_Progress/examples/upload/formselfref.php:1.2 pear/HTML_Progress/examples/upload/formselfref.php:1.3 --- pear/HTML_Progress/examples/upload/formselfref.php:1.2 Fri Jul 2 13:49:06 2004 +++ pear/HTML_Progress/examples/upload/formselfref.php Mon Jul 25 07:43:56 2005 @@ -1,13 +1,13 @@ <?php -@include '../include_path.php'; /** * Frameset Page Upload - * A form is used to select and submit any kind of file to webserver (frame 1) while + * A form is used to select and submit any kind of file to webserver (frame 1) while * a progress meter is running in indeterminate mode in the bottom of page (frame 2) * - * @version $Id: formselfref.php,v 1.2 2004/07/02 17:49:06 farell Exp $ + * @version $Id: formselfref.php,v 1.3 2005/07/25 11:43:56 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress + * @subpackage Examples */ require_once 'HTML/QuickForm.php'; @@ -16,7 +16,7 @@ { global $form; $destination = './uploads/'; - + $file =& $form->getElement('tstUpload'); if ($file->isUploadedFile()) { $ok = $file->moveUploadedFile($destination); @@ -43,7 +43,7 @@ parent.files.selfref.submit(); } //--> -</script> +</script> </head> <body> <?php @@ -84,7 +84,7 @@ $destination = './uploads/'; $fp = fopen($destination . $_GET['ID'],'w',false); fwrite($fp, 'error'); - fclose($fp); + fclose($fp); } $form->display(); ?> http://cvs.php.net/diff.php/pear/HTML_Progress/examples/upload/ftpupload.php?r1=1.1&r2=1.2&ty=u Index: pear/HTML_Progress/examples/upload/ftpupload.php diff -u pear/HTML_Progress/examples/upload/ftpupload.php:1.1 pear/HTML_Progress/examples/upload/ftpupload.php:1.2 --- pear/HTML_Progress/examples/upload/ftpupload.php:1.1 Fri Jul 2 13:51:34 2004 +++ pear/HTML_Progress/examples/upload/ftpupload.php Mon Jul 25 07:43:56 2005 @@ -1,13 +1,13 @@ <?php -@include '../include_path.php'; /** * FTP file Upload * This example shows how to upload file on a ftp server, * that may be different than web server. * - * @version $Id: ftpupload.php,v 1.1 2004/07/02 17:51:34 farell Exp $ + * @version $Id: ftpupload.php,v 1.2 2005/07/25 11:43:56 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress + * @subpackage Examples */ require_once 'HTML/QuickForm.php'; @@ -83,7 +83,7 @@ parent.files.selfref.submit(); } //--> -</script> +</script> </head> <body> http://cvs.php.net/diff.php/pear/HTML_Progress/examples/upload/hbar.php?r1=1.1&r2=1.2&ty=u Index: pear/HTML_Progress/examples/upload/hbar.php diff -u pear/HTML_Progress/examples/upload/hbar.php:1.1 pear/HTML_Progress/examples/upload/hbar.php:1.2 --- pear/HTML_Progress/examples/upload/hbar.php:1.1 Sat Jun 26 08:22:52 2004 +++ pear/HTML_Progress/examples/upload/hbar.php Mon Jul 25 07:43:56 2005 @@ -1,13 +1,13 @@ <?php -@include '../include_path.php'; /** * Progress meter is running in indeterminate mode while a file upload operation. - * This example may work with HTML_Progress 1.1 + * This example may work with HTML_Progress 1.1 * but version 1.2.0 or better allows more easy facilities. * - * @version $Id: hbar.php,v 1.1 2004/06/26 12:22:52 farell Exp $ + * @version $Id: hbar.php,v 1.2 2005/07/25 11:43:56 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress + * @subpackage Examples */ require_once 'HTML/Progress.php'; @@ -16,7 +16,7 @@ class logsUpload extends HTML_Progress_Observer { var $_console; - + function logsUpload() { $isodate = date('Y-m-d'); @@ -60,7 +60,7 @@ global $version; global $stop; $semaphore = './uploads/'.$_GET['ID']; - + if (file_exists($semaphore)) { $stop = file_get_contents($semaphore); $obj->setValue(100); @@ -119,9 +119,9 @@ <style type="text/css"> <!-- body { - background-color: #C3C6C3; - color: #000000; - font-family: Verdana, Arial; + background-color: #C3C6C3; + color: #000000; + font-family: Verdana, Arial; } <?php echo $progress->getStyle(); ?> // --> @@ -134,13 +134,13 @@ </head> <body> -<?php -echo $progress->toHtml(); +<?php +echo $progress->toHtml(); if (isset($_GET['ID'])) { if ($version > 1.1) { - $progress->run(); // run method is born on version 1.2.0RC3 + $progress->run(); // run method is born on version 1.2.0RC3 } else { // do the same as run() method do { @@ -161,7 +161,7 @@ } else { echo '<b>Upload Complete...</b>'; } -} +} ?> </body> http://cvs.php.net/diff.php/pear/HTML_Progress/examples/upload/http1.html?r1=1.2&r2=1.3&ty=u Index: pear/HTML_Progress/examples/upload/http1.html diff -u pear/HTML_Progress/examples/upload/http1.html:1.2 pear/HTML_Progress/examples/upload/http1.html:1.3 --- pear/HTML_Progress/examples/upload/http1.html:1.2 Tue Aug 10 14:13:10 2004 +++ pear/HTML_Progress/examples/upload/http1.html Mon Jul 25 07:43:56 2005 @@ -18,7 +18,7 @@ <h1><span class="chapter">Web-HTTP ProgressBar uploader </span></h1> -<p align="right">$Date: 2004/08/10 18:13:10 $</p> +<p align="right">$Date: 2005/07/25 11:43:56 $</p> <div class="toc"> Table of contents </div> <ul> @@ -32,7 +32,7 @@ <a name="intro"> <h2><img src="../images/info.gif"/> Introduction</h2> - + <p>This example requires : <ul> <li>PEAR::HTML_Progress 1.1 or better.</li> @@ -41,28 +41,28 @@ <hr/> <p><b>This example allows you to upload files from a web browser to your web server.</b></p> - -<p>It requires no client side software and operates on the server via standard + +<p>It requires no client side software and operates on the server via standard multipart HTML forms as defined in RFC 1867.</p> <p>PEAR::HTML_QuickForm package is used to make and manage the form that will send file to your web server, while HTML_Progress is only used to display a progress meter running in indeterminate mode.</p> -<p>Be aware that your web server could returns a timeout on long upload operation, by running +<p>Be aware that your web server could returns a timeout on long upload operation, by running the HTML_Progress script (See technical notes below).</p> - - + + <p>[<a href="#top">Top</a>]</p> <h2><img src="../images/hands.gif"/> Technical notes </h2> -<p>The script time-out refers to the number of seconds a PHP page is given before the script -is assumed to have failed and the page terminated. -If you are uploading a large file the script that is receiving the transfer may time out -before the file has been completely uploaded. -To alter this setting you should insert the following code into your uploading page +<p>The script time-out refers to the number of seconds a PHP page is given before the script +is assumed to have failed and the page terminated. +If you are uploading a large file the script that is receiving the transfer may time out +before the file has been completely uploaded. +To alter this setting you should insert the following code into your uploading page prior to creating any HTML_Progress and HTML_QuickForm objects.</p> <table class="hl-table" width="100%"> @@ -75,7 +75,7 @@ </td> </tr> </table> -<p>See also: +<p>See also: <a target="_blank" href="http://www.php.net/manual/en/function.set-time-limit.php">set_time_limit</a> manual.</p> <p>[<a href="#top">Top</a>]</p> @@ -119,7 +119,7 @@ <p><img src="../screenshots/upload_selfref.png"/></p> <p>[<a href="#top">Top</a>]</p> - + <a name="source"> <h2><img src="../images/source.gif"/> PHP source syntax highlight</h2> @@ -140,4 +140,4 @@ </body> -</html> +</html> \ No newline at end of file http://cvs.php.net/diff.php/pear/HTML_Progress/examples/upload/http2.html?r1=1.2&r2=1.3&ty=u Index: pear/HTML_Progress/examples/upload/http2.html diff -u pear/HTML_Progress/examples/upload/http2.html:1.2 pear/HTML_Progress/examples/upload/http2.html:1.3 --- pear/HTML_Progress/examples/upload/http2.html:1.2 Tue Aug 10 14:13:10 2004 +++ pear/HTML_Progress/examples/upload/http2.html Mon Jul 25 07:43:56 2005 @@ -18,7 +18,7 @@ <h1><span class="chapter">Web-HTTP ProgressBar uploader </span></h1> -<p align="right">$Date: 2004/08/10 18:13:10 $</p> +<p align="right">$Date: 2005/07/25 11:43:56 $</p> <div class="toc"> Table of contents </div> <ul> @@ -32,7 +32,7 @@ <a name="intro"> <h2><img src="../images/info.gif"/> Introduction</h2> - + <p>This example requires : <ul> <li>PEAR::HTML_Progress 1.1 or better.</li> @@ -41,25 +41,25 @@ <hr/> <p><b>This example allows you to upload files from a web browser to your web server.</b></p> - + <p>PEAR::HTML_QuickForm package is used to make and manage the form that will send file to your web server, while HTML_Progress is only used to display a progress meter running in indeterminate mode inside a windows popup.</p> -<p>Be aware that your web server could returns a timeout on long upload operation, by running +<p>Be aware that your web server could returns a timeout on long upload operation, by running the HTML_Progress script (See technical notes below).</p> - - + + <p>[<a href="#top">Top</a>]</p> <h2><img src="../images/hands.gif"/> Technical notes </h2> -<p>The script time-out refers to the number of seconds a PHP page is given before the script -is assumed to have failed and the page terminated. -If you are uploading a large file the script that is receiving the transfer may time out -before the file has been completely uploaded. -To alter this setting you should insert the following code into your uploading page +<p>The script time-out refers to the number of seconds a PHP page is given before the script +is assumed to have failed and the page terminated. +If you are uploading a large file the script that is receiving the transfer may time out +before the file has been completely uploaded. +To alter this setting you should insert the following code into your uploading page prior to creating any HTML_Progress and HTML_QuickForm objects.</p> <table class="hl-table" width="100%"> @@ -72,7 +72,7 @@ </td> </tr> </table> -<p>See also: +<p>See also: <a target="_blank" href="http://www.php.net/manual/en/function.set-time-limit.php">set_time_limit</a> manual.</p> <p>[<a href="#top">Top</a>]</p> @@ -116,7 +116,7 @@ <p><img src="../screenshots/upload_popup.png"/></p> <p>[<a href="#top">Top</a>]</p> - + <a name="source"> <h2><img src="../images/source.gif"/> PHP source syntax highlight</h2> @@ -136,4 +136,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/upload/http3.html?r1=1.2&r2=1.3&ty=u Index: pear/HTML_Progress/examples/upload/http3.html diff -u pear/HTML_Progress/examples/upload/http3.html:1.2 pear/HTML_Progress/examples/upload/http3.html:1.3 --- pear/HTML_Progress/examples/upload/http3.html:1.2 Tue Aug 10 14:13:10 2004 +++ pear/HTML_Progress/examples/upload/http3.html Mon Jul 25 07:43:56 2005 @@ -18,7 +18,7 @@ <h1><span class="chapter">Web-HTTP ProgressBar uploader </span></h1> -<p align="right">$Date: 2004/08/10 18:13:10 $</p> +<p align="right">$Date: 2005/07/25 11:43:56 $</p> <div class="toc"> Table of contents </div> <ul> @@ -32,7 +32,7 @@ <a name="intro"> <h2><img src="../images/info.gif"/> Introduction</h2> - + <p>This example requires : <ul> <li>PEAR::HTML_Progress 1.1 or better.</li> @@ -41,25 +41,25 @@ <hr/> <p><b>This example allows you to upload files from a web browser to your web server.</b></p> - + <p>PEAR::HTML_QuickForm package is used to make and manage the form that will send file -to your web server (right frame), while HTML_Progress is only used to display a vertical +to your web server (right frame), while HTML_Progress is only used to display a vertical progress meter running in indeterminate mode (left frame).</p> -<p>Be aware that your web server could returns a timeout on long upload operation, by running +<p>Be aware that your web server could returns a timeout on long upload operation, by running the HTML_Progress script (See technical notes below).</p> - - + + <p>[<a href="#top">Top</a>]</p> <h2><img src="../images/hands.gif"/> Technical notes </h2> -<p>The script time-out refers to the number of seconds a PHP page is given before the script -is assumed to have failed and the page terminated. -If you are uploading a large file the script that is receiving the transfer may time out -before the file has been completely uploaded. -To alter this setting you should insert the following code into your uploading page +<p>The script time-out refers to the number of seconds a PHP page is given before the script +is assumed to have failed and the page terminated. +If you are uploading a large file the script that is receiving the transfer may time out +before the file has been completely uploaded. +To alter this setting you should insert the following code into your uploading page prior to creating any HTML_Progress and HTML_QuickForm objects.</p> <table class="hl-table" width="100%"> @@ -72,7 +72,7 @@ </td> </tr> </table> -<p>See also: +<p>See also: <a target="_blank" href="http://www.php.net/manual/en/function.set-time-limit.php">set_time_limit</a> manual.</p> <p>[<a href="#top">Top</a>]</p> @@ -119,7 +119,7 @@ <p><img src="../screenshots/upload_mixed.png"/></p> <p>[<a href="#top">Top</a>]</p> - + <a name="source"> <h2><img src="../images/source.gif"/> PHP source syntax highlight</h2> @@ -139,4 +139,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/upload/http4.html?r1=1.2&r2=1.3&ty=u Index: pear/HTML_Progress/examples/upload/http4.html diff -u pear/HTML_Progress/examples/upload/http4.html:1.2 pear/HTML_Progress/examples/upload/http4.html:1.3 --- pear/HTML_Progress/examples/upload/http4.html:1.2 Tue Aug 10 14:13:10 2004 +++ pear/HTML_Progress/examples/upload/http4.html Mon Jul 25 07:43:56 2005 @@ -18,7 +18,7 @@ <h1><span class="chapter">Web-HTTP ProgressBar uploader </span></h1> -<p align="right">$Date: 2004/08/10 18:13:10 $</p> +<p align="right">$Date: 2005/07/25 11:43:56 $</p> <div class="toc"> Table of contents </div> <ul> @@ -32,7 +32,7 @@ <a name="intro"> <h2><img src="../images/info.gif"/> Introduction</h2> - + <p>This example requires : <ul> <li>PEAR::HTML_Progress 1.1 or better.</li> @@ -42,29 +42,29 @@ <hr/> <p><b>This example allows you to upload files from a web browser to your web server and logs operations.</b></p> - + <p>PEAR::HTML_QuickForm package is used to make and manage the form that will send file -to your web server (top frame), while HTML_Progress is only used to display a horizontal +to your web server (top frame), while HTML_Progress is only used to display a horizontal progress meter running in indeterminate mode (bottom frame).</p> -<p>Be aware that your web server could returns a timeout on long upload operation, by running +<p>Be aware that your web server could returns a timeout on long upload operation, by running the HTML_Progress script (See technical notes below).</p> <p>To logs all file uploads, we used the observer pattern with HTML_Progress_Observer class. -Results are written in a series of files 'http4_[iso date].log', where <i>iso date</i> +Results are written in a series of files 'http4_[iso date].log', where <i>iso date</i> corresponding to current date in format YYYY-MM-DD.</p> - - + + <p>[<a href="#top">Top</a>]</p> <h2><img src="../images/hands.gif"/> Technical notes </h2> -<p>The script time-out refers to the number of seconds a PHP page is given before the script -is assumed to have failed and the page terminated. -If you are uploading a large file the script that is receiving the transfer may time out -before the file has been completely uploaded. -To alter this setting you should insert the following code into your uploading page +<p>The script time-out refers to the number of seconds a PHP page is given before the script +is assumed to have failed and the page terminated. +If you are uploading a large file the script that is receiving the transfer may time out +before the file has been completely uploaded. +To alter this setting you should insert the following code into your uploading page prior to creating any HTML_Progress and HTML_QuickForm objects.</p> <table class="hl-table" width="100%"> @@ -77,7 +77,7 @@ </td> </tr> </table> -<p>See also: +<p>See also: <a target="_blank" href="http://www.php.net/manual/en/function.set-time-limit.php">set_time_limit</a> manual.</p> <p>[<a href="#top">Top</a>]</p> @@ -128,7 +128,7 @@ <p><img src="../screenshots/upload_logs.png"/></p> <p>[<a href="#top">Top</a>]</p> - + <a name="source"> <h2><img src="../images/source.gif"/> PHP source syntax highlight</h2> @@ -148,4 +148,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/upload/mixedupload.php?r1=1.2&r2=1.3&ty=u Index: pear/HTML_Progress/examples/upload/mixedupload.php diff -u pear/HTML_Progress/examples/upload/mixedupload.php:1.2 pear/HTML_Progress/examples/upload/mixedupload.php:1.3 --- pear/HTML_Progress/examples/upload/mixedupload.php:1.2 Fri Jul 2 13:49:06 2004 +++ pear/HTML_Progress/examples/upload/mixedupload.php Mon Jul 25 07:43:56 2005 @@ -1,13 +1,13 @@ <?php -@include '../include_path.php'; /** * Mixed Field Upload - * This example shows how to upload a form containing a mix of standard form + * This example shows how to upload a form containing a mix of standard form * and file input fields. * - * @version $Id: mixedupload.php,v 1.2 2004/07/02 17:49:06 farell Exp $ + * @version $Id: mixedupload.php,v 1.3 2005/07/25 11:43:56 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress + * @subpackage Examples */ require_once 'HTML/QuickForm.php'; @@ -16,7 +16,7 @@ { global $form; $destination = './uploads/'; - + $file =& $form->getElement('tstUpload'); if ($file->isUploadedFile()) { $ok = $file->moveUploadedFile($destination); @@ -43,7 +43,7 @@ parent.files.mixed.submit(); } //--> -</script> +</script> </head> <body> <?php @@ -98,7 +98,7 @@ $destination = './uploads/'; $fp = fopen($destination . $_GET['ID'],'w',false); fwrite($fp, 'error'); - fclose($fp); + fclose($fp); } $form->display(); ?> http://cvs.php.net/diff.php/pear/HTML_Progress/examples/upload/progressbar.php?r1=1.2&r2=1.3&ty=u Index: pear/HTML_Progress/examples/upload/progressbar.php diff -u pear/HTML_Progress/examples/upload/progressbar.php:1.2 pear/HTML_Progress/examples/upload/progressbar.php:1.3 --- pear/HTML_Progress/examples/upload/progressbar.php:1.2 Fri Jul 2 13:52:45 2004 +++ pear/HTML_Progress/examples/upload/progressbar.php Mon Jul 25 07:43:56 2005 @@ -1,13 +1,13 @@ <?php -@include '../include_path.php'; /** * Progress meter is running in indeterminate mode while a file upload operation. - * This example may work with HTML_Progress 1.1 + * This example may work with HTML_Progress 1.1 * but version 1.2.0 or better allows more easy facilities. * - * @version $Id: progressbar.php,v 1.2 2004/07/02 17:52:45 farell Exp $ + * @version $Id: progressbar.php,v 1.3 2005/07/25 11:43:56 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress + * @subpackage Examples */ require_once 'HTML/Progress.php'; @@ -33,7 +33,7 @@ global $version; global $stop; $semaphore = './uploads/'.$_GET['ID']; - + if (file_exists($semaphore)) { $stop = file_get_contents($semaphore); $obj->setValue(100); @@ -67,14 +67,14 @@ } $ui = & $progress->getUI(); $ui->setProgressAttributes(array( - 'background-color' => '#e0e0e0' -)); + 'background-color' => '#e0e0e0' +)); $ui->setStringAttributes(array( - 'color' => '#996', - 'background-color' => '#CCCC99' -)); + 'color' => '#996', + 'background-color' => '#CCCC99' +)); $ui->setCellAttributes(array( - 'active-color' => '#996' + 'active-color' => '#996' )); ?> <html> @@ -82,9 +82,9 @@ <style type="text/css"> <!-- body { - background-color: #CCCC99; - color: #996; - font-family: Verdana, Arial; + background-color: #CCCC99; + color: #996; + font-family: Verdana, Arial; } <?php echo $progress->getStyle(); ?> // --> @@ -97,13 +97,13 @@ </head> <body> -<?php -echo $progress->toHtml(); +<?php +echo $progress->toHtml(); if (isset($_GET['ID'])) { if ($version > 1.1) { - $progress->run(); // run method is born on version 1.2.0RC3 + $progress->run(); // run method is born on version 1.2.0RC3 } else { // do the same as run() method do { @@ -125,7 +125,7 @@ echo '<b>File was not uploaded !</b>'; echo '<br/><font size="1">'.$stop.'</font>'; } -} +} ?> </body> http://cvs.php.net/diff.php/pear/HTML_Progress/examples/upload/vbar.php?r1=1.1&r2=1.2&ty=u Index: pear/HTML_Progress/examples/upload/vbar.php diff -u pear/HTML_Progress/examples/upload/vbar.php:1.1 pear/HTML_Progress/examples/upload/vbar.php:1.2 --- pear/HTML_Progress/examples/upload/vbar.php:1.1 Sat Jun 26 08:22:52 2004 +++ pear/HTML_Progress/examples/upload/vbar.php Mon Jul 25 07:43:56 2005 @@ -1,13 +1,13 @@ <?php -@include '../include_path.php'; /** * Progress meter is running in indeterminate mode while a file upload operation. - * This example may work with HTML_Progress 1.1 + * This example may work with HTML_Progress 1.1 * but version 1.2.0 or better allows more easy facilities. * - * @version $Id: vbar.php,v 1.1 2004/06/26 12:22:52 farell Exp $ + * @version $Id: vbar.php,v 1.2 2005/07/25 11:43:56 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress + * @subpackage Examples */ require_once 'HTML/Progress.php'; @@ -33,7 +33,7 @@ global $version; global $stop; $semaphore = './uploads/'.$_GET['ID']; - + if (file_exists($semaphore)) { $stop = file_get_contents($semaphore); $obj->setValue(100); @@ -69,10 +69,10 @@ $ui->setCellCount(20); $ui->setBorderAttributes('width=1 color=#000000'); $ui->setCellAttributes(array( - 'active-color' => '#970038', - 'inactive-color' => '#FFDDAA', - 'width' => 20, - 'height' => 20 + 'active-color' => '#970038', + 'inactive-color' => '#FFDDAA', + 'width' => 20, + 'height' => 20 )); ?> <!DOCTYPE html @@ -84,10 +84,10 @@ <style type="text/css"> <!-- body { - background-color: White; - color: red; - font-family: Verdana, Arial; - font-size: 10px; + background-color: White; + color: red; + font-family: Verdana, Arial; + font-size: 10px; } <?php echo $progress->getStyle(); ?> // --> @@ -100,8 +100,8 @@ </head> <body> -<?php -echo $progress->toHtml(); +<?php +echo $progress->toHtml(); if (isset($_GET['ID'])) { @@ -127,7 +127,7 @@ } else { echo '<b>Upload Complete...</b>'; } -} +} ?> </body>