$Date: 2004/04/18 13:25:43 $
This example will run a default ProgressBar Monitor, and used a default QuickForm renderer without any form template customizations. No user callback was defined.
[Top]
Build the progress bar
<?php $bar =& $monitor->getProgressElement(); $bar->setAnimSpeed(100); $bar->setIncrement(10); ?>
[Top]
[Top]
[Top]
Run the script below :
<?php require_once 'HTML/Progress/monitor.php'; $monitor = new HTML_Progress_Monitor(); $bar =& $monitor->getProgressElement(); $bar->setAnimSpeed(100); $bar->setIncrement(10); ?> <html> <head> <title>ProgressBar Monitor - Default renderer </title> <style type="text/css"> <!-- .progressStatus { color:#000000; font-size:10px; } <?php echo $monitor->getStyle(); ?> // --> </style> <script type="text/javascript"> <!-- <?php echo $monitor->getScript(); ?> //--> </script> </head> <body> <?php echo $monitor->toHtml(); $monitor->run(); ?> </body> </html>
[Top]