<div class="adminnavi">
  <a href="./index.php"><{$smarty.const._MI_USER_NAME}></a>
  &raquo;&raquo; <a href="./index.php?action=GroupList"><{$smarty.const._AD_USER_LANG_GROUP_LIST}></a>
  &raquo;&raquo; <{$smarty.const._AD_USER_LANG_GROUP_ASSIGN}>
</div>

<h3><{$smarty.const._AD_USER_LANG_GROUP_ASSIGN}> ( <{$group->getVar('name')}> )</h3>

<table class="outer">
  <tr>
    <th>&nbsp;</th>
    <th><{$smarty.const._AD_USER_LANG_GROUP_GID}></th>
    <th><{$smarty.const._AD_USER_LANG_GROUP_NAME}></th>
    <th><{$smarty.const._AD_USER_LANG_GROUP_DESC}></th>
    <th><{$smarty.const._AD_USER_LANG_GROUP_TYPE}></th>
    <th><{$smarty.const._AD_USER_LANG_GROUP_AMMO}></th>
    <th><{$smarty.const._AD_USER_LANG_CONTROL}></th>
  </tr>
  <tr class="odd" style="text-align:center;">
    <td><img src="<{"icons/group.gif"|theme}>" alt="<{$smarty.const._AD_USER_LANG_GROUP}>" title="<{$smarty.const._AD_USER_LANG_GROUP}>" /></td>
    <td><{$group->getVar('groupid')}></td>
    <td><b><{$group->getVar('name')}></b></td>
    <td><{$group->getVar('description')}></td>
    <td><{$group->getVar('group_type')}></td>
    <td><{$group->getVar('user_count')}></td>
    <td>
      <a href="index.php?action=GroupEdit&amp;groupid=<{$group->getVar('groupid')}>"><img src="<{"icons/edit.gif"|theme}>" alt="<{$smarty.const._EDIT}>" title="<{$smarty.const._EDIT}>" /></a>
      <{if $group->getVar('groupid') > $smarty.const.XOOPS_GROUP_ANONYMOUS }>
        <a href="index.php?action=GroupDelete&amp;groupid=<{$group->getVar('groupid')}>"><img src="<{"icons/delete.gif"|theme}>" alt="<{$smarty.const._DELETE}>" title="<{$smarty.const._DELETE}>" /></a>
      <{/if}>
      <a href="index.php?action=GroupProperty&amp;groupid=<{$group->getVar('groupid')}>"><img src="<{"icons/property.gif"|theme}>" alt="<{$smarty.const._AD_USER_LANG_GROUP_PROPERTY}>" title="<{$smarty.const._AD_USER_LANG_GROUP_PROPERTY}>" /></a>
      <a href="index.php?action=GroupPerm&amp;groupid=<{$group->getVar('groupid')}>"><img src="<{"icons/permission.gif"|theme}>" alt="<{$smarty.const._AD_USER_LANG_GROUP_PERMISSION}>" title="<{$smarty.const._AD_USER_LANG_GROUP_PERMISSION}>" /></a>
      <a href="index.php?action=GroupMember&amp;groupid=<{$group->getVar('groupid')}>"><img src="<{"icons/members.gif"|theme}>" alt="<{$smarty.const._AD_USER_LANG_GROUP_ASSIGN}>" title="<{$smarty.const._AD_USER_LANG_GROUP_ASSIGN}>" /></a>
    </td>
  </tr>
</table>

<hr />
<h4><{$smarty.const._AD_USER_LANG_GROUP_NOASSIN_MEMBERS}></h4>

<{if $actionForm->hasError()}>
  <ul>
    <{foreach item=message from=$actionForm->getErrorMessages()}>
      <li><{$message|escape}></li>
    <{/foreach}>
  </ul>
<{/if}>

<{assign var=tokenName value=$actionForm->getTokenName()}>
<{assign var=tokenValue value=$actionForm->getToken()}>

<form method="POST">
<{xoops_token name=$tokenName value=$tokenValue}>
<input type="hidden" name="perpage" value="<{$pageNavi->getPerpage()}>" />
<input type="hidden" name="start" value="<{$pageNavi->getStart()}>" />
<input type="hidden" name="noperpage" value="<{$noPageNavi->getPerpage()}>" />
<input type="hidden" name="nostart" value="<{$noPageNavi->getStart()}>" />
<table class="outer">
  <tr>
    <th><{$smarty.const._REGISTER}></th>
    <th>&nbsp;</th>
    <th><{$smarty.const._AD_USER_LANG_UID}></th>
    <th><{$smarty.const._AD_USER_LANG_UNAME}></th>
    <th><{$smarty.const._AD_USER_LANG_NAME}></th>
    <th><{$smarty.const._AD_USER_LANG_REGDATE}></th>
    <th><{$smarty.const._AD_USER_LANG_LASTLOGIN}></th>
    <th><{$smarty.const._AD_USER_LANG_POSTS}></th>
    <th><{$smarty.const._AD_USER_LANG_LEVEL}></th>
    <th><{$smarty.const._AD_USER_LANG_CONTROL}></th>
  </tr>
  <{foreach from=$noUsers item=user }>
    <tr class="<{cycle values="odd,even"}>">
      <td style="text-align:center;"><input type="checkbox" name="uid[<{$user->getVar('uid')}>]" value="1" /></td>
      <td style="text-align:center;"><img src="<{"icons/user.gif"|theme}>" alt="<{$smarty.const._AD_USER_LANG_USER}>" title="<{$smarty.const._AD_USER_LANG_USER}>" /></td>
      <td style="text-align:center;"><{$user->getVar('uid')}></td>
      <td><b><{$user->getVar('uname')}></b></td>
      <td><{$user->getVar('name')}></td>
      <td><{$user->getVar('user_regdate')|xoops_formattimestamp}></td>
      <td><{$user->getVar('last_login')|xoops_formattimestamp:l}></td>
      <td style="text-align:right;"><{$user->getVar('posts')}></td>
      <td style="text-align:right;"><{$user->getVar('level')}></td>
      <td style="text-align:center;">
        <a href="./index.php?action=UserEdit&amp;uid=<{$user->getVar('uid')}>"><img src="<{"icons/edit.gif"|theme}>" alt="<{$smarty.const._EDIT}>" title="<{$smarty.const._EDIT}>" /></a>
        <{if $user->getVar('uid') != 1 }>
          <a href="index.php?action=UserDelete&amp;uid=<{$user->getVar('uid')}>"><img src="<{"icons/delete.gif"|theme}>" alt="<{$smarty.const._DELETE}>" title="<{$smarty.const._DELETE}>" /></a>
        <{/if}>
      </td>
    </tr>
  <{/foreach}>
  <tr>
    <td class="foot" colspan="10">
      <input type="submit" value="<{$smarty.const._REGISTER}>" class="formButton" />
    </td>
  </tr>
</table>
</form>

<div class="pagenavi"><{xoops_pagenavi pagenavi=$noPageNavi}></div>

<hr />
<h4><{$smarty.const._AD_USER_LANG_GROUP_ASSIN_MEMBERS}></h4>

<form method="POST">
<{xoops_token name=$tokenName value=$tokenValue}>
<input type="hidden" name="perpage" value="<{$pageNavi->getPerpage()}>" />
<input type="hidden" name="start" value="<{$pageNavi->getStart()}>" />
<input type="hidden" name="noperpage" value="<{$noPageNavi->getPerpage()}>" />
<input type="hidden" name="nostart" value="<{$noPageNavi->getStart()}>" />
<table class="outer">
  <tr>
    <th><{$smarty.const._DELETE}></th>
    <th>&nbsp;</th>
    <th><{$smarty.const._AD_USER_LANG_UID}></th>
    <th><{$smarty.const._AD_USER_LANG_UNAME}></th>
    <th><{$smarty.const._AD_USER_LANG_NAME}></th>
    <th><{$smarty.const._AD_USER_LANG_REGDATE}></th>
    <th><{$smarty.const._AD_USER_LANG_LASTLOGIN}></th>
    <th><{$smarty.const._AD_USER_LANG_POSTS}></th>
    <th><{$smarty.const._AD_USER_LANG_LEVEL}></th>
    <th><{$smarty.const._AD_USER_LANG_CONTROL}></th>
  </tr>
  <{foreach from=$users item=user }>
    <tr class="<{cycle values="odd,even"}>">
      <td style="text-align:center;"><input type="checkbox" name="uid[<{$user->getVar('uid')}>]" value="2" /></td>
      <td style="text-align:center;"><img src="<{"icons/user.gif"|theme}>" alt="<{$smarty.const._AD_USER_LANG_USER}>" title="<{$smarty.const._AD_USER_LANG_USER}>" /></td>
      <td style="text-align:center;"><{$user->getVar('uid')}></td>
      <td><b><{$user->getVar('uname')}></b></td>
      <td><{$user->getVar('name')}></td>
      <td><{$user->getVar('user_regdate')|xoops_formattimestamp}></td>
      <td><{$user->getVar('last_login')|xoops_formattimestamp:l}></td>
      <td style="text-align:right;"><{$user->getVar('posts')}></td>
      <td style="text-align:right;"><{$user->getVar('level')}></td>
      <td style="text-align:center;">
        <a href="<{$xoops_url}>/modules/system/admin.php?fct=users&amp;uid=<{$user->getVar('uid')}>&amp;op=modifyUser"><img src="<{"icons/edit.gif"|theme}>" alt="<{$smarty.const._EDIT}>" title="<{$smarty.const._EDIT}>" /></a> 
        <{if $user->getVar('uid') != 1 }>
          <a href="index.php?action=UserDelete&amp;uid=<{$user->getVar('uid')}>"><img src="<{"icons/delete.gif"|theme}>" alt="<{$smarty.const._DELETE}>" title="<{$smarty.const._DELETE}>" /></a>
        <{/if}>
      </td>
    </tr>
  <{/foreach}>
  <tr>
    <td class="foot" colspan="10">
      <input type="submit" value="<{$smarty.const._DELETE}>" class="formButton" />
    </td>
  </tr>
</table>
</form>

<div class="pagenavi"><{xoops_pagenavi pagenavi=$pageNavi}></div>
