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

[email protected] ("Laurent Laville")
Newsgroups php.pear.doc
Message-ID <cvsfarell1233263500@cvsserver>
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 <[email protected]>
  * @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>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.