<!-- 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 company category{/t}</legend>

    <label for="">{t}Category{/t}:</label>
    <input type="text" class="tinput" name="cpncat_title" value="{$cpncat_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}Company categories{/t}</em></caption>
  <tr>
    <th> {t}Category{/t} </th>
    <th> {t}Actions{/t} </th>
  </tr>
  {section name=cpncat loop=$rows}
  <tr class="{cycle values="odd,even"}">
    <td> {$rows[cpncat].ccat_title|wash} </td>
    <td class="actions"> <a href="cpncats.php?id={$rows[cpncat].ccat_id}&amp;action={$smarty.const.ACTION_DELETE}">{t}Delete{/t}</a> </td>
  </tr>
  {/section}
</table>

{/if}

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