<%@Page Language="C#" Inherits="IWMS.Admin.TopicMan" MasterPageFile="admin.master"%>
<asp:Content ContentPlaceHolderId="cphMain" runat="server">

	<form id="myForm" runat="server">
	
	<div class="mframe">
	<div class="tl"></div>
	<div class="rt"></div>
	<div class="tm">
		<span class="tt">管理专题</span>
	</div>
	<div class="wrapper">
	<div class="ml"></div>
	<div class="mr"></div>
	<div class="mm">
		<asp:Label id="myLabel" class="msgBar" EnableViewState="false" runat="server"/>
		<ASP:DataGrid id="MyDataGrid" runat="server"
				Width="100%"
				align="center"
				ShowHeader="true"
				ShowFooter="false"
				CellPadding="6"
				AllowPaging="true"
				AutoGenerateColumns="false"
				DataKeyField="Topicid"
				OnDeleteCommand="MyDataGrid_Delete"
				OnPageIndexChanged="MyDataGrid_Page"
				OnItemDataBound="MyDataGrid_ItemBound"
				CssClass="grid"
				BorderColor="#cccccc"
				HeaderStyle-CssClass="gridHead"
				ItemStyle-CssClass="tdbg"
				CellSpacing="0" >
			<EditItemStyle CssClass="tdbg-dark" />
			<PagerStyle Mode="NumericPages" PageButtonCount="10" />
		
			<Columns>
				<asp:BoundColumn
					HeaderText="专题ID"
					DataField="Topicid"
					ReadOnly="true" >
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="50"/>
				</asp:BoundColumn>
				<asp:TemplateColumn
					HeaderText="专题名"
					>
					<ItemTemplate>
						<a href="admin_topicAdd.aspx?id=<%#Eval("topicid")%>"><%#Eval("topic")%></a>
					</ItemTemplate>
				</asp:TemplateColumn>
				<asp:BoundColumn
					HeaderText="上级专题"
					DataField="pname"
					ReadOnly="true" >
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="200"/>
				</asp:BoundColumn>
				<asp:BoundColumn
					HeaderText="文章数"
					DataField="newsNum"
					ReadOnly="true" >
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="50"/>
				</asp:BoundColumn>
				<asp:ButtonColumn
					ButtonType="LinkButton"
					CommandName="Delete"
					Text="删除" >
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="40"/>
				</asp:ButtonColumn>
					
			</Columns>
		</ASP:DataGrid>
		
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>
	
	</form>

</asp:Content>