Debian Codegraph @

tests/inputs/guestbook.tpl

raw
1 {* Smarty https://www.smarty.net/sampleapp4 *}
2
3 <table border="0" width="300">
4 <tr>
5 <th colspan="2" bgcolor="#d1d1d1">
6 Guestbook Entries (<a href="{$SCRIPT_NAME}?action=add">add</a>)</th>
7 </tr>
8 {foreach from=$data item="entry"}
9 <tr bgcolor="{cycle values="#dedede,#eeeeee" advance=false}">
10 <td>{$entry.Name|escape}</td>
11 <td align="right">
12 {$entry.EntryDate|date_format:"%e %b, %Y %H:%M:%S"}</td>
13 </tr>
14 <tr>
15 <td colspan="2" bgcolor="{cycle values="#dedede,#eeeeee"}">
16 {$entry.Comment|escape}</td>
17 </tr>
18 {foreachelse}
19 <tr>
20 <td colspan="2">No records</td>
21 </tr>
22 {/foreach}
23 </table>