<%@ 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>
</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文件(选择使用Hishop网店CSV文件上传的用户执行)</legend>
                <table width="75%" border="0" cellspacing="0" cellpadding="0" style="margin-left:18px">
                        <tr>
                            <td > <div class="inp_L1"  style="width:100px; height:17px; text-align:center;"><a href="../../HiShopProducts.csv"  >下载CSV文件</a></div> <span style="color:red;">* csv 文件中不能用Alt+回车键来换行并且商品名称和一口价为必填项</span></td>
                        </tr>
                </table>
                
            </fieldset>
            <fieldset class="AdminSearchform">
                <legend>第二步：填写CSV文件</legend>
                <table  border="0" cellspacing="0" cellpadding="0" style="margin-left:18px">
                     <tr>
                        <td style="width:44%;">1.请把本地电脑上的商品清晰图整理好并通过 FTP 分别上传到：</td>
                        <td align="left" >网站根目录/Storage/Original/</td>
                     </tr>
                     <tr ><td></td><td align="left">及网站根目录/Storage/Album/</td></tr>
                     <tr><td colspan="2" style=" padding-top:6px;">2.如果你导入的是Hishop网店CSV文件则打开CSV文件，在里面对应处写入上传商品的各项内容。注意商品清晰图只填写图片名称即可,例如：01.jpg</td></tr>
                </table>
            </fieldset>
            <fieldset class="AdminSearchform">
                <legend>
                    第三步：开始批量操作</legend>
                    <div width="75%" style="background-color:#FFFFCC; border:solid 1px #FFCC66;" style="margin:6px 18px 6px 18px;padding:10px;"><span style="color:Red;"><strong>注：批量上传完毕后，网店商品缩略图暂时不显示，这时需在后台->店铺管理->基本设置-></strong></span><a href='<%= Globals.GetSiteUrls().UrlData.FormatUrl("admin_SiteContent")+"?InitActiveIndex=2" %>' style="color:Blue;"> 商品设置</a>
                      <span style="color:Red;"><strong>中设定好缩略图尺寸，保存并重新生成缩略图.</strong></span></div>
                <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>
            
            </SkinTemplate>
        </Hishop:ProductBatchUpload>
    </div>
    <br />
    <div style="margin:0px auto;width:500px;clear:both;">
        <hr style="width: 500px;" />
        <Hishop:SiteCopyright runat="server" />
    </div>
    <br />
    </form>
</body>
</html>
