<!-- 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 country{/t} </th>
  </tr>
  <tr>
    <td>{t}Country{/t}: </td>
    <td>
      <input type="text" class="tinput" name="ctr_name" value="{$ctr_name|wash}" size="30" maxlength="30">
      {t}Country code{/t}:
      <input type="text" class="tinput" name="ctr_code" value="{$ctr_code|wash}" size="4" maxlength="4">
      <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="3"> {t}Countries{/t} </td>
  </tr>
  <tr>
    <th> {t}Country{/t} </th>
    <th> {t}Country code{/t} </th>
    <th> {t}Actions{/t} </th>
  </tr>

  {section name=curr loop=$rows}
  <tr class="{cycle values="odd,even"}">
    <td> {$rows[curr].ctr_name|wash} </td>
    <td> {$rows[curr].ctr_code|wash} </td>
    <td class="actions"> <a href="{$FORM_ACTION}?id={$rows[curr].ctr_id}&amp;action={$smarty.const.ACTION_DELETE}">{t}Delete{/t}</a> </td>
  </tr>
  {/section}

</table>

{/if}

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