 {include file="../head.tpl"}
<table width="100%" border="0" cellpadding="6" cellspacing="1" class="tableborder">
  <tr>
    <td colspan="4" class="header">{$langadmin.referer_stats}</td>
  </tr>
  <tr>
    <td colspan="4" class="secondrow"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><form action="stats.php" method="post" name="sortopt" id="sortopt">
              <select name="sort">
                <option value="id" {if $smarty.request.sort=='id'}selected="selected"{/if}>{$langadmin.date}</option>
                <option value="user_referer" {if $smarty.request.sort=='user_referer'}selected="selected"{/if}>{$langadmin.referer_stats}</option>
                <option value="user_os" {if $smarty.request.sort=='user_os'}selected="selected"{/if}>{$langadmin.referer_os}</option>
                <option value="user_ua" {if $smarty.request.sort=='user_ua'}selected="selected"{/if}>{$langadmin.referer_browser}</option>
              </select>
              <select name="order">
                <option value="DESC" {if $smarty.request.order=='DESC'}selected="selected"{/if}>{$langadmin.sortbydesc}</option>
                <option value="ASC" {if $smarty.request.order=='ASC'}selected="selected"{/if}>{$langadmin.sortbyasc}</option>
              </select>
              <select name="pp" id="pp">
                
                
{section name=pp loop=95 step=5}
<option value="{$smarty.section.pp.index+10}" {if $pp == $smarty.section.pp.index+10}selected="selected"{/if}>{$smarty.section.pp.index+10} / {$langadmin.eachsite}</option>
{/section}
 
              
              </select>
              <input name="Submit" type="submit" class="button" value="{$langadmin.go}" />
              <input name="action" type="hidden" id="action" value="referer" />
            </form></td>
          <td><div align="right"> <a onclick="return confirm('{$langadmin.confirm_delreferer}')" href="stats.php?action=referer&amp;subaction=del">{$langadmin.delete}</a> </div></td>
        </tr>
      </table></td>
  </tr>
  <tr class="firstrow">
    <td>{$langadmin.referer_stats}</td>
    <td>{$langadmin.referer_os}</td>
    <td>{$langadmin.referer_browser}</td>
    <td>{$langadmin.referer_time}</td>
  </tr>
  {foreach from=$items item=item}
  <tr class="{cycle name='dd' values='firstrow,secondrow'}">
    <td><a target="_blank" style="font-weight:normal;" href="{$item->user_referer}">{$item->user_referer|slice:80:"..."}</a></td>
    <td>{$item->user_os}</td>
    <td>{$item->user_ua}</td>
    <td>{$item->datum}</td>
  </tr>
  {/foreach}
  <tr>
    <td colspan="4" class="secondrow"> {$navi} </td>
  </tr>
</table>
{include file="../foot.tpl"}