<%@ 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 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>
    <link rel="stylesheet" href="../css/jquery.treeTable.css" type="text/css" media="screen" />
    <script type="text/javascript" src="../js/jquery.treeTable.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="import.hishop.helper.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
            <div>
                <ul class="anchors clearfix">
                    <li class="tabs-selected"><a href='./ImportFromHishop.aspx'>从Hishop数据包导入</a></li>
                    <li><a href='./ImportFromTB.aspx'>从淘宝数据包导入</a></li>
                    <li><a href='./ImportFromPP.aspx'>从拍拍数据包导入</a></li>
                </ul>
            </div>
            <Hishop:ImportFromHishop runat="server">
               <SkinTemplate>
        <Hishop:StatusMessage id="Status" runat="server" Visible="False" />
<div class="dataarea mainwidth databody">
 <div class="datafrom">
  <div class="formitem">
           <ul>
              <li>
                  <h3 style="color:#FF7F00; border-bottom-color:Silver; border-bottom-width:1px; border-bottom-style:solid; padding-bottom:5px;">
                  数据包信息</h3>
               </li>
               <li>
                    <span class="formitemtitle Pw_198">导入插件版本：</span>
                    <asp:DropDownList runat="server" ID="dropImportVersions"></asp:DropDownList>
               </li>
               <li>
                    <span class="formitemtitle Pw_198">选择要导入的数据包文件：</span>
                    <asp:DropDownList runat="server" ID="dropFiles" AutoPostBack="true"></asp:DropDownList><br />
               <span class="formitemtitle Pw_198">&nbsp;</span>
               <span>
                  导入之前需要先将数据包文件上传到服务器上；<br/>
                  如果上面的下拉框中没有您要导入的数据包文件，请先上传。
               </span>
              </li>
              <li> <span class="formitemtitle Pw_198">&nbsp;</span>
                <asp:FileUpload runat="server" ID="fileUploader" /><asp:Button runat="server" ID="btnUpload" Text="上传" /><br />           
                <span class="formitemtitle Pw_198">&nbsp;</span>
                <span>
                    如果数据包文件太大上传失败，<br/>您还可以使用FTP工具先将数据包上传到网站的/storage/data/hishop目录以后，再重新打开此页面操作。
                </span>
              </li>
               <li style="display:none;">
                <asp:TextBox runat="server" ID="txtProductTypeXml" style="display:none;"></asp:TextBox>
                <asp:TextBox runat="server" ID="txtPTXml" style="display:none;"></asp:TextBox>
                <asp:CheckBox runat="server" ID="chkFlag" style="display:none;" />
               </li>
            </ul>
             
            <ul id="infoZone">
              <li>
                <span class="formitemtitle Pw_198">数据包版本：</span>
                <span class="formitemtitle"><asp:Literal runat="server" ID="lblVersion"></asp:Literal></span>
              </li>
              <li>
                <span class="formitemtitle Pw_198">商品数量：</span>
                <span class="formitemtitle"><asp:Literal runat="server" ID="lblQuantity"></asp:Literal></span>
                <asp:CheckBox runat="server" ID="chkIncludeCostPrice" style="display:none;" />
                <asp:CheckBox runat="server" ID="chkIncludeStock" style="display:none;" />
                <asp:CheckBox runat="server" ID="chkIncludeImages" style="display:none;" />
              </li>
              <li id="ptRow">
                <table id="tTypes">
                <thead>
                <tr>
                  <th>数据包中包含的商品类型</th>
                  <th style="width:30%">匹配操作</th>
                </tr>
              </thead>
              <tbody id="tbTypes">
                </tbody>
                </table>
              </li>
            </ul>
            <ul>
               <li>
                <h3 style="color:#FF7F00; border-bottom-color:Silver; border-bottom-width:1px; border-bottom-style:solid; padding-bottom:5px;">
                导入选项</h3>
               </li>
               <li>
                 <span class="formitemtitle Pw_198">店铺分类：</span>
                  <Hishop:ProductCategoriesDropDownList ID="dropCategories" runat="server" AutoDataBind="false" />
               </li>
               <li>
                 <span class="formitemtitle Pw_198">商品导入状态：</span>
                 <asp:CheckBox runat="server" Checked="true" Text="出售中的商品" ID="chxIsUpselling" />
               </li>
               <li> <span class="formitemtitle Pw_198">&nbsp;</span> 
                  <asp:CheckBox runat="server" ID="cblIsDel"  Checked="true" Text="导入完成以后删除数据包及临时文件" />
               </li>
               <li><span class="formitemtitle Pw_198">&nbsp;</span>
                <asp:TextBox runat="server" ID="txtMappedTypes" style="display:none;"></asp:TextBox>
                  <asp:Button runat="server" ID="btnImport" Text="导入" OnClientClick="return loadDataTypes();" />
               </li>
            </ul>
            <div class="blank12 clearfix"></div>
        </div>
    </div>
</div>
               </SkinTemplate>
            </Hishop:ImportFromHishop>
    </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>
