mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 03:14:27 +02:00
fixed example output
This commit is contained in:
@@ -137,21 +137,16 @@ $smarty->assign('customer_id', 1001);
|
|||||||
<screen>
|
<screen>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
<label for="id_1000">
|
<label for="id_1000">
|
||||||
<input type="radio" name="id" value="1000" id="id_1000" />Joe
|
<input type="radio" name="id" value="1000" id="id_1000" />Joe Schmoe</label><br />
|
||||||
Schmoe</label><br />
|
<label for="id_1001"><input type="radio" name="id" value="1001" id="id_1001" checked="checked" />Jack Smith</label><br />
|
||||||
<label for="id_1001"><input type="radio" name="id" value="1001" id="id_1001"
|
<label for="id_1002"><input type="radio" name="id" value="1002" id="id_1002" />Jane Johnson</label><br />
|
||||||
checked="checked" />Jack
|
<label for="id_1003"><input type="radio" name="id" value="1003" id="id_1003" />Charlie Brown</label><br />
|
||||||
Smith</label><br />
|
|
||||||
<label for="id_1002"><input type="radio" name="id" value="1002" id="id_1002" />Jane
|
|
||||||
Johnson</label><br />
|
|
||||||
<label for="id_1003"><input type="radio" name="id" value="1003" id="id_1003" />Charlie
|
|
||||||
Brown</label><br />
|
|
||||||
]]>
|
]]>
|
||||||
</screen>
|
</screen>
|
||||||
</example>
|
</example>
|
||||||
<example>
|
<example>
|
||||||
<title>{html_radios}- Database example (eg PEAR or ADODB):</title>
|
<title>{html_radios}- Database example (eg PEAR or ADODB):</title>
|
||||||
<programlisting role="php">
|
<programlisting role="php">
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
@@ -164,24 +159,23 @@ $smarty->assign('contact',$db->getRow($sql));
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
]]>
|
]]>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<para>
|
<para>
|
||||||
and the template:
|
and the template:
|
||||||
</para>
|
</para>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
{html_radios name="type" options=$types selected=$contact.type_id separator="<br />"}
|
{html_radios name="type" options=$types selected=$contact.type_id separator="<br />"}
|
||||||
]]>
|
]]>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
<para>
|
<para>
|
||||||
See also
|
See also <link
|
||||||
<link linkend="language.function.html.checkboxes">{html_checkboxes}</link>
|
linkend="language.function.html.checkboxes">{html_checkboxes}</link>
|
||||||
and
|
and <link
|
||||||
<link linkend="language.function.html.options">{html_options}</link>
|
linkend="language.function.html.options">{html_options}</link>
|
||||||
</para>
|
</para>
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
Local variables:
|
Local variables:
|
||||||
mode: sgml
|
mode: sgml
|
||||||
|
Reference in New Issue
Block a user