<%@ Control Language="c#" AutoEventWireup="false" Codebehind="Search.ascx.cs" Inherits="WebUI.Page.Search" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<script language="javascript" type="text/javascript">
<!--
function checkFormAll(chk)
{
	myform = document.forms[0];
	for( var i = 0; i < myform.elements.length; i++ )
	{
		if ( myform.elements[i].type=="checkbox" )
		{
			myform.elements[i].checked = chk;
		}
	}
}
function go(i)
{
	var theform;
	if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) {
		theform = document.forms["myform2"];
	}
	else {
		theform = document.myform2;
	}
	theform.PageIndex.value = i;
	theform.submit();		
}
//-->
</script>
<input type="hidden" name="PageIndex" id="PageIndex" value="<%= this.PageIndex%>">
				<ASP:DataGrid id="DataGrid1" runat="server" Width="100%" OnItemCreated="DataGrid1_ItemCreated"
					CellPadding="0" CellSpacing="0" ItemStyle-CssClass="tdbg"
					AutoGenerateColumns="false" ShowFooter="false"
					ShowHeader="True" Align="center" AllowPaging="True">
					<PagerStyle Visible="False"/>
					<HeaderStyle HorizontalAlign="center" CssClass="summary-title" Height="25" />
					<ItemStyle Height="22" />
					<EditItemStyle CssClass="tdbg-dark" />
					<Columns>
						<asp:TemplateColumn ItemStyle-Width="45%" HeaderText="文章标题">
							<ItemTemplate>
								&nbsp;&nbsp;<a href="?mms=Page^Article&ClassID=<%# DataBinder.Eval(Container.DataItem, "ClassID")%>&SubID=<%# DataBinder.Eval(Container.DataItem, "ClassID")%>&id=<%# DataBinder.Eval(Container.DataItem, "ID")%>" target=_blank><%# DataBinder.Eval(Container.DataItem, "Title")%></a>
							</ItemTemplate>
						</asp:TemplateColumn>						
						<asp:BoundColumn HeaderText="所属栏目" DataField="ClassName" ReadOnly="true">
							<ItemStyle HorizontalAlign="Center" Width="15%" />
						</asp:BoundColumn>
						<asp:BoundColumn HeaderText="日期" DataField="ActDatetime" ReadOnly="true">
							<ItemStyle HorizontalAlign="Center" Width="12%" />
						</asp:BoundColumn>							
					</Columns>
				</ASP:DataGrid>
				<table width="100%"><tr><td height="25" align="center"><%= this.PageNavigation%></td></tr></table>