{if isset($message)}
  {if $error != ''}
    <p><font color="red">{$message}</font></p>
  {else}
    <p>{$message}</p>
  {/if}
{/if}
<div class="pageoptions"><p class="pageoptions">{$itemcount}&nbsp;{$itemsfound}</p></div>
{if $itemcount > 0}
<table border="0" cellspacing="0" cellpadding="0" class="pagetable">
 <thead>
  <tr>
  <th>{$idtext}</th>
  <th>{$nametext}</th>
  <th>{$desctext}</th>
  <th>{$mod->Lang('members')}</th>
  <th>{$publictext}</th>
  <th>{$mod->Lang('dynamic')}:</th>
  <th class="pageicon">&nbsp;</th>
  <th class="pageicon">&nbsp;</th>
  </tr>
 </thead>
 <tbody>
{foreach from=$items item=entry}
  <tr class="{$entry->rowclass}">
    <td>{$entry->id}</td>
    <td>{$entry->name}</td>
    <td>{$entry->description}</td>
    <td>{if !$entry->dynamic}{$entry->count}{/if}</td>
    <td>{$entry->public}</td>
    <td>{if $entry->dynamic}{$mod->Lang('yes')}{/if}</td>
    <td>{$entry->editlink}</td>
    <td>{$entry->deletelink}</td>
  </tr>
{/foreach}
 </tbody>
</table>
{/if}
<div class="pageoptions"><p class="pageoptions">{$createlink}</p></div>
