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

Source for file circleplain.php

Documentation is available at circleplain.php

  1. <?php 
  2. @include '../../include_path.php';
  3. /**
  4.  * plain Circle Progress example.
  5.  *
  6.  * @version    $Id: circleplain.php,v 1.1 2004/04/18 13:25:43 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(HTML_PROGRESS_CIRCLE);
  14. $bar->setAnimSpeed(100);
  15. $bar->setIncrement(10);
  16.  
  17. $ui =$bar->getUI();
  18. $ui->setStringAttributes('background-color=#eeeeee');
  19. $ui->setCellAttributes('width=50 height=50 spacing=0 background-color=#eeeeee');
  20. $ui->drawCircleSegments('temp''c%s.png');
  21. ?>
  22. <html>
  23. <head>
  24. <title>Basic Circle ProgressBar example</title>
  25. <style type="text/css">
  26. <!--
  27. <?php echo $bar->getStyle()?>
  28.  
  29. body {
  30.     background-color: #EEEEEE;
  31.     color: #000000;
  32.     font-family: Verdana, Arial;
  33. }
  34.  
  35. a:visited, a:active, a:link {
  36.     color: navy;
  37. }
  38. // -->
  39. </style>
  40. <script type="text/javascript">
  41. <!--
  42. <?php echo $ui->getScript()?>
  43. //-->
  44. </script>
  45. </head>
  46. <body>
  47. <h1><?php echo basename(__FILE__)?></h1>
  48.  
  49. <?php 
  50. echo $bar->toHtml()
  51.  
  52. do {
  53.     $bar->display();
  54.     if ($bar->getPercentComplete(== 1{
  55.         break;   // the progress bar has reached 100%
  56.     }
  57.     $bar->incValue();
  58. while(1);
  59.  
  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 10:15:07 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.