<%@ page language="C#" masterpagefile="~/member/MemberMasterPage.master" autoeventwireup="true" inherits="V5Shop.NewMember.User_UserCard_Manage, V5Shop.Member" title="我的会员卡" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Register Src="UserControl/PageList.ascx" TagName="PageList" TagPrefix="uc1" %>
<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="V5" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  <div style="float:left; width:760px">
    <div><img src="images/list/top-1.gif" /></div>
	<div style="border-right:1px #C5DCE7 solid; width:753px;padding-left:3px">
	  <div style="background:url(images/list/a-1.gif); width:738px; height:30px; line-height:30px">
	    <div style="float:left; font-weight:bold; color:#014D7F; font-size:14px; padding-left:10px">我的会员卡 </div>
		<div style="float:right; padding-right:10px"><font color="#ff0000">*</font>表示该项必填</div>
	  </div>
	  <div class="account">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="400">
                <table style="background-color:#f6f6f6;" width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="35%">
                        <span id="Label3">会员卡号</span>：</td>
                    <td width="65%"> <asp:Label id="lblNumber" runat="server"></asp:Label>
                        <asp:Button ID="btnChangePassword" runat="server" CssClass="input_bg2" OnClick="btnChangePassword_Click"
                            Text="修改密码" Visible="False" />
                        <asp:Button ID="btnChangeUserCard" runat="server" CssClass="input_bg2" OnClick="btnChangeUserCard_Click"
                            Text="绑定会员卡" /></td>
                  </tr>
                  <tr style="font-size:19px;">
                    <td width="35%">
                        <span id="Label9">卡内余额</span>：</td>
                    <td width="65%"> <asp:Label id="lblCardPrise" runat="server" Text="0.00元" ForeColor="#ff9900" Font-Bold="true"></asp:Label> </td>
                  </tr>
                  <tr>
                    <td width="35%">
                        <span id="Label4">信用额度</span>：</td>
                    <td width="65%"> <asp:Label id="lblCredit" runat="server"></asp:Label></td>
                  </tr>
                  <tr>
                      <td width="35%">
                          <span id="Label16">最后使用日期：</span></td>
                      <td width="65%"><asp:Label id="lblEndDate" runat="server"></asp:Label>
                      </td>
                  </tr>
                </table>
            </td>
            <td>
            <b style="font-weight:bolder;font-size:13px;">会员卡使用细则：</b><br/>
            <span style="line-height:2.5">1.使用会员卡支付时的密码即为会员卡密码</span><br/>
            <span style="line-height:2.5">2.会员卡的密码将会以站内信的形式发送到您的邮箱</span><br/>
            <span style="line-height:2.5">3.积分兑换比例为100：1,即100积分可兑换1元</span><br/>
            <span style="line-height:2.5">4.积分兑换比例为100：1,即100积分可兑换1元</span><br/>
            </td>
          </tr>
          <tr>
            <td colspan="2" align="center">
                <div style="padding-right: 10px; padding-left: 10px;
                    padding-bottom: 10px; width: 700px; padding-top: 10px;">
                    <div style="padding-left: 20px; background: url(images/list/tab-bg.gif) repeat-x 50% bottom;
                        height: 27px">
                        <div style="font-weight: bold; background: url(images/list/tab-1.gif) no-repeat;
                            float: left; width: 76px; color: #111; line-height: 27px; margin-right: 3px;
                            height: 27px; text-align: center">
                            <a href="User_PriceCard_Manage.aspx">我的充值卡</a></div>
                    </div>
                   <div style="background:url(images/list/bg_2.gif) repeat-x; height:30px; line-height:30px">
	                <div style="float:left; width:150px; text-align:center">充值卡卡号</div>
		            <div style="float:left; width:150px; text-align:center">密码</div>
		            <div style="float:left; width:100px; text-align:center">充值卡金额 </div>
		            <div style="float:left; width:100px; text-align:center">充值状态</div>
		             <div style="float:left; width:100px; text-align:center">充值时间</div>
		              <div style="float:left; width:100px; text-align:center">最后使用日期</div>
	              </div>
                    <div style="border-top: #dedee0 1px solid; margin-top: 2px; background: #f3f3f3;
                        line-height: 28px; border-bottom: #dedee0 1px solid; height: 28px">
                        <input id="CheckAllBox" class="checkbox" name="checkbox" onclick="CheckAll()" type="checkbox" />
                        全选
                        <asp:Button ID="BtnDelete2" runat="server" CssClass="input_bg" OnClick="BtnDelete_Click"
                            Text="删除" /> <asp:LinkButton ID="btnAdd" runat="server" ForeColor="#4B6888"  OnClick="btnChangePrice_Click"><img src="images/key_moneycard.gif" alt="使用充值卡" border="0" /> 使用充值卡</asp:LinkButton>
                    </div>
                    <div class="list2_div1">
                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                          <asp:Repeater ID="rpShopCardList" runat="server">
                                <ItemTemplate>
                                    <tr>
                                        <td width="20">
                                            <asp:CheckBox ID="chkChoose" runat="server" />
                                            <asp:HiddenField ID="CheckBoxID" runat="server" Value='<%# Eval("ID") %>' />
                                        </td>
                                        <td align="center" width="130px">
                                            &nbsp;<%# Eval("Number")%>
                                        </td>
                                        <td align="center" width="100px">
                                           &nbsp;   <V5:HelpCtrl ID="HelpCtrl1" runat="server" ImageURL="images/key_detail.gif" Header="卡密码:" 
                                                        FontColor="#000000" Text='<%# DataBinder.Eval(Container.DataItem, "Password") %>'></V5:HelpCtrl>
                                        </td>
                                        <td align="center" width="100px">
                                            <%# Eval("Price")%>
                                        </td>
                                       <td align="center" width="100px">
                                          &nbsp; <%# FormatState(DataBinder.Eval(Container.DataItem, "RechargeStatus")) %>
                                        </td>
                                        
                                          <td align="center" width="100px">
                                            &nbsp;<%# Eval("RechargeDate")%> 
                                        </td>
                                          <td align="center" width="100px">
                                            <%# Eval("EndDate")%>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </table>
                    </div>
                    <div style="border-top: #dedee0 1px solid; margin-top: 2px; background: #f3f3f3;
                        line-height: 28px; border-bottom: #dedee0 1px solid; height: 28px;">
                        <%--<div style="float: left">
                            <input id="CheckAllBox2" class="checkbox" name="checkbox1" onclick="CheckAll2()" type="checkbox" />
                            全选
                            <asp:Button ID="BtnDelete" runat="server" CssClass="input_bg" OnClick="BtnDelete_Click" Text="删除" />
                        </div>
                        <uc1:pagelist id="PageList1" runat="server"></uc1:pagelist>--%>
                    </div>
                </div>
            </td>
          </tr>
          <tr>
            <td colspan="2" align="center">
                <div style="padding-right: 10px; padding-left: 10px;
                    padding-bottom: 10px; width: 700px; padding-top: 10px">
                    <div style="padding-left: 20px; background: url(images/list/tab-bg.gif) repeat-x 50% bottom;
                        height: 27px">
                        <div style="font-weight: bold; background: url(images/list/tab-1.gif) no-repeat;
                            float: left; width: 76px; color: #111; line-height: 27px; margin-right: 3px;
                            height: 27px; text-align: center">
                            <a href="User_UserCardLog_View.aspx">消费记录</a></div>
                    </div>
                   <div style="background:url(images/list/bg_2.gif) repeat-x; height:30px; line-height:30px">
	                <div style="float:left; width:150px; text-align:center">购物卡卡号</div>
		            <div style="float:left; width:160px; text-align:center">此次消费金额</div>
		            <div style="float:left; width:100px; text-align:center">第几次消费</div>
		            <div style="float:left; width:160px; text-align:center">消费日期</div>
		            <div style="float:left; width:100px; text-align:center">订单号</div>
	              </div>
                    <div style="border-top: #dedee0 1px solid; margin-top: 2px; background: #f3f3f3;
                        line-height: 28px; border-bottom: #dedee0 1px solid; height: 28px">
                              <input type="button" class="input_bg" value="返回" onclick="window.location.href='User_ShopCard_Manage.aspx'" />
                    </div>
                    <div class="list2_div1">
                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                          <asp:Repeater ID="Repeater1" runat="server">
                                <ItemTemplate>
                                    <tr>
                                        <td align="center" width="150px">
                                            <%# Eval("Number")%>
                                        </td>
                                        <td align="center" width="100px">
                                            <%# Eval("Price")%>
                                        </td>
                                        <td align="center" width="100px">
                                           &nbsp; <%# Eval("Order")%>
                                        </td>
                                       <td align="center" width="160px">
                                            <%# Eval("Date")%>
                                        </td>
                                      <td align="center" width="130px">
                                           &nbsp; <%# Eval("OrderNumber")%>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </table>
                    </div>
                     <%--<div style="border-top: #dedee0 1px solid; margin-top: 2px; background: #f3f3f3;
                            color: #0000ff; line-height: 28px; border-bottom: #dedee0 1px solid; height: 28px;
                            text-decoration: underline">
                            <uc1:pagelist id="PageList2" runat="server"></uc1:pagelist>
                        </div>--%>
                    </div>
            </td>
          </tr>
          <tr>
            <td colspan="2" align="center"><a href="User_ScoreBuyLog_View.aspx">查看积分兑换记录</a></td>
          </tr>
          <tr>
            <td colspan="2" align="center">
            </td>
          </tr>
        </table>
	  </div>
       <div class="center_5">
	<div class="clear">&nbsp;</div>
	</div>
	</div>
	<div><img src="images/list/bottom-1.gif" /></div>
  </div>
    <asp:Label ID="lblParam" runat="server" Text="参数错误" Visible="false" ></asp:Label>
    <asp:Label ID="lblDelete" runat="server" Text="您确定要删除吗?" Visible="false" ></asp:Label>
    <asp:Label ID="lblUserNoWork" runat="server" Text="会员没有会员卡，无法进行操作！" Visible="false" ></asp:Label>
    <asp:Label ID="lblCardLock" runat="server" Text="会员卡已被锁定，无法进行操作！" Visible="false" ></asp:Label>
    <asp:Label ID="lblCartHave" runat="server" Text="此卡已被充值！" Visible="false" ></asp:Label>
    <asp:Label ID="lblChoice" runat="server" Text="请选择一条记录！" Visible="false" ></asp:Label>
    <script language="javascript" type="text/javascript">
    ShowOrHidden(1);
    ShowOrHidden(3);
    </script>
</asp:Content>

