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

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

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

        }

    </script>
</asp:Content>
<asp:Content ID="Content2" 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_UserGiftCardFaceValueEdit.aspx?MenuName=卡类管理&FileName=礼品卡面值添加&page=<%=Request["page"] %>">
                    <img alt="新增" style="border: 0px;" src="tpl/img/ico/add.gif" />新增  </a>
            </td>
        </tr>
    </table>
    <asp:Repeater ID="Repeater_Festival" runat="server">
        <HeaderTemplate>
        <table style="border-collapse: collapse" class="adminlist">
        <tr>
            <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>
                <%#Eval("FestivalName")%>
            </td>
            <td>
                <%#Eval("FaceValue")%>
            </td>
            <td>
                <%#Eval("DiscountRate")%>%
            </td>
            <td>
                <a href='MBF_UserGiftCardFaceValueEdit.aspx?MenuName=卡类管理&FileName=礼品卡面值编辑&id=<%#Eval("id") %>&page=<%=Request["page"] %>'>修改/<a href='<%#GetDelLink(Eval("id")) %>'>删除</a></a>
            </td>
        </tr>
        </ItemTemplate>
        <FooterTemplate>
            <tr>
                <th>
                <a href='MBF_UserGiftCardCategoryEdit.aspx?MenuName=&FileName='></a>
                </th>
                <th class="left1" colspan="3">
                </th>
            </tr>
    </table>
        </FooterTemplate>
    </asp:Repeater>
    <webdiyer:AspNetPager ID="AspNetPager1" runat="server">
    </webdiyer:AspNetPager>
</asp:Content>

