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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>我的档案</title>
    <link href="javascript/layer/skin/layer.css" rel="stylesheet" />
    <script src="Javascript/jquery-1.9.1.min.js" type="text/javascript"></script>  
  <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" /> 
    <script src="bootstrap/js/bootstrap.min.js"></script> 
    <script src="javascript/layer/layer.js"></script>
    <link href="style/patch.css" rel="stylesheet" />
</head>
<body   >
    <form id="form1" runat="server">
     
    
    
     <div style=" margin:10px;">
    
    
 
    
 
 
      <table  class="table table-hover"     >
        <tbody>
           
         
        <tr>     
          <th >用户名</th>
          <td > 
             <asp:TextBox  Enabled="false"  ID="username"  CssClass="form-control"  runat="server"></asp:TextBox> 
            <asp:RequiredFieldValidator ControlToValidate="username" ID="RequiredFieldValidator2" runat="server" ErrorMessage="用户名不能够为空" Display="Dynamic"></asp:RequiredFieldValidator>
        </td>
           
        <th  >密码</th>
        <td style="width:250px;" > 
             <asp:TextBox ID="password"  CssClass="form-control"   runat="server" TextMode="Password"></asp:TextBox>
             为空表示密码表示不变  
          </td>
         
        <th  >确认密码</th>
          <td  > 
               <asp:TextBox ID="confirmpassword"   CssClass="form-control" TextMode="Password"   runat="server"></asp:TextBox> 
         </td>
           
           </tr>
           



           <tr>
           
     <th>邮件</th>
         <td> 
                <asp:TextBox ID="email"   CssClass="form-control"   runat="server"></asp:TextBox>  
                   
 <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="邮件格式不正确"
        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"　 Display="Dynamic"
         ControlToValidate="email"></asp:RegularExpressionValidator> 

  </td>
          
          
          
          
          
            <th  >部门</th>
           <td   > 

         <div class="input-group">
            <asp:TextBox ID="txt_department"  ClientIDMode="Static"  CssClass="form-control"     runat="server"></asp:TextBox> 

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

</span>

          </div> 
            
                
          


        
          
            </td>  
          
            <th  >显示名</th>
            <td  > 
              <asp:TextBox ID="txt_displayname"   CssClass="form-control" runat="server"></asp:TextBox>
             </td>
           </tr>
          
          
      
          
  <tr>    
      <th  >电话</th>
      <td >  
              <asp:TextBox ID="tel"    CssClass="form-control" runat="server"></asp:TextBox>  
      </td>
         
                
       <th >传真</th>
        <td > 
          <asp:TextBox ID="fax"   CssClass="form-control"  runat="server"></asp:TextBox>  
       </td>
            
     
             <th >办公室</th>
             <td  >
             <asp:TextBox ID="office"   CssClass="form-control"  runat="server"></asp:TextBox> 
            </td>
       </tr>
          
          
          <tr>
          
          <th >职务</th>
          <td  >  
              <asp:TextBox ID="txt_title"   CssClass="form-control" runat="server"></asp:TextBox>   
           </td>
           
           
           
            
          <th>员工号</th>
      <td  >  
              <asp:TextBox ID="txt_staffcode"   CssClass="form-control" runat="server"></asp:TextBox>   
           </td>
           
           
                
         <th>头像:</th>
        <td  >  
         
       <asp:textbox id="image_small"   CssClass="form-control"  Runat="server"></asp:textbox>
        	 <asp:textbox id="image_big"   Runat="server" Visible="false"></asp:textbox>
        	
        	
        		
           </td>
          </tr>


          <script>

              function ope() {
                  var p = document.getElementById('<%=image_small.ClientID %>').value;
                  window.open(p);
              }
          
          </script>
          
          
          
          
          
          
          
          
          
           <tr>
          
          <th  >性别</th>
          <td  >  
              <asp:DropDownList ID="ddl_sex"   CssClass="form-control"  runat="server">
              <asp:ListItem Text="" Value=""></asp:ListItem>
              <asp:ListItem Text="男" Value="男"></asp:ListItem>
              <asp:ListItem Text="女" Value="女"></asp:ListItem>
              </asp:DropDownList> 
           </td>
           
           
           
           
           
		 <th  >帐户属性</th>
		  <td  colspan="6" style="width:300px" >
		
             <asp:CheckBox ID="cb_ismgr" runat="server"  Text="经理" /> &nbsp;
		 
		 <asp:CheckBox ID="cb_issec" runat="server"  Text="秘书"/>&nbsp;
		 
		 	 <asp:CheckBox ID="cb_isstaff" runat="server"  Text="Staff成员"/>
		 </td>
           
           
           
          </tr>
          
          
          
          
           
          
          
          
          
          
           <tr  >
          <th  >
          自我简介 
              </th>
           
              <td colspan="5"><asp:TextBox ID="txt_intro"   CssClass="form-control"  Width="600" Height=60 TextMode=MultiLine  runat="server"></asp:TextBox>
         
        </td>
          </tr>   
          
          
          
         <tr >
          <td colspan="6" align="center">
              
               
              <br />
              <asp:Button ID="submit"  runat="server" OnClick="submit_Click"       class="btn btn-success" Text="更新" />
        
              
          </td></tr>
          
          
        
 
</tbody>
</table>
        
        
    </div>
    
    
      
    
    
     
       
        
        
        
        
        
        
        
        
       
        
        
        
        
        
                  <div id="div_dept" style="display:none">
        <ul id="dept">
          <asp:Literal runat="server" ID="lb_dept"></asp:Literal> 
          </ul>
        </div>
        
     
         

        <script>

            function setdept()
            {
            layer.open({
                type: 1,
                skin: 'layui-layer-rim', //加上边框
                area: ['420px', '240px'], //宽高
                content: formatStr()
            });
            }



            function formatStr( ) {
                result = "<br>";
                $("#dept li").each(
                    function()
                    {
                        result += '<a href="#" onclick="javascript:closethis(this); return false;" class="btn  btn-flat  btn-sm">' + $(this).text() + '</a> ';
                    }
               );

                return result;
            }


            function closethis(cont) {

                $("#txt_department").val($(cont).html());
                layer.closeAll();

            }

       

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