<!-- 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 cellspacing="0">
    <caption><em>{t}Product categories{/t}</em></caption>
    <thead>
        <tr>
            <th> {t}Category{/t} </th>
            <th> {t}Actions{/t} </th>
        </tr>
    </thead>
    <tbody>
        {section name=prodcat loop=$rows}
        <tr>
            <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}
    </tbody>
</table>

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

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