<%@ Page Language="C#" MasterPageFile="~/Admin/MainPage.Master" AutoEventWireup="true" CodeBehind="NewsSearchList.aspx.cs" Inherits="PPFOR.Admin.ContentArea.News.NewsSearchList" Title="无标题页" %>
<%@ Register Src="~/Admin/Ascx/PageBar.ascx" TagName="PageBar" TagPrefix="page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PPFOR_mainContent" runat="server">
<script src="../../JS/gridview.js" type="text/javascript"></script>  
<script language="javascript" type="text/javascript">
 
</script>
<form id="form1" action="NewsSearchList.aspx" method="post" runat="server">
<asp:Label ID="PPFOR_newsBelongMenuId" runat="server" Enabled="false" Visible="false"></asp:Label>
    <div class="table-ppfor">
		<i></i><u></u>
		<ul>
		  <li></li>
		    <li class="right">
		        <asp:DropDownList Width="100px" ID="PPFOR_newsSearchCase" runat="server">
				    <asp:ListItem Text="新闻标题" Value="1"></asp:ListItem>
				    <asp:ListItem Text="新闻作者" Value="2"></asp:ListItem>
				  </asp:DropDownList>
				<asp:TextBox ID="PPFOR_newsSearchText" runat="server" Width="100px" MaxLength="50"></asp:TextBox>
				<asp:Button ID="PPFOR_newsSearch" runat="server" Text="搜索" CssClass="blueinput" OnClick="PPFOR_newsSearchClick" />
			</li>
		</ul>
	</div>
    <asp:GridView ID="PPFOR_showNewsList" runat="server" CssClass="forgridview" OnRowDeleting="PPFOR_showNewsList_RowDeleting" OnRowDataBound="PPFOR_gridViewRowDataBound" AllowPaging="false" AutoGenerateColumns="False"  DataKeyNames="ID"  Width="100%" CellPadding="0" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="0px" EmptyDataText="没有搜索到符合条件的新闻">
           <Columns>                
             <asp:BoundField HeaderText="ID" DataField="ID" HeaderStyle-Font-Bold="false"/>
             <asp:BoundField HeaderText="标题" ItemStyle-CssClass="right" DataField="newsTitle" HeaderStyle-Font-Bold="false" ItemStyle-Width="30%" ItemStyle-HorizontalAlign="Left"/>
             <asp:BoundField HeaderText="类型" ItemStyle-CssClass="right" DataField="belongType" HeaderStyle-Font-Bold="false" ItemStyle-Width="15%"/>
             <asp:BoundField HeaderText="作者" DataField="author" HeaderStyle-Font-Bold="false" ItemStyle-Width="15%"/>
             <asp:BoundField HeaderText="最后修改时间" DataField="updateDate" HeaderStyle-Font-Bold="false" ItemStyle-Width="15%"/>
             <asp:TemplateField HeaderText="操作" HeaderStyle-Font-Bold="false">
                <ItemTemplate>
                    <%#PPFOR_getLinkActions(Eval("ID"), Eval("htmlName"))%> 
                    <asp:LinkButton ID="PPFOR_deleteNews" runat="server" CausesValidation="False" CommandName="Delete"
                        Text="删除" OnClientClick="return confirm('删除新闻后不能恢复,确认要删除吗？');"></asp:LinkButton>
                </ItemTemplate>
             </asp:TemplateField>
            </Columns>
             <FooterStyle BackColor="#990000" ForeColor="White" /> 
             <RowStyle Wrap="False" HorizontalAlign="Center" Font-Bold="false" BackColor="#ffffff"/> 
             <HeaderStyle HorizontalAlign="Center" BackColor="#F5F5F5" Font-Bold="false" ForeColor="#000000" />
             <AlternatingRowStyle BackColor="#F5F5F5" />
        </asp:GridView>
      <br />
      <page:PageBar ID="PPFOR_pageBar" runat="server" />
      <br />
</form>        
</asp:Content>
