mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 03:14:27 +02:00
make examples easier to identify
This commit is contained in:
@@ -81,6 +81,9 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>html_options</title>
|
<title>html_options</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
EXAMPLE 1
|
||||||
|
---------
|
||||||
|
|
||||||
index.php:
|
index.php:
|
||||||
|
|
||||||
require('Smarty.class.php');
|
require('Smarty.class.php');
|
||||||
@@ -97,6 +100,8 @@ index.tpl:
|
|||||||
{html_options values=$cust_ids selected=$customer_id output=$cust_names}
|
{html_options values=$cust_ids selected=$customer_id output=$cust_names}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
EXAMPLE 2
|
||||||
|
---------
|
||||||
|
|
||||||
index.php:
|
index.php:
|
||||||
|
|
||||||
@@ -118,6 +123,7 @@ index.tpl:
|
|||||||
|
|
||||||
|
|
||||||
OUTPUT: (both examples)
|
OUTPUT: (both examples)
|
||||||
|
-----------------------
|
||||||
|
|
||||||
<select name=customer_id>
|
<select name=customer_id>
|
||||||
<option value="1000">Joe Schmoe</option>
|
<option value="1000">Joe Schmoe</option>
|
||||||
|
Reference in New Issue
Block a user