From e238784674ff9405b75408ca3ea2f796fc590bb7 Mon Sep 17 00:00:00 2001 From: mohrt Date: Sat, 10 Jan 2004 21:28:15 +0000 Subject: [PATCH] fix html_checkboxes examples --- docs/designers.sgml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/designers.sgml b/docs/designers.sgml index 88e778ca..c7b71989 100644 --- a/docs/designers.sgml +++ b/docs/designers.sgml @@ -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 /> +<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 />