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

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

<table class="searchtable" cellspacing="0">
  <tr>
    <th colspan="2"> {t}Add a new project category{/t} </th>
  </tr>
  <tr>
    <td>{t}Category{/t}: </td>
    <td>
      <input type="text" class="tinput" name="prjcat_title" value="{$prjcat_title|wash}" size="30" maxlength="30">
      <input type="submit" name="submit" value="{t}Add{/t}">
    </td>
  </tr>
</table>

</form>

{if count($rows) > 0}
<table class="stdtable" cellspacing="0">
  <tr>
    <td class="header" colspan="2"> {t}Project categories{/t} </td>
  </tr>

  <tr>
    <th> {t}Category{/t} </th>
    <th> {t}Actions{/t} </th>
  </tr>

  {section name=prjcat loop=$rows}
  <tr class="{cycle values="odd,even"}">
    <td> {$rows[prjcat].prjcat_title|wash} </td>
    <td class="actions"> <a href="prjcats.php?id={$rows[prjcat].prjcat_id}&amp;action={$smarty.const.ACTION_DELETE}">{t}Delete{/t}</a> </td>
  </tr>
  {/section}

</table>

{/if}

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