
{include file="../head.tpl"}
<form name="kform" method="post" action="newsletter.php?donow=categs&area={$smarty.request.area}">
<table width="100%" cellpadding="4" cellspacing="1" border="0" class="tableborder">
  <tr>
    <td colspan="3" class="header">{$langadmin.navi_newsletter_categs}</td>
  </tr>
  
  <tr>
    <td width="10%" nowrap="nowrap" class="firstrow">
	<div align="center">{$langadmin.delete}</div>
	
    </td>
    <td class="firstrow">{$langadmin.name}</td>
    <td class="firstrow">{$langadmin.position}</td>
  </tr>
  {foreach from=$items item=categ}
 <tr  class="{cycle name="ct" values="secondrow,firstrow"}"> 
    <td width="10%" nowrap="nowrap"><div align="center">
      <input name="sel[{$categ->id}]" type="checkbox" id="sel[{$categ->id}]" value="1" />
    </div></td>
    <td width="20%"><input name="name[{$categ->id}]" type="text" id="name[{$categ->id}]" value="{$categ->name}" size="40" /></td>
    <td><input name="posi[{$categ->id}]" type="text" id="posi[{$categ->id}]" value="{$categ->posi}" size="3" maxlength="3" /></td>
 </tr>
  {/foreach}
 <tr  class="{cycle name="ct" values="secondrow,firstrow"}">
   <td nowrap="nowrap"><div align="center"><input name="allbox" type="checkbox" id="d" onclick="selall();" value="" /></div></td>
   <td><input type="submit" class="button" value="{$langadmin.refresh}" /></td>
   <td>&nbsp;</td>
 </tr>
  
</table>
</form>
<form name="kform" method="post" action="newsletter.php">
<table width="100%"  border="0" cellpadding="4" cellspacing="1" class="tableborder">
  <tr>
    <td colspan="2" class="header">{$langadmin.newcat}</td>
  </tr>
  <tr>
    <td width="10%" class="firstrow">{$langadmin.name}</td>
    <td class="secondrow"><input name="name" type="text" id="name" size="35" /></td>
  </tr>
  <tr>
    <td width="10%" class="firstrow">&nbsp;</td>
    <td class="secondrow"><input type="submit" class="button" value="{$langadmin.save}" />
    <input name="newcat" type="hidden" id="newcat" value="1" />
    <input name="area" type="hidden" id="area" value="{$smarty.request.area}" />
    <input name="donow" type="hidden" id="donow" value="categs" /></td>
  </tr>
</table>
</form>
{include file="../foot.tpl"}