<%@ 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" %>
<%@ 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>
    <Hishop:HeadContainer ID="HeadContainer1" runat="server" />
    <Hishop:PageTitle ID="PageTitle1" runat="server" />
    <link rel="stylesheet" href="../../utility/validate/pagevalidator.css" type="text/css" />
    <link rel="stylesheet" href="../css/Hishopv5.css" type="text/css" />
    <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>
    <script type="text/javascript" src="../../utility/Calendar/WdatePicker.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div class="PageTitleArea">
            <div class="PageTitle">
                <asp:Literal ID="lblPageTitle" runat="server" Text="<%$ Resources:ProductBatchUpload,IDS_PageTitle %>"></asp:Literal>
            </div>
            <div style="width: 80%;">
                <asp:Literal ID="lblPageDesc" runat="server" Text="<%$ Resources:ProductBatchUpload,IDS_PageDesc %>"></asp:Literal>
            </div>
        </div>
        <Hishop:ProductBatchUpload ID="ProductBatchUpload1" runat="server">
            <SkinTemplate>
            <!-- 操作提示 -->
            <Hishop:StatusMessage ID="Status" runat="server" Visible="False" />
            <fieldset class="AdminSearchform">
                <legend>
                    第一步：下载批量上传CSV文件</legend>
                <table width="75%" border="0" cellspacing="0" cellpadding="0" style="margin-left:18px">
                        <tr>
                            <td > <div class="inp_L1"  style="width:60px; height:17px;"><a href="../../HiShopProducts.csv"  >下载CSV文件</a></div></td>
                        </tr>
                </table>
            </fieldset>
            <fieldset class="AdminSearchform">
                <legend>
                    第二步：填写CSV文件</legend>
                <table width="75%" border="0" cellspacing="0" cellpadding="0" style="margin-left:18px">
                     <tr>
                        <td style="padding:8px 0">
                            1.无论你导入的是Hishop网店CSV还是淘宝、易趣、拍拍的CSV,请把本地电脑上的商品清晰图整理好并通过 FTP 上传到：网站根目录/Storage/Original/<br />
                            2.清晰图上传好后，再把清晰图通过 FTP 上传到网站多图目录既网站根目录/Storage/Original/Album/<br />
                            3.打开CSV文件，在里面对应处写入上传商品的各项内容。注意商品清晰图只填写图片名称即可,例如：01.jpg</td>
                        </tr>
                </table>
            </fieldset>
            <fieldset class="AdminSearchform">
                <legend>
                    第三步：开始批量操作</legend>
                <table width="75%" border="0" cellspacing="0" cellpadding="0" style="margin-left:18px">
                     <tr>
                        <td style="padding:8px 0">
                            <asp:RadioButton runat="server" ID="rdbtnUploadType" GroupName="UploadType" Text="Hishop网店CSV文件">
                            </asp:RadioButton>
                            <asp:RadioButton runat="server" ID="rdbtnUploadTypeTaobao" GroupName="UploadType"
                                Text="淘宝网店CSV文件"></asp:RadioButton>
                            <asp:RadioButton runat="server" ID="rdbtnUploadTypePaipai" GroupName="UploadType"
                                Text="拍拍网店CSV文件"></asp:RadioButton>
                            <asp:RadioButton runat="server" ID="rdbtnUploadTypeYiQu" GroupName="UploadType" Text="易趣网店CSV文件">
                            </asp:RadioButton>
                        </td>
                     </tr>
                     <tr>
                        <td>
                        <table border="0" style="margin-top: 10px; width: 500px; text-align: left;">
                        <tr>
                            <td style="padding: 5px; white-space: nowrap;">
                                上传批量CSV文件：
                            </td>
                            <td>
                                <asp:FileUpload ID="fileUpload" runat="server" Width="370px" />
                            </td>
                        </tr>
                        <tr>
                            <td style="padding: 5px; white-space: nowrap;">
                                上传到分类：
                            </td>
                            <td>
                                <Hishop:ProductCategoriesDropDownList ID="dropCategories" runat="server" Width="200px">
                                </Hishop:ProductCategoriesDropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td style="padding: 5px; white-space: nowrap;">
                                设置商品品牌：
                            </td>
                            <td>
                                <Hishop:BrandCategoriesDropDownList runat="server" ID="dropBrandCategories" Width="200px"/>
                            </td>
                        </tr>
                        <tr>
                            <td style="padding: 5px; white-space: nowrap; verticle-align: top;">
                                设置商品供货商：
                            </td>
                            <td>
                                <Hishop:SupplierDropDownList runat="server" ID="dropSuppliers" Width="200px"/>
                            </td>
                        </tr>
                        <tr>
                            <td style="vertical-align: top; padding: 5px;">
                                设置商品为：
                            </td>
                            <td>
                                <ul>
                                    <li style="float: left; margin-right: 20px; white-space: nowrap;">
                                        <asp:CheckBox ID="ckbRecommend" Text="推荐商品" runat="server" /></li>
                                    <li style="float: left; margin-right: 20px; white-space: nowrap;">
                                        <asp:CheckBox ID="ckbNew" Text="最新商品" runat="server" /></li>
                                    <li style="float: left; margin-right: 20px; white-space: nowrap;">
                                        <asp:CheckBox ID="ckbHot" Text="热卖商品" runat="server" /></li>
                                    <li style="float: left; margin-right: 20px; white-space: nowrap;">
                                        <asp:CheckBox ID="ckbSpecial" Text="特价商品" runat="server" /></li>
                                    <li style="float: left; margin-right: 20px; white-space: nowrap;">
                                        <asp:CheckBox ID="ckbIsSell" Text="出售中的商品" runat="server" /></li>
                                </ul>
                            </td>
                        </tr>
                        <tr>
                            <td style="padding: 5px; white-space: nowrap; verticle-align: top;">
                            </td>
                            <td>
                                <asp:Button runat="server" ID="btnUpload" Text="上传" CssClass="inp_L1"/>
                            </td>
                        </tr>
                    </table>
                        </td>
                     </tr>
                </table>
                
            </fieldset>
            
            <fieldset class="AdminSearchform" style="padding:20px;">
                
                <legend>备注</legend>
                <div style="margin-top:10px;">
                批量上传完毕后，网店商品缩略图暂时不显示，这时需在后台->商品管理-><a href='<%= Globals.GetSiteUrls().UrlData.FormatUrl("admin_ProductSettings") %>' style="color:Blue;">商品设置</a>
                     中设定好缩略图尺寸，保存并重新生成缩略图.
                </div>
                
            </fieldset>
            </SkinTemplate>
        </Hishop:ProductBatchUpload>
    </div>
    <br />
    <div style="text-align: center">
        <hr style="width: 500px;" />
        <Hishop:SiteCopyright runat="server" />
    </div>
    <br />
    </form>
</body>
</html>
