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

Source for file monitor_default2.php

Documentation is available at monitor_default2.php

  1. <?php
  2. @include '../../include_path.php';
  3. /**
  4.  * Default Monitor ProgressBar example with logging events.
  5.  *
  6.  * @version    $Id: monitor_default2.php,v 1.2 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/monitor.php';
  12. require_once 'progressHandler.php';
  13.  
  14.  
  15. $monitor = new HTML_Progress_Monitor();
  16.  
  17. $bar =$monitor->getProgressElement();
  18. $bar->setAnimSpeed(25);
  19. $monitor->setProgressHandler('logger');
  20. ?>
  21. <html>
  22. <head>
  23. <title>ProgressBar Monitor - Default renderer </title>
  24. <style type="text/css">
  25. <!--
  26. .progressStatus {
  27.     color:#000000; 
  28.     font-size:10px;
  29. }
  30. <?php echo $monitor->getStyle()?>
  31. // -->
  32. </style>
  33. <script type="text/javascript">
  34. <!--
  35. <?php echo $monitor->getScript()?>
  36. //-->
  37. </script>
  38. </head>
  39. <body>
  40. <h1><?php echo basename(__FILE__)?></h1>
  41.  
  42. <?php 
  43. echo $monitor->toHtml();
  44.  
  45. $monitor->run();
  46. ?>
  47.  
  48. <p>&lt;&lt; <a href="index.html">Back examples TOC</a></p>
  49.  
  50. </body>
  51. </html>

Documentation generated on Mon, 11 Mar 2019 10:15:08 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.