<%@ Page Title="" Language="C#" MasterPageFile="~/Master/officeMaster.master" AutoEventWireup="true" CodeFile="BankList.aspx.cs" Inherits="Account_BankList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div>
        <asp:Button ID="btnAddBank" runat="server" Text="添加银行" Width="120" Height="25" onclick="btnAddBank_Click" />
   </div>
      <table class="usertableborder" cellspacing="1"  cellpadding="3" width="40%" align="center"  border="1"> 
            <tr style="background-color:#3795d2">
                <th class="usertablerow2" width="40%" >
                    银行名
                </th>
                <th>
                    操作
                </th>
            </tr>
            <asp:Repeater ID="rptBank" runat="server" onitemcommand="rptBank_ItemCommand" 
                onitemdatabound="rptBank_ItemDataBound">
                <ItemTemplate>
                    <tr align="center"  onmousemove="this.style.backgroundColor='#0099CC'" onmouseout="this.style.backgroundColor='white'">
                        <td>
                            <%#Eval("BankName")%>
                        </td>
                        <td>
                            <asp:HiddenField ID="hfBankId" runat="server" Value='<%#Eval("BankID") %>' />
                            <asp:HiddenField ID="hfBankState" runat="server" Value='<%#Eval("State") %>' />
                            <asp:LinkButton ID="lbtnEdit" runat="server" CommandName="edit" Text="编辑"></asp:LinkButton>
                           <%-- <asp:LinkButton ID="lbtnBlock" runat="server" CommandName="block" Text="停用"></asp:LinkButton>--%>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
            <tr>
            <td colspan="2" align="center">
                <span>当前<span id="spanPageCurrent" runat="server">1</span>/<span id="spanPageCount" runat="server"></span>页</span>
                <asp:LinkButton ID="lbtnPageFirst" runat="server" Text="首页" BackColor="Silver" Width="56px" 
                    onclick="lbtnPageFirst_Click"></asp:LinkButton>
                <asp:LinkButton ID="lbtnPageUp" runat="server" Text="上页" BackColor="Silver" Width="56px" 
                    onclick="lbtnPageUp_Click"></asp:LinkButton>
                <asp:LinkButton ID="lbtnPageDown" runat="server" Text="下页"  BackColor="Silver" Width="56px"
                    onclick="lbtnPageDown_Click"></asp:LinkButton>
                <asp:LinkButton ID="lbtnPageLast" runat="server" Text="末页"  BackColor="Silver" Width="56px"
                    onclick="lbtnPageLast_Click"></asp:LinkButton>
            </td>
        </tr>
    </table>
</asp:Content>
