mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
fix html_checkboxes examples
This commit is contained in:
@@ -3894,7 +3894,7 @@ $smarty->display('index.tpl');
|
||||
|
||||
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 @@ index.tpl:
|
||||
|
||||
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">
|
||||
|
Reference in New Issue
Block a user