<%@ page title="" language="C#" masterpagefile="~/Admin/AdminIndexMaster.master" autoeventwireup="true" inherits="Admin_MBF_UserGiftCardCategorySet, 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 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: 'DeleteGiftCardCategory', 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_UserGiftCardCategoryEdit.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("Title")%>
            </td>
            <td>
                <a href="javascript:void(0);" class="tooltip" title='礼品卡图片'>
                        <img alt='卡对应的图片' bigimg='../UpLoadFile/VIPCardPic/<%#Eval("Picture")%>' src='../UpLoadFile/VIPCardPic/<%#Eval("Picture")%>'
                            style="width: 40px; height: 30px" /></a>
            </td>
            <td>
                <a href='MBF_UserGiftCardCategoryEdit.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>

