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

Source for file constructor_vertical.php

Documentation is available at constructor_vertical.php

  1. <?php 
  2. @include '../../include_path.php';
  3. /**
  4.  * Basic Vertical ProgressBar example.
  5.  * 
  6.  * @version    $Id: constructor_vertical.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(HTML_PROGRESS_BAR_VERTICAL);
  14. $bar->setAnimSpeed(100);
  15. $bar->setValue(85);
  16. ?>
  17. <html>
  18. <head>
  19. <title>Basic Vertical ProgressBar example</title>
  20. <style type="text/css">
  21. <!--
  22. <?php echo $bar->getStyle()?>
  23.  
  24. body {
  25.     background-color: #FFFFFF;
  26.     color: #000000;
  27.     font-family: Verdana, Arial;
  28. }
  29.  
  30. a:visited, a:active, a:link {
  31.     color: navy;
  32. }
  33. // -->
  34. </style>
  35. <script type="text/javascript">
  36. <!--
  37. <?php echo $bar->getScript()?>
  38. //-->
  39. </script>
  40. </head>
  41. <body>
  42. <h1><?php echo basename(__FILE__)?></h1>
  43.  
  44. <?php 
  45. echo $bar->toHtml()
  46.  
  47. do {
  48.     $bar->display();
  49.     if ($bar->getPercentComplete(== 1{
  50.         break;   // the progress bar has reached 100%
  51.     }
  52.     $bar->incValue();
  53. while(1);
  54. ?>
  55.  
  56. <p>&lt;&lt; <a href="index.html">Back examples TOC</a></p>
  57.  
  58. <h2>print_r </h2>
  59. <pre>
  60. <?php 
  61. print_r($bar->toArray())
  62. ?>
  63. </pre>
  64.  
  65. </body>
  66. </html>

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