cvs: pear /HTML_QuickForm_advmultiselect/examples itdynamic.html qfams_template_1.php
[email protected] ("Laurent Laville")
| Newsgroups | php.pear.cvs |
|---|---|
| Message-ID | <cvsfarell1209230786@cvsserver> |
farell Sat Apr 26 17:26:26 2008 UTC
Modified files:
/pear/HTML_QuickForm_advmultiselect/examples itdynamic.html
qfams_template_1.php
Log:
make it XHTML compliant
http://cvs.php.net/viewvc.cgi/pear/HTML_QuickForm_advmultiselect/examples/itdynamic.html?r1=1.2&r2=1.3&diff_format=u
Index: pear/HTML_QuickForm_advmultiselect/examples/itdynamic.html
diff -u pear/HTML_QuickForm_advmultiselect/examples/itdynamic.html:1.2 pear/HTML_QuickForm_advmultiselect/examples/itdynamic.html:1.3
--- pear/HTML_QuickForm_advmultiselect/examples/itdynamic.html:1.2 Sat Jan 5 10:25:54 2008
+++ pear/HTML_QuickForm_advmultiselect/examples/itdynamic.html Sat Apr 26 17:26:26 2008
@@ -113,10 +113,12 @@
</tr>
<tr>
<td colspan="3" style="background-color:white; text-align:right">
- <span style="font-color:black; font-weight:bold">powered by PEAR</span>
+ <span style="color:black; font-weight:bold">powered by PEAR</span>
</td>
</tr>
</table>
+{message_form_validate}
+
</body>
</html>
\ No newline at end of file
http://cvs.php.net/viewvc.cgi/pear/HTML_QuickForm_advmultiselect/examples/qfams_template_1.php?r1=1.3&r2=1.4&diff_format=u
Index: pear/HTML_QuickForm_advmultiselect/examples/qfams_template_1.php
diff -u pear/HTML_QuickForm_advmultiselect/examples/qfams_template_1.php:1.3 pear/HTML_QuickForm_advmultiselect/examples/qfams_template_1.php:1.4
--- pear/HTML_QuickForm_advmultiselect/examples/qfams_template_1.php:1.3 Wed Sep 14 21:35:44 2005
+++ pear/HTML_QuickForm_advmultiselect/examples/qfams_template_1.php Sat Apr 26 17:26:26 2008
@@ -3,7 +3,7 @@
* Custom advMultiSelect HTML_QuickForm element
* embedded into a Sigma template and using the QF dynamic renderer.
*
- * @version $Id: qfams_template_1.php,v 1.3 2005/09/14 21:35:44 farell Exp $
+ * @version $Id: qfams_template_1.php,v 1.4 2008/04/26 17:26:26 farell Exp $
* @author Laurent Laville <[email protected]>
* @package HTML_QuickForm_advmultiselect
* @subpackage Examples
@@ -85,13 +85,14 @@
$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();
?>
\ No newline at end of file