2001-01-18 22:38:49 +00:00
|
|
|
{config_load file=test.conf section="setup"}
|
2000-12-27 19:58:05 +00:00
|
|
|
{include file=header.tpl title=foo}
|
2000-11-20 20:06:06 +00:00
|
|
|
|
2001-01-18 20:41:43 +00:00
|
|
|
<PRE>
|
|
|
|
|
|
2001-01-18 22:38:49 +00:00
|
|
|
{* bold and title are read from the config file *}
|
|
|
|
|
{if #bold#}<b>{/if}
|
2000-11-20 22:31:38 +00:00
|
|
|
Title: {#title#|capitalize}
|
2001-01-18 22:38:49 +00:00
|
|
|
{if #bold#}</b>{/if}
|
2000-11-20 20:06:06 +00:00
|
|
|
|
2001-01-18 20:41:43 +00:00
|
|
|
|
|
|
|
|
the value of $SCRIPT_NAME is {$SCRIPT_NAME}
|
2000-11-22 16:23:19 +00:00
|
|
|
|
2001-01-18 22:38:49 +00:00
|
|
|
{* A simple variable test. print $Name in uppercase *}
|
2000-12-04 21:48:51 +00:00
|
|
|
hello, my name is {$Name|upper}
|
2000-11-20 20:06:06 +00:00
|
|
|
|
2000-11-20 03:20:55 +00:00
|
|
|
My interests are:
|
2001-01-22 15:29:36 +00:00
|
|
|
{section name=outer loop=$FirstName}
|
2000-11-20 20:06:06 +00:00
|
|
|
{if %outer.index% is odd by 2}
|
2001-01-16 15:50:30 +00:00
|
|
|
{%outer.rownum%} . {$outer/FirstName} {$outer/LastName}
|
2000-11-20 03:20:55 +00:00
|
|
|
{else}
|
2001-01-16 15:50:30 +00:00
|
|
|
{%outer.rownum%} * {$outer/FirstName} {$outer/LastName}
|
2000-11-20 03:20:55 +00:00
|
|
|
{/if}
|
|
|
|
|
{sectionelse}
|
|
|
|
|
none
|
|
|
|
|
{/section}
|
2000-11-21 20:29:55 +00:00
|
|
|
|
2001-01-24 17:16:32 +00:00
|
|
|
Contacts: {$Contacts}<br>
|
|
|
|
|
testing
|
|
|
|
|
{$Contacts["phone"]["cell"]}<br>
|
|
|
|
|
{$Contacts["phone"]["fax"]}<br>
|
|
|
|
|
{$Contacts["phone"]["home"]}<br>
|
|
|
|
|
{$Contacts["phone"]["work"]}<br>
|
|
|
|
|
{$Contacts["fax"]}<br>
|
|
|
|
|
|
2001-01-18 22:38:49 +00:00
|
|
|
<p>
|
2001-01-04 21:39:51 +00:00
|
|
|
|
|
|
|
|
testing strip tags
|
|
|
|
|
{strip}
|
|
|
|
|
<table border=0>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
2001-01-18 22:38:49 +00:00
|
|
|
<A HREF="{$SCRIPT_NAME}">
|
2001-01-04 21:39:51 +00:00
|
|
|
<font color="red">This is a test </font>
|
|
|
|
|
</A>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
{/strip}
|
2001-01-18 20:41:43 +00:00
|
|
|
|
|
|
|
|
</PRE>
|