<%@ Page Language="C#" AutoEventWireup="true" CodeFile="WebNewsManage.aspx.cs" Inherits="admin_WebNews_WebNewsManage" %>
<%@ Register Src="../../Control/PageNo.ascx" TagName="PageNo" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>网站公告管理</title>
<link rel="stylesheet" href="../skin/style.css" type="text/css" />
<script type="text/javascript" src="../../js/jquery.js"></script>
</head>
<body>
<form id="form1" runat="server">
<div class="itemtitle">
  <h3>快捷搜索</h3>
</div>
<div class="itemtitle_tect">
<p>
关键字：<asp:TextBox ID="txtTitle" runat="server"></asp:TextBox>
				所属类别：<asp:DropDownList ID="dropType" runat="server" Visible="true">
					<asp:ListItem>所有类别</asp:ListItem>
					<asp:ListItem Value="网站公告">网站公告</asp:ListItem>
					<asp:ListItem Value="网站活动">网站活动</asp:ListItem>
					<asp:ListItem Value="网站新闻">网站新闻</asp:ListItem>
				</asp:DropDownList>
				<asp:Button ID="btnSelect" runat="server" Text="立刻查找" OnClick="btnSelect_Click" CssClass="i_button" />
</p>
</div>
<div class="clr"></div>
<div class="partition">
  <div class="Option">
                <asp:Label ID="Label5" runat="server"><strong>快捷操作</strong></asp:Label>
                <span class="pl"><asp:LinkButton ID="btnAdd" runat="server" Text="添加新闻" PostBackUrl="WebNewsAdd.aspx"></asp:LinkButton></span>
   </div>
  </div>
<div class="clr"></div>
<div class="talbe_border">
<asp:GridView ID="grdWebNews" runat="server" AutoGenerateColumns="False" CellPadding="0" GridLines="None" DataKeyNames="ID" AllowPaging="False" OnPageIndexChanging="grdWebNews_PageIndexChanging" CssClass="talbe_list" OnRowDataBound="grdWebNews_RowDataBound">
	<Columns>
		<asp:TemplateField>
			<ItemTemplate>
				<asp:CheckBox ID="CheckBox1" runat="server" />
			</ItemTemplate>
			<HeaderStyle CssClass="th20 tou" />
			<ItemStyle CssClass="nolet" /> 
		</asp:TemplateField>
		<asp:BoundField HeaderText="信息标题" DataField="Title">
		<ItemStyle CssClass="left2" />
		</asp:BoundField>
		<asp:BoundField DataField="Type" HeaderText="所属类别">
		<ItemStyle CssClass="th80" />
		</asp:BoundField>
		<asp:TemplateField HeaderText="发布日期">
			<ItemTemplate>
				<%#GetShortDate( DataBinder.Eval(Container.DataItem, "AddDate").ToString())%>
			</ItemTemplate>
			<ItemStyle CssClass="th80" />
		</asp:TemplateField>
		<asp:TemplateField HeaderText="操作选项">
			<ItemTemplate>
			<a href='WebNewsEdit.aspx?ID=<%# DataBinder.Eval(Container.DataItem,"ID")%>'>编辑</a> | 
			<asp:LinkButton CommandName="delete" ID="lnkdelete" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID") %>' OnCommand="lnkdelete_Command" runat="server" Text="删除" OnClientClick="return confirm('你确定要删除吗?')"></asp:LinkButton>
			</ItemTemplate>
			<ItemStyle CssClass="th80" />
		</asp:TemplateField>
	</Columns>
	<HeaderStyle CssClass="header" />
</asp:GridView>
<asp:Label ID="lblMessage" runat="server" Text="Label" Visible="False"></asp:Label>
<div class="Paging">
<p>
  <uc1:PageNo ID="PageNo1" runat="server" />
</p>
<input id="CheckBox2" name="CheckBox2" type="checkbox" onclick="SelectAll();" />全选
<asp:Button ID="btnDelete" runat="server" Text="批量删除" OnClick="btnDelete_Click" CssClass="i_button" />
</div>
</div>
    </form>
</body>
</html>
