<%@ Page language="c#" Inherits="Discuz.ForumPage.Admin.announcegrid" Codebehind="global_announcegrid.aspx.cs" %>
<%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
<%@ Register TagPrefix="cc2" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
<%@ Register TagPrefix="cc4" 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">   
		<LINK href="../styles/calendar.css" type="text/css" rel="stylesheet">
		<script language="javascript" src="../js/common.js"></script>
	</HEAD>
	<body>
<form id="Form1" method="post" runat="server">
		<div style="display:none">
			<TABLE id="Table1" width="100%" cellSpacing="1" cellPadding="4">
				<TR>
					<TD colspan="2" class="td1"><b>公告搜索</b>
					</TD>
				</TR>
				<TR>
					<TD width="50%" class="td2">作者:</TD>
					<TD class="td2">
						<cc2:textbox id="poster" runat="server" RequiredFieldType="暂无校验" width="300"></cc2:textbox></TD>
				</TR>
				<TR>
					<TD class="td1">标题:</TD>
					<TD class="td1">
						<cc2:textbox id="title" runat="server" RequiredFieldType="暂无校验" width="300"></cc2:textbox></TD>
				</TR>
				<TR>
					<TD class="td2">发布日期:</TD>
					<TD class="td2">从
					<cc4:Calender id="postdatetimeStart" runat="server" ReadOnly="False" ScriptPath="../js/calendar.js"></cc4:Calender>
							到
							<cc4:Calender id="postdatetimeEnd" runat="server" ReadOnly="False" ScriptPath="../js/calendar.js"></cc4:Calender>
							
					<br />
					</TD>
				</TR>
				<TR>
					<TD class="td1" align=right></TD>
					<TD class="td1"><cc1:Button id="Search" runat="server" Text="开始搜索" ButtonImgUrl="../images/search.gif" ></cc1:Button>
					</TD>
				</TR>
			</TABLE>
		</div>
		<div style="width:98%;">
			<table>
				<TBODY>
					<tr>
						<td><input title="选中/取消选中 本页所有Case" onClick="CheckAll(this.form)" type="checkbox" name="chkall" id="chkall">全选/取消全选
							<cc1:Button id="DelRec" runat="server" Text=" 删 除 "   ButtonImgUrl="../images/del.gif"></cc1:Button>&nbsp;&nbsp;
							<button type="button" class="ManagerButton" onclick="javascript:window.location.href='global_addannounce.aspx';"><img src="../images/add.gif"/> 添加公告</button>
				
						</td>
					</tr>
				</TBODY>
			</table>
		</div>
		<cc1:datagrid id="DataGrid1" runat="server" OnPageIndexChanged="DataGrid_PageIndexChanged" OnSortCommand="Sort_Grid" >
				<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:TemplateColumn HeaderText="">
						<ItemTemplate>
							<a href="global_editannounce.aspx?id=<%# DataBinder.Eval(Container, "DataItem.id").ToString()%>">编辑</a>
						</ItemTemplate>
					</asp:TemplateColumn>
					
					<asp:BoundColumn DataField="ID" SortExpression="id" HeaderText="公告ID [递增]" Visible="false" ></asp:BoundColumn>
					<asp:BoundColumn DataField="poster" SortExpression="poster" HeaderText="发布者用户名" ></asp:BoundColumn>
					<asp:BoundColumn DataField="title" SortExpression="title" HeaderText="公告标题" ></asp:BoundColumn>
					<asp:BoundColumn DataField="displayorder" SortExpression="displayorder" HeaderText="显示顺序"></asp:BoundColumn>
					<asp:BoundColumn DataField="starttime" SortExpression="starttime" HeaderText="起始时间" ></asp:BoundColumn>
					<asp:BoundColumn DataField="endtime" SortExpression="endtime" HeaderText="结束时间"></asp:BoundColumn>
				</Columns>
			</cc1:datagrid>
		<br />
	</form>
		<%=footer%>
	</body>
</HTML>
