<%@ page language="C#" autoeventwireup="true" inherits="dyhgl, App_Web_l2p10xlz" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <title>用户管理-<%Response.Write(titlestr);%></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <meta http-equiv="Content-Language" content="zh-CN" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width,
initial-scale=1.0,
minimum-scale=1.0,
maximum-scale=1.0,
user-scalable=no" />
    <script src="/content/js/jquery-2.1.5.min.js" type="text/javascript"></script>
    <script src="/content/layer/layer.js" type="text/javascript"></script>
    <script type="text/javascript">
        layer.config({
            extend: "extend/layer.ext.js"
        });
    </script>
    <!-- Bootstrap -->
    <link href="/content/css/bootstrap.css" rel="stylesheet" />
    <!-- Font Awesome -->
    <%-- <link href="/content/css/font-awesome/css/font-awesome.min.css" rel="stylesheet" />--%>
    <!-- Custom Theme Style -->
    <link href="/content/css/custom.min.css" rel="stylesheet" />
    <link href="/content/css/contextMenu.css" rel="stylesheet" />
    <link rel="stylesheet" href="/content/font/iconfont.css" />
    <link rel="stylesheet" href="/content/css/main.css" />
    <script src="/content/js/contextMenu.js" type="text/javascript"></script>
    <script src="/content/js/xggbf.js" type="text/javascript"></script>
    <script src="/content/js/dyhgl.js" type="text/javascript"></script>
</head>
<body>
    <!-- 左侧菜单内容 -->
    <%Response.Write(tempnavmenu); %>
    <!-- 左侧菜单内容结束 -->
    <form runat="server" class="form-horizontal form-label-left" novalidate="">
        <input type="hidden" name="act" id="act" value="<%Response.Write(WebAct); %>" />
        <div id="JS_div" runat="server"></div>
        <!-- 右页面内容 -->
        <div class="bg-danger pagebody">
          <div class="right_col" role="main"   id="right1"  >
<script type="text/javascript">
    var var2 = window.innerHeight - 58;
    right1.style.setProperty('min-height', var2 + 'px', 'important');
</script>
                <div class="page-title">
                    <div class="title_left">
                        <h3>用户管理</h3>
                        <h4>&nbsp;&nbsp;&nbsp;&nbsp;</h4>
                    </div>
                </div>
                <div class="clearfix"></div>
                <!--替换内容-->
                <div class="row">
                    <div class="clearfix"></div>
                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <div class="x_content">
                            <!-- 开始 -->
                            <table width="100%" class="table" style="table-layout: fixed;">
                                <tr>
                                    <td colspan="8" align="left">
                                        <asp:Button ID="Button1" runat="server" class="btn btn-primary" Text="生成EXCEL" OnClick="Button1_Click" />
                                        <input name="button3" type="button"  class="btn btn-primary" onclick="addUser('添加用户','0')" value="添加用户" />
                                            <input name="button2" type="button"  class="btn btn-primary" onclick="jsupload('导入教师', '0')" value="导入教师" />
                                   
                                         </td>
                                </tr>
                                <tr>
                                    <td width="5%" height="22" align="center" valign="middle">序号</td>
                                    <td width="5%" height="22" align="center" valign="middle">ID</td>
                                    <td width="10%" height="22" align="center" valign="middle">工号</td>
                                    <td width="20%" height="22" align="center" valign="middle">姓名</td>
                                    <td width="20%" height="22" align="center" valign="middle">类型</td>
                                    <td width="10%" height="22" align="center" valign="middle">初密</td>
                                    <td width="10%" height="22" align="center" valign="middle">编辑</td>
                                    <td width="10%" height="22" align="center" valign="middle">删除</td>
                                </tr>
                                <%Response.Write(flist()); %>
                            </table>
                            <div class="ln_solid"></div>
                            <!-- 结束 -->
                        </div>
                    </div>
                </div>
                <!--替换内容-->
            </div>
        </div>
           <!--上传并导入 弹窗-->
                <div id="jsupload" class="modal fade bs-example-modal-lg in" tabindex="-1" role="dialog" aria-hidden="true" style="margin-top:70px; padding-right: 17px;">
                    <div class="modal-dialog modal-lg">
                        <div class="modal-content" style="padding: 15px">
                            <div class="modal-header">
                                <button type="button" onclick="cansleAdd()" class="close" data-dismiss="modal">
                                    <span aria-hidden="true">×</span>
                                </button>
                                <h2 class="modal-title" id="jswintitle1">导入教师</h2>
                            </div>
                                  <div class="form-horizontal form-label-left" novalidate="" style="margin-top: 20px">
                                <asp:FileUpload ID="FileUpload1"  runat="server" size="50%" class="btn btn-primary" /> 
                              <div id="error" runat ="server">  <div class="ln_solid"></div>
                                <div class="form-group">
                                    <div class="col-md-6 col-md-offset-3">
                                         <asp:Button ID="Buttonup" runat="server" Text="上传并导入" class="btn btn-primary" OnClick="Buttonup_Click"   />
                                        <button onclick="cansleAdd()" type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                                    </div>
                                </div> </div> 
                           </div> 
                        </div>
                    </div>
                </div>
            <!--上传并导入 弹窗--> 
    </form>
    <!-- 右页面内容完成 -->
    <!-- 版权内容 -->
    <% Response.Write(copystr);%>
    <!-- 版权内容完成 -->
    <script src="/content/js/zmain.js" charset="utf-8" type="text/javascript"></script>
    <!--添加用户 弹窗-->
    <div id="jsAddUser" class="modal fade bs-example-modal-lg in" tabindex="-1" role="dialog" aria-hidden="true" style="margin-top: 70px; padding-right: 17px;">
        <div class="modal-dialog modal-lg">
            <div class="modal-content" style="padding: 15px">
                <div class="modal-header">
                    <button type="button" onclick="cansleAdd()" class="close" data-dismiss="modal">
                        <span aria-hidden="true">×</span>
                    </button>
                    <h2 class="modal-title" id="jswintitle">添加用户</h2>
                </div>
                <form class="form-horizontal form-label-left" novalidate="" style="margin-top: 20px">
                    <input type="hidden" name="id" id="id" value="0" />
                    <div class="item form-group bad">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">用户工号 </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input type="text" id="fvyhgh" name="fvyhgh" class="form-control col-md-7 col-xs-12" onblur="Writefvyhyx();" placeholder="工号" required="required" />
                        </div>
                    </div>
                    <div class="item form-group bad">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="email">姓名</label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input type="text" id="fvyhxm" name="fvyhxm" placeholder="姓名" required="required" class="form-control col-md-7 col-xs-12" />
                        </div>
                    </div>
                    <div class="item form-group bad">
                        <label for="password" class="control-label col-md-3">权限类型</label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <select class="form-control col-md-7 col-xs-12" id="fiyhlx" name="fiyhlx">
                                <option value="0">管理员</option>
                                <option value="1">用户</option>
                            </select>
                        </div>
                    </div>
           
                    <div class="item form-group bad">
                        <label for="password" class="control-label col-md-3">联系电话</label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input id="fvyhdh" name="fvyhdh" type="text" placeholder="11位手机号" class="form-control col-md-7 col-xs-12" required="required" />
                        </div>
                    </div>

                    <div class="item form-group bad">
                        <label for="password" class="control-label col-md-3">邮箱</label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input id="fvyhyx" name="fvyhyx" placeholder="邮箱" class="form-control col-md-7 col-xs-12" required="required" />
                        </div>
                    </div>

                      <div class="item form-group bad">
                                    <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">可以登录</label>
                                    <div class="col-md-6 col-sm-6 col-xs-12">
                                        <input  type="checkbox" id="fbsfky" name="fbsfky"  class="form-control col-md-7 col-xs-12"   required="required" />
                                    </div>
                                </div> 

                    <div class="item form-group bad">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12">说明</label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input type="text" id="fvyhsm" name="fvyhsm" value="无" placeholder="说明可以写“无”" class="form-control col-md-7 col-xs-12" required="required" />
                        </div>
                    </div>
                    <div class="ln_solid"></div>
                    <div class="form-group">
                        <div class="col-md-6 col-md-offset-3">
                            <button type="button" onclick="javascript: return checkSubmit('0');" class="btn btn-primary">保存</button>
                            <button onclick="cansleAdd()" type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <!--添加用户 弹窗-->

     <script >

         function jsupload(title, id) {

             $("#jswintitle1").html(title);
             layer_index = layer.open({
                 type: 1,
                 title: false,
                 closeBtn: 0,
                 shift: false,
                 content: $("#jsupload"),
             });

         }
       </script>
</body>
</html>

