<%@ page title="" language="C#" masterpagefile="~/Admin/AdminIndexMaster.master" autoeventwireup="true" inherits="Admin_MBF_UserCardStoreManage, WebApp_deploy" %>

<asp:Content ID="Content0" ContentPlaceHolderID="CPHead" runat="Server">
    <script type="text/javascript" src="Js/Jquery/jquery-1.4.1.min.js"></script>
    <script src="../Js/tooptip.js" type="text/javascript"></script>
    <script type="text/javascript">
        function Deleteid(id) {
            if (confirm('真的要删除吗?删除后不可恢复！')) {
                $.post("/WebService/MBFService.ashx", { newdate: new Date().getMilliseconds(), action: 'DeleteVipCardStore', id: id }, function (data) {
                    if (data == "1") {
                        $('#tr_' + id).remove();
                        alert("删除成功！");
                    }
                    else {
                        alert("删除失败！");
                    }
                }, "text");
            }

        }
    </script>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table class="nick">
        <tr>
            <td class="tit left1" colspan="6">
                按卡类别名称查询：<asp:TextBox ID="txtKeywords" runat="server"></asp:TextBox>
                &nbsp;<asp:Button ID="Button_Search" runat="server" Text="查询" OnClick="Button_Search_Click" />&nbsp;&nbsp;&nbsp;&nbsp;
            </td>
            <td class="tit" style="text-align: right;">
                <a href="MBF_UserCardStoreEdit.aspx?MenuName=卡类管理&FileName=可购VIP卡添加">
                    <img style="border: 0px;" src="tpl/img/ico/add.gif" />新增 </a>
            </td>
        </tr>
    </table>
    <asp:Repeater ID="Repeater_CompareSet" runat="server">
        <HeaderTemplate>
            <table style="border-collapse: collapse" class="adminlist">
                <tr>
                    <th>
                        序号
                    </th>
                    <th>
                        类别名称
                    </th>
                    <th>
                        面值
                    </th>
                    <th>
                        返还比率
                    </th>
                    <th>
                        图片
                    </th>
                    <th>
                        操作
                    </th>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr onmouseover="cc(this)" onmouseout="cc1(this)" id='tr_<%#Eval("id") %>'>
                <td>
                    <%#Eval("rowid") %><a name='pos_<%#Eval("id") %>'></a>
                </td>
                <td>
                    <%#GetNameByCategory(Eval("CardCategory"))%>
                </td>
                <td>
                    <%#Eval("FaceValue")%>元
                </td>
                <td>
                    <%#Eval("DiscountRate")%>%
                </td>
                <td>
                    <a href="javascript:void(0);" class="tooltip" title='面值<%#Eval("FaceValue")%>的<%#GetNameByCategory(Eval("CardCategory"))%>图片'>
                        <img alt='卡对应的图片' bigimg='../UpLoadFile/VIPCardPic/<%#Eval("Pictrue")%>' src='../UpLoadFile/VIPCardPic/<%#Eval("Pictrue")%>'
                            style="width: 40px; height: 30px" /></a>
                </td>
                <td>
                    <a href='MBF_UserCardStoreEdit.aspx?MenuName=卡类管理&FileName=可购VIP卡编辑&id=<%#Eval("id") %>'>
                        修改/<a href='javascript:Deleteid(<%#Eval("id") %>)'>删除</a></a>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            <tr>
                <th>
                    <a href='MBF_UserCardStoreEdit.aspx?MenuName=卡类管理&FileName=可购VIP卡添加'></a>
                </th>
                <th class="left1" colspan="3">
                </th>
            </tr>
            </table>
        </FooterTemplate>
    </asp:Repeater>
</asp:Content>
