<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.NewMember.User_SelectPay_Dialog, V5Shop.Member" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="V5Shop" %>
<!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>
    <style type="text/css">
    body
    {
        margin: 0px;
    }
    td
    {
        color: #666666;
        font-size: 12px;
        font-family: Arial, Helvetica, sans-serif;
    }
    th {font-size:12px;}
    A:link
    {
        text-decoration: none;
        color: #696969;
    }
    A:visited
    {
        text-decoration: none;
        color: #696969;
    }
    A:active
    {
        text-decoration: none;
        color: #696969;
    }
    A:hover
    {
        text-decoration: underline;
        color: #0000CC;
    }    
    .category
    {
        border-left: 1px #FFFFFF solid;
        border-right: 1px #CCCCCC solid;
        color: #000000;
        font-weight: bold;
        background: url(images/listbg.gif);
    }

    .datalist
    {
        width: 100%;
    }

    .title{
        color:#666666;
        font-size: 12px; 
        font-family:Arial, Helvetica, sans-serif;
        width: 150px;
        text-align: right
    }
    .item{
        color:#666666;
        font-size: 12px; 
        font-family:Arial, Helvetica, sans-serif;
        width: 650px;
        text-align: left
    }
    .listborder tr td
    {
        border-bottom: 1px #cccccc solid;
    }
    .listnavi
    {
        height: 36px;
        background: url(images/labelbg.gif);
    }
    .listnavi div
    {
        float: left;
        padding: 10px 10px 11px;
        color: #000000;
        text-align: center;
    }
    .listnavititle
    {
        float: left;
        padding: 10px 20px;
        color: #000000;
        font-weight: bolder;
    }
    #listnaviselect
    {
        background: url(../images/select1A.gif);
    }
    #listnaviselect a
    {
        float: left;
        background: url( "../images/select1A.gif" ) no-repeat left top;
        margin: 0;
        padding: 0 0 0 4px;
        text-decoration: none;
    }
    #listnaviselect a b
    {
        float: left;
        display: block;
        background: url( "../images/select1A.gif" ) no-repeat right top;
        padding: 5px 16px 4px 10px;
        color: #006699;
    }
    #listsearch
    {
        padding: 20px;
        border-bottom: 4px #F7F7F7 solid;
        color: #4B6888;
        font-weight: bolder;
        background: #f1f1f1;
    }
    .listnavibg
    {
        height: 21px;
        border-top: 1px #CCCCCC solid;
        border-bottom: 1px #CCCCCC solid;
        background: url(images/listbg.gif);
    }
    .listnavibg table tr td
    {
        border-left: 1px #FFFFFF solid;
        border-right: 1px #CCCCCC solid;
        color: #000000;
        font-weight: bolder;
    }
    .listoperat
    {
        padding: 3px 25px;
        color: #4B6888;
        border-bottom: 1px #CCCCCC solid;
    }
    .listbar
    {
        background: #F7F7F7;
        border-top: 1px #CCCCCC solid;
        border-bottom: 1px #CCCCCC solid;
        height: 24px;
    }
    .listborder
    {
        border-bottom: 3px #f7f7f7 solid;
        border-top: 1px #CCCCCC solid;
    }

    .listborder table tbody tr th
    {
        border-bottom: 1px #cccccc solid;
        height: 28px;
        text-align: left;
        border-left: 1px #FFFFFF solid;
        border-right: 1px #CCCCCC solid;
    }
    .listborder table tbody tr td
    {
        border-bottom: 1px #cccccc solid;
        height: 22px; padding:3px 0;
    }


    .listborder div table tbody tr th
    {
        border-bottom: 1px #cccccc solid;
        height: 28px;
        text-align: left;
        border-left: 1px #FFFFFF solid;
        border-right: 1px #CCCCCC solid;
    }
    .listborder div table tbody tr td
    {
        border-bottom: 1px #cccccc solid;
        height: 22px; padding:3px 0;
    }



    .listpage
    {
        padding: 10px 10px 30px;
        text-align: right;
        color: #000000;
    }

    #searchmore div
    {
	    padding:2px;}

    </style>
    <script type="text/javascript" language="javascript" src="Js/Common.js"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
            <div class="listborder">
                <V5Shop:V5ShopGridView ID="GridViewShow" runat="server" meta:resourcekey="GridViewShowResource1"
                    AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CssClass="datalist"
                    HeaderStyle-ForeColor="#000" EmptyDataText="没有查询到任何记录" TableName="Payment" PagerSettings-Visible="false">
                    <Columns>
                        <asp:TemplateField ItemStyle-Width="5%">
                            <itemtemplate>
                                <input runat="server" class="checkbox" Value='<%# Eval("DllName") %>' ID="CheckBoxID" type="checkbox" onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" mouse="out">
                            </itemtemplate>
                            <itemstyle horizontalalign="Center" />
                        </asp:TemplateField>
                        <asp:BoundField ItemStyle-Width="15%" DataField="Name" SortExpression="Name" ItemStyle-ForeColor="#000"
                            HeaderText="支付方式名称" />
                        <asp:TemplateField ItemStyle-Width="30%" ItemStyle-ForeColor="#000" HeaderText="简单描述">
                            <itemtemplate>
                            <%# Eval("Description") %>
                            </itemtemplate>
                        </asp:TemplateField>
                    </Columns>
                </V5Shop:V5ShopGridView>
            </div>
            <div align="center">
                <asp:LinkButton ID="btnSelect" runat="server" CausesValidation="False" OnClientClick="return CheckNewEdit()" OnClick="btnSelect_Click">选择此支付方式</asp:LinkButton>
            </div>
            <div id="hiddenfield">
                <asp:HiddenField ID="CheckedIDS" runat="server" Value="0" />
                <asp:HiddenField ID="PageIndex" runat="server" Value="0" />
                <asp:HiddenField ID="MaxPageIndex" runat="server" Value="0" />
              
            </div>
        </div>
        
        <script language="javascript" type="text/javascript">
            function CheckNewEdit(){
                count = 0;
                var ids = GetCheckedBox();
                ids = ids.replace('0,','');
                if(ids=="0") {alert("请选择支付方式"); return false;}
                if(ids.indexOf(",") != -1){
                    alert("您只能选择一种支付方式！");
                    return false;
                }
                
                document.getElementById("CheckedIDS").value = ids;
                
                return true;
            }
        </script>
    </form>
</body>
</html>
