cvs: smarty /docs/en/designers/language-custom-functions language-function-html-options.xml
"Peter 'Mash' Morgan" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvspete_morgan1126358639@cvsserver> |
pete_morgan Sat Sep 10 09:23:59 2005 EDT
Modified files:
/smarty/docs/en/designers/language-custom-functions
language-function-html-options.xml
Log:
added @count to example
http://cvs.php.net/diff.php/smarty/docs/en/designers/language-custom-functions/language-function-html-options.xml?r1=1.9&r2=1.10&ty=u
Index: smarty/docs/en/designers/language-custom-functions/language-function-html-options.xml
diff -u smarty/docs/en/designers/language-custom-functions/language-function-html-options.xml:1.9 smarty/docs/en/designers/language-custom-functions/language-function-html-options.xml:1.10
--- smarty/docs/en/designers/language-custom-functions/language-function-html-options.xml:1.9 Fri May 27 12:25:01 2005
+++ smarty/docs/en/designers/language-custom-functions/language-function-html-options.xml Sat Sep 10 09:23:59 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.9 $ -->
+<!-- $Revision: 1.10 $ -->
<sect1 id="language.function.html.options">
<title>{html_options}</title>
<informaltable frame="all">
@@ -133,7 +133,8 @@
</para>
<programlisting>
<![CDATA[
-<select name=customer_id>
+{* note the php count() function to set size *}
+<select name=customer_id size="{$cust_options|@count}">
{html_options options=$cust_options selected=$customer_id}
</select>
]]>
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php