<%@ Page Inherits="Dvbbs.bbs.UI.Admin.admin_role_add" %>
<%@ 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="Table1">
		<tr>
			<td class="title" colspan="7">会员组列表</td>
			<td align="right" class="td1"><a href="#top"><img src="images/p_up.gif" border="0" title="顶部"></a>&nbsp;<a href="#bottom"><img src="images/p_down.gif" border="0" title="底部"></a>&nbsp;</td>
		</tr>
		<tr>
			<td width="80"><b>操作</b></td>
			<td width="200"><b>用户组(等级)名称</b></td>
			<td><b>积分限制</b></td>
			<td><b>星星数</b></td>
			<td><b>徽章</b></td>
			<td><b>积分策略</b></td>
			<td><b>基本权限</b></td>
			<td><b>用户列表</b></td>
		</tr>
		<asp:Repeater enableviewstate="false" id="memberrolelist" runat="server">
			<ItemTemplate>
				<tr>
					<td width="80"><Dvbbs:Anchor id="alter" runat="server" />
						|
						<Dvbbs:Anchor id="remove" runat="server" /></td>
					<td><Dvbbs:Span id="rolename" runat="server" /></td>
					<td><Dvbbs:Span id="limexp" runat="server" /></td>
					<td><Dvbbs:Span id="rank" runat="server" /></td>
					<td><Dvbbs:Span id="badge" runat="server" /></td>
					<td><Dvbbs:Anchor id="exp_strategy" text="查看/编辑" runat="server" /></td>
					<td><Dvbbs:Anchor id="pop_strategy" text="查看/编辑" runat="server" /></td>
					<td><Dvbbs:Anchor id="userlist" text="查看/添加" runat="server" /></td>
				</tr>
			</ItemTemplate>
		</asp:Repeater>
	</table>
	<br />
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0" ID="Table2">
		<tr>
			<td class="title" colspan="6">
				特殊组列表</td>
			<td align="right" class="td1"><a href="#top"><img src="images/p_up.gif" border="0" title="顶部"></a>&nbsp;<a href="#bottom"><img src="images/p_down.gif" border="0" title="底部"></a>&nbsp;</td>
		</tr>
		<tr>
			<td width="80"><b>操作</b></td>
			<td width="200"><b>用户组(等级)名称</b></td>
			<td><b>星星数</b></td>
			<td><b>徽章</b></td>
			<td><b>积分策略</b></td>
			<td><b>基本权限</b></td>
			<td><b>用户列表</b></td>
		</tr>
		<asp:Repeater enableviewstate="false" id="specialrolelist" runat="server">
			<ItemTemplate>
				<tr>
					<td width="80"><Dvbbs:Anchor id="alter" runat="server" />
						|
						<Dvbbs:Anchor id="remove" runat="server" /></td>
					<td><Dvbbs:Span id="rolename" runat="server" /></td>
					<td><Dvbbs:Span id="rank" runat="server" /></td>
					<td><Dvbbs:Span id="badge" runat="server" /></td>
					<td><Dvbbs:Anchor id="exp_strategy" text="查看/编辑" runat="server" /></td>
					<td><Dvbbs:Anchor id="pop_strategy" text="查看/编辑" runat="server" /></td>
					<td><Dvbbs:Anchor id="userlist" text="查看/添加" runat="server" /></td>
				</tr>
			</ItemTemplate>
		</asp:Repeater>
	</table>
	<br />
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0" ID="Table3">
		<tr>
			<td class="title" colspan="6">管理组列表</td>
			<td align="right" class="td1"><a href="#top"><img src="images/p_up.gif" border="0" title="顶部"></a>&nbsp;<a href="#bottom"><img src="images/p_down.gif" border="0" title="底部"></a>&nbsp;</td>
		</tr>
		<tr>
			<td width="80"><b>操作</b></td>
			<td width="200"><b>用户组(等级)名称</b></td>
			<td><b>星星数</b></td>
			<td><b>徽章</b></td>
			<td><b>积分策略</b></td>
			<td><b>基本权限</b></td>
			<td><b>用户列表</b></td>
		</tr>
		<asp:Repeater enableviewstate="false" id="managerrolelist" runat="server">
			<ItemTemplate>
				<tr>
					<td width="80"><Dvbbs:Anchor id="alter" runat="server" />
						|
						<Dvbbs:Anchor id="remove" runat="server" /></td>
					<td><Dvbbs:Span id="rolename" runat="server" /></td>
					<td><Dvbbs:Span id="rank" runat="server" /></td>
					<td><Dvbbs:Span id="badge" runat="server" /></td>
					<td><Dvbbs:Anchor id="exp_strategy" text="查看/编辑" runat="server" /></td>
					<td><Dvbbs:Anchor id="pop_strategy" text="查看/编辑" runat="server" /></td>
					<td><Dvbbs:Anchor id="userlist" text="查看/添加" runat="server" /></td>
				</tr>
			</ItemTemplate>
		</asp:Repeater>
	</table>
	<br />
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0" ID="Table4">
		<tr>
			<td class="title">添加新用户组 (带<font class="nf1">*</font>为必填)</td>
			<td align="right" class="td1"><a href="#top"><img src="images/p_up.gif" border="0" title="顶部"></a>&nbsp;<a href="#bottom"><img src="images/p_down.gif" border="0" title="底部"></a>&nbsp;</td>
		</tr>
		<tr>
			<td class="left" width="30%">用户组所属类</td>
			<td class="right" width="70%">
				<select name="roletype">
					<option value="3" selected="selected">会员组</option>
					<option value="2">特殊组</option>
					<option value="0">管理组</option>
				</select></td>
		</tr>
		<tr>
			<td class="left">新用户组的头衔</td>
			<td class="right"><asp:TextBox id="rolename" maxlength="100" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)"
					onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" style="width:180px" runat="server" />
				<font class="t2">*</font></td>
		</tr>
		<tr>
			<td class="left">新用户组在系统中的名称</td>
			<td class="right"><asp:TextBox id="sys_title" maxlength="100" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)"
					onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" style="width:180px" runat="server" /></td>
		</tr>
		<tr>
			<td class="left">积分限制/最小积分</td>
			<td class="right"><asp:TextBox id="limexp" text="0" maxlength="10" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)"
					onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" style="width:80px" runat="server" />
				<font color="red">*</font>&nbsp;&nbsp;<span>非会员组类可以不设置</span></td>
		</tr>
		<tr>
			<td class="left">级别/星星数</td>
			<td class="right"><asp:TextBox id="rank" text="0" maxlength="10" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)"
					onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" style="width:80px" runat="server" />
				<font color="red">*</font></td>
		</tr>
		<tr>
			<td class="left">名称渲染颜色</td>
			<td class="right"><asp:TextBox id="color" text="#000000" maxlength="10" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)"
					onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" style="width:80px" runat="server" /></td>
		</tr>
		<tr>
			<td class="left">徽章</td>
			<td class="right"><asp:TextBox id="badge" maxlength="100" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)"
					onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" style="width:180px" runat="server" /></td>
		</tr>
		<tr>
			<td class="left">组(等级)图例</td>
			<td class="right"><asp:TextBox id="titlepic" maxlength="100" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)"
					onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" style="width:180px" value="icon/online_member.gif"
					runat="server" /></td>
		</tr>
		<tr>
			<td class="left">组(等级)图片<a name='bottom'></a></td>
			<td class="right"><asp:TextBox id="grouppic" maxlength="100" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)"
					onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" style="width:180px" value=""
					runat="server" /></td>
		</tr>
		<tr>
			<td colspan="2" colspan="2" align="center" class="bottom"><input type="submit" id="save" class="button" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)"
					onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" value="添 加" onclick="return chkPost()" /></td>
		</tr>
	</table>
</form>
<br />
<bbs:AdminFooter runat="server" />
