cvs: smarty /docs/en/designers/language-custom-functions language-function-html-options.xml

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1133517771@cvsserver>
messju		Fri Dec  2 05:02:51 2005 EDT

  Modified files:              
    /smarty/docs/en/designers/language-custom-functions	
                                                       	language-function-html-options.xml 
  Log:
  removed useless and confusing size-attribute from example
  
  
http://cvs.php.net/diff.php/smarty/docs/en/designers/language-custom-functions/language-function-html-options.xml?r1=1.11&r2=1.12&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.11 smarty/docs/en/designers/language-custom-functions/language-function-html-options.xml:1.12
--- smarty/docs/en/designers/language-custom-functions/language-function-html-options.xml:1.11	Tue Sep 13 15:03:11 2005
+++ smarty/docs/en/designers/language-custom-functions/language-function-html-options.xml	Fri Dec  2 05:02:48 2005
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.11 $ -->
+<!-- $Revision: 1.12 $ -->
 <sect1 id="language.function.html.options">
  <title>{html_options}</title>
   <para>
@@ -107,7 +107,7 @@
   </para>
   <programlisting>
 <![CDATA[
-<select name=customer_id>
+<select name="customer_id">
    {html_options values=$cust_ids output=$cust_names selected=$customer_id}
 </select>
 ]]>
@@ -135,10 +135,7 @@
   </para>
   <programlisting>
 <![CDATA[
-{* 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>
+   {html_options name=customer_id options=$cust_options selected=$customer_id}
 ]]>
   </programlisting>
   <para>
@@ -146,7 +143,7 @@
   </para>
   <screen>
 <![CDATA[
-<select name=customer_id>
+<select name="customer_id">
     <option label="Joe Schmoe" value="1000">Joe Schmoe</option>
     <option label="Jack Smith" value="1001" selected="selected">Jack Smith</option>
     <option label="Jane Johnson" value="1002">Jane Johnson</option>

-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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.