home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 June / ENTER.ISO / files / xampp-win32-1.4.5-installer.exe / xampp / monitor_default1.php < prev    next >
Encoding:
PHP Script  |  2004-03-24  |  1.4 KB  |  59 lines

  1. <?php
  2. /**
  3.  * Simple Default Monitor ProgressBar example.
  4.  *
  5.  * @version    $Id: monitor_default1.php,v 1.1 2004/02/10 11:55:41 farell Exp $
  6.  * @author     Laurent Laville <pear@laurent-laville.org>
  7.  * @package    HTML_Progress
  8.  */
  9.  
  10. require_once 'HTML/Progress/monitor.php';
  11.  
  12.  
  13. $monitor = new HTML_Progress_Monitor();
  14.  
  15. // As there is no action (callback) defined, animation will be so fast
  16. // that we must make it slower to see something. 1000 === sleep(1) 
  17. $monitor->setAnimSpeed(100);
  18. ?>
  19. <!DOCTYPE html
  20.     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  21.     "http://www.w3c.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  22.  
  23. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  24. <head>
  25. <title>ProgressBar Monitor - Default renderer </title>
  26. <style type="text/css">
  27. <!--
  28. .progressStatus {
  29.     color:#000000; 
  30.     font-size:10px;
  31. }
  32. <?php echo $monitor->getStyle(); ?>
  33. // -->
  34. </style>
  35. <script type="text/javascript">
  36. <!--
  37. <?php echo $monitor->getScript(); ?>
  38. //-->
  39. </script>
  40. </head>
  41. <body>
  42.  
  43. <h1>Standard Monitor</h1>
  44. <p>Used default QuickForm renderer without any form template customizations. 
  45. No user callback defined.</p>
  46.  
  47. <?php 
  48. // Display progress monitor dialog box
  49. echo $monitor->toHtml();
  50.  
  51.  
  52. $monitor->run();   
  53. ?>
  54.  
  55. <p><< <a href="index.html">Back examples TOC</a></p>
  56. <p><b><i>href: examples/<?php echo basename(__FILE__); ?></i></b></p>
  57.  
  58. </body>
  59. </html>