<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="TotCms.Web.Office.Staff.Index" %>
<%@ 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" />
</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">选择机构：<asp:DropDownList ID="ddOrg" runat="server">
          </asp:DropDownList>
&nbsp;选择部门：<asp:DropDownList ID="ddDept" runat="server">
          </asp:DropDownList>
&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>
          <table cellpadding="0" cellspacing="1" border="0" width="100%" class="border">            
          <tr class="suphead">
              <td>姓名</td>
              <td>机构</td>
              <td>部门</td>
              <td>性别</td>
              <td>电话</td>
              <td>手机</td>
              <td>传真</td>
              <td>职位</td>
              <td>职称</td>              
              <td>邮箱</td>
          </tr>
          <asp:PlaceHolder runat="server" ID="items"></asp:PlaceHolder>
          </table>
        </LayoutTemplate>   
        <ItemTemplate>
            <tr class="lines" onmouseover="this.style.backgroundColor='#ffffff';" onmouseout="this.style.backgroundColor='#f5f5f5';">
            <td><a href='Staff_Show.aspx?id=<%# Eval("id") %>'><%# Eval("UserName")%></a></td>
            <td><%# Eval("OrgId")%></td>
            <td><%# Eval("DeptId")%></td>
            <td><%# Eval("Sex")%></td>
            <td><%# Eval("Tel")%></td>
            <td><%# Eval("Mobile")%></td>
            <td><%# Eval("Fax")%></td>
            <td><%# Eval("Position")%></td>
            <td><%# Eval("Qualification")%></td>
            <td><%# Eval("Email")%></td>

            </tr>
        </ItemTemplate>     
        <EmptyDataTemplate>
            暂时没有数据.
        </EmptyDataTemplate>       
    </asp:ListView>
    <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>

