<!--
<?php
print <<<EOT
--> 
<table width="100%" cellspacing="1" cellpadding="3"  class="tablewidth">
  <form name="form1" method="post" action="index.php?lfj=$lfj&action=$job">
    <tr  class="head"> 
      <td colspan="7"> 
        <div align="center"><font color="#FFFFFF">用戶組後台權限管理</font></div>
      </td>
    </tr>
    <tr bgcolor=#EEEEEE align="center"> 
      <td width="6%"> 
        <div align=center><b><font color="#990033">groupid</font></b></div>
      </td>
      <td width="15%"><b><font color="#990033">用戶組名稱</font></b></td>
      <td width="13%"><b><font color="#990033">用戶組性質</font></b></td>
      <td width="16%"><b><font color="#990033">用戶組成員</font></b></td>
      <td width="15%"><b><font color="#990033">有無權限</font></b></td>
      <td width="21%"><b><font color="#990033">後台權限設置</font></b></td>
      <td width="14%"><b><font color="#990033">刪除此用戶組</font></b></td>
    </tr>
    <!--
EOT;
foreach($listdb AS $key=>$rs){
print <<<EOT
-->
    <tr bgcolor='#FFFFFF'> 
      <td width='6%' align="center"> $rs[gid] </td>
      <td width='15%' align="left"> $rs[grouptitle]</td>
      <td width='13%' align="center">$rs[ifSystem]</td>
      <td width='16%' align="center">
        <!--
EOT;
if($rs[gid]!=2){
print <<<EOT
-->
	  <a href="index.php?lfj=member&job=list&T=&groupid=$rs[gid]" title="點擊查看此用戶組下的所有會員名單"><img src="../member/images/icon_user.gif" border="0"></a>
        <!--
EOT;
}
print <<<EOT
-->
	  </td>
      <td width='15%' align="center"> 
        <!--
EOT;
if($rs[allowadmin]){
print <<<EOT
-->
        <img src="../member/images/check_yes.gif" alt="有後台權限"> 
        <!--
EOT;
}
print <<<EOT
-->
        <!--
EOT;
if(!$rs[allowadmin]){
print <<<EOT
-->
        <img src="../member/images/check_no.gif" alt="有後台權限"> 
        <!--
EOT;
}
print <<<EOT
-->
      </td>
      <td width='21%' align="center"> 
        <!--
EOT;
if($rs[allowadmin]){
print <<<EOT
-->
        <a href="index.php?lfj=$lfj&job=admin_gr&gid=$rs[gid]" title="修改後台權限"><img src="../member/images/button_properties.png" border="0"></a> 
        <!--
EOT;
}
print <<<EOT
-->
        <!--
EOT;
if($rs[gid]!=2&&!$rs[allowadmin]){
print <<<EOT
-->
        <a href="index.php?lfj=$lfj&job=admin_gr&gid=$rs[gid]" title="為此用戶組開通後台管理權限" onClick="return confirm('提醒!你確實要為〞{$rs[grouptitle]}〞這個用戶組,開通後台權限嗎?')"><img src="../member/images/icon_forbidman.gif" border="0"></a> 
        <!--
EOT;
}
print <<<EOT
-->
      </td>
      <td width='14%' align="center"> 
        <!--
EOT;
if($rs[gid]!=2&&$rs[gid]!=3&&$rs[gid]!=4&&$rs[gid]!=5&&$rs[gid]!=8){
print <<<EOT
--><a title="刪除此用戶組" href="index.php?lfj=$lfj&action=delete&gid=$rs[gid]" onClick="return confirm('警告!刪除後不可恢復,是否確定要刪除?')">
        <img src="../member/images/del_icon2.gif" border="0"></a> 
        <!--
EOT;
}
print <<<EOT
-->
      </td>
    </tr>
    <!--
EOT;
}print <<<EOT
-->
  </form>
  <form name="form1" method="post" action="index.php?lfj=$lfj&action=add">
  </form>
</table> 
<table width="100%" cellspacing="1" cellpadding="3"  class="tablewidth">
  
    <tr  class="head"> 
      
    <td colspan="7"> <font color="#FFFFFF">說明:</font></td>
    </tr>
  <tr>
    <td><b><font color="#FF0000">注意:</font></b>系統為方便管理員後台的方便操作,有些*-*能菜單並沒做權限嚴格限制,因此請不要隨便開放普通用戶組進入網站後台.非常危險!!</td>
  </tr>
</table>
<!--
EOT;
?>
-->
