cvs: pear /HTML_Progress/examples/generator custom.php default.html default.php embedded.html embedded.php htmlpage.html htmlpage.php itdynamic.php
smartydynamic.php

From: Date: Sun, 27 Jun 2004 13:08:05 +0000
Subject: cvs: pear /HTML_Progress/examples/generator custom.php default.html default.php embedded.html embedded.php htmlpage.html htmlpage.php itdynamic.php
smartydynamic.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-21182@lists.php.net to get a copy of this message
farell Sun Jun 27 09:08:05 2004 EDT Added files: /pear/HTML_Progress/examples/generator custom.php default.html default.php embedded.html embedded.php htmlpage.html htmlpage.php itdynamic.php smartydynamic.php Log: HTML_Progress examples reorganized by category

http://cvs.php.net/co.php/pear/HTML_Progress/examples/generator/custom.php?r=1.1&p=1 Index: pear/HTML_Progress/examples/generator/custom.php +++ pear/HTML_Progress/examples/generator/custom.php <?php /** * How to customize HTML_Progress_Generator usage. * * @version $Id: custom.php,v 1.1 2004/06/27 13:08:05 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress */ require_once 'HTML/Progress/generator.php'; /* 1. Choose between standard renderers (default, HTMLPage, ITDynamic). If none is selected, then 'default' will be used. It can be automatically loaded and added by the controller */ //require_once 'HTML/Progress/generator/default.php'; //require_once 'HTML/Progress/generator/HTMLPage.php'; //require_once 'HTML/Progress/generator/ITDynamic.php'; /* Or creates your own renderer ... */ session_start(); $tabbed = new HTML_Progress_Generator(); /* 2. 'ActionDisplay' is default classname that should exists to manage wizard/tabbed display. But you can also create your own class under a new name. Then you've to give the new name to HTML_Progress_Generator. For example: class MyDisplayHandler extends HTML_QuickForm_Action_Display { ... } If your 'MyDisplayHandler' class is not defined, then default 'ActionDisplay' ('HTML/Progress/generator/default.php') will be used. */ //$tabbed = new HTML_Progress_Generator('PBwizard2',array('display'=>'MyDisplayHandler')); /* 3. 'ActionPreview' is default classname that should exists to run live progress bar demo. But you can also create your own class under a new name. Then you've to give the new name to HTML_Progress_Generator. For example: class MyPreviewHandler extends HTML_QuickForm_Action { ... } If your 'MyPreviewHandler' class is not defined, then default 'ActionPreview' ('HTML/Progress/generator/preview.php') will be used. YES, but why allow to cutomize preview function ? PERHARPS, because you want to do something else than just run your progress bar new look and feel ! */ //$tabbed = new HTML_Progress_Generator('PBwizard3',array('preview'=>'MyPreviewHandler')); /* 4. 'ActionProcess' is default classname that should exists to save your progress bar php/css source-code. But you can also create your own class under a new name. Then you've to give the new name to HTML_Progress_Generator. For example: class MyProcessHandler extends HTML_QuickForm_Action { ... } If your 'MyProcessHandler' class is not defined, then default 'ActionProcess' ('HTML/Progress/generator/process.php') will be used. */ //$tabbed = new HTML_Progress_Generator('PBwizard4',array('process'=>'MyProcessHandler')); $tabbed->run(); ?> http://cvs.php.net/co.php/pear/HTML_Progress/examples/generator/default.html?r=1.1&p=1 Index: pear/HTML_Progress/examples/generator/default.html +++ pear/HTML_Progress/examples/generator/default.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="robots" content="index,nofollow" /> <meta name="keywords" content"="HTML_Progress, generator, progress meter" /> <meta name="description" content"="HTML_Progress_Generator is an interactive tools to create your own progress bar" /> <meta name="author" content="Laurent Laville" /> <title>PEAR::HTML::Progress example: Default ProgressBar Generator</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" href="../examples.css" /> </head> <body> <a name="top"> <p><a href="../index.html"><img src="../images/home.gif" alt="Examples TOC"/>examples</a></p> <h1><span class="chapter">Default ProgressBar Generator</span></h1> <p align="right">$Date: 2004/06/27 13:08:05 $</p> <div class="toc">&nbsp;Table of contents </div> <ul> <li><a href="#intro">Introduction<a> <li><a href="#render">Render options<a> <li><a href="#output">Ouput</a> <li><a href="#source">PHP source syntax highlight<a> <li><a href="#run">Play generator<a> </ul> <a name="intro"> <h2><img src="../images/info.gif"/> Introduction</h2> <p>This example requires : <ul> <li>PEAR::HTML_Progress_Generator 1.2.0RC3 or better (see source at line 12).</li> </ul> </p> <p>Be aware that: <ul> <li>HTML_Progress_Generator has dependencies (HTML_CSS 0.3.4+, HTML_QuickForm 3.1.1+, HTML_QuickForm_Controller 0.9.3+) </li> </ul> </p> <hr/> <p><b>This example will run a default ProgressBar Controller Wizard that will help you to create your own progress bar. You may even save the CSS and/or PHP code at end !</b></p> <p>Few lines of code are necessary to run this generator. First we start a session at line 15 (to keep data), then we create a HTML_Progress_Generator instance at line 17 without options, and finally run the controller wizard itself at line 18.</p> <p>[<a href="#top">Top</a>]</p> <a name="render"> <h2><img src="../images/config.gif"/>&nbsp;Render options </h2> None, uses all defaults: <ul> <li><b>Controller name</b> = ProgressGenerator</li> <li><b>preview Action </b> = ActionPreview => HTML/Progress/generator/preview.php</li> <li><b>display Action </b> = ActionDisplay => HTML/Progress/generator/default.php</li> <li><b>process Action </b> = ActionProcess => HTML/Progress/generator/process.php</li> </ul> <p>[<a href="#top">Top</a>]</p> <a name="output"> <h2><img src="../images/image.gif"/>&nbsp;Output</h2> <h3>Screenshot </h3> <p><img src="../screenshots/generator_standard.png"/></p> <p>[<a href="#top">Top</a>]</p> <a name="source"> <h2><img src="../images/source.gif"/>&nbsp;PHP source syntax highlight</h2> <a target="_blank" href="../highlighter.php?file=generator/default.php">Open</a> source listing in a new window. <p>[<a href="#top">Top</a>]</p> <a name="run"> <h2><img src="../images/run.gif"/>&nbsp;Play generator</h2> <p><a href="default.php">Run</a> the script.</p> <p>[<a href="#top">Top</a>]</p> </body> </html> http://cvs.php.net/co.php/pear/HTML_Progress/examples/generator/default.php?r=1.1&p=1 Index: pear/HTML_Progress/examples/generator/default.php +++ pear/HTML_Progress/examples/generator/default.php <?php @include '../include_path.php'; /** * Generator usage example using Default QF renderer * without any changes (all default options are used). * * @version $Id: default.php,v 1.1 2004/06/27 13:08:05 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress */ require_once 'HTML/Progress/generator.php'; session_start(); $tabbed = new HTML_Progress_Generator(); $tabbed->run(); ?> http://cvs.php.net/co.php/pear/HTML_Progress/examples/generator/embedded.html?r=1.1&p=1 Index: pear/HTML_Progress/examples/generator/embedded.html +++ pear/HTML_Progress/examples/generator/embedded.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="robots" content="index,nofollow" /> <meta name="keywords" content"="HTML_Progress, generator, progress meter, template engine" /> <meta name="description" content"="HTML_Progress_Generator is an interactive tools to create your own progress bar" /> <meta name="author" content="Laurent Laville" /> <title>PEAR::HTML::Progress example: Embedded ProgressBar Generator</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" href="../examples.css" /> </head> <body> <a name="top"> <p><a href="../index.html"><img src="../images/home.gif" alt="Examples TOC"/>examples</a></p> <h1><span class="chapter">Embedded ProgressBar Generator</span></h1> <p align="right">$Date: 2004/06/27 13:08:05 $</p> <div class="toc">&nbsp;Table of contents </div> <ul> <li><a href="#intro">Introduction<a> <li><a href="#render">Render options<a> <li><a href="#output">Ouput</a> <li><a href="#source">PHP source syntax highlight<a> <li><a href="#run">Play generator<a> </ul> <a name="intro"> <h2><img src="../images/info.gif"/> Introduction</h2> <p>This example requires : <ul> <li>PEAR::HTML_Progress_Generator 1.2.0RC3 or better (see source at line 12).</li> </ul> </p> <p>Be aware that: <ul> <li>HTML_Progress_Generator has dependencies (HTML_CSS 0.3.4+, HTML_QuickForm 3.1.1+, HTML_QuickForm_Controller 0.9.3+) </li> </ul> </p> <hr/> <p><b>This example will run a custom ProgressBar Controller Wizard integrated in your own existing pages. As other examples it will help you to create your own progress bar. You may even save the CSS and/or PHP code at end !</b></p> <p>This example will show you how to customize all actions (display, preview, process). We will use IT template engine family, but you may use engine such as Smarty or even many others.</p> <p>At line 12 is included the IT template engine ressource for default class name 'ActionDisplay'.</p> <p>But we have choosen to include the generator in our own pages (itdynamic_generator.html) set at line 43.</p> <p>For preview tab, we have to make it ourself. This is done on lines 46 to 57. CSS and Javascript code required for progress bar are merge into html page on lines 49 to 53.</p> <p>The progress bar generated with all your options at line 47 is finally included into html page on lines 55, 56.</p> <p>On lines 84 to 208, class MyProcessHandler is defined to replace default 'ActionProcess', that will help you to download the file that contents your progress bar PHP/CSS code (see option 'text/php' at line 172, rather than default 'text/plain').</p> <p>Don't forget also on lines 88 to 90 code to manage action when user click on Cancel button.</p> <p>And finally, the generator is create at lines 213 to 216, and run on line 218.</p> <p>[<a href="#top">Top</a>]</p> <a name="render"> <h2><img src="../images/config.gif"/>&nbsp;Render options </h2> Uses defaults: <ul> <li><b>preview Action </b> = ActionPreview => HTML/Progress/generator/preview.php</li> </ul> and replace : <ul> <li><b>Controller name</b> = PBwizard</li> <li><b>display Action </b> = MyDisplayHandler => class on lines 34 to 68</li> <li><b>process Action </b> = MyProcessHandler => class on lines 84 to 208</li> </ul> <p>[<a href="#top">Top</a>]</p> <a name="output"> <h2><img src="../images/image.gif"/>&nbsp;Output</h2> <h3>Screenshot </h3> <p><img src="../screenshots/generator_embedded.png"/></p> <p>[<a href="#top">Top</a>]</p> <a name="source"> <h2><img src="../images/source.gif"/>&nbsp;PHP source syntax highlight</h2> <a target="_blank" href="../highlighter.php?file=generator/embedded.php">Open</a> source listing in a new window. <p>[<a href="#top">Top</a>]</p> <a name="run"> <h2><img src="../images/run.gif"/>&nbsp;Play generator</h2> <p><a href="embedded.php">Run</a> the script.</p> <p>[<a href="#top">Top</a>]</p> </body> </html> http://cvs.php.net/co.php/pear/HTML_Progress/examples/generator/embedded.php?r=1.1&p=1 Index: pear/HTML_Progress/examples/generator/embedded.php +++ pear/HTML_Progress/examples/generator/embedded.php <?php @include '../include_path.php'; /** * How to embedded HTML_Progress_Generator into existing html page * and allows php/css source-code download. * * @version $Id: embedded.php,v 1.1 2004/06/27 13:08:05 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress */ require_once 'HTML/Progress/generator.php'; /* 1. Choose between standard renderers (default, HTMLPage, ITDynamic). If none is selected, then 'default' will be used. It can be automatically loaded and added by the controller */ require_once 'HTML/Progress/generator/ITDynamic.php'; /* 2. 'ActionDisplay' is default classname that should exists to manage wizard/tabbed display. But you can also create your own class under a new name. Then you've to give the new name to HTML_Progress_Generator. For example: class MyDisplayHandler extends HTML_QuickForm_Action_Display { ... } If your 'MyDisplayHandler' class is not defined, then default 'ActionDisplay' ('HTML/Progress/generator/default.php') will be used. */ class MyDisplayHandler extends HTML_QuickForm_Action_Display { function _renderForm(&$page) { $pageName = $page->getAttribute('name'); $tabPreview = array_slice ($page->controller->_tabs, -2, 1); $tpl =& new HTML_Template_ITX('../templates'); $tpl->loadTemplateFile('itdynamic_generator.html'); // on preview tab, add progress bar javascript and stylesheet if ($pageName == $tabPreview[0][0]) { $bar = $page->controller->createProgressBar(); $tpl->setVariable(array( 'qf_style' => $bar->getStyle(), 'qf_script' => $bar->getScript() ) ); $barElement =& $page->getElement('progressBar'); $barElement->setText( $bar->toHtml() ); } $renderer =& new HTML_QuickForm_Renderer_ITDynamic($tpl); $renderer->setElementBlock(array( 'buttons' => 'qf_buttons' )); $page->accept($renderer); $tpl->show(); } } /* 3. 'ActionProcess' is default classname that should exists to save your progress bar php/css source-code. But you can also create your own class under a new name. Then you've to give the new name to HTML_Progress_Generator. For example: class MyProcessHandler extends HTML_QuickForm_Action { ... } If your 'MyProcessHandler' class is not defined, then default 'ActionProcess' ('HTML/Progress/generator/process.php') will be used. */ class MyProcessHandler extends HTML_QuickForm_Action { function perform(&$page, $actionName) { if ($actionName == 'cancel') { echo '<h1>Progress Generator Demonstration is Over</h1>'; echo '<p>Hope you\'ve enjoyed. See you later!</p>'; } else { // Checks whether the pages of the controller are valid $page->isFormBuilt() or $page->buildForm(); $page->controller->isValid(); // what kind of source code is requested $code = $page->exportValue('phpcss'); $bar = $page->controller->createProgressBar(); if (isset($code['C'])) { $this->exportOutput($bar->getStyle(), 'text/css'); } if (isset($code['P'])) { $structure = $bar->toArray(); $lineEnd = OS_WINDOWS ? "\r\n" : "\n"; $strPHP = '<?php'.$lineEnd; $strPHP .= 'require_once \'HTML/Progress.php\';'.$lineEnd.$lineEnd; $strPHP .= '$progress = new HTML_Progress();'.$lineEnd; $strPHP .= '$progress->setIdent(\'PB1\');'.$lineEnd; if ($bar->isIndeterminate()) { $strPHP .= '$progress->setIndeterminate(true);'.$lineEnd; } if ($bar->isBorderPainted()) { $strPHP .= '$progress->setBorderPainted(true);'.$lineEnd; } if ($bar->isStringPainted()) { $strPHP .= '$progress->setStringPainted(true);'.$lineEnd; } if (is_null($structure['string'])) { $strPHP .= '$progress->setString(null);'; } else { $strPHP .= '$progress->setString('.$structure['string'].');'; } $strPHP .= $lineEnd; if ($structure['animspeed'] > 0) { $strPHP .= '$progress->setAnimSpeed('.$structure['animspeed'].');'.$lineEnd; } if ($structure['dm']['minimum'] != 0) { $strPHP .= '$progress->setMinimum('.$structure['dm']['minimum'].');'.$lineEnd; } if ($structure['dm']['maximum'] != 100) { $strPHP .= '$progress->setMaximum('.$structure['dm']['maximum'].');'.$lineEnd; } if ($structure['dm']['increment'] != 1) { $strPHP .= '$progress->setIncrement('.$structure['dm']['increment'].');'.$lineEnd; } $strPHP .= $lineEnd; $strPHP .= '$ui =& $progress->getUI();'.$lineEnd; $orient = ($structure['ui']['orientation'] == '1') ? 'HTML_PROGRESS_BAR_HORIZONTAL' : 'HTML_PROGRESS_BAR_VERTICAL'; $strPHP .= '$ui->setOrientation('.$orient.');'.$lineEnd; $strPHP .= '$ui->setFillWay(\''.$structure['ui']['fillway'].'\');'.$lineEnd; /* Page 1: Progress attributes **************************************************/ $strPHP .= $this->_attributesArray('$ui->setProgressAttributes(', $structure['ui']['progress']); $strPHP .= $lineEnd; /* Page 2: Cell attributes ******************************************************/ $strPHP .= '$ui->setCellCount('.$structure['ui']['cell']['count'].');'.$lineEnd; unset($structure['ui']['cell']['count']); // to avoid dupplicate entry in attributes $strPHP .= $this->_attributesArray('$ui->setCellAttributes(', $structure['ui']['cell']); $strPHP .= $lineEnd; /* Page 3: Border attributes ****************************************************/ $strPHP .= $this->_attributesArray('$ui->setBorderAttributes(', $structure['ui']['border']); $strPHP .= $lineEnd; /* Page 4: String attributes ****************************************************/ $strPHP .= $this->_attributesArray('$ui->setStringAttributes(', $structure['ui']['string']); $strPHP .= $lineEnd.$lineEnd; $strPHP .= '// code below is only for run demo; its not ncecessary to create progress bar'.$lineEnd; $strPHP .= 'echo \'<style type="text/css">\'.$progress->getStyle().\'</style>\';'.$lineEnd; $strPHP .= 'echo \'<script type="text/javascript">\'.$progress->getScript().\'</script>\';'.$lineEnd; $strPHP .= 'echo $progress->toHtml();'.$lineEnd; $strPHP .= '$progress->run();'.$lineEnd; $strPHP .= '?>'; $this->exportOutput($strPHP, 'text/php'); } // reset session data $page->controller->container(true); } } function exportOutput($str, $mime = 'text/plain', $charset = 'iso-8859-1') { if (!headers_sent()) { header("Expires: Tue, 1 Jan 1980 12:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-cache"); header("Pragma: no-cache"); header("Content-Type: $mime; charset=$charset"); } print $str; } function _attributesArray($str, $attributes) { $strPHP = $str . 'array('; foreach ($attributes as $attr => $val) { if (is_integer($val)) { $strPHP .= "'$attr'=>$val, "; } elseif (is_bool($val)) { $strPHP .= "'$attr'=>".($val?'true':'false').', '; } else { $strPHP .= "'$attr'=>'$val', "; } } $strPHP = ereg_replace(', $', '', $strPHP); $strPHP .= '));'; return $strPHP; } } session_start(); $tabbed = new HTML_Progress_Generator('PBwizard', array( 'display' => 'MyDisplayHandler', 'process' => 'MyProcessHandler' )); $tabbed->run(); ?> http://cvs.php.net/co.php/pear/HTML_Progress/examples/generator/htmlpage.html?r=1.1&p=1 Index: pear/HTML_Progress/examples/generator/htmlpage.html +++ pear/HTML_Progress/examples/generator/htmlpage.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="robots" content="index,nofollow" /> <meta name="keywords" content"="HTML_Progress, generator, progress meter" /> <meta name="description" content"="HTML_Progress_Generator is an interactive tools to create your own progress bar" /> <meta name="author" content="Laurent Laville" /> <title>PEAR::HTML::Progress example: HTMLPage ProgressBar Generator</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" href="../examples.css" /> </head> <body> <a name="top"> <p><a href="../index.html"><img src="../images/home.gif" alt="Examples TOC"/>examples</a></p> <h1><span class="chapter">HTMLPage ProgressBar Generator</span></h1> <p align="right">$Date: 2004/06/27 13:08:05 $</p> <div class="toc">&nbsp;Table of contents </div> <ul> <li><a href="#intro">Introduction<a> <li><a href="#render">Render options<a> <li><a href="#output">Ouput</a> <li><a href="#source">PHP source syntax highlight<a> <li><a href="#run">Play generator<a> </ul> <a name="intro"> <h2><img src="../images/info.gif"/> Introduction</h2> <p>This example requires : <ul> <li>PEAR::HTML_Progress_Generator 1.2.0RC3 or better (see source at line 12).</li> </ul> </p> <p>Be aware that: <ul> <li>HTML_Progress_Generator has dependencies (HTML_CSS 0.3.4+, HTML_QuickForm 3.1.1+, HTML_QuickForm_Controller 0.9.3+) </li> </ul> </p> <hr/> <p><b>This example will run a ProgressBar Controller Wizard using the HTMLPage QF rendering. It will help you to create your own progress bar. You may even save the CSS and/or PHP code at end !</b></p> <p>Few lines of code are necessary to run this generator. First we start a session at line 14 (to keep data), then we create a HTML_Progress_Generator instance at line 16 without options, and finally run the controller wizard itself at line 17.</p> <p>Difference from previous example is to use the HTMLPage QF rendering as ActionDisplay (see line 12).</p> <p>[<a href="#top">Top</a>]</p> <a name="render"> <h2><img src="../images/config.gif"/>&nbsp;Render options </h2> Uses defaults: <ul> <li><b>Controller name</b> = ProgressGenerator</li> <li><b>preview Action </b> = ActionPreview => HTML/Progress/generator/preview.php</li> <li><b>process Action </b> = ActionProcess => HTML/Progress/generator/process.php</li> </ul> Display render is overloaded by : <ul> <li><b>display Action </b> = ActionDisplay => HTML/Progress/generator/HTMLPage.php</li> </ul> As we still use the default class name 'ActionDisplay', no need to tell it with the second parameter of HTML_Progress_Generator class constructor. <br/> See a script example of <a target="_blank" href="../highlighter.php?file=generator/custom.php">how to customize</a> all actions (preview, display, process). <p>[<a href="#top">Top</a>]</p> <a name="output"> <h2><img src="../images/image.gif"/>&nbsp;Output</h2> <h3>Screenshot </h3> <p><img src="../screenshots/generator_standard.png"/></p> <p>[<a href="#top">Top</a>]</p> <a name="source"> <h2><img src="../images/source.gif"/>&nbsp;PHP source syntax highlight</h2> <a target="_blank" href="../highlighter.php?file=generator/htmlpage.php">Open</a> source listing in a new window. <p>[<a href="#top">Top</a>]</p> <a name="run"> <h2><img src="../images/run.gif"/>&nbsp;Play generator</h2> <p><a href="htmlpage.php">Run</a> the script.</p> <p>[<a href="#top">Top</a>]</p> </body> </html> http://cvs.php.net/co.php/pear/HTML_Progress/examples/generator/htmlpage.php?r=1.1&p=1 Index: pear/HTML_Progress/examples/generator/htmlpage.php +++ pear/HTML_Progress/examples/generator/htmlpage.php <?php @include '../include_path.php'; /** * Generator usage example using HTMLPage renderer. * * @version $Id: htmlpage.php,v 1.1 2004/06/27 13:08:05 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress */ require_once 'HTML/Progress/generator.php'; require_once 'HTML/Progress/generator/HTMLPage.php'; session_start(); $tabbed = new HTML_Progress_Generator(); $tabbed->run(); ?> http://cvs.php.net/co.php/pear/HTML_Progress/examples/generator/itdynamic.php?r=1.1&p=1 Index: pear/HTML_Progress/examples/generator/itdynamic.php +++ pear/HTML_Progress/examples/generator/itdynamic.php <?php /** * Generator usage example using ITDynamic QF renderer. * * @version $Id: itdynamic.php,v 1.1 2004/06/27 13:08:05 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress */ require_once 'HTML/Progress/generator.php'; require_once 'HTML/Progress/generator/ITDynamic.php'; session_start(); $tabbed = new HTML_Progress_Generator(); $tabbed->run(); ?> http://cvs.php.net/co.php/pear/HTML_Progress/examples/generator/smartydynamic.php?r=1.1&p=1 Index: pear/HTML_Progress/examples/generator/smartydynamic.php +++ pear/HTML_Progress/examples/generator/smartydynamic.php <?php /** * Generator usage example using Array QF renderer * for Smarty template engine. * * @version $Id: smartydynamic.php,v 1.1 2004/06/27 13:08:05 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress */ require_once 'HTML/Progress/generator.php'; require_once 'HTML/Progress/generator/SmartyDynamic.php'; session_start(); $tabbed = new HTML_Progress_Generator(); $tabbed->run(); ?>
« previous php.pear.cvs (#21182) next »