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

Source for file squareback.php

Documentation is available at squareback.php

  1. <?php 
  2. @include '../include_path.php';
  3. /**
  4.  * Reverse Square Progress example.
  5.  * 
  6.  * @version    $Id: squareback.php,v 1.1 2004/06/29 20:48:52 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();
  14. $bar->setAnimSpeed(100);
  15. $bar->setIncrement(10);
  16.  
  17. $ui =$bar->getUI();
  18. $ui->setStringAttributes('valign=left align=center');
  19. $ui->setFillWay('reverse');
  20. $ui->setOrientation(HTML_PROGRESS_POLYGONAL);
  21. $ui->setCellAttributes('width=10 height=10');
  22. $ui->setCellCoordinates(4,4);          // square 4x4
  23. ?>
  24. <html>
  25. <head>
  26. <title>Reverse Square Progress example</title>
  27. <style type="text/css">
  28. <!--
  29. <?php echo $bar->getStyle()?>
  30.  
  31. body {
  32.     background-color: #FFFFFF;
  33.     color: #000000;
  34.     font-family: Verdana, Arial;
  35. }
  36.  
  37. a:visited, a:active, a:link {
  38.     color: navy;
  39. }
  40. // -->
  41. </style>
  42. <script type="text/javascript">
  43. <!--
  44. <?php echo $ui->getScript()?>
  45. //-->
  46. </script>
  47. </head>
  48. <body>
  49. <h1><?php echo basename(__FILE__)?></h1>
  50.  
  51. <?php 
  52. echo $bar->toHtml()
  53. $bar->run();
  54. ?>
  55.  
  56. <p>&lt;&lt; <a href="../index.html">Back examples TOC</a></p>
  57.  
  58. </body>
  59. </html>

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