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

Source for file bluesand.php

Documentation is available at bluesand.php

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

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