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

Source for file basic.php

Documentation is available at basic.php

  1. <?php 
  2. @include '../include_path.php';
  3. /**
  4.  * Basic Vertical ProgressBar example.
  5.  * 
  6.  * @version    $Id: basic.php,v 1.1 2004/07/05 21:32:31 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. $bar->run();
  47. ?>
  48.  
  49. <p>&lt;&lt; <a href="../index.html">Back examples TOC</a></p>
  50.  
  51. </body>
  52. </html>

Documentation generated on Mon, 11 Mar 2019 13:52:36 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.