<!-- BEGIN {$smarty.template} -->

<form action="{$FORM_ACTION}" method="post">
  <input type="hidden" name="action" value="{$smarty.const.ACTION_ADD}">

  <fieldset class="search">
    <legend>{t}Add a new product category{/t}</legend>

    <label for="prodcat_title">{t}Category{/t}:</label>
    <input type="text" class="tinput" id="prodcat_title" name="prodcat_title" value="{$prodcat_title|wash}" size="30" maxlength="30">
    <br>

    <input type="submit" name="submit" value="{t}Add{/t}">
  </fieldset>
</form>

{if count($rows) > 0}
<table class="stdtable" cellspacing="0">
  <caption><em>{t}Product categories{/t}</em></caption>
  <tr>
    <th> {t}Category{/t} </th>
    <th> {t}Actions{/t} </th>
  </tr>
  {section name=prodcat loop=$rows}
  <tr class="{cycle values="odd,even"}">
    <td> {$rows[prodcat].prcat_title|wash} </td>
    <td class="actions"> <a href="prodcats.php?id={$rows[prodcat].prcat_id}&amp;action={$smarty.const.ACTION_DELETE}">{t}Delete{/t}</a> </td>
  </tr>
  {/section}
</table>

{else}
<div class="msg">{t}No product categories available{/t}</div>
{/if}

<!-- END {$smarty.template} -->
