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

Source for file bullit.php

Documentation is available at bullit.php

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

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