<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>会员权限管理</title>
<link href="img/base.css" rel="stylesheet" type="text/css">
</head>
<body background='img/allbg.gif' leftmargin='8' topmargin='8'>
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D1DDAA" align="center">
      <form name="form1" action="member_rank.php" method="post">
          <input type="hidden" name="dopost" value="save">
    <tr height="28">
      <td colspan="6" background='img/tbg.gif'>
      	<strong><u>会员管理</u> &gt; 会员权限管理：</strong>      </td>
    </tr>
    <tr bgcolor="#F8FCF1" height="24">
      <td colspan="6"><strong>级别名称和级别值：（注册会员这个级别不能删除，否则会员系统将会无法正常使用某些功能）</strong></td>
    </tr>
    <tr bgcolor="#FDFEE9" height="24" align="center">
        <td width="20%">级别名称</td>
      <td width="20%">允许发布</td>
      <td width="15%">允许访问</td>
      <td width="15%">类型</td>
      <td width="15%">状态</td>
      <td width="15%">权限</td>
    </tr>
	<?php
	$k=0;
	while($row = $dsql->GetObject())
	{
	  $k++;
	?>
	<input type="hidden" name="ID_<?php echo $k?>" value="<?php echo $row->id; ?>">
   <tr align="center" bgcolor="#FFFFFF" height="24">
       <td>
	      <input name="name_<?php echo $k?>" value="<?php echo $row->membername; ?>" type="text" id="name_<?php echo $k?>" class='autoinput alltxt' />	   </td>
     <td>
	      允许<input name="rank_<?php echo $k?>" value="<?php echo $row->rank; ?>"  type="hidden" id="rank_<?php echo $k?>" class='autoinput alltxt' /></td>
     <td>允许<input name="money_<?php echo $k?>"  value="<?php echo $row->money; ?>"  type="hidden" id="money_<?php echo $k?>" class='autoinput alltxt' /></td>
	   <td>
       <?php
			if($row->id<=5)
            {
            	echo "系统";
            }
            else
            {
            	echo "用户";
            }	
       ?>       </td>
     <td>
	     <input name="check_<?php echo $k?>" type="checkbox" id="check_<?php echo $k?>" <?php if($row->id == 3) echo 'disabled="disabled"';?>  class="np" value="1" checked='checked' />
       正在使用<input name="scores_<?php echo $k?>"  value="<?php echo $row->scores; ?>"  type="hidden" id="scores_<?php echo $k?>" class='autoinput alltxt' />	   </td>
	   <td align="center">
	  	 <a href="<?php echo "member_rank.php?id=$row->id&amp;dopost=concrete"?>">具体权限</a>	   </td>
    </tr>
	<?php
	}
	?>
      	<input type="hidden" name="idend" value="<?php echo $k; ?>">

    <tr bgcolor="#F8FCF1" height="24">
      <td colspan="6"><strong>新增一个级别：</strong>(由于会员升级是以级别值由低向高升级的，因此增加组别时需注意此值的设置)</td>
    </tr>
    <tr bgcolor="#FFFFFF" align="center" height="24">
        <td>
	    <input name="name_new" type="text" id="name_new" class='autoinput alltxt'  />	  </td>
    <td>
	    <input name="rank_new" type="text" id="rank_new" class='autoinput alltxt'  />	  </td>
    <td>
      <input name="money_new" type="text" id="money_new" class='autoinput alltxt' />    </td>
    <td>
      <input name="scores_new" type="text" id="scores_new" class='autoinput alltxt'  />    </td>
    <td>
      <input name="check_new" type="checkbox" id="check_new" class="np" value="1" />
      增加等级    </td>
    <td>&nbsp;</td>
    </tr>
    <tr>
      <td height="24" colspan="6" bgcolor="#F8FCF1">&nbsp;</td>
    </tr>
    <tr>
      <td height="36" colspan="6" align="center" bgcolor="#FFFFFF">
      	<input name="imageField" type="image" src="img/button_save.gif" width="60" height="22" border="0" class="np" /></td>
    </tr>
  </form>
</table>
</body>
</html>
