{include file="../head.tpl"}
<table width="100%"  border="0" cellspacing="1" cellpadding="5" class="tableborder">
<form method="post" action="genre.php?action=save">
  <tr>
    <td colspan="2" class="header">{$langadmin.genres}</td>
  </tr>

  <tr>
    <td class="firstrow">{$langadmin.title}</td>
    <td nowrap class="firstrow">&nbsp;</td>
  </tr>
    {foreach from=$items item=item}
  <tr class="{cycle name="c0" values="secondrow,firstrow"}">
    <td class="tdspacer"><input name="genre[{$item->id}]" id="cp{$item->id}" size="40" value="{$item->genre}" type="text"></td>
    <td width="10%" nowrap>
        <div align="center">
          <input class="button" onclick="if(confirm('{$langadmin.confirmdel_genre}'))  location.href='genre.php?action=del&amp;area={$area}&amp;id={$item->id}';" type="button" value="{$langadmin.menue_navigation_delete}" />
        </div></td>
  </tr>
  {/foreach}
  <tr>
    <td colspan="2" class="secondrow">      <input name="area" type="hidden" id="area" value="{$smarty.request.area}">
      <input name="id" type="hidden" id="id" value="{$smarty.request.id}">
      <input name="Senden" type="submit" class="button" value="{$langadmin.save}">
      
    </td></tr>
  </form>

  <form name="newitem" action="genre.php?action=new" method="post">
<tr class="c1">
<td class="tdspacer"><input name="newgenre" type="text" id="newgenre" value="" size="40" /></td>
<td class="tdspacer">&nbsp;
 </td>

<input type="hidden" name="area" value="{$smarty.request.area}" />

</tr>
<tr class="c1">
  <td colspan="2" class="firstrow">
    <input name="Senden" type="submit" class="button" value="{$langadmin.genre_new}"></td></tr>
</form>
</table>
{include file="../foot.tpl"}