<%@ Page Language="C#" AutoEventWireup="false" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Controls" Assembly="Hishop.Web.Controls" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Management" Assembly="Hishop.Web.Management" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Validator" Assembly="Hishop.Web.Validator" %>
<%@ Register TagPrefix="UI" Namespace="ASPNET.WebControls" Assembly="ASPNET.WebControls" %>
<%@ Import Namespace="Hishop.SystemServices" %>

<!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">
    <Hishop:HeadContainer ID="HeadContainer1" runat="server" />
    <Hishop:PageTitle ID="PageTitle1" runat="server" />
    <link rel="stylesheet" href="../css/Hishopv5.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="../../utility/validate/pagevalidator.css" type="text/css" media="screen" />
    <script type="text/javascript" src="../../utility/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../../utility/validate/pagevalidator.js"></script>
    <script type="text/javascript" src="../js/Hishopv5.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
            <div>
                <ul class="anchors clearfix">
                <li><a href='./ExportToHishop.aspx?OnSale=1'>导出为Hishop数据包</a></li>
                <li class="tabs-selected"><a href='./ExportToTB.aspx?OnSale=1'>导出为淘宝数据包</a></li>
                <li><a href='./ExportToPP.aspx?OnSale=1'>导出为拍拍数据包</a></li>
                </ul>
            </div>
<Hishop:ExportToTB runat="server">
  <SkinTemplate>
    <Hishop:StatusMessage id="Status" runat="server" Visible="False" />
    <fieldset class="AdminSearchform">
        <legend>
            <asp:Literal ID="litSelectQuery" runat="server" Text="<%$ Resources:ProductSearch, IDS_FormField_litSelectQuery %>"></asp:Literal></legend>
        <table width="55%" border="0" cellspacing="0" cellpadding="0" style="margin-left: 18px">
            <tr>
                <td class="searchTableLeftTD">
                    <nobr>
                        <asp:Label ID="lblSearchText" runat="server" Text="<%$ Resources:ProductSearch, IDS_FormField_lblSearchText %>"></asp:Label>：</nobr>
                </td>
                <td class="searchTableControlTD">
                    <asp:TextBox ID="txtSearchText" runat="server" Width="110" ToolTip="<%$ Resources:ProductSearch, IDS_FormField_lblSearchText_ToolTip %>"></asp:TextBox></td>
                 <td class="searchTableLeftTD">
                    <nobr>
                        <asp:Label ID="lblCategory" runat="server" Text="<%$ Resources:ProductSearch, IDS_FromField_lblCategory %>"></asp:Label>：</nobr>
                </td>
                <td class="searchTableControlTD">
                    <Hishop:ProductCategoriesDropDownList ID="dropCategories" runat="server" />
                </td>
                <td class="searchTableLeftTD">
                    <nobr>
                        <asp:Label ID="lblSKU" runat="server" Text="<%$ Resources:ProductSearch, IDS_FormField_lblSKU %>"></asp:Label>：</nobr>
                </td>
                <td class="searchTableControlTD">
                    <asp:TextBox ID="txtSKU" Width="110" runat="server"></asp:TextBox>
                </td>
                <td></td>
            </tr>
            <tr>
                <td class="searchTableLeftTD">
                    <nobr>
                        <asp:Label ID="lblBrandCategory" runat="server" Text="<%$ Resources:ProductSearch, IDS_FormField_lblBrandCategory %>"></asp:Label>：</nobr>
                </td>
                <td class="searchTableControlTD">
                    <Hishop:BrandCategoriesDropDownList ID="dropBrandCategories" runat="server" />
                </td>
                
                <td class="searchTableLeftTD">
                    <nobr>
                        <asp:Label ID="lblSuppliers" runat="server" Text="供货商"></asp:Label>：</nobr>
                </td>
                <td class="searchTableControlTD">
                    <Hishop:SupplierDropDownList ID="dropSuppliers" runat="server" />
                </td>
                
                <td class="searchTableLeftTD">
                    <nobr>
                        <asp:Label ID="lblPageSize" runat="server" Text="<%$ Resources:ProductSearch, IDS_FormField_lblPageSize %>"></asp:Label>：</nobr>
                </td>
                <td clas    s="searchTableControlTD">
                    <Hishop:PageSizeDropDownList ID="dropPageSize" runat="server" />
                </td>
                <td class="searchTableControlTD">
                    <asp:Button ID="btnSearch" runat="server" Text="<%$ Resources:ProductSearch, IDS_Button_Search %>" /></td>
                <td>
                </td>
            </tr>
            <tr>
                <td colspan="8"><span>商品状态（包含至少选择一项）：</span>
                   <asp:CheckBox runat="server" ID="chkOnSales" Text="出售中的商品" Checked="true" />
		            <asp:CheckBox runat="server" ID="chkUnSales" Text="已下架的商品" />
                </td>
            </tr>
        </table>
    </fieldset>
    <div class="PageTitleArea">
       <div><span>导出数量：<asp:Literal runat="server" ID="litExportQuantity" /></span></div>
       <div><span>导出版本：</span><asp:DropDownList runat="server" ID="dropExportVersions" />
       <asp:CheckBox runat="server" ID="chkExportStock" Text="导出库存数量" />
       <asp:CheckBox runat="server" ID="chkExportImages" Checked="true" Text="导出商品图片(不含商品描述中的图片)" />
       <asp:Button runat="server" ID="btnExport" Text=" 导出 " /></div>
    </div>
    <div class="grdGroupList">
       <asp:GridView AutoGenerateColumns="false" ID="grdExportProducts" runat="server" SortOrder="Desc" SortOrderBy="DisplaySequence" 
             GridLines="None" DataKeyNames="ProductId" RowStyle-CssClass="grdrow" HeaderStyle-CssClass="GridViewHeaderStyle" Width="100%" >
          <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
          <HeaderStyle BackColor="#EEF8FF" Height="25" CssClass="GridViewHeaderStyle" Font-Bold="True" ForeColor="#314E9F" />
          <AlternatingRowStyle BackColor="White" />
          <Columns>
             <asp:BoundField HeaderText="排序" DataField="DisplaySequence" ItemStyle-Width="45px" />
             <asp:TemplateField ItemStyle-Width="8px">
                <itemtemplate>
                   <Hishop:Common_ProductThumbnail ID="Common_ProductThumbnail1" runat="server" EnabledTimestamp="true" AutoResize="true"  Height="50px" Width="50px" DataField="ThumbnailsUrl" />
                 </itemtemplate>
             </asp:TemplateField>
             <asp:TemplateField SortExpression="SKU" HeaderText="货号" ItemStyle-Width="80px">
                 <itemtemplate>
                      <%# Eval("SKU") %>
                 </itemtemplate>
             </asp:TemplateField>
             <asp:TemplateField SortExpression="ProductName" HeaderText="<%$ Resources:ProductInStock, IDS_Header_ProductName %>">
                 <itemtemplate>
                   <div style="color:Blue"> <a href='<%# Globals.GetSiteUrls().UrlData.FormatUrl("productDetails",Eval("ProductId")) %>' target="_blank">
                    <asp:Literal ID="litName" runat="server" Text='<%# Eval("ProductName") %>'></asp:Literal></a></div>
                 </itemtemplate>
              </asp:TemplateField>
             <asp:BoundField HeaderText="市场价" DataField="marketPrice" ItemStyle-Width="80px" />
             <asp:BoundField HeaderText="成本价" DataField="costPrice" ItemStyle-Width="80px" />
             <asp:BoundField HeaderText="一口价" DataField="salePrice" ItemStyle-Width="80px" />
              <asp:TemplateField HeaderText="<%$ Resources:ProductOnSales, IDS_Header_Stock %>"
                       SortExpression="Stock" ItemStyle-Width="100" ItemStyle-HorizontalAlign="Center">
                  <itemtemplate>
                      <asp:Label ID="lblStock" runat="server" Text='<%# Eval("Stock") %>' Width="25"></asp:Label>
                  </itemtemplate>
              </asp:TemplateField>
              <asp:TemplateField HeaderText="操作">
                 <ItemTemplate>
                    <asp:LinkButton runat="server" CommandName="Remove" ID="lkbRemove" Text="移除" />
                 </ItemTemplate>
              </asp:TemplateField>
          </Columns>
       </asp:GridView>
       <div class="grdGroupTabhead">
           <UI:Pager runat="server"  ListToPaging="grdProducts" RunningMode="PostBack" ID="pager" />
       </div>
    </div>
  </SkinTemplate>
</Hishop:ExportToTB>
            
    </div>
        <br />
       <div style="margin:0px auto;width:500px;clear:both;">
            <hr style="width:500px;" />
            <Hishop:SiteCopyright ID="SiteCopyright1" runat="server" />
        </div>
        <br />
        <Hishop:ValidatorContainer runat="server" ID="ValidatorContainer" />
    </form>
</body>
</html>
