<%@ Page language="c#" Inherits="Discuz.ForumPage.Admin.iconfilegrid" Codebehind="forum_iconfilegrid.aspx.cs" %>
<%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
<!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"><br />
		<cc1:datagrid id="DataGrid1" runat="server" OnCancelCommand="DataGrid_Cancel" OnEditCommand="DataGrid_Edit"
				OnPageIndexChanged="DataGrid_PageIndexChanged" OnSortCommand="Sort_Grid" OnUpdateCommand="DataGrid_Update"
				OnDeleteCommand="DataGrid_Delete">
				<Columns>
				
				    <asp:TemplateColumn HeaderText="选择">
						<ItemTemplate>
							<INPUT id="id" onclick="javascript:SH_SelectOne(this)" type="checkbox" value="<%# DataBinder.Eval(Container, "DataItem.id").ToString() %>"	name="id">							</asp:Label>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:BoundColumn DataField="ID" SortExpression="id" HeaderText="表情id" Visible="false" ></asp:BoundColumn>
					
					<asp:BoundColumn DataField="displayorder" SortExpression="displayorder" HeaderText="显示顺序"></asp:BoundColumn>
					<asp:BoundColumn DataField="type" SortExpression="type" HeaderText="类型" Visible="false"></asp:BoundColumn>
					<asp:BoundColumn DataField="code" SortExpression="code" HeaderText="代码" ></asp:BoundColumn>
					<asp:BoundColumn DataField="url" SortExpression="url" HeaderText="文件名"></asp:BoundColumn>
					<asp:BoundColumn DataField="url" HeaderText="图片" readonly="true"></asp:BoundColumn>
								
					<asp:TemplateColumn HeaderText="图片">
						<ItemTemplate>
							<asp:Label id=Label4 runat="server" Text='<%# PicStr(DataBinder.Eval(Container, "DataItem.url").ToString()) %>'>
							</asp:Label>
						</ItemTemplate>
					</asp:TemplateColumn>
			
				</Columns>
			</cc1:datagrid>
			
			
		
			<table cellspacing="1" cellpadding="4" width="100%" align="center" class="table1" style="margin: 10px;">
				<TBODY>
					<tr>
						<td class="category"><input title="选中/取消选中 本页所有Case" onclick="CheckAll(this.form)" type="checkbox" name="chkall" id="chkall">全选/取消全选 &nbsp; 
							<cc1:Button id="DelRec" runat="server" Text=" 删 除 " ButtonImgUrl="../images/del.gif"></cc1:Button>  &nbsp; 
							<button type="button" class="ManagerButton" onclick="javascript:window.location.href='forum_addiconfile.aspx';"><img src="../images/add.gif" /> 添加表情</button></span>
				
							
							</TD></TR></TBODY></TABLE>
	
		</form>
			
			<%=footer%>
	</body>
</HTML>
