HTML_Progress
[ class tree: HTML_Progress ] [ index: HTML_Progress ] [ all elements ]

Source for file constructor_horizontal_limit.php

Documentation is available at constructor_horizontal_limit.php

  1. <?php 
  2. @include '../../include_path.php';
  3. /**
  4.  * Horizontal limit ProgressBar example.
  5.  * 
  6.  * @version    $Id: constructor_horizontal_limit.php,v 1.3 2004/04/18 13:25:43 farell Exp $
  7.  * @author     Laurent Laville <pear@laurent-laville.org>
  8.  * @package    HTML_Progress
  9.  */
  10.  
  11. require_once 'HTML/Progress.php';
  12.  
  13. $bar = new HTML_Progress(0,20);
  14. $bar->setAnimSpeed(100);
  15. ?>
  16. <html>
  17. <head>
  18. <title>Horizontal limit ProgressBar example</title>
  19. <style type="text/css">
  20. <!--
  21. <?php echo $bar->getStyle()?>
  22.  
  23. body {
  24.     background-color: #FFFFFF;
  25.     color: #000000;
  26.     font-family: Verdana, Arial;
  27. }
  28.  
  29. a:visited, a:active, a:link {
  30.     color: navy;
  31. }
  32. // -->
  33. </style>
  34. <script type="text/javascript">
  35. <!--
  36. <?php echo $bar->getScript()?>
  37. //-->
  38. </script>
  39. </head>
  40. <body>
  41. <h1><?php echo basename(__FILE__)?></h1>
  42.  
  43. <?php 
  44. echo $bar->toHtml()
  45.  
  46. do {
  47.     $bar->display();
  48.     if ($bar->getPercentComplete(== 1{
  49.         break;   // the progress bar has reached 100%
  50.     }
  51.     $bar->incValue();
  52. while(1);
  53. ?>
  54.  
  55. <p>&lt;&lt; <a href="index.html">Back examples TOC</a></p>
  56.  
  57. <h2>print_r </h2>
  58. <pre>
  59. <?php 
  60. print_r($bar->toArray())
  61. ?>
  62. </pre>
  63.  
  64. </body>
  65. </html>

Documentation generated on Mon, 11 Mar 2019 10:15:07 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.