<%@ Page Language="C#" MasterPageFile="~/admin/admin_page.master" AutoEventWireup="true" CodeBehind="product_taobaoimport.aspx.cs" Inherits="YXShop.Web.admin.product.product_taobaoimport" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" href="../style/validator.css" type="text/css" />
    <script type="text/javascript" src="../../scripts/validate.js"></script>
    <link rel="stylesheet" href="../style/toolbar.css" type="text/css" />
    <script src="../scripts/public.js" type="text/javascript"></script>
    <script src="../scripts/images.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
    function CheckTpye()
    {
       if(confirm('确定要导入该信息吗?'))
       {
            return true;
        }
        else
        {
            return false;
        }
       
    }

    </script>
    <script src="../scripts/images.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="pagetitle" runat="server">
    <br />
    淘宝数据导入&nbsp;&nbsp; &nbsp;<asp:HyperLink ID="HyperLink1" runat="server"  CssClass="inputbutton" NavigateUrl="product_list.aspx" Width="65px" Height="24px" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'" onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'">商品列表</asp:HyperLink>
    &nbsp; 
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="pageinfo" runat="server">
</asp:Content>
<asp:Content ContentPlaceHolderID="pagesarch" ID="ContentSearch" runat="server">
    

    
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="workspace" runat="server">
<asp:Panel ID="pl_news" runat="server">
        <table border="0" cellpadding="0" cellspacing="0" class="form_table_input" 
        width="100%">
        <tr>
            <td class="form_table_input_info">
                app key：</td>
                            <td>
                                <asp:TextBox ID="tb_appkey" runat="server" Width="200px"></asp:TextBox>
                            </td>
                            <td>
                                <div class="msgNormal">
                                    在淘宝申请的app key                 </div>
            </td>
        </tr>
        <tr>
            <td class="form_table_input_info">
                aapp secret：</td>
                            <td>
                                <asp:TextBox ID="tb_appsecret" runat="server" Width="200px"></asp:TextBox>
                            </td>
                            <td>
                                <div class="msgNormal">
                                    在淘宝申请的app secret                                 </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="form_table_input_info">
                                &nbsp;</td>
                            <td align="center">
            <asp:Button ID="butGetList" runat="server" CssClass="inputbutton" onclick="Button1_Click"  
                                    Text="获取商品" 
                                    onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'" 
                                    onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'"/>
            <asp:HiddenField runat="server" ID="w_d_pro_PutoutType" />
                                
                            </td>
                            <td>
                                <div class="msgNormal">
                                    获取淘宝商城中商品列表                 </div>
            </td>
        </tr>
    </table>
                                </asp:Panel>
<asp:Panel ID="pnlMsg" runat="server" Visible="false" CssClass="pnlReturnMessageErr">
    <asp:Literal ID="ltlMsg" runat="server"></asp:Literal>
</asp:Panel>
<asp:Literal ID="Literal1" runat="server"></asp:Literal>
    <asp:Panel ID="p_page" runat="server" Visible="False">
        共有&nbsp;<span style="color:Blue"><asp:Label Font-Bold="true" ID="lb_totalpage" runat="server" Text="0"></asp:Label></span>
        &nbsp;页 ，当前第&nbsp;<span style="color:Red;"><asp:Label Font-Bold="true" ID="lb_nowpage" runat="server" Text="0"></asp:Label></span>
        &nbsp; 页，共有&nbsp;<span style="color:Green"><asp:Label Font-Bold="true" ID="lb_totalcount" runat="server" Text="0"></asp:Label></span>
        &nbsp; 条数据&nbsp;&nbsp;
        <asp:Button ID="butImport0" runat="server" CssClass="inputbutton" 
            onclick="butImport0_Click" 
            onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'" 
            onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'" 
            Text="首页" />
        &nbsp;&nbsp;<asp:Button ID="butImport1" runat="server" CssClass="inputbutton" 
            onclick="butImport1_Click" 
            onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'" 
            onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'" 
            Text="下一页" />
        &nbsp;
        <asp:Button ID="butImport2" runat="server" CssClass="inputbutton" 
            onclick="butImport2_Click" 
            onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'" 
            onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'" 
            Text="上一页" />
        &nbsp;
        <asp:Button ID="butImport3" runat="server" CssClass="inputbutton" 
            onclick="butImport3_Click" 
            onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'" 
            onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'" 
            Text="末页" />
    </asp:Panel>
</asp:Content>
<asp:Content ContentPlaceHolderID="pagebottom" runat="server" ID="ContentBottom">
    <asp:Panel ID="p_s" runat="server">
        &nbsp;&nbsp;<asp:Panel ID="p_bottom" runat="server">
            商品分类：<asp:TextBox ID="txtProductClass" runat="server" ToolTip="点击选择所属分类" 
                Width="150px"></asp:TextBox>
            &nbsp;所属区域：<asp:TextBox ID="txtArea" runat="server" ToolTip="点击选择所属区域" Width="150px"></asp:TextBox>
            <asp:HiddenField ID="w_l_pro_Area" runat="server" />
            <asp:Button ID="butImport" runat="server" CssClass="inputbutton" 
                onclick="butImport_Click"  
                onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'" 
                onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'" 
                Text="导入商品" OnClientClick="CheckTpye();" />
            <asp:HiddenField ID="w_d_pro_CID" runat="server" />
        </asp:Panel>
        <br />
    </asp:Panel>
</asp:Content>
