<%@ page language="C#" autoeventwireup="true" inherits="ECMe_Plugin_TaobaoOrderSync, ECMe_Deploy" %>

<!-- Put IE into quirks mode -->
<!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">
    <title>淘宝订单同步</title>
    <link href="../CSS/Admin/CSS/ECMe.css" rel="stylesheet" type="text/css" />
    <link href="../CSS/Admin/CSS/body63.css" rel="stylesheet" type="text/css" />
    <link href="../CSS/Admin/CSS/AdminIndex.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../JS/jquery.js"></script>
    <script type="text/javascript" src="../JS/Common.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:RequiredFieldValidator ID="RFV_TappKey" runat="server" ErrorMessage="AppKey不能为空"
        ControlToValidate="TappKey" Display="None"></asp:RequiredFieldValidator>
    <asp:RequiredFieldValidator ID="RFV_TappSercet" runat="server" ErrorMessage="AppSercet不能为空"
        ControlToValidate="TappSercet" Display="None"></asp:RequiredFieldValidator>
    <div class="header">
        <h2>
            系统插件 &gt; <a href="#" class="admin_blue">同步淘宝订单</a></h2>
    </div>
    <div class="container">
        <div class="title">
            同步淘宝订单</div>
        <asp:ValidationSummary ID="MainValidationSummary" DisplayMode="List" CssClass="error"
            runat="server" />
        <div class="all_1">
            <table border="0" cellspacing="0" cellpadding="0" style="width: 100%">
                <tr>
                    <td valign="top">
                        <div class="dialog">
                            <p style="color: #FF6600">
                                淘宝订单同步注意事项：
                            </p>
                            <p>
                                1.系统直接调用淘宝API进行订单同步，第一次同步日期会从您淘宝建店开始，然后下次同步系统会自动记录最后一次同步时间
                            </p>
                            <p>
                                2.淘宝API一次性只能调用3个月的订单，所以如果一次没调用完，请重复使用本功能直到订单同步完全完成即可
                            </p>
                            <p>
                                3.根据您的订单量同步时间可能会很长，一般会在1分-10分钟内完成，同步期间请不要关闭本页面
                            </p>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        <div class="all_1">
            <table border="0" cellspacing="0" cellpadding="0" style="width: 100%">
                <tr>
                    <td valign="top">
                        <div class="right">
                            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="ADDGood_table_1">
                                <tr>
                                    <th>
                                        AppKey：
                                    </th>
                                    <td>
                                        <asp:TextBox ID="TappKey" runat="server"></asp:TextBox>
                                        <img src="../CSS/Admin/images/help.png" alt=" " width="10" height="10" />
                                        淘宝店铺的AppKey，请在淘宝开放平台获取
                                    </td>
                                </tr>
                                <tr>
                                    <th style="width: 70px">
                                        AppSercet：
                                    </th>
                                    <td>
                                        <asp:TextBox ID="TappSercet" runat="server"></asp:TextBox>
                                        <img src="../CSS/Admin/images/help.png" alt=" " width="10" height="10" />
                                        淘宝店铺的AppSercet，请在淘宝开放平台获取
                                    </td>
                                </tr>
                                <tr>
                                    <th>
                                    </th>
                                    <td style="height: 50px">
                                        <div style="display: none" id="SyncLoading">
                                            正在同步,请耐心等待：<img src="../CSS/Admin/images/SyncLoading.gif" alt="同步状态" />
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div class="footer">
        <div class="footer_button">
            <asp:Button ID="BSubmit" runat="server" Text="开始同步订单" CssClass="footer_but" OnClientClick='ShowHide("SyncLoading")'
                OnClick="BSubmit_Click" />
        </div>
    </div>
    </form>
</body>
</html>
