<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Userlists.aspx.cs" Inherits="Book.Admin.Userlists" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<div id=sm>
用户列表
</div>
<a href="EditUser.aspx" target="_blank">添加用户</a> 
    &nbsp;&nbsp;

 

  搜索  <asp:TextBox ID="txtsearchname" runat="server"></asp:TextBox>


    <asp:Button ID="Button1" runat="server" Text="搜索" onclick="Button1_Click" />


 <asp:ListView ID="lv_lists" runat="server" 
    ItemContainerID="layoutTableTemplate" onpagepropertieschanging="lv_lists_PagePropertiesChanging1"  
 
 
 >
 
 
    <LayoutTemplate>
 
   <table  cellpadding="0" cellspacing="1" style=" border:solid 1px #f0f0f0; border-collapse:collapse;  ">
	<tr style="white-space:nowrap;" bgcolor="#D8DDE3" align="left" 
	>
	    <th scope="col" width="60px">ID</th>
	    <th scope="col" width="100px">登录名</th>
	    <th scope="col" width="150px">显示名</th>
		<th scope="col" width="80px">部门</th>
	    <th scope="col" width="80px">分机</th>
		<th scope="col" width="150px">邮件</th>
        <th   align="center" scope="col" width="100px">
	    	 操作 
		</th>
	</tr>
        
    <asp:PlaceHolder runat="server" ID="itemPlaceholder"></asp:PlaceHolder>
         
    
	
 </table>
  </LayoutTemplate>
     
  
   
    <ItemTemplate>
    <tr   style=" height:30px;; border-bottom:dotted 1px #00000"
     >
    

 <td >
<%#Eval("uid")%> 
</td>
 
 
<td>
 <%#Eval("username")%> 
</td> 

<td >
 <%#Eval("displayname")%> 
</td>


<td>
<%#Eval("department")%> 
</td>


<td>
<%#Eval("tel")%> 
</td>
 
  <td>
<%#Eval("email")%> 
</td>

 
  
  
		<td> 

       &nbsp;&nbsp;   <a href="#" onclick="window.open('setright.aspx?id=<%#Eval("uid") %>','','left=100px,top=100px,width=500px,height=400');return false;" >角色</a>   
       
	       <a href='edituser.aspx?id=<%#Eval("uid") %>' target="_blank">编辑</a>
        
     
  	</td>  
 
</tr>  
    </ItemTemplate>


  

</asp:ListView>     

<div style=" text-align:right">
<asp:DataPager ID="DataPager1"  PagedControlID="lv_lists" runat="server" PageSize="25">
<Fields>
<asp:NumericPagerField ButtonType="Link" />
</Fields>
</asp:DataPager>
 </div>




</asp:Content>
