<%@ Page Inherits="Dvbbs.bbs.UI.Admin.admin_role_alter" %>
<%@ Register tagPrefix="Dvbbs" namespace="Dvbbs.Controls" assembly="Dvbbs.Web"%>
<%@ Register tagPrefix="bbs" tagName="AdminHeader" src="controls/admin_header.ascx"%>
<%@ Register tagPrefix="bbs" tagName="AdminFooter" src="controls/admin_footer.ascx"%>
<bbs:AdminHeader title="修改用户组" runat="server"/>
<script language="javascript">

function chkPost()
{
	var f = document.forms[0];
	if (f.rolename.value == '')
	{
		alert("没有填写用户组名称");
		f.rolename.focus();
		return false;
	}
	if (f.limexp.value == '')
	{
		alert("没有填写积分限制");
		f.limexp.focus();
		return false;
	}
	if (f.rank.value == '')
	{
		alert("没有填写星星数");
		f.rank.focus();
		return false;
	}
	
	return true;
}
</script>

<form runat="server">
<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0" ID="Table4">
<tr>
<td colspan="2" class="title">修改用户组 (带<font class="nf1">*</font>为必填)</td>
</tr>
<tr>
<td class="left" width="30%">用户组所属类</td>
<td class="right" width="70%">
	<asp:DropDownList ID="roletype" runat="server" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)">
	<asp:ListItem Value="3" Text="会员组" />
	<asp:ListItem Value="2" Text="特殊组" />
	<asp:ListItem Value="0" Text="管理组" />
	</asp:DropDownList>
</td>
</tr>
<tr>
<td class="left">新用户组的名称</td>
<td class="right"><asp:TextBox id="rolename" maxlength="100" style="width:180px" runat="server"  onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"
/>
<font class="nf1">*</font></td>
</tr>
<tr>
<td class="left">新用户组在系统中的名称</td>
<td class="right"><asp:TextBox id="sys_title" maxlength="100" style="width:180px" runat="server" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"/><span> <br/>仅在选择添加为特殊组时有效</span></td>
</tr>
<tr>
<td class="left">积分限制/最小积分</td>
<td class="right"><asp:TextBox id="limexp" text="0" maxlength="10" style="width:80px" runat="server" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"/> <span class="nf1">*</span><br/><span> 非会员组类可以不设置</span></td>
</tr>
<tr>
<td class="left">级别/星星数</td>
<td class="right"><asp:TextBox id="rank" text="0" maxlength="10" style="width:80px" runat="server" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"/>
<font class="t2">*</font></td>
</tr>
<tr>
<td class="left">名称渲染颜色</td>
<td class="right"><asp:TextBox id="color" text="#000000" maxlength="10" style="width:80px" runat="server" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"/></td>
</tr>
<tr>
<td class="left">徽章</td>
<td class="right"><asp:TextBox id="badge" maxlength="100" style="width:180px" runat="server" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"/></td>
</tr>
<tr>
<td class="left">组(等级)图例</td>
<td class="right"><asp:TextBox id="titlepic" maxlength="100" style="width:180px" runat="server" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"/></td>
</tr>
<tr>
<td class="left">组(等级)图片</td>
<td class="right"><asp:TextBox id="grouppic" maxlength="100" style="width:180px" runat="server" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"/></td>
</tr>
<tr>
<td colspan="2" class="bottom" align="center"><input type="submit" id="save" class="button" value="保存修改" onclick="return chkPost()" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"/></td>
</tr>
</table>
</form>
<bbs:AdminFooter runat="server"/>
