<table>
  <tr class="<{cycle values='odd,even'}>">
    <td colspan="2">
      <form id="<{$addform.name}>" method="<{$addform.method}>" action="<{$addform.action}>">
        <{foreach item=element from=$addform.elements}>
        <{$element.caption}> <{$element.body}>
        <{/foreach}>
      </form>
    </td>
  </tr>
  <{foreach item=field from=$fields key=fieldid}>
  <tr class="<{cycle values='odd,even'}>">
    <td><{$field}></td>
    <td>
      <{if isset($visibilities[$fieldid])}>
      <{foreach item=visibility from=$visibilities[$fieldid]}>
      <a href="visibility.php?op=del&amp;fieldid=<{$fieldid}>&amp;ug=<{$visibility.user_group}>&amp;pg=<{$visibility.profile_group}>" title="<{$smarty.const._DELETE}>"><img src="<{$icms_url}>/images/delete.gif" alt="<{$smarty.const._DELETE}>" width="14" height="14" /></a>
      <{$smarty.const._AM_PROFILE_FIELDVISIBLEFOR}> <{$groups[$visibility.user_group]}>
      <{$smarty.const._AM_PROFILE_FIELDVISIBLEON}> <{$groups[$visibility.profile_group]}><br />
      <{/foreach}>
      <{else}>
      <{$smarty.const._AM_PROFILE_FIELDNOTVISIBLE}>
      <{/if}>
    </td>
  </tr>
  <{/foreach}>
</table>