 {if $items} {if checkactive("affiliates")}
<table width="100%" border="0" cellpadding="3" cellspacing="0">
    <tr>
      <td class="naviheader">{$lang.affiliates}</td>
    </tr>
    {foreach from=$items item=item}
    <tr>
      <td><div align="center">
	  {if $item->image}
	  <a target="_blank" href="index.php?p=redir&amp;type=affiliate&amp;id={$item->id}"><img src="uploads/affiliates/{$item->image}" alt="{$item->name}" border="" /></a>
	  {else}
	  <a target="_blank" href="index.php?p=redir&amp;type=affiliate&amp;id={$item->id}">{$item->name}</a>
	  {/if}
	   {* ({$item->hits} Hits) *}
	  </div></td>
    </tr>
    {/foreach}
  </table>
{/if} {/if}