<%@Page Language="C#" Inherits="IWMS.Admin.SelTopic" MasterPageFile="admin_pop.master"%>
<asp:Content ContentPlaceHolderId="cphHead" runat="server">
	<script type="text/javascript">
	function selTopic(topic,topicid)
	{
		parent.SetTopic(topic,topicid);
	}
	</script>
</asp:Content>

<asp:Content ContentPlaceHolderId="cphMain" runat="server">

	<div class="mframe">
	<div class="tl"></div>
	<div class="rt"></div>
	<div class="tm">
		<table width="95%"><tr><td>
		<span class="tt">选择专题</span>
		</td><td align="right">
		<form action="" method="get">
		<input type="text" size="10" name="keyword"/> <input type="submit" value="搜索"/>
		</form>
		</td></tr>
		</table>
	</div>
	<div class="wrapper">
	<div class="ml"></div>
	<div class="mr"></div>
	<div class="mm">
	<form id="myForm" runat="server">
		<ASP:DataGrid id="MyDataGrid" runat="server"
				Width="100%"
				align="center"
				ShowHeader="true"
				ShowFooter="false"
				AllowPaging="true"
				PageSize="9"
				AutoGenerateColumns="false"
				DataKeyField="Topicid"
				OnPageIndexChanged="MyDataGrid_Page"
				CssClass="grid"
				HeaderStyle-CssClass="gridHead"
				ItemStyle-CssClass="tdbg"
				CellPadding="5"
				CellSpacing="0" >
			<HeaderStyle HorizontalAlign="center" />
			<PagerStyle />
			
			<Columns>
				<asp:TemplateColumn
					HeaderText="专题名"
					>
					<ItemTemplate>
					<a href="javascript:selTopic('<%#(string)Eval("topic")%>','<%#Eval("topicid")%>')"><%#(string)Eval("topic")%></a>
					</ItemTemplate>
				</asp:TemplateColumn>
				<asp:BoundColumn
					HeaderText="上级专题"
					DataField="pname" >
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="150"/>
				</asp:BoundColumn>
				<asp:BoundColumn
					HeaderText="新闻数"
					DataField="newsNum" >
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="50"/>
				</asp:BoundColumn>
			</Columns>
		</ASP:DataGrid>	
	</form>
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>
</asp:Content>