<!-- 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 job category{/t} </th>
  </tr>
  <tr>
    <td>{t}Category{/t}: </td>
    <td>
      <input type="text" class="tinput" name="jobcat_title" value="{$jobcat_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}Job categories{/t} </td>
  </tr>
  <tr>
    <th> {t}Category{/t} </th>
    <th> {t}Actions{/t} </th>
  </tr>

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

</table>

{/if}

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