<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserImportData.aspx.cs" Inherits="Dotnet.Admin.UserImportData" %>

<!DOCTYPE html>

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


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

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

        <br /> 

（1）Excel里，新用户密码为空则系统会设置为123456   <br /> （2）Excel里，老用户密码为空则表示其密码不变。&nbsp;&nbsp;&nbsp;&nbsp;


    <div> 

        选择Excel文件(.xlsx格式)：（<a href="../template/UserTemplate.xlsx">下载模板</a>）<asp:FileUpload ID="FileUpload1"  CssClass="form-control" runat="server" />
        <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>
