$Date: 2004/04/18 13:25:43 $
IntroductionThis example will run a default ProgressBar Monitor, and used a default QuickForm renderer without any form template customizations. No user callback was defined.
[Top]
PHP scriptBuild the progress bar
<?php $bar =& $monitor->getProgressElement(); $bar->setAnimSpeed(100); $bar->setIncrement(10); ?>
[Top]
Render options [Top]
Output
[Top]
Play full exampleRun 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]