cvs: smarty /docs designers.sgml

"Monte Ohrt" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmohrt1073770096@cvsserver>
mohrt		Sat Jan 10 16:28:16 2004 EDT

  Modified files:              
    /smarty/docs	designers.sgml 
  Log:
  fix html_checkboxes examples
  
  
Index: smarty/docs/designers.sgml
diff -u smarty/docs/designers.sgml:1.93 smarty/docs/designers.sgml:1.94
--- smarty/docs/designers.sgml:1.93	Mon Dec 22 14:02:06 2003
+++ smarty/docs/designers.sgml	Sat Jan 10 16:28:15 2004
@@ -3894,7 +3894,7 @@
 
 index.tpl:
 
-{html_checkboxes values=$cust_ids checked=$customer_id output=$cust_names separator="&lt;br /&gt;"}
+{html_checkboxes name="id" values=$cust_ids checked=$customer_id output=$cust_names separator="&lt;br /&gt;"}
 
 
 index.php:
@@ -3916,10 +3916,10 @@
 
 OUTPUT: (both examples)
 
-&lt;label&gt;&lt;input type="checkbox" name="checkbox[]" value="1000" /&gt;Joe Schmoe&lt;/label&gt;&lt;br /&gt;
-&lt;label&gt;&lt;input type="checkbox" name="checkbox[]" value="1001" checked="checked" /&gt;Jack Smith&lt;/label&gt;&lt;br /&gt;
-&lt;label&gt;&lt;input type="checkbox" name="checkbox[]" value="1002" /&gt;Jane Johnson&lt;/label&gt;&lt;br /&gt;
-&lt;label&gt;&lt;input type="checkbox" name="checkbox[]" value="1003" /&gt;Charlie Brown&lt;/label&gt;&lt;br /&gt;</programlisting>
+&lt;label&gt;&lt;input type="checkbox" name="id[]" value="1000" /&gt;Joe Schmoe&lt;/label&gt;&lt;br /&gt;
+&lt;label&gt;&lt;input type="checkbox" name="id[]" value="1001" checked="checked" /&gt;Jack Smith&lt;/label&gt;&lt;br /&gt;
+&lt;label&gt;&lt;input type="checkbox" name="id[]" value="1002" /&gt;Jane Johnson&lt;/label&gt;&lt;br /&gt;
+&lt;label&gt;&lt;input type="checkbox" name="id[]" value="1003" /&gt;Charlie Brown&lt;/label&gt;&lt;br /&gt;</programlisting>
 </example>
 		</sect1>
 		<sect1 id="language.function.html.image">

-- 
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.