<%@ Page Language="C#" MasterPageFile="~/Admin/MainPage.Master" AutoEventWireup="true" CodeBehind="ProductSearchList.aspx.cs" Inherits="PPFOR.Admin.ContentArea.Product.ProductSearchList" 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>  
<form id="form1" action="ProductSearchList.aspx" method="post" runat="server">
<asp:Label ID="PPFOR_productBelongMenuId" 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_productSearchCase" runat="server">
				    <asp:ListItem Text="产品名称" Value="1"></asp:ListItem>
				  </asp:DropDownList>
				<asp:TextBox ID="PPFOR_productSearchText" runat="server" Width="100px" MaxLength="50"></asp:TextBox>
				<asp:Button ID="PPFOR_productSearch" runat="server" Text="搜索" CssClass="blueinput" OnClick="PPFOR_productSearchClick" />
			</li>
		</ul>
	</div>
    <asp:GridView ID="PPFOR_showProductList" runat="server" CssClass="forgridview" OnRowDeleting="PPFOR_showProductList_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:ImageField HeaderText="缩略图" ItemStyle-CssClass="right" ItemStyle-Width="88px" ControlStyle-Width="80px" ControlStyle-Height="80px" DataAlternateTextField="productName" DataImageUrlField="smallImage" NullImageUrl="/Admin/Images/nophoto.jpg" NullDisplayText="无图片"></asp:ImageField>
             <asp:BoundField HeaderText="名称" ItemStyle-CssClass="right" DataField="productName" 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="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_deleteProduct" 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>
