<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CountryList.aspx.cs" Inherits="AngelShop.ManageWeb.CountryList" %>

<!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 href="Css/StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

        <table border="0" cellspacing="1" cellpadding="3" height="1" class="table" width="98%">
            <tr>
                <td colspan="7" class="title">
   [按国家列表新增支付方式]    
                </td>
            </tr>
            <tr>
                <td colspan="7" class="td">
                    <div align="center">
                        <asp:GridView ID="myGridView" runat="server" AutoGenerateColumns="False" BorderStyle="None"
                            DataKeyNames="ID" Width="100%">
                            <HeaderStyle Font-Bold="True" Wrap="False" ForeColor="White" CssClass="title" BackColor="#799AE1"
                                Height="25px"></HeaderStyle>
                            <Columns>
                                <asp:TemplateField HeaderText="选择">
                                    <ItemStyle HorizontalAlign="Center" CssClass="td" Width="4%" />
                                    <HeaderStyle CssClass="td" />
                                    <ItemTemplate>
                                        <asp:CheckBox ID="CheckBoxID" runat="server" name="CheckBoxID" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="国家名称">
                                    <ItemStyle HorizontalAlign="Center" CssClass="td" Width="10%" />
                                    <HeaderStyle CssClass="td" />
                                    <ItemTemplate>
                                        <asp:Label ID="Title" runat="server" Text='<%#Eval("ContryName")%>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                
                                <asp:TemplateField HeaderText="国家编码">
                                    <ItemStyle CssClass="td" />
                                    <HeaderStyle CssClass="td" />
                                    <ItemTemplate>
                                        <%#Eval("Nsb")%>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="中文名称">
                                    <ItemStyle HorizontalAlign="Center" CssClass="td" Width="10%" />
                                    <HeaderStyle CssClass="td" />
                                    <ItemTemplate>
                                        <asp:Label ID="PointValue" runat="server" Text='<%#Eval("Zh_CN")%>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>


                                <asp:TemplateField HeaderText="创建日期">
                                    <ItemStyle CssClass="td" />
                                    <HeaderStyle CssClass="td" />
                                    <ItemTemplate>
                                        <%# Eval("CreatedTime")%>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="修改时间">
                                    <ItemStyle HorizontalAlign="Center" CssClass="td" Width="10%" />
                                    <HeaderStyle CssClass="td" />
                                    <ItemTemplate>
                                  <%#Eval("ModifiedTime")%>
                                     
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="操作">
                                    <ItemStyle HorizontalAlign="Center" CssClass="td" Width="10%" />
                                    <ItemTemplate>
                                        <a href="PaymentSetting.aspx?ID=<%#Eval("ID") %>">添加支付方式</a>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <HeaderStyle CssClass="title" />
                        </asp:GridView>
                    </div>
                </td>
            </tr>
            <tr>
                <td colspan="7" class="td">
                    <div align="right">
                        <webdiyer:AspNetPager ID="myAspNetPager" runat="server" HorizontalAlign="Right" OnPageChanged="myAspNetPager_PageChanged"
                            ShowCustomInfoSection="Left" SubmitButtonText=" G O  " CustomInfoHTML="Page  <font color='red'><b>%CurrentPageIndex%</b></font> of  %PageCount%&nbsp;&nbsp;Order %StartRecordIndex%-%EndRecordIndex%"
                            PageSize="20" AlwaysShow="True">
                        </webdiyer:AspNetPager>
                    </div>
                </td>
            </tr>
            <tr>
                <td colspan="7" class="td">
                    <table>
                        <tr>
                            <td style="width: 167px">
                                <input name="chkAll" type="checkbox" id="Checkbox1" onclick="SelAll();" value="checkbox"
                                    style="border: 0px; background-color: #eeeeee;">
                                选择所有&nbsp;&nbsp; 操作：
                            </td>
                            <td>
                                <asp:RadioButtonList ID="RadManageType" runat="server" RepeatDirection="Horizontal">
                                    <asp:ListItem Value="0">关闭</asp:ListItem>
                                    <asp:ListItem Value="1">开启</asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                            <td>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td height="35" colspan="7" class="td">
                    <div align="center">
                        &nbsp;<asp:Button ID="Button1" runat="server" Text=" 执行操作 " OnClick="Button1_Click" /></div>
                </td>
            </tr>

      <tr>
        <td align="center" class="td" colspan="7" style="height: 25px">
          <asp:TextBox ID="txtKeywords" runat="server"></asp:TextBox>
          &nbsp;
          <asp:Button ID="Button2" runat="server" Text="  搜　索　" onclick="Button2_Click" />
        </td>
      </tr>



        </table>
    </div>

    <script type="text/javascript" language="javascript">
function SelAll(){
  oEl = event.srcElement;
  for(i = 0;i < document.all.length; i++){
    // datagrid将生成层次名+id作为客户端id
    if(document.all(i).id.indexOf("CheckBoxID") != -1){
      if(oEl.checked)
        document.all(i).checked = true;
    else
      document.all(i).checked = false;
    }
  }
}
    </script>

    </form>
</body>
</html>
