<{* page for group list *}>
<{* $Revision: 1.4.4.1.2.2 $ *}>
<{*

$groups = array( 
    array( 'gname' => 'name of group',
           'gdesc' => 'description of group',
           'gadmin' => array( 
               array( 'uname' => 'administrator name of group',
                      'email' => 'e-mail of group administrator' ),
               ... ),
           ),
    ... );
);

*}>
<{include file="db:xoonips_breadcrumbs.inc.html"}>

<h3><{$smarty.const._MD_XOONIPS_MODERATOR_GROUP_LIST}></h3>

<{* display of group *}>
<table class="outer" cellspacing="1">
  <tr>
    <th align="center" width="20%"><{$smarty.const._MD_XOONIPS_MODERATOR_GNAME}></th>
    <th align="center" width="50%"><{$smarty.const._MD_XOONIPS_MODERATOR_GDESC}></th>
    <th align="center" width="30%"><{$smarty.const._MD_XOONIPS_MODERATOR_GROUP_ADMIN}></th>
  </tr>
<{if !empty($groups) }>
<{foreach from=$groups item=group}>
  <tr>
    <td class="<{cycle name="row1" values="even,odd"}>">
      <{$group.gname}>
    </td>
    <td class="<{cycle name="row2" values="even,odd"}>">
      <{$group.gdesc}>
    </td>
    <td class="<{cycle name="row3" values="even,odd"}>">
<{section name=i loop=$group.gadmin}>
<{if !$smarty.section.i.first}> / <{/if}>
<{if $group.gadmin[i].email != ""}>
  <{$group.gadmin[i].email_js}>
<{else}>
  <{$group.gadmin[i].uname}>
<{/if}>
<{/section}>
    </td>
  </tr>
<{/foreach}>
<{else}>
  <tr>
    <td colspan="3" class="even" style="text-align: center;">
      <span style="font-weight: bold; color: red;">
        <{$smarty.const._MD_XOONIPS_GROUPS_EMPTY}>
      </span>
    </td>
<{/if}>
</table>
