 {include file="../head.tpl"}
<form name="attsearch" id="attseacrh" method="post" action="forum.php?action=attachments">
  <table width="100%"  border="0" cellpadding="4" cellspacing="1" class="tableborder">
    <tr>
      <td class="header">{$langadmin.search}</td>
    </tr>
    <tr>
      <td class="firstrow"><input name="q" type="text" id="q" size="30" value="{$smarty.request.q|escape:'html'}" />
        <select name="ext" id="ext">
          <option value="" {if $smarty.request.ext==''}selected="selected"{/if}>{$langadmin.all}</option>
          <option value=".zip" {if $smarty.request.ext=='.zip'}selected="selected"{/if}>*.zip</option>
          <option value=".rar" {if $smarty.request.ext=='.rar'}selected="selected"{/if}>*.rar</option>
          <option value=".gz" {if $smarty.request.ext=='.gz'}selected="selected"{/if}>*.gz</option>
          <option value="bzip" {if $smarty.request.ext=='bzip'}selected="selected"{/if}>*.bzip</option>
          <option value="bzip2" {if $smarty.request.ext=='bzip2'}selected="selected"{/if}>*.bzip2</option>
          <option value="gzip" {if $smarty.request.ext=='gzip'}selected="selected"{/if}>*.gzip</option>
          <option value="bzip" {if $smarty.request.ext=='bzip'}selected="selected"{/if}>*.tgz</option>
          <option value=".jpg" {if $smarty.request.ext=='.jpg'}selected="selected"{/if}>*.jpg</option>
          <option value=".gif" {if $smarty.request.ext=='.gif'}selected="selected"{/if}>*.gif</option>
          <option value=".png" {if $smarty.request.ext=='.png'}selected="selected"{/if}>*.png</option>
          <option value=".txt" {if $smarty.request.ext=='.txt'}selected="selected"{/if}>*.txt</option>
          <option value=".sql" {if $smarty.request.ext=='.sql'}selected="selected"{/if}>*.sql</option>
          <option value=".pdf" {if $smarty.request.ext=='.pdf'}selected="selected"{/if}>*.pdf</option>
          <option value="html" {if $smarty.request.ext=='.html'}selected="selected"{/if}>*.html</option>
          <option value=".htm" {if $smarty.request.ext=='.htm'}selected="selected"{/if}>*.htm</option>
        </select>
		<select name="pp" id="pp">
{section name=pp loop=95 step=5}
<option value="{$smarty.section.pp.index+10}" {if $smarty.request.pp == $smarty.section.pp.index+10}selected{/if}>{$smarty.section.pp.index+10} / {$langadmin.eachsite}</option>
{/section}
 </select>
        <input type="submit" class="button" value="{$langadmin.search}" />
      </td>
    </tr>
  </table>
</form>
<form action="forum.php?action=attachments&save=1" method="post" enctype="multipart/form-data" name="kform" id="kform">
  <table width="100%"  border="0" cellpadding="4" cellspacing="1" class="tableborder">
    <tr>
      <td colspan="4" class="header">{$langadmin.attachments_show_del}</td>
    </tr>
    <tr class="firstrow">
      <th nowrap="nowrap"><a href="forum.php?action=attachments&amp;sort=name&amp;ext={$smarty.request.ext}&amp;pp={$smarty.request.pp}"><strong>{$langadmin.name}</strong></a></th>
      <td><div align="center"><a href="forum.php?action=attachments&amp;sort=hits&amp;ext={$smarty.request.ext}&amp;pp={$smarty.request.pp}"><strong>{$langadmin.hits}</strong></a></div></td>
      <td>&nbsp;</td>
      <td><div align="center"> 
        <input name="allbox" type="checkbox" id="d" onclick="selall();" value="" />
        {$langadmin.delete}</div></td>
    </tr>
    {foreach from=$attachments item="sm"}
    <tr style="font-weight:normal" class="{cycle name='att' values='firstrow,secondrow'}">
      <td width="20%" nowrap="nowrap"><a  href="forum.php?action=attachments&amp;dl=1&amp;id={$sm->id}"><strong>{$sm->orig_name}</strong></a> </td>
      <td width="20%" nowrap="nowrap"><div align="center"> {$sm->hits} </div></td>
      <td><div align="center">{$sm->sizes}</div></td>
      <td><div align="center">
          <input name="del[{$sm->filename}]" type="checkbox" id="d" value="1" />
        {$langadmin.delete}</div></td>
    </tr>
    {/foreach}
    <tr >
      <td colspan="4" class="secondrow"><input type="submit" class="button" value="{$langadmin.save}" />
      </td>
    </tr>
  </table>
</form>
{if $navi}
<table width="100%"  border="0" cellpadding="4" cellspacing="1" class="tableborder">
  <tr>
    <td class="c1">{$navi}</td>
  </tr>
</table>
<br />
{/if} {include file="../foot.tpl"}