<%@ Page language="c#" Codebehind="ArticleCategory.aspx.cs" AutoEventWireup="true" Inherits="XpShop.Manage.ArticleCategory" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>ArticleCategory</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<LINK href="inc/style.css" type="text/css" rel="stylesheet">
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<table class="tableBorder" cellSpacing="0" cellPadding="0" width="640" align="center" border="0">
				<tr>
					<th class="tableHeaderText" height="25" align="left">
						&nbsp;&nbsp; 文章类别管理</th>
					<th class="tableHeaderText" align="right">
						<a href="http://www.xpshop.cn" target="_blank"><img src="Images/admin_help.gif" border="0" alt="帮助"></a>&nbsp;
					</th>
				<tr>
				</tr>
			</table>
			<table class="tableBorder" cellSpacing="0" cellPadding="0" width="640" align="center" border="0">
				<tr>
					<td height="23" class="forumRowHighlight">
						<asp:datagrid id="dgCategoryList" runat="server" AllowPaging="False" PagerStyle-Mode="NumericPages"
							AutoGenerateColumns="False" DataKeyField="ArticleCategoryID" Width="100%" HorizontalAlign="Center"
							HeaderStyle-CssClass="summary-title">
							<HeaderStyle Font-Bold="True"></HeaderStyle>
							<Columns>
								<asp:TemplateColumn HeaderText="分类ID" ItemStyle-Width="40" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
									<HeaderStyle></HeaderStyle>
									<ItemTemplate>
										<%#DataBinder.Eval(Container.DataItem,"ArticleCategoryID")%>
									</ItemTemplate>
								</asp:TemplateColumn>
								
								<asp:TemplateColumn HeaderText="类别名称" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">
									<ItemTemplate>
										<%#DataBinder.Eval(Container.DataItem,"CategoryName")%>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="文章数" ItemStyle-Width="60" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
									<HeaderStyle></HeaderStyle>
									<ItemTemplate>
										<%#DataBinder.Eval(Container.DataItem,"Number")%>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="" ItemStyle-Width="30" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
									<HeaderStyle></HeaderStyle>
									<ItemTemplate>
										<a href='ArticleCategoryAdd.aspx?CategoryID=<%#DataBinder.Eval(Container.DataItem,"ArticleCategoryID")%>'>
											修改</a>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:ButtonColumn ItemStyle-Width="30" ItemStyle-HorizontalAlign="Center" Text="&lt;div id=&quot;de&quot; onclick=&quot;javascript:return confirm('真的要删除吗？此操作将删除属于该类别的所有文章！')&quot;&gt;删除&lt;/div&gt;"
									HeaderText="" CommandName="Delete"></asp:ButtonColumn>
							</Columns>
						</asp:datagrid>
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
