cvs: peardoc /en/package/html/html-quickform-advmultiselect/appendix examples-template1.xml

From: Date: Thu, 29 Jan 2009 21:11:41 +0000
Subject: cvs: peardoc /en/package/html/html-quickform-advmultiselect/appendix examples-template1.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-11513@lists.php.net to get a copy of this message
farell Thu Jan 29 21:11:41 2009 UTC Modified files: /peardoc/en/package/html/html-quickform-advmultiselect/appendix examples-template1.xml Log: sync with qfams_template_1.php,v 1.5 http://cvs.php.net/viewvc.cgi/peardoc/en/package/html/html-quickform-advmultiselect/appendix/examples-template1.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/en/package/html/html-quickform-advmultiselect/appendix/examples-template1.xml diff -u peardoc/en/package/html/html-quickform-advmultiselect/appendix/examples-template1.xml:1.2 peardoc/en/package/html/html-quickform-advmultiselect/appendix/examples-template1.xml:1.3 --- peardoc/en/package/html/html-quickform-advmultiselect/appendix/examples-template1.xml:1.2 Wed Jan 28 22:25:14 2009 +++ peardoc/en/package/html/html-quickform-advmultiselect/appendix/examples-template1.xml Thu Jan 29 21:11:40 2009 @@ -36,7 +36,7 @@ * Custom advMultiSelect HTML_QuickForm element * embedded into a Sigma template and using the QF dynamic renderer. * - * @version $Id: examples-template1.xml,v 1.2 2009/01/28 22:25:14 farell Exp $ + * @version $Id: examples-template1.xml,v 1.3 2009/01/29 21:11:40 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_QuickForm_advmultiselect * @subpackage Examples @@ -114,15 +114,16 @@ $renderer = new HTML_QuickForm_Renderer_ITDynamic($tpl); $form->accept($renderer); -$tpl->show(); if ($valid) { $clean = $form->getSubmitValues(); - printf("<p>Welcome <b>%s</b> you've selected these fruits:</p>", - $clean['name']); - echo implode(', ', $clean['fruit']); + $msg = sprintf("<p>Welcome <b>%s</b> you've selected these fruits:<br />%s</p>", + $clean['name'], implode(', ', $clean['fruit'])); + + $tpl->setVariable('message_form_validate', $msg); } +$tpl->show(); ?> ]]> </programlisting>

« previous php.pear.doc (#11513) next »