<%@ Page Title="添加用户" Language="C#"   AutoEventWireup="true" CodeBehind="Users_EditUser.aspx.cs" Inherits="Dotnet.Admin.Users_EditUser" %>

<!doctype html>
<html>
<head runat="server"> 

    <title>启明星请假系统-后台管理</title>
     
     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
     

    <script src="../javascript/jquery-1.9.1.min.js"></script>
    <link href="../bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <script src="../bootstrap/js/bootstrap.min.js"></script>

    <script src="../javascript/datepick/moment.min.js"></script>
    <link href="../javascript/datepick/daterangepicker.css" rel="stylesheet" />
    <script src="../javascript/datepick/daterangepicker.js"></script>


    <script src="../javascript/layer/layer.js"></script>
    <script src="../javascript/laydate/laydate.js"></script>

      
    <script src="../javascript/common.js" type="text/javascript"></script>
    <link href="../style/admin.css" rel="stylesheet" />
    <link href="../style/patch.css" rel="stylesheet" />
    

</head>

<body>
 
      

 
    <form id="form1" runat="server">




       












 <div class="result-wrap">
    
   
  

              <table  class="table table-hover"     >

        <tbody> 
        <tr  >     
         <th >用户名 <span class="red">*</span></th>
          <td> 
             <asp:TextBox   ID="username"  CssClass="form-control"   runat="server"></asp:TextBox> 

            <asp:RequiredFieldValidator ControlToValidate="username" ID="RequiredFieldValidator2" runat="server" ErrorMessage="用户名不能够为空" Display="Dynamic"></asp:RequiredFieldValidator>
        </td>
           
        <th  >密码
            <asp:PlaceHolder runat="server" ID="pl_pwd">
                <span class="red">*</span>
            </asp:PlaceHolder>

        </th>
        <td style="width:250px;" > 
             <asp:TextBox ID="password"  CssClass="form-control"  runat="server"  ></asp:TextBox>
               

              <asp:RequiredFieldValidator ControlToValidate="password" ID="RequiredFieldValidator1" runat="server" ErrorMessage="密码不能够为空" Display="Dynamic"></asp:RequiredFieldValidator>

          </td>
         
        <th width=120px rowspan="3" valign="middle"> 头像</th>
          <td rowspan="3"> 
                
                 <a href="#" target="_blank"  id="a_avtor">
                      <img src="img/nopic.jpg" id="img_avtor" height="80px" style=" margin:5px;  border:0px; vertical-align:middle" />
                   </a>
                   
                    <a href="#" onclick="window.open('Upload.aspx'); return false;">上传图片</a>

                    <div style=" display:none ">
					 <asp:textbox id="image_small" Width="150px"  ClientIDMode="Static" Runat="server"></asp:textbox> 
			         <asp:textbox id="image_big" ClientIDMode="Static" Width="150px" Runat="server"></asp:textbox>
                  </div>
					  
         </td>
           
           </tr>

             


           
           <tr>
           
     <th>邮件</th>
         <td> 
            <asp:TextBox ID="email"  CssClass="form-control"   runat="server"></asp:TextBox>  
         </td>
          
          
          
          
          
           <th  >部门</th>
           <td> 
           
               
         <div class="input-group">
            <asp:TextBox ID="department"  ClientIDMode="Static"  CssClass="form-control department"     runat="server"></asp:TextBox> 

             <span class="input-group-addon">   <a href="###"  onclick="setdept();"   ><i class="glyphicon glyphicon-th"></i> </a> </span>

          </div> 

               
            </td>  
          
          
           </tr>
          
          
      
          
  <tr>    
      <th  >显示名</th>
            <td> 
              <asp:TextBox ID="displayname"  CssClass="form-control" runat="server"></asp:TextBox>
             </td>


    <th  >电话</th>
      <td>  
              <asp:TextBox ID="tel"  CssClass="form-control"  runat="server"></asp:TextBox>  
      </td> 
        
       </tr>
          
          
          <tr>  
            <th >办公室</th>
             <td>
             <asp:TextBox ID="office"   CssClass="form-control"   runat="server"></asp:TextBox> 
            </td>

          
         <th >职务</th>
          <td >  
              <asp:TextBox ID="title"   CssClass="form-control"  runat="server"></asp:TextBox>   
           </td>
            
                  
                    
      <th >私人手机</th>
        <td> 
              <asp:TextBox ID="mobile"   CssClass="form-control"  runat="server"></asp:TextBox>   
         
       </td> 

  </tr>
          
          
          
           <tr> 
           
           <th>员工号</th>
            <td >  
              <asp:TextBox ID="staffcode"   CssClass="form-control"  runat="server"></asp:TextBox>   
           </td>
            
          
         <th  >性别</th>
          <td  >  
              <asp:DropDownList ID="sex"  CssClass="form-control" runat="server" Width="140px">
              <asp:ListItem Text="" Value=""></asp:ListItem>
              <asp:ListItem Text="男" Value="男"></asp:ListItem>
              <asp:ListItem Text="女" Value="女"></asp:ListItem>
              </asp:DropDownList> 
           </td>
           
            
           
		 <th  >传真</th>
		  <td  >
		 
           <asp:TextBox ID="fax"  CssClass="form-control"   runat="server"></asp:TextBox>  
		
        
         </td>
            
           
          </tr>
          
          
          
          
          
          
          
          
          
          
          
          
          
           <tr >
         <th  >
          自我简介 
              </th>
               <td colspan="5">
           
              <asp:TextBox ID="intro"  CssClass="form-control"  Width="600" Height=80
                   TextMode=MultiLine  runat="server"></asp:TextBox>
         
          </td>
          </tr>   
          
          
          
         <tr >
          <td colspan="6" align="center"  class="text-center">
              
               
             
              <asp:Button ID="update"  runat="server" OnClick="update_Click" class="btn btn-primary btn6 mr10"   Text="更新" />
              <asp:Button ID="add"  runat="server" OnClick="add_Click"  class="btn btn-primary btn6 mr10"    Text="添加" />
               <asp:Button ID="del"  CausesValidation="false" runat="server" OnClick="del_Click"    OnClientClick="return confirm('确定要删除吗');" class="btn  btn-danger"  Text="删除" />
              
              
                                               
          </td></tr>
          
          
        
 
</tbody>
</table>
  
  
 
    
    
      

        <script>

            function ResetImg(s, b) {

                $("#image_small").val(s);
                $("#image_big").val(b);
                $("#img_avtor").attr("src", s);
                $("#a_avtor").attr("href", b);

            }
        
        
        </script>

        


      
   
        <script>

            function setdept() {
                layer.open({
                    type: 1,
                    title:"选择部门",
                    skin: 'layui-layer-rim', //加上边框
                    area: ['420px', '240px'], //宽高
                    content: '<%=UsersHelper.GetPopDept() %>'
                });
            }
             


        </script>
    
    
    </div>
    
    



        <div style="display:none">
               <asp:CheckBox ID="ismgr" runat="server"  Text="经理" /> &nbsp;
		 
		 <asp:CheckBox ID="issec" runat="server"  Text="秘书"/>&nbsp;
		 
		 	 <asp:CheckBox ID="isstaff" runat="server"  Text="Staff成员"/>

        </div>
    
        </form>
        </body>
    </html>