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

Source for file ancestor.php

Documentation is available at ancestor.php

  1. <?php 
  2. @include '../include_path.php';
  3. /**
  4.  * Basic Horizontal ProgressBar v0.5 style example.
  5.  * See also ProgressMaker usage with pre-set UI model 'Ancestor'.
  6.  * 
  7.  * @version    $Id: ancestor.php,v 1.1 2004/07/05 21:32:09 farell Exp $
  8.  * @author     Laurent Laville <pear@laurent-laville.org>
  9.  * @package    HTML_Progress
  10.  */
  11.  
  12. require_once 'HTML/Progress.php';
  13.  
  14. $bar = new HTML_Progress();
  15. $bar->setAnimSpeed(100);
  16. $bar->setIncrement(10);
  17.  
  18. $ui =$bar->getUI();
  19. $ui->setStringAttributes('width=60 font-size=14 align=center');
  20. ?>
  21. <html>
  22. <head>
  23. <title>Ancestor Progress example</title>
  24. <style type="text/css">
  25. <!--
  26. <?php echo $bar->getStyle()?>
  27.  
  28. body {
  29.     background-color: #444444;
  30.     color: #EEEEEE;
  31.     font-family: Verdana, Arial;
  32. }
  33.  
  34. a:visited, a:active, a:link {
  35.     color: yellow;
  36. }
  37. // -->
  38. </style>
  39. <script type="text/javascript">
  40. <!--
  41. <?php echo $bar->getScript()?>
  42. //-->
  43. </script>
  44. </head>
  45. <body>
  46. <h1><?php echo basename(__FILE__)?></h1>
  47.  
  48. <?php 
  49. echo $bar->toHtml()
  50. $bar->run();
  51. ?>
  52.  
  53. <p>&lt;&lt; <a href="../index.html">Back examples TOC</a></p>
  54.  
  55. </body>
  56. </html>

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