

<div class="header">{#Global_Shop#} - {#Global_Categories#}</div>
<form action="?do=shop" method="post" enctype="multipart/form-data" name="kform" id="kform">
  <table width="100%"  border="0" cellpadding="4" cellspacing="1" class="tableborder">
   
	<tr>
      <td class="headers">{#Global_Name#}</td>
      <td align="center" class="headers">{#Global_Position#}</td>
      <td class="headers">{#Global_Actions#}</td>
    </tr>
    {foreach from=$categs item=item}
	{assign var=subcateg value=$subcateg+1}
    
    
    
	{if $item->Parent_Id == 0}
    {assign var=trid value=$trid+1}
    {assign var=subcateg value=''}
    <tr class="second">
      <td class="firstrow">
	  {if $smarty.request.trid==$trid}
	  <input style="width:15px; background:none; font-weight:bold; font-size:12px" onclick="location.href='?do=shop&amp;sub=categories&amp;open=0';" type="button" class="buttons" value=" - " />
	  {else}
	  <input style="width:15px; background:none; font-weight:bold; font-size:12px" onclick="location.href='?do=shop&amp;sub=categories&amp;trid={$trid}&open=1';" type="button" class="buttons" value=" + " />
	  {/if}
	  <input class="input" style="font-weight:bold" name="name[{$item->Id}]" type="text" value="{$item->Name_1|koobispecialchars}" size="25" />      </td>
      <td align="center" class="firstrow">        <input class="input" type="text" value="{$item->posi}" name="posi[{$item->Id}]" size="3" maxlength="5" />        </td>
      <td nowrap="nowrap" class="firstrow">
      {if perm('shop_catdeletenew')}
      
      <a {popup sticky=$config_vars.POPSTICKY  delay='200' text=$config_vars.Shop_cat_edit} href="javascript:void(0);" onclick="popup('?do=shop&amp;sub=edit_categ&amp;id={$item->Id}&amp;parent=0&noframes=1&amp;langcode=1','edit',850,650,1);"><img class="absmiddle" src="{$imgpath}/edit.png" alt="" border="0" /></a>
      {*
      <a {popup sticky=$config_vars.POPSTICKY  delay='200' text=$config_vars.Shop_cat_editMulti} href="javascript:void(0);" onclick="popup('?do=shop&amp;sub=name_text&amp;langcode=2&amp;langlong={$language_long_2}&amp;id={$item->Id}&noframes=1','edit',800,400,0);">{$language_2|upper}</a>
	  <a {popup sticky=$config_vars.POPSTICKY  delay='200' text=$config_vars.Shop_cat_editMulti} href="javascript:void(0);" onclick="popup('?do=shop&amp;sub=name_text&amp;langcode=3&amp;langlong={$language_long_3}&amp;id={$item->Id}&noframes=1','edit',800,400,0);">{$language_3|upper}</a>
      *}
      {/if}
      
      {if perm('shop_catdeletenew')}
      &nbsp;<a {popup sticky=$config_vars.POPSTICKY  delay='200' text=$config_vars.Shop_cat_new} href="javascript:void(0);" onclick="popup('?do=shop&amp;sub=new_categ&amp;id={$item->Id}&noframes=1','add',850,650,1);"><img class="absmiddle" src="{$imgpath}/add.png" alt="" border="0" /></a>
      {/if}
      <a {popup sticky=$config_vars.POPSTICKY  delay='200' text=$config_vars.Global_View} target="_blank" href="../index.php?p=shop&action=showproducts&cid={$item->catid}&page=1&limit=10"><img class="absmiddle" src="{$imgpath}/view.png" alt="" border="0" /></a>
     
     {if perm('shop_variants')}<a style="border:0px" {popup sticky=$config_vars.POPSTICKY  width=200 text=$config_vars.Shop_variants_categs} href="javascript:void(0);" onclick="popup('?do=shop&amp;sub=categvariants&amp;id={$item->catid}&amp;noframes=1&amp;name={$item->Name_1|koobispecialchars}','spez','950','620',1);"><img class="absmiddle" src="{$imgpath}/various.png" border="0" alt="" /></a>&nbsp;{/if}
     {if perm('shop_specifications')}<a style="border:0px" {popup sticky=$config_vars.POPSTICKY  width=200 text=$config_vars.Shop_articles_spez} href="javascript:void(0);" onclick="popup('?do=shop&amp;sub=specifications&amp;id={$item->catid}&amp;noframes=1&amp;name={$item->Name_1|koobispecialchars}','spez','850','620',1);"><img class="absmiddle" src="{$imgpath}/specifcations.png" border="0" alt="" /></a>&nbsp;{/if}
     {if perm('shop_catdeletenew')}<a {popup sticky=$config_vars.POPSTICKY  delay='200' text=$config_vars.Shop_cat_del} href="javascript:void(0);" onclick="if(confirm('{#Shop_cat_JSDel#}')) javascript:openWin('?do=shop&amp;sub=del_categ&amp;id={$item->Id}',1,1,1);"><img class="absmiddle" src="{$imgpath}/delete.png" alt="" border="0" /></a>{/if}    
     </td>
    </tr>
    {else}
	
	{if $smarty.request.open==1 && $smarty.request.trid==$trid}
    <tr class="secondrow">
      <td>
	
	  {$item->Expander|replace:'-':'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'}
      
	  <input class="input" name="name[{$item->Id}]" type="text" value="{$item->catname|escape:'html'}" size="25" />	  </td>
      <td align="center">        <input class="input" type="text" value="{$item->posi}" name="posi[{$item->Id}]" size="3" maxlength="5" />        </td>
      <td nowrap="nowrap">
       {if perm('shop_catdeletenew')}
      <a {popup sticky=$config_vars.POPSTICKY  delay='200' text=$config_vars.Shop_cat_edit} href="javascript:void(0);" onclick="popup('?do=shop&amp;sub=edit_categ&amp;id={$item->Id}&amp;parent={$item->Parent_Id}&noframes=1&amp;langcode=1','edit',750,650,1);"><img class="absmiddle" src="{$imgpath}/edit.png" alt="" border="0" /></a>
      {*
      <a {popup sticky=$config_vars.POPSTICKY  delay='200' text=$config_vars.Shop_cat_editMulti} href="javascript:void(0);" onclick="popup('?do=shop&amp;sub=name_text&amp;langcode=2&amp;langlong={$language_long_2}&amp;id={$item->Id}&noframes=1','edit',500,400,0);">{$language_2|upper}</a>
	  <a {popup sticky=$config_vars.POPSTICKY  delay='200' text=$config_vars.Shop_cat_editMulti} href="javascript:void(0);" onclick="popup('?do=shop&amp;sub=name_text&amp;langcode=3&amp;langlong={$language_long_3}&amp;id={$item->Id}&noframes=1','edit',500,400,0);">{$language_3|upper}</a>
      *}
      {/if}
      
      
      {if perm('shop_catdeletenew')}
      {if $item->Subcount < 32}
      &nbsp;<a {popup sticky=$config_vars.POPSTICKY  delay='200' text=$config_vars.Shop_cat_new} href="javascript:void(0);" onclick="popup('?do=shop&amp;sub=new_categ&amp;id={$item->Id}&noframes=1','add',650,650,1);"><img class="absmiddle" src="{$imgpath}/add.png" alt="" border="0" /></a>
      {else}
      &nbsp;<img class="absmiddle" src="{$imgpath}/add_disabled.png" alt="" border="0" />
      {/if}
      {/if}
      <a {popup sticky=$config_vars.POPSTICKY  delay='200' text=$config_vars.Global_View} target="_blank" href="../index.php?p=shop&action=showproducts&cid={$item->catid}&page=1&limit=10"><img class="absmiddle" src="{$imgpath}/view.png" alt="" border="0" /></a>
      {if perm('shop_variants')}<a style="border:0px" {popup sticky=$config_vars.POPSTICKY  width=200 text=$config_vars.Shop_variants_categs} href="javascript:void(0);" onclick="popup('?do=shop&amp;sub=categvariants&amp;id={$item->catid}&amp;noframes=1&amp;name={$item->Name_1|koobispecialchars}','spez','950','620',1);"><img class="absmiddle" src="{$imgpath}/various.png" border="0" alt="" /></a>&nbsp;{/if}
      {if perm('shop_specifications')}<a style="border:0px" {popup sticky=$config_vars.POPSTICKY  width=200 text=$config_vars.Shop_articles_spez} href="javascript:void(0);" onclick="popup('?do=shop&amp;sub=specifications&amp;id={$item->catid}&amp;noframes=1&amp;name={$item->Name_1|koobispecialchars}','spez','850','620',1);"><img class="absmiddle" src="{$imgpath}/specifcations.png" border="0" alt="" /></a>&nbsp;{/if}
      {if perm('shop_catdeletenew')}
      <a {popup sticky=$config_vars.POPSTICKY  delay='200' text=$config_vars.Shop_cat_del} href="javascript:void(0);" onclick="if(confirm('{#Shop_cat_JSDel#}')) javascript:openWin('?do=shop&amp;sub=del_categ&amp;id={$item->Id}',1,1,1);"><img class="absmiddle" src="{$imgpath}/delete.png" alt="" border="0" /></a>
      {/if}      
      </td>
    </tr>
    
	{/if}
	
    {/if}
	{/foreach}
    <tr>
      <td colspan="3" class="thirdrow">
        <input name="trid" type="hidden"  value="{$smarty.request.trid}" />
        <input name="sub" type="hidden" value="categories" />
        <input name="save" type="hidden" value="1" />
        <input name="open" type="hidden" value="1" />
      <input name="Senden" type="submit" class="button" value="{#Global_Quicksave#}" />
    
      
      {if perm('shop_catdeletenew')}
     <a {popup sticky=$config_vars.POPSTICKY  delay='200' text=$config_vars.Shop_cat_new} href="javascript:void(0);" onclick="javascript:openWin('?do=shop&amp;sub=new_categ',650,650,1);"><img class="absmiddle" src="{$imgpath}/add.png" alt="" border="0" /></a>
     <a href="javascript:void(0);" onclick="javascript:openWin('?do=shop&amp;sub=new_categ',650,650,1);">{#Global_AddCateg#}</a>
      {/if}      </td></tr>
  </table>
</form>



