<%@ 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>
    <script src="javascript/common.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" placeholder="为空表示密码表示不变"  CssClass="form-control"   runat="server" TextMode="Password"></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="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="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>  
          
            <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"  Enabled="false"  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" >
		
         
		 </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 style="display:none">

               <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成员"/>
       </div>
        
        
        
        
        
        
        
        
       
        
        
        <script>

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



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