<%@ 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>
 <style>
.tdwkey{ width:120px; text-align:right;background-color: #F1F6FB;}
.tdwvalue{ width:120px; text-align:left;background-color: #ffffff;}
.reg{  margin:0 auto; width:900px; font-family:Verdana; font-size:12px }
.reg input{ height:14px}
.red{ color:Red;}
</style>
    <link href="Style/Style.css" rel="stylesheet" type="text/css" />
</head>
<body style=" margin:0 auto; font-family:Verdana; font-size:12px ">
    <form id="form1" runat="server">
     
    
    
     <div style=" margin:10px;">
    
    
 
    
    
    <div  class="reg" >
        
    </div>
 
      <table border="0" cellSpacing="1"  cellPadding="8"  class="reg table"      >
        <tbody>
           
         
        <tr>     
          <td class="tdwkey">用户名</td>
          <td  class="tdwvalue"> 
             <asp:TextBox   ID="username"   runat="server"></asp:TextBox> 
            <asp:RequiredFieldValidator ControlToValidate="username" ID="RequiredFieldValidator2" runat="server" ErrorMessage="用户名不能够为空" Display="Dynamic"></asp:RequiredFieldValidator>
        </td>
           
        <td class="tdwkey">密码</td>
        <td class="tdwvalue"> 
             <asp:TextBox ID="password"     runat="server" TextMode="Password"></asp:TextBox>
             为空表示密码表示不变  
          </td>
         
        <td class="tdwkey">确认密码</td>
          <td class="tdwvalue"> 
               <asp:TextBox ID="confirmpassword"    TextMode="Password"   runat="server"></asp:TextBox> 

                 
        </td>
           
           </tr>
           
           <tr>
           
     <td class="tdwkey">邮件</TD>
         <td class="tdwvalue"> 
                <asp:TextBox ID="email"      runat="server"></asp:TextBox>  
      <asp:RequiredFieldValidator ControlToValidate="email" ID="RequiredFieldValidator1" runat="server" ErrorMessage="邮件不能够为空" Display="Dynamic"></asp:RequiredFieldValidator>
                  
 <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="邮件格式不正确"
        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"　 Display="Dynamic"
         ControlToValidate="email"></asp:RegularExpressionValidator> 

  </td>
          
          
          
          
          
            <td class="tdwkey">部门</td>
           <td class="tdwvalue"> 
               <asp:TextBox ID="txt_department" runat="server"></asp:TextBox>
            </td>  
          
            <td class="tdwkey">显示名</td>
            <td class="tdwvalue"> 
              <asp:TextBox ID="txt_displayname" runat="server"></asp:TextBox>
             </td>
           </tr>
          
          
      
          
  <tr>    
      <td class="tdwkey">电话</TD>
      <td class="tdwvalue">  
              <asp:TextBox ID="tel"  runat="server"></asp:TextBox>  
      </td>
         
                
       <td class="tdwkey">传真</td>
        <td class="tdwvalue"> 
          <asp:TextBox ID="fax"  runat="server"></asp:TextBox>  
       </td>
            
     
             <td class="tdwkey">办公室</TD>
             <td class="tdwvalue">
             <asp:TextBox ID="office"   runat="server"></asp:TextBox> 
            </td>
       </tr>
          
          
          <tr>
          
          <td class="tdwkey">职务</TD>
          <td class="tdwvalue">  
              <asp:TextBox ID="txt_title"  runat="server"></asp:TextBox>   
           </td>
           
           
           
            
          <td class="tdwkey">员工号</TD>
      <td class="tdwvalue">  
              <asp:TextBox ID="txt_staffcode"  runat="server"></asp:TextBox>   
           </td>
           
           
                
         <td class="tdwkey"  >头像:</td>
        <td class="tdwvalue">  
         
       <asp:textbox id="image_small"   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>
          
          <td class="tdwkey">性别</td>
          <td class="tdwvalue" >  
              <asp:DropDownList ID="ddl_sex" runat="server">
              <asp:ListItem Text="" Value=""></asp:ListItem>
              <asp:ListItem Text="男" Value="男"></asp:ListItem>
              <asp:ListItem Text="女" Value="女"></asp:ListItem>
              </asp:DropDownList> 
           </td>
           
           
           
           
           
		 <td class="tdwkey">帐户属性</td>
		  <td class="tdwvalue" 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 class="tdwvalue">
          <td colspan="6" style=" padding-left:80px;">
          自我简介<br />
           
              <asp:TextBox ID="txt_intro" Width="600" Height=60 TextMode=MultiLine  runat="server"></asp:TextBox>
         
          </td>
          </tr>   
          
          
          
         <tr class="tdwvalue">
          <td colspan="6" align="center">
              
               
              <br />
              <asp:Button ID="submit"  runat="server" OnClick="submit_Click"     style=" height:22px; width:100px"   class="btn" Text="更新" />
             &nbsp;   &nbsp;
               <a href="login.aspx">登陆</a> &nbsp;   &nbsp; <a href="getpassword.aspx">获取密码</a> 
                                                <br />
              <br />
              <br />
          </td></tr>
          
          
        
 
</tbody>
</table>
        
        
    </div>
    
    
    
    
     
    
   
    
     
        
    
    </form>
</body>
</html>
