<div class="popbox">
<form name="kform" method="post" action="index.php?do=shop&sub=article_variants&id={$smarty.request.id}&cat={$smarty.request.cat}&noframes=1&SID={$sess}&pop=1&save=1">
<div class="header">{#Shop_variants#}</div>

{if !$variant_categs}
<div class="header_inf">

{#Shop_order_vars_nocategs#}
<br /><br />
<a href="?do=shop&amp;sub=categvariants&amp;id={$smarty.request.cat}&amp;noframes=1&amp;name={$smarty.request.name}&back=1&bid={$smarty.request.id}"><img class="absmiddle" src="{$imgpath}/add.png" alt="" border="0" /></a>
<a href="?do=shop&amp;sub=categvariants&amp;id={$smarty.request.cat}&amp;noframes=1&amp;name={$smarty.request.name}&back=1&bid={$smarty.request.id}"><strong>{#Shop_variants_categsN#}</strong></a>
<br />
<br />

<input type="button" class="button" onclick="window.close();" value="{#Close#}">




</div>
{else}
<table width="100%" border="0" cellspacing="0" cellpadding="2">
{foreach from=$variant_categs item=vc}
  {assign var=fs value='second,first'}
  <tr>
    <td width="100" class="headers">{$vc.Name_1|stripslashes} ({$language_1|upper})</td>
    <td align="center" class="headers">{$vc.Name_2|stripslashes} ({$language_2|upper})</td>
    <td align="center" class="headers">{$vc.Name_3|stripslashes} ({$language_3|upper})</td>
    <td width="60" align="center" class="headers">{#Shop_order_vars_op#}</td>
    <td width="60" align="center" class="headers">{#Shop_order_vars_val#}</td>
    <td align="center" class="headers">{#Shop_order_vars_weight#}</td>
    <td width="70" align="center" class="headers">{#Shop_order_vars_pos#}</td>
    <td width="50" class="headers">{#Shop_order_vars_presel#}</td>
    <td class="headers"><label {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Global_SelAll width=100}><input name="allbox" type="checkbox" id="d" onclick="selall();" value="" />{#Global_SelAll#}</label></td>
  </tr>
  {foreach from=$vc.vars item=v}
	
  <tr class="{cycle name=$vc.Id values=$fs}">
    <td><input class="input" style="width:130px" name="Name_1[{$v.Id}]" type="text" value="{$v.Name_1|stripslashes}"></td>
    <td align="center"><input class="input" style="width:100px" name="Name_2[{$v.Id}]" type="text" value="{$v.Name_2|stripslashes}"></td>
    <td align="center"><input class="input" style="width:100px" name="Name_3[{$v.Id}]" type="text" value="{$v.Name_3|stripslashes}"></td>
    <td width="60" align="center">
	  <select name="Operant[{$v.Id}]" class="input" style="width:50px" id="Operant[{$v.Id}]">
      <option value="+" {if $v.Operant=='+'}selected="selected" {/if}>+</option>
      <option value="-" {if $v.Operant=='-'}selected="selected" {/if}>-</option>
    </select>    </td>
    <td width="60" align="center">
	
	
	
	<input class="input" style="width:50px" name="Wert[{$v.Id}]" type="text" value="{$v.Wert}">	</td>
    <td width="60" align="center"><input class="input" style="width:50px" name="Gewicht[{$v.Id}]" type="text" value="{$v.Gewicht}"></td>
   
	
    <td width="70" align="center"><input name="Position[{$v.Id}]" type="text" class="input" style="width:50px" value="{$v.Position}">
      <input name="Id[{$v.Id}]" type="hidden" value="{$v.Id}"></td>
    <td align="center">
	<input name="Vor[{$vc.Id}]" type="radio" value="{if $v.Vorselektiert=='1'}{$v.Id}{/if}" onclick="this.value='{$v.Id}';" {if $v.Vorselektiert=='1'}checked="checked" {/if}>	</td>
    <td><label {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Global_Delete width=100}><input class="absmiddle" name="Del[{$v.Id}]" type="checkbox" id="Del[]" value="1">{#Global_Delete#}</label></td>
  </tr>
  {/foreach}
  <tr class="{cycle name=v2 values='seconds,firsts'}">
    <td><input class="input newform" style="width:130px;" name="NewName[{$vc.Id}]" type="text"></td>
    <td align="center">&nbsp;</td>
    <td align="center">&nbsp;</td>
    <td align="center">
	<select name="NewOperant[{$vc.Id}]" class="input newform" style="width:50px;">
      <option value="+" {if $v.Operant=='+'}selected="selected" {/if}>+</option>
      <option value="-" {if $v.Operant=='-'}selected="selected" {/if}>-</option>
    </select>	</td>
    <td align="center"><input class="input newform" style="width:50px;" name="WertNeu[{$vc.Id}]" type="text"></td>
    <td align="center"><input class="input newform" style="width:50px;" name="GewichtNeu[{$vc.Id}]" type="text"></td>
    <td align="center"><input class="input newform" style="width:50px;" name="PositionNeu[{$vc.Id}]" type="text"></td>
    <td>{#Shop_order_vars_newvar#}</td>
    <td>&nbsp;</td>
  </tr>
  
  
  {assign var=count value=0}
  {/foreach}
</table>

<input type="submit" class="button big" value="{#Save#}">
<input type="button" class="button big"  onclick="window.close();" value="{#Close#}">

</form>
{/if}
</div>