| Source for file monitor_complex.phpDocumentation is available at monitor_complex.php 
include '../../include_path.php'; * Complex Monitor ProgressBar example. * @version    $Id: monitor_complex.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 ('HTML/QuickForm/Renderer/ITStatic.php');require_once ('HTML/Template/ITX.php');class ProgressMonitor extends HTML_Progress_Monitor    function ProgressMonitor()        $this->_form = new HTML_QuickForm('form') ;        $this->_form->addElement('header', 'windowsname', 'Progress...') ;        $this->_form->addElement('static', 'progress') ;        $this->_form->addElement('submit', 'cancel', 'Cancel') ;    function attachProgress()        $this->_progress = new HTML_Progress() ;        $this->_progress->setIncrement( 10) ;        $ui =& $this->_progress-> getUI() ;        $ui->setProgressAttributes('background-color=#EEE') ;        $ui->setCellAttributes('inactive-color=#FFF active-color=#444444') ;        $ui->setStringAttributes('background-color=#EEE color=navy') ;        $this->_progress->addListener($this) ;        $bar =& $this->_form-> getElement('progress') ;        $bar->setText( $this->_progress-> toHtml() ) ;        $tpl =& new HTML_Template_ITX('.') ;        $tpl->loadTemplateFile('monitor.html') ;        $js  = $this-> getScript() ;        $css = $this-> getStyle() ;        $tpl->setVariable("monitor_script", $js) ;        $tpl->setVariable("monitor_style", $css) ;        $renderer =& new HTML_QuickForm_Renderer_ITStatic($tpl) ;               $this->_form->accept($renderer) ;$progressMonitor = new ProgressMonitor() ;$progressMonitor->display() ;
		    
 
		    Documentation generated on Mon, 11 Mar 2019 10:15:08 -0400 by phpDocumentor 1.4.4 . PEAR Logo Copyright ©  PHP Group 2004.
	       |