2.3. 模板文件结
构........................................................................................................................................6
3. 模板系统标签说明 ............................................................................................ 9
3.1. 变量调节标
签........................................................................................................................................9
3.1.1. escape [编
码].................................................................................................................................................9
3.1.2. nl2br [换行符替换成 <br
/>] ..................................................................................................................9
3.1.3. default [默认值]
............................................................................................................................................9
3.1.4. truncate [截
取]...........................................................................................................................................10
3.1.5. strip_tags [去除 html 标签]
....................................................................................................................10
3.2. 控制标签..............................................................................................................................................
11
3.2.1.
if,elseif,else..................................................................................................................................................
11
3.2.2.
foreach,foreachelse................................................................................................................................12
3.3. 显示标签..............................................................................................................................................
14
3.3.1.
cycle ............................................................................................................................................................
...14
3.3.2.
html_options ..............................................................................................................................................1
5
3.3.3.
html_select_date......................................................................................................................................16
3.3.4.
html_radios.................................................................................................................................................1
9
3.3.5.
html_select_time......................................................................................................................................21
3.4. 辅助标签..............................................................................................................................................
25
3.4.1.
assign...........................................................................................................................................................
..25
3.4.2.