<%@ page language="C#" masterpagefile="~/Admin/MasterPage/Main.master" autoeventwireup="true" inherits="admin_product_proInfoList, App_Web_u1mfhyty" title="无标题页" %>
<%@ Register TagName="FenYe" TagPrefix="Uc1" Src="~/ascx/fenYe.ascx" %>
<%@ Register Src="~/Admin/Controls/CurrTool_Panel.ascx" TagName="CurrTool" TagPrefix="html" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
  <link rel="stylesheet" type="text/css" href="../../css/fenye.css" />
  <script src="../../js/calendar.js" type="text/javascript" charset="gb2312"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
  <div class="divTools">
    <div class="tool-nav">
      <div class="title"> 导航栏</div>
      <asp:HyperLink ID="hy_add" Text="[添加商品信息]" runat="server"/>
      <asp:HyperLink ID="hy_list" Text="[商品信息列表]" runat="server"/>
      <asp:HyperLink ID="hy_Group" Text="[商品信息回收站]" runat="server"/>
    </div>
    <html:CurrTool ID="CurrTool1" Title="产品列表" Version="120402" runat="server"/>
    <div class="clear"> </div>
    <div class="tool-search">
      <div class="title" <% if (IsPro) {%> style="height:50px;"<% } %>></div>
      <div class="search-content" >
        <div runat="server" id="proSeach">
        商品类别：<asp:DropDownList ID="DropProClass" runat="server" DataTextField="oneTitle" DataValueField="Uid"></asp:DropDownList>
        <asp:CheckBox runat="server" ID="chkStatus" Text="是否显示未上架产品" Checked="true" />
        &nbsp;
        销售方式：<asp:DropDownList ID="DropShow" runat="server" DataTextField="BaseName" DataValueField="BaseNo"> </asp:DropDownList>
        &nbsp;<asp:CheckBox runat="server" ID="chknoReadPl" Text="未读评论" />
        </div>
        <div>
          搜索字：<asp:TextBox runat="server" ID="txtSeach"></asp:TextBox>
          更新时间
          从&nbsp;
          <input runat="server" class="textDate" value="" size="10" id="startdate" onclick="calendar(this)" />
          到&nbsp;
          <input runat="server" class="textDate" value="" size="10" id="enddate" onclick="calendar(this)" />
          &nbsp;&nbsp;
          
          <asp:Button runat="server" ID="butSeach" Text = "搜  索" CssClass="button" OnClick="butSeach_Click" />
        </div>
      </div>
    </div>
    <div class="hr"> </div>
  </div>
  <div class="clear"> </div>
  <div class="divContent"> 
    <!-- 列表显示开始  -->
    <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
      <ContentTemplate>
    <div id="divList" runat="server">
      <div class="divth" style="margin-bottom:5px;">
        <asp:Button ID="BtnInsert" Text="新 增" runat="server" CssClass="button" OnClick="BtnInsert_Click" />
        <asp:Button ID="BtnEdit" Text="修 改" runat="server" CssClass="button" OnClick="BtnEdit_Click" />
          <asp:Button ID="BtnDelete" Text="删除选中项" runat="server" CssClass="button" OnClick="BtnDelete_Click" />
          <asp:Button ID="btnAll" Text=" 全 选 " runat="server" CssClass="button" OnClick="BtnAll_Click" />
          <asp:Button ID="btnInverse" Text=" 反 选 " runat="server" CssClass="button" OnClick="btnInverse_Click" />
      </div>
      <div class="hr"> </div>
      <asp:DataGrid ID="DataGrid1" runat="server" AutoGenerateColumns="False" CssClass="content-table"
                    CellPadding="0" GridLines="None" Width="100%"
                    OnSelectedIndexChanged="DataGrid1_SelectedIndexChanged">
        <ItemStyle CssClass="BotDas" HorizontalAlign="Left" />
        <HeaderStyle CssClass="tableTitle" />
        <SelectedItemStyle CssClass="linkDown" />
        <Columns>
          <asp:TemplateColumn HeaderText=" 选中 " ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="40px">
            <ItemTemplate>
              <asp:CheckBox runat="server" ID="ChkSelect" />
            </ItemTemplate>
          </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="选择">
          <ItemTemplate>
            <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Select" CausesValidation="False" Text="选择"></asp:LinkButton>
          </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="产品图片">
          <ItemTemplate>
            <asp:Literal runat="server" ID="litFristImg"></asp:Literal>
          </ItemTemplate>
        </asp:TemplateColumn>
        <asp:BoundColumn DataField="proTitle" HeaderText="产品名称" />
        <asp:BoundColumn DataField="oneTitle" HeaderText="上级类别" />
        <asp:BoundColumn DataField="upTime" HeaderText="更新时间" />
        <asp:BoundColumn DataField="Status" HeaderText="状态" />
        <asp:BoundColumn DataField="OpUserName" HeaderText="发布人" />
        <asp:BoundColumn DataField="sort" HeaderText="排序" />
        <asp:TemplateColumn HeaderText="商品评论">
          <ItemTemplate>
            <asp:Literal runat="server" ID="LitPinLun"></asp:Literal>
          </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="变量" ItemStyle-Width="2px" HeaderStyle-Width="2px" Visible="false">
          <ItemTemplate>
            <asp:Literal runat="server" Visible="false" ID="Uid" Text='<%#DataBinder.Eval(Container.DataItem,"Uid") %>'></asp:Literal>
            <asp:Literal runat="server" Visible="false" ID="LitproImg" Text='<%#DataBinder.Eval(Container.DataItem,"proImg") %>'></asp:Literal>
            <asp:Literal runat="server" Visible="false" ID="LitproImgs" Text='<%#DataBinder.Eval(Container.DataItem,"proImgs") %>'></asp:Literal>
          </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText=" " ItemStyle-Width="2px">
          <ItemTemplate> &nbsp; </ItemTemplate>
        </asp:TemplateColumn>
        </Columns>
      </asp:DataGrid>
      <div class="divth">
        <Uc1:FenYe runat="server" ID="FenYe" />
      </div>
    </div>
      </ContentTemplate>
    </asp:UpdatePanel>
    <!-- 列表显示结束 --> 
  </div>
  <asp:HiddenField ID="hide1" runat="server" />
</asp:Content>
