{include file="../head.tpl"}

<table width="100%"  border="0" cellpadding="4" cellspacing="1" class="tableborder">
  <tr>
    <td colspan="4" class="header"><b>
      {$langadmin.groupsmain}
      </b></td>
  </tr>
  <tr class="selectrow">
    <th width="10%" nowrap> {$langadmin.groupid}
    </th>
    <th> {$langadmin.gname}
    </th>
    <th> {$langadmin.useronce}
    </th>
    <th> {$langadmin.actions}
    </th>
  </tr>
  {foreach from=$group_array item=grp}
  <tr>
    <td width="10%" nowrap class="firstrow"><div align="center">
        {$grp->ugroup}
      </div></td>
    <td class="secondrow">{$grp->groupname}
&nbsp;</td>
    <td class="firstrow"><div align="center">
        {$grp->user}
      </div></td>
    <td class="secondrow"><div align="center">
        <input onclick="location.href='groups.php?action=edit&id={$grp->ugroup}'" type="button" class="button" value="{$langadmin.editonce}">
        {if $grp->ugroup != 1 && $grp->ugroup != 2 && $grp->ugroup != 3 && $grp->ugroup != 4}
        <input onclick="location.href='groups.php?action=delete&id={$grp->ugroup}&gname={$grp->groupname}'" type="button" class="button" value="{$langadmin.delete}">
        {else}
        (
        {$langadmin.group_undeleteable}
        )
        {/if}
      </div></td>
  </tr>
  {/foreach}
</table>
{include file="../foot.tpl"}
