cvs: smarty /docs/en/designers/language-custom-functions language-function-html-radios.xml
"Messju Mohr" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmessju1090609958@cvsserver> |
messju Fri Jul 23 15:12:38 2004 EDT
Modified files:
/smarty/docs/en/designers/language-custom-functions
language-function-html-radios.xml
Log:
fixed more typos
http://cvs.php.net/diff.php/smarty/docs/en/designers/language-custom-functions/language-function-html-radios.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/en/designers/language-custom-functions/language-function-html-radios.xml
diff -u smarty/docs/en/designers/language-custom-functions/language-function-html-radios.xml:1.2 smarty/docs/en/designers/language-custom-functions/language-function-html-radios.xml:1.3
--- smarty/docs/en/designers/language-custom-functions/language-function-html-radios.xml:1.2 Fri Jul 23 14:34:21 2004
+++ smarty/docs/en/designers/language-custom-functions/language-function-html-radios.xml Fri Jul 23 15:12:38 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<sect1 id="language.function.html.radios">
<title>html_radios</title>
<informaltable frame="all">
@@ -99,10 +99,10 @@
require('Smarty.class.php');
$smarty = new Smarty;
$smarty->assign('cust_radios', array(
- 1001 => 'Joe Schmoe',
- 1002 => 'Jack Smith',
- 1003 => 'Jane Johnson',
- 1004 => 'Charlie Brown'));
+ 1000 => 'Joe Schmoe',
+ 1001 => 'Jack Smith',
+ 1002 => 'Jane Johnson',
+ 1003 => 'Charlie Brown'));
$smarty->assign('customer_id', 1001);
$smarty->display('index.tpl');
@@ -114,10 +114,10 @@
OUTPUT: (both examples)
-<input type="radio" name="id[]" value="1000">Joe Schmoe<br />
-<input type="radio" name="id[]" value="1001" checked="checked"><br />
-<input type="radio" name="id[]" value="1002">Jane Johnson<br />
-<input type="radio" name="id[]" value="1003">Charlie Brown<br /></programlisting>
+<input type="radio" name="id" value="1000">Joe Schmoe<br />
+<input type="radio" name="id" value="1001" checked="checked">Jack Smith<br />
+<input type="radio" name="id" value="1002">Jane Johnson<br />
+<input type="radio" name="id" value="1003">Charlie Brown<br /></programlisting>
</example>
</sect1>
<!-- Keep this comment at the end of the file
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php