<%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
<%@ Page language="c#" Inherits="Discuz.ForumPage.Admin.usergroupgrid" Codebehind="global_usergroupgrid.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>用户组列表</title>
		<LINK href="../styles/datagrid.css" type="text/css" rel="stylesheet">
		<link href="../styles/dntmanager.css" type="text/css" rel="stylesheet">
	    <script language="javascript" src="../js/common.js"></script>
</head>

	<body>
		<form id="Form1" method="post" runat="server">
	
<script language="javascript">
showhint(0, '增加用户组方法有两种:<br /><br />方法1: 进入<a href="global_addusergroup.aspx">用户组添加</a>, 增加一个新的用户组,同时编辑该组的其他设置. <br /><br />方法2: 点击下面的相关用户组记录上的 "添加" 链接,系统会用相关用户组的信息作为模板初始化"添加表单",同时编辑该组的其他设置. ');
</script>
			<cc1:datagrid id="DataGrid1" runat="server" IsFixConlumnControls="true" OnPageIndexChanged="DataGrid_PageIndexChanged" OnSortCommand="Sort_Grid" OnItemDataBound="DataGrid1_ItemDataBound" >
				<Columns>
						
					<asp:TemplateColumn HeaderText="">
						<ItemTemplate>
							<a href="global_editusergroup.aspx?groupid=<%# DataBinder.Eval(Container, "DataItem.groupid").ToString()%>">编辑</a>
							<%# DataGrid1.LoadSelectedCheckBox(DataBinder.Eval(Container, "DataItem.groupid").ToString())%>
						</ItemTemplate>
					</asp:TemplateColumn>
					
					<asp:TemplateColumn HeaderText="">
						<ItemTemplate>
							<a href="global_addusergroup.aspx?groupid=<%# DataBinder.Eval(Container, "DataItem.groupid").ToString()%>">添加</a>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:BoundColumn DataField="groupid" SortExpression="groupid" HeaderText="用户组ID" Visible="false" ></asp:BoundColumn>
					<asp:BoundColumn DataField="grouptitle" SortExpression="grouptitle" HeaderText="名称" ></asp:BoundColumn>
					<asp:BoundColumn DataField="creditshigher" SortExpression="creditshigher" HeaderText="积分下限" ></asp:BoundColumn>
					<asp:BoundColumn DataField="creditslower" SortExpression="creditslower" HeaderText="积分上限"></asp:BoundColumn>
					<asp:BoundColumn DataField="stars" SortExpression="stars" HeaderText="星星数目" readonly="true"></asp:BoundColumn>
					<asp:BoundColumn DataField="readaccess" SortExpression="readaccess" HeaderText="阅读权限"  readonly="true"></asp:BoundColumn>
					<asp:BoundColumn DataField="maxprice" SortExpression="maxprice" HeaderText="主题最高售价" readonly="true"></asp:BoundColumn>
					<asp:BoundColumn DataField="maxpmnum" SortExpression="maxpmnum" HeaderText="短消息最多条数"  readonly="true"></asp:BoundColumn>
					<asp:BoundColumn DataField="maxsigsize" SortExpression="maxsigsize" HeaderText="签名最多字节"  readonly="true"></asp:BoundColumn>
					<asp:BoundColumn DataField="maxattachsize" SortExpression="maxattachsize" HeaderText="附件最大尺寸 [单位:字节]" readonly="true"></asp:BoundColumn>
				</Columns>
			</cc1:datagrid>
			<div align="center"><cc1:Button id="EditUserGroup" runat="server" Text=" 提交 " OnClick="EditUserGroup_Click"></cc1:Button></div>
		
		</form>
		
		<%=footer%>
	</body>
</HTML>
