Examples TOCexamples

Vertical Limit

$Date: 2005/07/25 11:08:54 $

 Table of contents

Introduction

This example requires :


This example will run a vertical ProgressBar, with limits (min = 0, max = 10), beginning at 0 and increased through 100 with +1 step.

Percent text info is right aligned on 50 pixels width area at right side of the progress bar (default).
Cells have default size and colors.

[Top]

 Render options

None. Used all default values.

[Top]

 Output

Screenshot

[Top]

 PHP source syntax highlight

  1. <?php
  2. /**
  3.  * Vertical limit ProgressBar example
  4.  *
  5.  * @version    $Id: limit.php,v 1.2 2005/07/25 11:08:54 farell Exp $
  6.  * @author     Laurent Laville <pear@laurent-laville.org>
  7.  * @package    HTML_Progress
  8.  * @subpackage Examples
  9.  */
  10.  
  11. require_once 'HTML/Progress.php';
  12.  
  13. $bar = new HTML_Progress(HTML_PROGRESS_BAR_VERTICAL, 0, 10);
  14. $bar->setAnimSpeed(100);
  15. ?>
  16. <html>
  17. <head>
  18. <title>Vertical 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.  
  42. <?php
  43. echo $bar->toHtml();
  44. $bar->run();
  45. ?>
  46.  
  47. </body>
  48. </html>

[Top]