<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>會員權限管理</title>
<link href="css/base.css" rel="stylesheet" type="text/css">
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<form name="form1" action="member_rank.php" method="post">
  <input type="hidden" name="dopost" value="save">
  <table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center">
    <tr height="28">
      <td colspan="6" background='images/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="18%">會員等級值</td>
      <td width="15%">默認金幣</td>
      <td width="15%">默認積分</td>
      <td width="16%">類型</td>
      <td width="16%">狀態</td>
    </tr>
    <?php
	$k=0;
	while($row = $dsql->GetObject())
	{
	  $k++;
	?>
    
    <tr align="center" bgcolor="#FFFFFF" height="24">
      <td><input type="hidden" name="ID_<?php echo $k?>" value="<?php echo $row->id; ?>"><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="text" id="rank_<?php echo $k?>" class='autoinput alltxt' /></td>
      <td><input name="money_<?php echo $k?>"  value="<?php echo $row->money; ?>"  type="text" id="money_<?php echo $k?>" class='autoinput alltxt' /></td>
      <td><input name="scores_<?php echo $k?>"  value="<?php echo $row->scores; ?>"  type="text" id="scores_<?php echo $k?>" class='autoinput alltxt' /></td>
      <td align="center">
      <?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' />
        正在使用 </td>
    </tr>
    <?php
	}
	?>
    <input type="hidden" name="idend" value="<?php echo $k; ?>">
    <tr bgcolor="#F8FCF1" height="24">
      <td colspan="6"><strong>新增一個級別：</strong>(由於會員升級是以級別值由低向高昇級的，因此增加組別時需注意此值的設置，<font color='red'><u>如果你增加新的會員組的級別值低於10，將自動被視為普通的註冊會員。</u></font>) </td>
    </tr>
    <tr bgcolor="#FFFFFF" align="center" height="24">
      <td> 級別名稱 </td>
      <td> 級別值(待審為0,註冊會員為10) </td>
      <td> 默認金幣 </td>
      <td> 默認積分 </td>
      <td> 操作設置 </td>
      <td>&nbsp;</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" value='20' class='autoinput alltxt'  /></td>
      <td><input name="money_new" type="text" id="money_new" value='0' class='autoinput alltxt' /></td>
      <td><input name="scores_new" type="text" id="scores_new" value='100' class='autoinput alltxt'  /></td>
      <td><input name="check_new" type="checkbox" id="check_new" class="np" value="1" checked />
        增加等級 </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="images/button_save.gif" width="60" height="22" border="0" class="np" /></td>
    </tr>
  </table>
</form>
</body>
</html>
