<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Import_Data.aspx.cs" Inherits="helpdesk.helpdesk.Import_Data" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
 
      <link href="../bootstrap/css/bootstrap.min.css" rel="stylesheet" />     
     <script src="../Javascript/jquery-1.9.1.min.js"></script>
    <script src="../bootstrap/js/bootstrap.min.js"></script> 
</head>
<body style=" margin:30px;  text-align:center">
    <form id="form1" runat="server">


         
         <asp:HiddenField runat="server" ID="hf_tablename" />

   <h4>          <asp:Label runat="server" ID="lbl_title"></asp:Label></h4>

        <br /> 




    <div> 

        选择Excel文件：<asp:FileUpload ID="FileUpload1"  CssClass="form-control" runat="server" />
        <br /> 
        *请先导出一份Excel列表作为模板，然后导入 <br /><br /> 
        <asp:CheckBox runat="server" ID="cb_del" Text="导入时，清空所有数据" /> 建议在初始化时，勾选此选项。 <br /><br /> 
    </div>

        <div id="div1">
        <asp:Button ID="Button1" ClientIDMode="Static"
            
            CssClass="btn btn-success" 
             runat="server" OnClick="Button1_Click" OnClientClick="setthis();" Text="导入数据" />
    </div>

   <div id="div2" style="display:none">
     <asp:Button ID="Button2" ClientIDMode="Static"  CssClass="btn btn-default" 
          runat="server" Text="数据导入中..." Enabled="false" />
       </div>
    
    <script>

        function setthis()
        {
            $("#div1").hide();
            $("#div2").show();
          
        }


    </script>
    
    </form>
</body>
</html>
