<{* $Id *}>
<h3><{$modulename}></h3>
<h4><{$title}></h4>
<div align="left">
<{* SIMPLE_CONTROLLER_VIEW_LIST *}>
<{if $type == 1}>
<div align="right"><a href="./rss.php" target="_blank"><img src="./images/rss.gif" alt="rss" /></a></div>
<table width="100%"><tr><td>
<{if $newlink}>
  <table cellspacing="3" class="outer" style="width: auto;"><tr class="head"><td>
  <a href="<{$newlink}>" title="Create new record" ><{$lang.new}></a>
  </td></tr></table>
<{/if}>
<{if $condition}>
 </td><td align="center">
 <{foreach key=k item=con from=$condition}>
  <{$k}>=<{$con}>&nbsp;:&nbsp;
 <{/foreach}>
<{/if}>
<{if $delalllink }>
 </td><td align="right">
 <table cellspacing="3" class="outer"><tr class="head"><td>
 <a href="<{$delalllink}>" title="Delete all records" ><{$lang.deleteall}></a>
 </td></tr></table>
<{/if}>
</td></tr></table>
</div>
<br />
<table cellspacing="1" class="outer">
<tr class="head" align="center">
<{foreach item=header from=$headers}>
<{if $header.link }>
<th width="<{$header.width}>px"><a href="<{$header.link}>" title="<{$header.linktitle}>" <{$header.style}>><{$header.caption}></a></th>
<{else}>
<th width="<{$header.width}>px"><{$header.caption}></th>
<{/if}>
<{/foreach}>
</tr>
<{foreach item=record from=$records}>
<tr class="<{cycle values="odd,even"}>">
<{foreach item=item from=$record.items}>
<{if $item.link }>
<td align="<{$item.align}>"><a href="<{$item.link}>" title="<{$item.linktitle}>" <{$item.style}>><{$item.value}></a></td>
<{else}>
<td align="<{$item.align}>"><{$item.value}></td>
<{/if}>
<{/foreach}>
</tr>
<{/foreach}>
</table>
<{$pagenav}>
</div>
<{* SIMPLE_CONTROLLER_VIEW_FORM *}>
<{elseif $type == 2}>
<{$formhtml}>
<{$errmsg}>
<{* SIMPLE_CONTROLLER_VIEW_SINGLE *}>
<{else}>
<table cellspacing="1" class="outer">
<tr class="head" align="center">
<th><{$smarty.const._TITLE}></th><th>Value</th>
</tr>
<{foreach key=k item=v from=$items}>
<tr class="<{cycle values="odd,even"}>">
<td><{$k}></td><td><{$v}></td>
</tr>
<{/foreach}>
</table>
<{/if}>
</div>