<%@ Page language="c#" Inherits="norke.admin.productImport" ResponseEncoding="utf-8" CodeFile="productImport.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
    <HEAD>
        <title>入货(从Excel导入卡的具体信息)--中国IT产品展销网 (产品展示，产品供应，产品求购，创业加盟，企业单位展示)</title>
        <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
        <meta name="CODE_LANGUAGE" Content="C#">
        <meta name="vs_defaultClientScript" content="JavaScript">
        <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
        <LINK href="style.css" type="text/css" rel="stylesheet">
    </HEAD>
    <body>
        <form id="Form1" method="post" runat="server">
            <table align='center' width='100%' cellpadding='4' cellspacing='1' border='1' class='grid fixed'>
                <tr>
                    <td width='140' class='category'>产品名称:</td>
                    <td class='category'><asp:Label id="lblName" runat="server"></asp:Label></td>
                </tr>
                <tr>
                    <td valign=top>要导入的Excel文件:</td>
                    <td>
                        <INPUT id="file1" type="file" runat="server" size=40 NAME="file1"><br>
                        <font class='t1'>注意:请选择 .xls 文件!!</font>
                    </td>
                </tr>
                <tr>
                    <td>总记录数:</td>
                    <td><asp:Label id="lblNum" runat="server">0</asp:Label></td>
                </tr>
                <tr>
                    <td>操作:</td>
                    <td>
                        <asp:Button id="btnLook" Text="查看" Runat="server" onclick="btnLook_Click"></asp:Button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Button id="btnInsert" Text="导入" Runat="server" onclick="btnInsert_Click"></asp:Button>&nbsp;&nbsp;
                        <font class='t1'>[建议:先'查看'文件内容是否正确,再'导入'到数据库!!]</font>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td><INPUT type="button" onclick="self.close()" value="关闭"></td>
                </tr>
            </table>
            <font class='t1'>[注意:出于安全原因,卡的数据只能在服务器端进行导入,而卡的密码是经过加密处理后在存进数据库的!!]</font>
            <br>
            
            
            <asp:DataGrid id="DataGrid1" runat="server" AutoGenerateColumns="False" width="90%" cellpadding='4'
                cellspacing='1' CssClass='grid fixed'>
                <HeaderStyle CssClass="category"></HeaderStyle>
                <Columns>
                    <asp:BoundColumn DataField="卡号" HeaderText="卡号">
                        <HeaderStyle ForeColor=#0F83EC Width=200px></HeaderStyle>
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="密码" HeaderText="密码">
                        <HeaderStyle ForeColor=#0F83EC></HeaderStyle>
                    </asp:BoundColumn>
                </Columns>
            </asp:DataGrid><br>
        </form>
        
        <br><br>
        <br><br>
        <br><br>
    </body>
</HTML>
