<div class="popbox">
<form name="kform" method="post" action="index.php?do=shop&sub=article_stprices&id={$smarty.request.id}&noframes=1&SID={$sess}&pop=1&save=1">
<div class="header">{#Shop_articles_stprices#}</div>
<div class="header_inf">{#Shop_articles_stprices_inf#}</div>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
  <td width="100" class="headers">{#Shop_articles_stprices_from#}</td>
<td width="100" class="headers">{#Shop_articles_stprices_till#}</td>
<td class="headers">{#Shop_articles_stprices_reduction#}</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=$stprices item=s}
  <tr class="{cycle name='orders' values='second,first'}">
    <td width="100"><input class="input" style="width:80px" type="text" name="Von[{$s.Id}]" value="{$s.Von}"/></td>
    <td width="100"><input class="input" style="width:80px" type="text" name="Bis[{$s.Id}]" value="{$s.Bis}"/></td>
    <td width="150"><input class="input" style="width:80px" type="text" name="Prozent[{$s.Id}]" value="{$s.Prozent}"/>
	<input type="hidden" name="Id[{$s.Id}]" value="{$s.Id}" />	</td>
	<td>
    <label {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Global_Delete width=100}><input class="absmiddle" name="Del[{$s.Id}]" type="checkbox" id="Del[]" value="1">{#Global_Delete#}</label>
    </td>
	{assign var=min_next value=$s.Bis+1}
	{assign var=max_next value=$s.Bis+10}
	{assign var=percent value=$s.Prozent+1}  </tr>
  {/foreach}
  <tr class="">
    <td><input class="input newform" style="width:80px" type="text" name="VonNeu" onclick="this.value='{$min_next|default:'2'}'" value="" /></td>
    <td><input class="input newform" style="width:80px" type="text" name="BisNeu" onclick="this.value='{$max_next|default:'10'}'" value="" /></td>
    <td><input class="input newform" style="width:80px" type="text" name="ProzentNeu" onclick="this.value='{$percent|jsnum|default:'10.00'}'" value=""/> {#Shop_articles_stprices_new#}</td>
    <td>&nbsp;</td>
  </tr>
</table>
<div class="button_save_div">
<input type="submit" class="button" value="{#Save#}" />
<input type="button" class="button" onclick="window.close();" value="{#Close#}">
</div>
</form>

</div>