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

   

<form action="news.php?action=newscat&edit=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="5" class="header">{$langadmin.newscatstitle}</td>
    </tr>
	
    {foreach from=$news item=item} {if $item->parent_id == 0}
    <tr>
      <td class="secondrow">{$langadmin.catname}</td>
      <td width="5%" class="secondrow">&nbsp;</td>
      <td width="5%" class="secondrow"><div align="center">{$langadmin.newsonce}</div></td>
      <td width="5%" class="secondrow"><div align="center">{$langadmin.pos}</div></td>
      <td width="5%" class="secondrow"><div align="right">{$langadmin.settings}</div></td>
    </tr>
    <tr>
      <td class="firstrow"><strong>{$item->visible_title}</strong></td>
      <td nowrap="nowrap" class="firstrow">index.php?area={$area}&amp;p=newsarchive&amp;categ={$item->catid}</td>
      <td nowrap="nowrap" class="firstrow"><div align="center">{if $item->ncount > 0}{$item->ncount}{else}-{/if}</div></td>
      <td class="firstrow"><div align="center">
          <input type="text" value="{$item->posi}" name="posi[{$item->catid}]" size="5" maxlength="5" />
        </div></td>
      <td nowrap="nowrap" class="firstrow"><div align="right">&nbsp;
         <select onchange="eval(this.options[this.selectedIndex].value);selectedIndex=0;" name="mf{$item->catid}" id="mf{$item->catid}">
            <option value="location.href = 'news.php?area={$area}&amp;action=editcateg&amp;id={$item->catid}'">{$langadmin.catedit}</option>
            <option value="location.href = 'news.php?nonpop=1&action=addcateg&area={$area}&amp;parent_id={$item->catid}'">{$langadmin.addsubcateg}</option>
            <option value="if (confirm('{$langadmin.confirmdelnewscat}')) location.href = 'news.php?action=catdel&area={$area}&amp;id={$item->catid}'">{$langadmin.delnewscat}</option>
            
          </select>
		  
          <input onclick="eval(document.getElementById('mf{$item->catid}').value);" type="button" class="button" value="{$langadmin.go}" />
&nbsp; </div></td>
    </tr>
    {else}
    <tr class="firstrow">
      <td>{$item->visible_title}</td>
      <td>index.php?area={$area}&amp;p=newsarchive&amp;categ={$item->catid}</td>
      <td><div align="center">{if $item->ncount > 0}{$item->ncount}{else}-{/if}</div></td>
      <td><div align="center">
          <input type="text" value="{$item->posi}" name="posi[{$item->catid}]" size="5" maxlength="5" />
        </div></td>
      <td><div align="right">&nbsp;
          <select onchange="eval(this.options[this.selectedIndex].value);selectedIndex=0;" name="mf{$item->catid}" id="mf{$item->catid}">
           <option value="location.href = 'news.php?area={$area}&amp;action=editcateg&amp;id={$item->catid}'">{$langadmin.catedit}</option>
           <option value="location.href = 'news.php?nonpop=1&action=addcateg&area={$area}&amp;parent_id={$item->catid}'">{$langadmin.addsubcateg}</option>
           <option value="if (confirm('{$langadmin.confirmdelnewscat}')) location.href = 'news.php?action=catdel&area={$area}&amp;id={$item->catid}'">{$langadmin.delnewscat}</option>>
          </select>
          <input onclick="eval(document.getElementById('mf{$item->catid}').value);" type="button" class="button" value="{$langadmin.go}" />
&nbsp; </div></td>
    </tr>
    {/if} {/foreach}
    <tr>
      <td colspan="5" class="firstrow" style="text-align: center;"><input name="area" type="hidden" id="area" value="{$area}" />
        <input name="Senden" type="submit" class="button" value="{$langadmin.orderposi}" />
        <input onclick="location.href = 'news.php?nonpop=1&action=addcateg&area={$area}'" type="button" class="button" value="{$langadmin.newcat}" />
      </td>
    </tr>
  </table>
</form>

<br>
{include file="../foot.tpl"}
