<%@ Page Title="" Language="C#" MasterPageFile="SiteAdmin.Master" AutoEventWireup="true"
    CodeBehind="import_report.aspx.cs" Inherits="FanXian.Web.admin.import_report" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">
        var W_CallBack;
        var iWidth;
        var iHeight;
        var ileft;
        var itop;
        var sResize;
        function sys_fResize(iW, iH) {
            iWidth = iW;
            iHeight = iH;
            ileft = (screen.width - iWidth) / 2 - 5;
            itop = (screen.height - iHeight) / 2 - 20
            sResize = "no";
        }
        function imgBtnClick(url) {
            if (url != '') {
                sys_fResize(600, 560);
                W_CallBack = window.open("about:blank", "W_CallBack", "resizable=" + sResize + ",width=" + iWidth + ",height=" + iHeight + ",left=" + ileft + ",top=" + itop);
                W_CallBack.location.href = url;
            }
        }

        function CallBackSuccess(Type) {
            if (W_CallBack) {
                W_CallBack.close();
            }
            location.href = "../../admin/import_report.aspx?Type=" + Type + "&random=" + Math.random();
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        导入报表</h2>
    <table cellpadding="6">
        <tr>
            <td colspan="2">
                <%--<span id="appa" runat="server"><a href="###" onclick="imgBtnClick('http://container.open.taobao.com/container?appkey=<%= appkey %>');">
                    SessionKey为空，请先登录，然后刷新本页。</a> </span>--%>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                提示：请选择获取交易的时间段。时间只能选择最近3个月内。
                <br />
                已经获取过的交易不会覆盖原有的数据，获取过程将自动忽略。
                <br />
                开始时间小于结束时间，否则将无法获取成功！
            </td>
        </tr>
        <tr>
            <td>
                开始时间
            </td>
            <td>
                <asp:TextBox ID="txt_start" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                结束时间
            </td>
            <td>
                <asp:TextBox ID="txt_end" runat="server"></asp:TextBox>
                <br />
                <font color="gray">日期不能大于今天</font>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:Button ID="Button1" runat="server" Text="立即获取" OnClick="Button1_Click" />
                <asp:Label ID="msg" ForeColor="Red" runat="server" />
            </td>
        </tr>
    </table>
</asp:Content>
