<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="oa.Master" CodeBehind="StaffList.aspx.cs" Inherits="Worklog.Worklog.StaffList" %>
 

   <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <style>
     .r {
      color:red}
 </style>

  <div id="MainBody">

      <div class="pull-right" style="margin:10px" >

     输入姓名查询 <asp:TextBox ID="txt_username" CssClass="form-control"  Width="200"
         style="display:inline-block" runat="server"></asp:TextBox>
             <asp:Button ID="Button1" CssClass="btn btn-primary btn-flat"
             runat="server" Text="搜 索"   onclick="Button1_Click"  UseSubmitBehavior="true" />

      </div>
      
 
     <table class="table100">
      <tr valign="top">

          
         <td width=210px>
 
    <ul class="nav nav-pills nav-stacked" style="width:200px">
        <li class="<%=IsHover("") %>">
            <a href="StaffList.aspx">所有员工</a>
        </li>

   
   <asp:Repeater runat="server" ID="rpt_dept">
       <ItemTemplate>
         <li class="<%#IsHover(Eval("catname")) %>">
             <a href="StaffList.aspx?dept=<%#Server.UrlEncode(Eval("catname").ToString()) %>">
               <%#Eval("catname") %> 
           </a>
         </li>
       </ItemTemplate>

   </asp:Repeater>
 </ul>
        </td>

          <td>


    
	  
		     
		    
			 <table class="table table-hover">
		      <tbody>
		      
		       
		   <tr class="tr_title">
               <td width="20%"><b>照片</b></td>
		     <td width="20%"><b>用户名</b></td>
		     <td width="20%"><b>部门</b></td> 
			 <td width="15%"><b>电话分机</b></td>
             <td width="10%"><b>职务</b></td>
			 <td width="10%"><b>办公室</b></td>
		   </tr> 

        <asp:Repeater runat="server" ID="rpt_users">
<ItemTemplate>

		   <tr style="vertical-align:middle; height:85px"  >
		    <td> 
	  
	 	 <a href="#" onclick="Pop2('userdetail.aspx?id=<%#Eval("uid") %>',900,525,'员工详细信息'); return false;">
		   <img src="<%#Eval("avtor") %>"    class="img-rounded" height="80px" />
         </a>
          
		    </td>
		 
			  <td>
                   <a href="#" onclick="Pop2('userdetail.aspx?id=<%#Eval("uid") %>',900,525,'员工详细信息'); return false;">
              <%#Eval("displayname")%>  <br />
  <%#Eval("username")%>
                       </a>

              </td>
			  <td><%#Eval("department") %></td>
              <td><%#Eval("tel") %></td>
                <td class="r"><%#Eval("title") %></td>
			  <td><%#Eval("office") %></td>
	       </tr>
		   

	</ItemTemplate>

</asp:Repeater>
		 
		 
		 
		 
	  
		     </tbody></table>
		 
 


          </td>

          </tr>

         </table>

  </div>
  
 
  















  <script>
  
  
  
      function Pop2(_src, _width, _height, _title) {


          layer.open({
              type: 2,
              title: _title,
              shadeClose: true,
              shade: 0.8,
            
              area: [_width + 'px', _height + 'px'],
              content: _src
          });

   
}
  </script>
 
  </asp:Content>