<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Photos.aspx.cs" Inherits="TotCms.Web.Office.Staff.Photos" %>
<%@ Register assembly="TotCms.Controls" namespace="TotCms.Controls" tagprefix="cc1" %>
<!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>
    <link href="../style/global.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    .photos{ background-color:#f5f5f5;}
    .photos ul{ list-style:none; margin:0px; padding:0px;}
    .photos li{ list-style:none; margin:10px 0px 5px 0px; padding:0px; float:left; width:20%; text-align:center; line-height:25px;}
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="right_dqwz">员工信息</div>
    <table cellpadding="0" cellspacing="1" border="0" width="100%">
      <tr>
        <td colspan="6" class="topic">&nbsp;姓名：<asp:TextBox ID="tbUserName" runat="server"></asp:TextBox>
          <asp:Button ID="Button1" runat="server" Text="查询" onclick="Button1_Click" />
        </td>
      </tr>   
    </table>
    <asp:ListView ID="lvList" runat="server" ItemPlaceholderID="items"
        DataKeyNames="id">
        <LayoutTemplate>
          <div class="photos"><ul>
          <asp:PlaceHolder runat="server" ID="items"></asp:PlaceHolder>
          </ul></div>
        </LayoutTemplate>   
        <ItemTemplate>
            <li><a href='Staff_Show.aspx?id=<%# Eval("id") %>'><img src='<%# Eval("Photo")%>' width="120" height="100" border="0" /><br /><%# Eval("UserName")%></a></li>
        </ItemTemplate>     
        <EmptyDataTemplate>
            <div class="info">暂时没有数据.</div>
        </EmptyDataTemplate>       
    </asp:ListView>
    <div class="clear"></div>
    <cc1:Pager ID="Pager1" runat="server" GenerateFirstLastSection="True" 
      GenerateGoToSection="True" GenerateHiddenHyperlinks="False" 
      QueryStringParameterName="CurrentPage" OnCommand="pager_Command" 
      GoToStyle="text" OfClause="/" PageClause="页" PageSize="15" />
    </form>
</body>
</html>

