HTML_Progress
[ class tree: HTML_Progress ] [ index: HTML_Progress ] [ all elements ]
Prev Next
HTML_Progress::display
shows the current status of the progress meter

Synopsis

require_once 'HTML/Progress.php';

void HTML_Progress::display()

Description

This method is used to display the current status (image) of the progress meter.

Note

( HTML_Progress >= 0.2 )

This function can not be called statically.

See

HTML_Progress::run, HTML_Progress::hide, HTML_Progress::toHtml

Example

Example below is an easy way to show some screenshots of progress meter.

  1. <?php
  2. require_once 'HTML/Progress.php';
  3.  
  4. $bar = new HTML_Progress();
  5.  
  6. $ui =& $bar->getUI();
  7. $ui->setOrientation(HTML_PROGRESS_BAR_VERTICAL);
  8. $ui->setCellAttributes('active-color=#3874B4 inactive-color=#EEEECC width=65');
  9. ?>
  10. <head>
  11. <title>display example</title>
  12. <style type="text/css">
  13. <!--
  14. <?php echo $bar->getStyle(); ?>
  15. // -->
  16. </style>
  17. <script type="text/javascript">
  18. <!--
  19. <?php echo $bar->getScript(); ?>
  20. //-->
  21. </script>
  22. </head>
  23. <body>
  24.  
  25. <h1>Screenshot </h1>
  26. <?php
  27. $bar->setValue(65);
  28. echo $bar->toHtml();
  29. $bar->display();
  30. ?>
  31.  
  32. </body>
  33. </html>

Prev Up Next
HTML_Progress::apiVersion Reference Guide HTML_Progress::hide

Documentation generated on Sun, 12 Sep 2004 20:23:00 +0200 by phpDocumentor 1.3.0RC3