<%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
<%@ Page language="c#" Inherits="Discuz.ForumPage.Admin.onlinelistgrid" Codebehind="global_onlinelistgrid.aspx.cs"  AutoEventWireup="false"%>
<!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, '<ul><li>本功能用于自定义首页及主题列表页显示的在线会员分组及图例, 只在在线列表功能打开时有效. </li></ul><ul><li>用户组图例处空白为不区分该组用户, 所有未区分的用户组将统一归入第一行的“普通用户”项. </li></ul><ul><li>用户组图例中可直接选择相应的图片或请将您的相应图片文件上传到 站点:images/groupicons 目录中, 并在此窗口中选择相应的图片文件名. </li></ul><ul><li>组头衔最大长度为50个字符</li></ul>');
</script>

                &nbsp;&nbsp;<button type="button" class="ManagerButton" onclick="javascript:window.location.href='global_uploadonlieninco.aspx';"><img src="../images/add.gif"/> 用户组图例上传</button><br /><br />
			
                
             <cc1:datagrid id="DataGrid1" runat="server" OnCancelCommand="DataGrid_Cancel" OnEditCommand="DataGrid_Edit"
				OnPageIndexChanged="DataGrid_PageIndexChanged" OnSortCommand="Sort_Grid" OnUpdateCommand="DataGrid_Update">
				<Columns>
					<asp:BoundColumn DataField="groupid" HeaderText="groupid [递增]" Visible="false" ></asp:BoundColumn>
					<asp:BoundColumn DataField="newdisplayorder"  HeaderText="显示顺序" ></asp:BoundColumn>
					<asp:BoundColumn DataField="title"  HeaderText="组头衔" ></asp:BoundColumn>
					<asp:TemplateColumn HeaderText="用户组图例">
					        <ItemTemplate>
                                <%# DataBinder.Eval(Container.DataItem,"img")%>
                            </ItemTemplate>

							<EditItemTemplate>
							<asp:DropDownList id="imgdropdownlist" runat="server"></asp:DropDownList>
						    </EditItemTemplate>
					</asp:TemplateColumn>
								
					<asp:TemplateColumn HeaderText="图例显示">
						<ItemTemplate>
						   <%# GetImgLink(DataBinder.Eval(Container, "DataItem.img").ToString())%>
						</ItemTemplate>
					</asp:TemplateColumn>
						
				</Columns>
			</cc1:datagrid>
		</form>
		
		<%=footer%>
	</body>
</HTML>
