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="<br />"}
+{html_checkboxes name="id" values=$cust_ids checked=$customer_id output=$cust_names separator="<br />"}
index.php:
@@ -3916,10 +3916,10 @@
OUTPUT: (both examples)
-<label><input type="checkbox" name="checkbox[]" value="1000" />Joe Schmoe</label><br />
-<label><input type="checkbox" name="checkbox[]" value="1001" checked="checked" />Jack Smith</label><br />
-<label><input type="checkbox" name="checkbox[]" value="1002" />Jane Johnson</label><br />
-<label><input type="checkbox" name="checkbox[]" value="1003" />Charlie Brown</label><br /></programlisting>
+<label><input type="checkbox" name="id[]" value="1000" />Joe Schmoe</label><br />
+<label><input type="checkbox" name="id[]" value="1001" checked="checked" />Jack Smith</label><br />
+<label><input type="checkbox" name="id[]" value="1002" />Jane Johnson</label><br />
+<label><input type="checkbox" name="id[]" value="1003" />Charlie Brown</label><br /></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