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