<div class="header">{#Downloads#}</div>


<div class="subheaders">
<form method="post" action="index.php?do=downloads&sub=overview">
    <table width="100%" border="0" cellspacing="0" cellpadding="1">
      <tr>
        <td width="100"><label for="qs">{#Global_searchW#}</label></td>
        <td width="100"><input style="width:200px" type="text" class="input" name="q" id="qs" value="{$smarty.request.q|koobispecialchars|replace:'empty':''}" /></td>
        <td width="10" align="left">&nbsp;</td>
        <td width="50" align="left" nowrap>{#Global_Categ#}</td>
        <td>
        <select class="input"  name="categ">
        <option value="">{#News_allC#}</option>
   	 	{foreach from=$Categs item=c}{if $c->Parent_Id==0}<option style="font-weight:bold" value="{$c->Id}" {if $c->Id==$smarty.request.categ}selected="selected"{/if}>{$c->Name}</option>{else}<option value="{$c->Id}" {if $c->Id==$smarty.request.categ}selected="selected"{/if}>{$c->visible_title}</option>{/if}{/foreach}
    	</select>        </td>
      </tr>
      <tr>
        <td><label for="dr">{#DataRecords#}</label></td>
        <td><input class="input" style="width:50px" type="text" name="pp" id="dr" value="{$limit}" />
        <label><input name="broken" type="checkbox" id="broken" value="1" {if $smarty.request.broken==1}checked="checked"{/if} />{#Download_brokens#}</label>
        </td>
        <td>&nbsp;</td>
        <td><input type="submit" class="button" value="{#Search#}" /></td>
        <td>&nbsp;</td>
      </tr>
    </table>
    <label for="dr"></label>
</form>
</div>

<form method="post" action="">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
 
  
    <tr class="headers">
      <td width="180" class="headers"><a href="index.php?do=downloads&sub=overview&amp;q={$smarty.request.q}&amp;page={$smarty.request.page|default:1}&amp;sort={$namesort|default:'name_desc'}&amp;broken={$smarty.request.broken}&amp;pp={$limit}">{#Global_Name#}</a></td>
      <td width="50" align="center" nowrap class="headers"><a href="index.php?do=downloads&sub=overview&amp;q={$smarty.request.q}&amp;page={$smarty.request.page|default:1}&amp;sort={$datesort|default:'date_desc'}&amp;broken={$smarty.request.broken}&amp;pp={$limit}">{#Global_Date#}</a></td>
      <td width="50" align="center" class="headers"><a href="index.php?do=downloads&sub=overview&amp;q={$smarty.request.q}&amp;page={$smarty.request.page|default:1}&amp;sort={$usersort|default:'user_desc'}&amp;broken={$smarty.request.broken}&amp;pp={$limit}">{#Global_Author#}</a></td>
      <td width="50" align="center" class="headers"><a href="index.php?do=downloads&sub=overview&amp;q={$smarty.request.q}&amp;page={$smarty.request.page|default:1}&amp;sort={$hitssort|default:'hits_desc'}&amp;broken={$smarty.request.broken}&amp;pp={$limit}">{#Global_Hits#}</a></td>
      <td width="80" class="headers"><a href="index.php?do=downloads&sub=overview&amp;q={$smarty.request.q}&amp;page={$smarty.request.page|default:1}&amp;sort={$categsort|default:'categ_desc'}&amp;broken={$smarty.request.broken}&amp;pp={$limit}">{#Global_Categ#}</a></td>
      <td width="50" class="headers"><a href="index.php?do=downloads&sub=overview&amp;q={$smarty.request.q}&amp;page={$smarty.request.page|default:1}&amp;sort={$activesort|default:'active_desc'}&amp;broken={$smarty.request.broken}&amp;pp={$limit}">{#Global_Active#}</a></td>
      <td width="1" class="headers"><a href="index.php?do=downloads&sub=overview&amp;q={$smarty.request.q}&amp;page={$smarty.request.page|default:1}&amp;sort={$toplinksort|default:'toplink_desc'}&amp;broken={$smarty.request.broken}&amp;pp={$limit}">{#Download_isTop#}</a></td>
      <td width="1" align="center" class="headers"><img class="absmiddle" src="{$imgpath}/delete.png" alt="" border="0" /></td>
      <td class="headers">{#Global_Actions#}</td>
    </tr>
    
   {foreach from=$Entries item=g}
  {assign var=count value=$count+1}
    <tr class="{cycle name=$cna values='second,first'}">
  <td><a href="../index.php?p=downloads&area={$area}&id={$g->Id}&action=showdetails" target="_blank"><strong>{$g->Name_1|slice:30:'...'|koobispecialchars}</strong></a></td>
    <td align="center" nowrap>{$g->Datum|date_format:$config_vars.DateFomat}</td>
    <td align="center" nowrap><a href="javascript:void(0);" onclick="popup('index.php?do=user&amp;sub=edituser&amp;user={$g->Autor}&amp;noframes=1','userEdit',980,680,1)">{$g->User}</a></td>
    <td align="center"><input class="input" style="width:30px" name="Hits[{$g->Id}]" value="{$g->Hits}" /></td>
    <td>
    <select class="input" style="width:100px" name="Kategorie[{$g->Id}]">
    {foreach from=$Categs item=c}{if $c->Parent_Id==0}<option style="font-weight:bold" value="{$c->Id}" {if $c->Id==$g->Kategorie}selected="selected"{/if}>{$c->Name}</option>{else}<option value="{$c->Id}" {if $c->Id==$g->Kategorie}selected="selected"{/if}>{$c->visible_title}</option>{/if}{/foreach}
    </select>    </td>
    <td>
    <select class="input" name="Aktiv[{$g->Id}]">
      <option value="1" {if $g->Aktiv=='1'}selected="selected"{/if}>{#Yes#}</option>
      <option value="0" {if $g->Aktiv=='0'}selected="selected"{/if}>{#No#}</option>
    </select></td>
    <td align="center">
    <select {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Download_isTopInf width=400} class="input" name="Sponsor[{$g->Id}]">
      <option value="1" {if $g->Sponsor=='1'}selected="selected"{/if}>{#Yes#}</option>
      <option value="0" {if $g->Sponsor=='0'}selected="selected"{/if}>{#No#}</option>
    </select>
    </td>
    <td align="center"><input {popup sticky=$config_vars.POPSTICKY  text=$config_vars.DelInfChekbox} name="del[{$g->Id}]" type="checkbox" value="1" /></td>
    <td>
    {if perm('links_edit')}
    <a {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Edit} href="javascript:void(0);" onclick="popup('index.php?do=downloads&sub=edit&id={$g->Id}&noframes=1&langcode=1','Edit',980,760,1);"><img class="absmiddle" src="{$imgpath}/edit.png" alt="" border="0" /></a>
    {/if} 
    {if $g->DefektGemeldet}
    <img {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Download_brokenInf} class="absmiddle" src="{$imgpath}/warning.png" alt="" border="0" />
    {else}
    <img {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Download_nbrokenInf} class="absmiddle" src="{$imgpath}/warning_no.png" alt="" border="0" />
    {/if}
    {if perm('links_edit')}
     <a {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Copy} href="javascript:void(0);" onclick="popup('index.php?do=downloads&sub=copy&id={$g->Id}&noframes=1','Copy',1,1,0);"><img class="absmiddle" src="{$imgpath}/copy.png" alt="" border="0" /></a>
     {/if}
     {if perm('comments')}{if $g->Comments>=1}<a {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Global_Comments} href="javascript:void(0);" onclick="popup('index.php?do=comments&amp;where=downloads&amp;object={$g->Id}&amp;noframes=1','ed',980,750,1)"><img class="absmiddle" src="{$imgpath}/message.png" alt="" border="0" /></a>{else}<img {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Global_Comments} class="absmiddle" src="{$imgpath}/message_no.png" alt="" border="0" />{/if}{/if}
     {if $g->Wertung>=1 && perm('del_rating')}
     <a {popup sticky=$config_vars.POPSTICKY  text=$config_vars.DelRating} href="javascript:void(0);" onclick="popup('index.php?do=downloads&sub=delrating&id={$g->Id}&noframes=1','Copy',1,1,0);"><img class="absmiddle" src="{$imgpath}/votes_del.png" alt="" border="0" /></a>
     {else}<img {popup sticky=$config_vars.POPSTICKY  text=$config_vars.DelRating} class="absmiddle" src="{$imgpath}/votes_del_no.png" alt="" border="0" />{/if}
     </td>
    </tr>
   {/foreach}
</table>
<input class="button big" type="submit" value="{#Save#}" />
<input type="hidden" name="save" value="1" />
</form>

{if $Navi}
<br />
<div class="navi_div">
{$Navi}
</div>
{/if}