<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_PROPERTY}>
</div>

<h3><{$smarty.const._AD_USER_LANG_GROUP_PROPERTY}> ( <{$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_ASSIN_MEMBERS}></h4>

<table class="outer" cellspacing="1">
  <tr>
    <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"}>" style="text-align:center;">
      <td><img src="<{"icons/user.gif"|theme}>" alt="<{$smarty.const._AD_USER_LANG_USER}>" title="<{$smarty.const._AD_USER_LANG_USER}>" /></td>
      <td><{$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>
        <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}>
</table>

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

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

<h5><{$smarty.const._AD_USER_LANG_PERM_MODULE_ACCESS}></h5>
<table class="outer">
  <tr class="head">
    <th colspan="4"><{$smarty.const._AD_USER_LANG_PERM_SYSTEM_PERM_MODULE}></th>
  </tr>
  <tbody>
  <tr>
  <{foreach item=perm from=$systemPermissions key="perm_key"}>
    <td class="head" style="width:35%;">&nbsp;<{$perm->mItem->getName()|escape}></td>
    <td class="even"><{assign var="getId" value=$perm->getId() }>
      <{if $perm->mValue==2}>
        <{$smarty.const._AD_USER_LANG_PERM_ADMIN}>
      <{else}>
        --
      <{/if}>
    </td>
    <{cycle values=",</tr><tr>" name="systr"}>
  <{/foreach}>
  </tr>
  </tbody>
</table>
<br />
<table class="outer" cellspacing="2">
  <tr class="head">
    <th colspan="4"><{$smarty.const._AD_USER_LANG_PERM_GROUP_PERM_MODULE}></th>
  </tr>
  <tbody>
  <tr>
  <{foreach item=perm from=$modulePermissions }>
    <td class="head" style="width:25%;">&nbsp;<{$perm->mItem->getName()|escape}></td>
    <td class="even">
      <{assign var="getId" value=$perm->getId() }>
      <{if $perm->mValue & 1}>
        <{$smarty.const._AD_USER_LANG_PERM_ACCESS}>
      <{else}>
        --
      <{/if}>
      <{if $perm->mValue & 2}>
        <{$smarty.const._AD_USER_LANG_PERM_ADMIN}>
      <{else}>
        --
      <{/if}>
    </td>
    <{cycle values=",</tr><tr>" name="systr"}>
  <{/foreach}>
  </tr>
  </tbody>
</table>

<br />
<h5><{$smarty.const._AD_USER_LANG_PERM_BLOCK_ACCESS}></h5>

<{foreach key=i item=permissions from=$blockPermissions}>
<table class="outer">
  <tr class="head">
    <th colspan="4"><{$smarty.const._AD_USER_LANG_PERM_GROUP_PERM_BLOCK}>
      <{if $i == 0}>( <{$smarty.const._LEFT}> )
      <{elseif $i == 1}>( <{$smarty.const._RIGHT}> )
      <{elseif $i == 2}>( <{$smarty.const._CENTER}> )
      <{elseif $i == 3}>( <{$smarty.const._CENTER}>-<{$smarty.const._LEFT}> )
      <{elseif $i == 4}>( <{$smarty.const._CENTER}>-<{$smarty.const._RIGHT}> )
      <{/if}></th>
  </tr>
  <tbody>
  <tr>
  <{foreach item=perm from=$permissions name="blktr"}>
      <td class="head" style="width:35%;">&nbsp;
        <{if $perm->mItem->isActive()}>
          <{$perm->mItem->getName()|escape}>
        <{else}>
          <span style="color:gray;"><{$perm->mItem->getName()|escape}></span>
        <{/if}>
      </td>
      <td class="even"><{assign var="getId" value=$perm->getId() }>
        <{if $perm->mValue==1}>
          <{$smarty.const._AD_USER_LANG_PERM_ACCESS}>
        <{else}>
        --
        <{/if}>
      </td>
    <{cycle values=",</tr><tr>" name="blktr"}>
  <{/foreach}>
    </tr>
  </tbody>
</table>
<br />
<{/foreach}>
