<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Basic.Master" AutoEventWireup="true" CodeBehind="UserEditUser.aspx.cs" Inherits="ServiceDesk.Admin.UserEditUser" %>
 
 
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

     

     



 <div class="result-wrap">
    
   
  

              <table  class="table  "     >

        <tbody> 
        <tr  >     
         <th class="req" width="100px" >用户名  </th>
          <td width="200px"> 
             <asp:TextBox   ID="username"  CssClass="form-control"  autocomplete="off"   runat="server"></asp:TextBox>  
            <asp:RequiredFieldValidator ControlToValidate="username" ID="RequiredFieldValidator2" runat="server" ErrorMessage="用户名不能够为空" Display="Dynamic"></asp:RequiredFieldValidator>
        </td>
           
        <th  width="100px" >密码
          
               <asp:PlaceHolder runat="server" ID="pl_pwd">
                <span style="color:#ff0000">*</span>
            </asp:PlaceHolder>

        </th>
        <td  width="200px" > 
             <asp:TextBox ID="password" autocomplete="off"   CssClass="form-control"  runat="server"  ></asp:TextBox>
               

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

          </td>
         
        <th width=100px rowspan="3" valign="middle"> 头像</th>
          <td rowspan="3" width="200px"> 
                
                 <a href="###"  id="a_avtor">
                      <img src="images/avtor.jpg" id="img_avtor"   style="width:80px; border:solid 1px #ccc; margin:5px;   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"  autocomplete="off"  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"   height="80px"
                   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>
    
    


     
    

</asp:Content>
