<%@Page Language="C#" Inherits="IWMS.Admin.BulletinMan" MasterPageFile="admin.master"%>
<asp:Content ContentPlaceHolderId="cphHead" runat="server">
	<%BtDelete.Attributes["onclick"] = "return confirm_batch_delete()";%>
</asp:Content>
<asp:Content ContentPlaceHolderId="cphMain" runat="server">

	<div class="mframe">
	<div class="tl"></div>
	<div class="rt"></div>
	<div class="tm">
		<table width="98%" cellpadding="0" cellspacing="0">
			<tr><td>
				<span class="tt">管理公告</span>
			</td><td align="right">
				<form action="" method="get">
				<input type="text" size="15" name="keyword"/>
				<select name="where" >
					<option value="title">搜索标题</option>
				</select>
				<input type="submit" value="搜索"/>
				</form>
			</td>
		</tr></table>
	</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"/>
		<form id="myForm" runat="server">
		<ASP:DataGrid id="MyDataGrid" runat="server"
				Width="100%"
				align="center"
				ShowHeader="true"
				ShowFooter="false"
				AllowPaging="true"
				AutoGenerateColumns="false"
				DataKeyField="id"
				OnPageIndexChanged="MyDataGrid_Page"
				CssClass="grid"
				BorderColor="#cccccc"
				HeaderStyle-CssClass="gridHead"
				ItemStyle-CssClass="tdbg"
				PageSize="10"
				CellPadding="6"
				CellSpacing="0"
				>
			
			<Columns>
				<asp:BoundColumn
					HeaderText="ID"
					DataField="id">
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="40"/>
				</asp:BoundColumn>
				<asp:TemplateColumn>
					<ItemTemplate>
						<asp:CheckBox id="chk" runat="server"/>
					</ItemTemplate>
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="20"/>
				</asp:TemplateColumn>
				<asp:TemplateColumn
					HeaderText="标题"
					>
					<ItemTemplate>
						<a href="admin_bulletinAdd.aspx?id=<%#Eval("id")%>"><%#Eval("title")%></a>
					</ItemTemplate>
					<ItemStyle Width="" HorizontalAlign="left"/>
				</asp:TemplateColumn>
				<asp:BoundColumn
					HeaderText="发布人"
					DataField="membername">
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="100"/>
				</asp:BoundColumn>
				<asp:BoundColumn
					HeaderText="开始日期"
					DataField="addDate"
					DataFormatString="{0:yyyy-MM-dd}"
					>
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="100"/>
				</asp:BoundColumn>
				<asp:BoundColumn
					HeaderText="结束日期"
					DataField="endDate"
					DataFormatString="{0:yyyy-MM-dd}"
					>
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="100"/>
				</asp:BoundColumn>
				<asp:TemplateColumn
					HeaderText="结束"
					>
					<ItemTemplate>
						<font color="red" face="Arial"><%#((DateTime)Eval("endDate"))>DateTime.Now ? "No" : "Yes"%></font>
					</ItemTemplate>
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="50"/>
				</asp:TemplateColumn>
			</Columns>
		</ASP:DataGrid>
		
		<table>
		<tr><td>
			<asp:Button id="BtDelete" OnClick="BtDelete_OnClick" Text="删除" runat="server"/>
		</td></tr>
		</table>
		</form>
		
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>

</asp:Content>