<%@ Page Title="添加用户" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Users_EditUser.aspx.cs" Inherits="Vote.Admin.Users_EditUser" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <link href="../Style/Combox.css" rel="stylesheet" type="text/css" />

 <div class="result-wrap">
    
    
      <table class="insert-tab" width="100%"    >
        <tbody> 
        <tr valign="top">     
          <td width=120px>用户名<span class="red">*</span></td>
          <td> 
             <asp:TextBox   ID="username"   runat="server"></asp:TextBox> 
            <asp:RequiredFieldValidator ControlToValidate="username" ID="RequiredFieldValidator2" runat="server" ErrorMessage="用户名不能够为空" Display="Dynamic"></asp:RequiredFieldValidator>
        </td>
           
        <td width=120px>密码</td>
        <td > 
             <asp:TextBox ID="password"  runat="server"  ></asp:TextBox>
               
          </td>
         
        <td width=120px rowspan="3" valign="middle"> 头像</td>
          <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>
           
     <td>邮件</TD>
         <td> 
            <asp:TextBox ID="email"   runat="server"></asp:TextBox>  
         </td>
          
          
          
          
          
          <td >部门</td>
           <td> 
             <div class="combox" id="cb_dept">
            <div class="dropdown"> 
            <asp:TextBox ID="txt_department" class="cb_popmenu"      runat="server"></asp:TextBox> 
            <div>
            <ul> 
              <asp:Literal runat="server" ID="lt_dept"></asp:Literal> 
            </ul> 
                </div>
                </div> 
               </div> 
               
            </td>  
          
          
           </tr>
          
          
      
          
  <tr>    
    <td>显示名</td>
            <td> 
              <asp:TextBox ID="txt_displayname" runat="server"></asp:TextBox>
             </td>


      <td>电话</TD>
      <td>  
              <asp:TextBox ID="tel"  runat="server"></asp:TextBox>  
      </td> 
        
       </tr>
          
          
          <tr>  
             <td >办公室</TD>
             <td>
             <asp:TextBox ID="office"   runat="server"></asp:TextBox> 
            </td>

          
           <td>职务</TD>
          <td >  
              <asp:TextBox ID="txt_title"  runat="server"></asp:TextBox>   
           </td>
            
                  
                    
       <td>传真</td>
        <td> 
          <asp:TextBox ID="fax"  runat="server"></asp:TextBox>  
       </td> 

  </tr>
          
          
          
           <tr> 
           
          <td >员工号</TD>
            <td >  
              <asp:TextBox ID="txt_staffcode"  runat="server"></asp:TextBox>   
           </td>
            
          
          <td>性别</td>
          <td  >  
              <asp:DropDownList ID="ddl_sex" 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>
           
            
           
		 <td >&nbsp;</td>
		  <td  >
		<span 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成员"/>
		</span>
        
         </td>
            
           
          </tr>
          
          
          
          
          
          
          
          
          
          
          
          
          
           <tr >
          <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 >
          <td colspan="6" align="center">
              
               
              <div class="btnc">
              <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 btn6"  Text="删除" />
               <input type="button" value="返回"  class="btn btn6"  onclick="window.location='Users_Lists.aspx';" />
              </div>
              
                                               
          </td></tr>
          
          
        
 
</tbody>
</table>
  
  
    </div>
    
    
      

        <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>
              combox("cb_dept");
         </script>


  
    
    
    
    
    
    
    
    
    
    

</asp:Content>
