<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/admin/admin_page.master" CodeBehind="product_import.aspx.cs" Inherits="YXShop.Web.admin.product.product_import" %>

<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/prototype.js" type="text/javascript"></script>
    <script src="../scripts/images.js" type="text/javascript"></script>
    <script type="text/javascript">
    function valibator()
    {
    
        var DDTypes=document.getElementById("DDType")[0].InnerText;
        if(DDTypes.Text=="请选择导入格式")
        {
            alert("请选择导入商品的所属格式！")
            return false;
        }
        var cid=document.getElementById("ctl00_workspace_hfcid").value;
        if(cid=="")
        {
           alert("请选择导入商品的所属分类！");
           return false;
        }
    }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="pagetitle" runat="server">
商品批量导入
    <asp:Button ID="button1" runat="server" CssClass="inputbutton" OnClientClick="return valibator()" onclick="lbtnSave_Click" Text="保  存" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'" onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'"/>
    <asp:HyperLink ID="HyperLink1" runat="server"  CssClass="inputbutton" NavigateUrl="product_list.aspx?q_PutoutType=0" Width="65px" Height="24px" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'" onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'">商品列表</asp:HyperLink>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="pageinfo" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="workspace" runat="server">

<asp:Panel ID="pnlMsg" runat="server" Visible="false" CssClass="pnlReturnMessageErr">
    <asp:Literal ID="ltlMsg" runat="server"></asp:Literal>
</asp:Panel>

<table  class="form_table_input" border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
        <td class="form_table_input_info">下载模板：</td>
        <td>
            <a href="template/Products.xls"  style="color: blue; text-decoration:underline;">下载 xls 模板</a>
            <a href="template/Products.csv"  style="color: blue; text-decoration:underline;">下载 csv 模板</a>
        </td>
        <td>
           <div class="msgNormal">请先下载模板进行数据填写，请不要更改模板的结构</div>
       </td>
    </tr>
    <tr>
        <td class="form_table_input_info">导入数据格式：</td>
        <td>
            <asp:DropDownList ID="ddlType" runat="server">
                <asp:ListItem Value="1">.XLS格式</asp:ListItem>
                <asp:ListItem Value="2">.CSV格式</asp:ListItem>
            </asp:DropDownList>
        </td>
        <td>
        </td>
    </tr>
    <tr>
        <td class="form_table_input_info">所属分类：</td>
        <td>
            <asp:TextBox ID="txtProductClass" runat="server" Text="请选择商品分类" CssClass="inputCSS"></asp:TextBox>
            <asp:HiddenField runat="server" ID="hfcid" />
        </td>
        <td>
        <asp:Panel ID="txtProductClassTip" runat="server"></asp:Panel>
        </td>
    </tr>
    <tr>
        <td class="form_table_input_info">选择你要导入的数据文件：</td>
        <td>
            <input id="fuExcecl" type="file" runat="server" />
        </td>
        
        <td>
           <div class="msgNormal">请导入您已经填写好的模板Excel<br />
           由于批量导入操作比较占用资源，请不要上传过大的文件，建议在服务器访问人数少时进行！ </div>    
        </td>
    </tr>
        
</table>   
</asp:Content>
