<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PeterpageList.aspx.cs"
    Inherits="PeterPage.PeterpageList" %>

<!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 runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="css/css.css" />
    <script type="text/javascript" src="JS/jquery-1.7.2.js"></script>
    <script type="text/javascript" src="JS/Bll.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            pageLoad();   //页面记载，隔行变色
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Repeater ID="rptList" runat="server">
            <HeaderTemplate>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
                    <tr>
                        <th width="30">
                            编号
                        </th>
                        <th width="100">
                            用户名
                        </th>
                        <th width="100">
                            密码
                        </th>
                        <th width="100">
                            电话
                        </th>
                        <th width="100">
                            邮件
                        </th>
                        <th width="100">
                            最后一次登录时间
                        </th>
                        <th width="100">
                            职位
                        </th>
                        <th width="100">
                            用户状态
                        </th>
                        <th width="120">
                            操作
                        </th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td align="center">
                        <%#Eval("ID")%>
                    </td>
                    <td align="center">
                        <%#Eval("userName")%>
                    </td>
                    <td align="center">
                        <%#Eval("passWord")%>
                    </td>
                    <td align="center">
                        <%#Eval("userTel")%>
                    </td>
                    <td align="center">
                        <%#Eval("userMail")%>
                    </td>
                    <td align="center">
                        <%#Eval("userLastLogin","{0:yyyy-MM-dd}")%>
                    </td>
                    <td align="center">
                        <%#Eval("userPost")%>
                    </td>
                    <td align="center">
                        <%#Eval("userState").ToString().Trim() == "0" ? "<img title=\"正常\" width='14' height='13' src=\"images/icon_correct.png\" />" : "<img title=\"禁用\" width='14' height='13' src=\"images/icon_disable.png\" />"%>
                    </td>
                    <td align="center">
                        <span><a href="#">查看</a></span> <span><a href="#">编辑</a></span> <span>
                            <asp:LinkButton ID="lbDel" CommandName="Del" runat="server" OnClientClick="return confirm( '确定要删除吗？ ')">删除</asp:LinkButton></span>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
        <div style="line-height: 30px; height: 30px;">
            <%--实现分页技术--%>
            <div class="right">
                <Peter:Pager ID="Pager1" runat="server" OnPageIndexChanging="Pager1_PageIndexChanging" />
            </div>
        </div>
    </div>
    </form>
</body>
</html>
