Source for file monitor_method_callback.php
Documentation is available at monitor_method_callback.php
@include '../../include_path.php';
* Monitor example with a new form template and progress bar
* color scheme. Used a class-method as user callback.
* @version $Id: monitor_method_callback.php,v 1.2 2004/04/18 13:25:43 farell Exp $
* @author Laurent Laville <pear@laurent-laville.org>
require_once 'HTML/Progress/monitor.php';
require_once 'progressModels.php';
require_once 'progressHandler.php';
$monitor = new HTML_Progress_Monitor ('frmMonitor3', array (
'button' => array ('style' => 'width:80px;')
$monitor->setProgressHandler (array ('myClassHandler','myMethodHandler'));
// Attach a progress ui-model (see file progressModels.php for attributes definition)
$progress = new HTML_Progress ();
$progress->setUI ('Progress_Default2');
$progress->setAnimSpeed (50 );
$monitor->setProgressElement ($progress);
<title>ProgressBar Monitor - Default renderer </title>
<?php echo $monitor->getStyle (); ?>
<script type="text/javascript">
<?php echo $monitor->getScript (); ?>
<h1> <?php echo basename(__FILE__ ); ?></h1>
$renderer = & HTML_QuickForm ::defaultRenderer ();
$renderer->setFormTemplate ('
<table width="450" border="0" cellpadding="3" cellspacing="2" bgcolor="#CCCC99">
<form{attributes}>{content}
$renderer->setHeaderTemplate ('
<td style="white-space:nowrap;background:#996;color:#ffc;" align="left" colspan="2"><b>{header}</b></td>
$monitor->accept ($renderer);
echo $renderer->toHtml ();
<p><< <a href="index.html">Back examples TOC</a></p>
Documentation generated on Mon, 11 Mar 2019 10:15:08 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|