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

Source for file redsandback.php

Documentation is available at redsandback.php

  1. <?php 
  2. @include '../include_path.php';
  3. /**
  4.  * 5 cells Reverse Horizontal ProgressBar example with red skin.
  5.  * See also ProgressMaker usage with pre-set UI model 'RedSandBack'.
  6.  * 
  7.  * @version    $Id: redsandback.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. $bar->setBorderPainted(true);
  18.  
  19. $ui =$bar->getUI();
  20. $ui->setFillWay('reverse');
  21. $ui->setCellCount(5);
  22. $ui->setCellAttributes('active-color=#970038 inactive-color=#FFDDAA width=20');
  23. $ui->setBorderAttributes('width=1 color=#000000');
  24. $ui->setStringAttributes('font-size=14 color=#FF0000 align=left valign=bottom');
  25. ?>
  26. <!DOCTYPE html
  27.     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  28.     "http://www.w3c.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  29.  
  30. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  31. <head>
  32. <title>RedSandBack Progress example</title>
  33. <style type="text/css">
  34. <!--
  35. <?php echo $bar->getStyle()?>
  36.  
  37. body {
  38.     background-color: #FFFFFF;
  39.     color: #000000;
  40.     font-family: Verdana, Arial;
  41. }
  42.  
  43. a:visited, a:active, a:link {
  44.     color: navy;
  45. }
  46. // -->
  47. </style>
  48. <script type="text/javascript">
  49. <!--
  50. <?php echo $bar->getScript()?>
  51. //-->
  52. </script>
  53. </head>
  54. <body>
  55. <h1><?php echo basename(__FILE__)?></h1>
  56.  
  57. <?php 
  58. echo $bar->toHtml()
  59. $bar->run();
  60. ?>
  61.  
  62. <p>&lt;&lt; <a href="../index.html">Back examples TOC</a></p>
  63.  
  64. </body>
  65. </html>

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