<!--
<?php
print <<<EOT
--> 
<table width="100%" cellspacing="1" cellpadding="3"  class="tablewidth">
  <form name="form1" method="post" action="index.php?lfj=$lfj&action=set">
    <tr  class="head"> 
      <td colspan="2"> 
        <div align="center"><font color="#FFFFFF">普通會員組升級方案設置</font></div>
      </td>
    </tr>
    <tr bgcolor='#FFFFFF'> 
      <td width='30%' align="left">普通會員默認升級方式:</td>
      <td width='70%' align="left"> 
        <input type="radio" name="webdbs[groupUpType]" value="0" $groupUpType[0]>
        按積分多少自動升級 
        <input type="radio" name="webdbs[groupUpType]" value="1" $groupUpType[1]>
        通過積分購買才能升級 </td>
    </tr>
    <tr bgcolor='#FFFFFF'> 
      <td width='30%' align="left">如果個別會員自願通過積分購買升級:</td>
      <td width='70%' align="left"> 有效期為
<input type="text" name="webdbs[groupTime]" size="5" value="$webdb[groupTime]">
        天</td>
    </tr>
    <tr bgcolor="#FFFFFF" align="center"> 
      <td colspan="2"> 
        <input type="hidden" name="step" value="1">
        <input type="hidden" name="action" value="list">
        <input type="submit" name="Submit" value="修改以上設置">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF" align="left"> 
      <td colspan="2">注意:<br>
        1. 按積分多少自動升級的話,當積分低于指定積分的話.將自動降級.<br>
        2. 通過積分購買才能升級的話,當超過有效期時,自動降級.<br>
        3. 普通會員組升級方式設置更改後.用戶下次登錄才會生效.<br>
        4. 注意:如果你輕易的更換有效日期,原有購買用戶不受影響,新購買級別的用戶才受影響.</td>
    </tr>
  </form>
  <form name="form1" method="post" action="index.php?lfj=$lfj&action=add">
  </form>
</table> 

<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="6"> 
        <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">ID代號</font></b></div>
      </td>
      <td width="14%"><b><font color="#990033">用戶組名稱</font></b></td>
      <td width="17%"><b><font color="#990033">用戶組性質</font></b></td>
      <td width="19%"><b><font color="#990033">用戶組成員</font></b></td>
      <td width="20%"><b><font color="#990033">升級積分</font></b></td>
      <td width="24%"><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='14%'> 
        <input type='text' name='postdb[{$rs[gid]}][grouptitle]' value='$rs[grouptitle]'>
      </td>
      <td width='17%' align="center">$rs[ifSystem]</td>
      <td width='19%' 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='20%' align="center"> 
        <!--
EOT;
if(!$rs[gptype]){
print <<<EOT
-->
        <input type='text' name='postdb[{$rs[gid]}][levelnum]' value='$rs[levelnum]' size="8">
        <!--
EOT;
}
print <<<EOT
-->
      </td>
      <td align="center" width="24%"><a href="index.php?lfj=$lfj&job=edit&gid=$rs[gid]" title="點擊修改權限"><img src="../member/images/button_properties.png" border="0"></a></td>
    </tr>
    <!--
EOT;
}print <<<EOT
-->
    <tr bgcolor="#FFFFFF" align="center"> 
      <td colspan="6"> 
        <input type="hidden" name="step" value="1">
        <input type="hidden" name="action" value="list">
        <input type="submit" name="Submit" value="修改以上設置">
      </td>
    </tr>
  </form>
  <form name="form1" method="post" action="index.php?lfj=$lfj&action=add">
  </form>
</table> 
<!--
EOT;
?>
-->
