<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Member.User_PriceCard_Manage, V5Shop.Member" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="V5" %>
<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc1" %>
<!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">
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/membercss.css" rel="stylesheet" type="text/css" />
    <title>威博单用户系统</title>
    <script type="text/javascript" language="javascript" src="Js/Common.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <table border="0" cellpadding="5" cellspacing="0" class="membertable">
                <tr>
                    <td style="height: 20px; background-image: url(../images/user/tbj10.gif); background-color: #65697A;" colspan="2">
                        <asp:Label ID="Label6" runat="server" Text="- 充值卡管理 -" Style="color: #ffffff; font-weight: bold;" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align: center; background-color: #ffffff;">
                        <div style="text-align: left; padding-right: 25px; padding-left: 25px; padding-bottom: 3px; color: #4b6888; padding-top: 3px; border-bottom: #cccccc 1px solid">
                            <input name="checkbox" type="checkbox" class="checkbox" id="CheckAllBox" onclick="CheckAll()" />
                            全选 &nbsp;
                            <asp:LinkButton ID="btnAdd" runat="server" ForeColor="#4B6888" OnClientClick="return CheckSelectOne();" OnClick="btnChangePrice_Click"><img src="images/icon/key_moneycard.gif" alt="我要充值" /> 我要充值</asp:LinkButton>
                        </div>
                        <div id="content">
                            <div class="listborder">
                                <V5:V5ShopGridView ID="GridViewShow" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CssClass="datalist" EmptyDataText="没有任何可用信息！" HeaderStyle-ForeColor="#000000" BorderWidth="0px" CacheName="TableCache_" GridLines="None" TableName="" Width="100%">
                                    <PagerSettings Mode="NumericFirstLast" />
                                    <Columns>
                                        <asp:TemplateField meta:resourcekey="DetilData">
                                            <itemtemplate>
                                                <input name="checkbox" type="checkbox" class="checkbox" id="CheckBoxID"
                                                    onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" value='<%# Eval("Number") %>' runat="server" />
                                            </itemtemplate>
                                            <itemstyle horizontalalign="Center" width="5%" />
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID" />
                                        <asp:BoundField DataField="Number" HeaderText="充值卡卡号" SortExpression="Number">
                                            <itemstyle width="15%" />
                                        </asp:BoundField>
                                        <asp:TemplateField meta:resourcekey="DetilData" HeaderText="密码">
                                            <itemtemplate>
                                            <V5:HelpCtrl runat="server" ImageURL="images/key_detail.gif" Header="卡密码:" 
                                                FontColor="#000000" Text='<%# DataBinder.Eval(Container.DataItem, "Password") %>'></V5:HelpCtrl>
                                            </itemtemplate>
                                            <itemstyle horizontalalign="Center" width="5%" />
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="Price" HeaderText="充值卡金额" SortExpression="Price" />
                                        <asp:TemplateField meta:resourcekey="DetilData" HeaderText="充值状态">
                                            <itemtemplate>
                                                <asp:Label id="lblRechargeStatus" runat="server" Text='<%# FormatState(DataBinder.Eval(Container.DataItem, "RechargeStatus")) %>' />
                                            </itemtemplate>
                                            <itemstyle horizontalalign="Center" width="5%" />
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="RechargeDate" HeaderText="充值时间" SortExpression="RechargeDate" />
                                        <asp:BoundField DataField="EndDate" HeaderText="最后使用日期" SortExpression="EndDate" />
                                    </Columns>
                                    <HeaderStyle CssClass="category" ForeColor="Black" />
                                </V5:V5ShopGridView>
                            </div>
                        </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" />
                            <uc1:HiddenField ID="Alert" runat="server" />
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
