{include file="../head.tpl"}

<table width="100%"  border="0" cellpadding="4" cellspacing="1" class="tableborder">
  <tr>
    <td colspan="3" class="header"><b>
      {$langadmin.autowords}
      </b></td>
  </tr>
  <tr class="firstrow">
    <td> <a href="enzyclop.php?area={$smarty.request.area}&amp;sort=name"><strong>{$langadmin.autoword}</strong></a>
    </td>
    <th width="10%"><a href="enzyclop.php?area={$smarty.request.area}&amp;sort=hits"><strong>{$langadmin.hits}</strong></a></th>
    <th width="10%" nowrap="nowrap"> {$langadmin.actions}
    </th>
  </tr>
  {foreach from=$autowords item=autw}
  <tr class="{cycle name="c0" values="c1,c2"}">
    <td width="125" nowrap="nowrap"><a style="font-weight:normal" target="_blank" href="../index.php?p=misc&amp;do=autowords&amp;id={$autw->id}">{$autw->words}</a> </td>
    <td><div align="center">
        {$autw->hits}
      </div></td>
    <td nowrap="nowrap"><div align="center">
        <select onchange="eval(this.options[this.selectedIndex].value);selectedIndex=0;" name="mf{$autw->id}" id="mf{$autw->id}">
          <option value="location.href = 'enzyclop.php?action=edit&amp;id={$autw->id}&amp;page={$smarty.request.page}'">
          {$langadmin.editonce}
          </option>
          <option value="if(confirm('{$langadmin.confirmdelautoword}')) location.href = 'enzyclop.php?action=del&amp;id={$autw->id}&amp;page={$smarty.request.page}'">
          {$langadmin.delete}
          </option>
        </select>
        <input onclick="eval(document.getElementById('mf{$autw->id}').value);" type="button" class="button" value="{$langadmin.go}">
      </div></td>
  </tr>
  {/foreach}
</table>
{if $num > $limit}
<br />
<table width="100%"  border="0" cellpadding="4" cellspacing="1" class="tableborder">
  <tr>
    <td class="firstrow">{$navi}
    </td>
  </tr>
</table>
{/if}
{include file="../foot.tpl"}
