<%@ page title="" language="C#" masterpagefile="~/lovecenter/LoveCenterMaster.master" autoeventwireup="true" inherits="lovecenter_BusinessActivityList, App_Web_ubyenibr" enableEventValidation="false" %>
<%@ Register src="../inc/ParamPageNavigator.ascx" tagname="ParamPageNavigator" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="rightbody">
        <div class="menutit">
            <%= PageTitle %>列表
        </div>
        <div class="bodycotent">
            <div class="menutab">
                <div class="menuitem">
                    <a class="chk">所有<%= PageTitle %></a>
                    <a href="BusinessActivityManage.aspx" >建立新活动</a>
                </div>
                <div class="menusub search">
                    <asp:Panel ID="Panel1" runat="server" DefaultButton="btnSearch">
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td valign="middle" height="30">请输入关键字搜索：<asp:TextBox ID="txtKeywords" runat="server" Width="200"></asp:TextBox>&nbsp; 
                            </td>
                            <td>
                            <asp:LinkButton ID="btnSearch" runat="server" Text="搜索" CssClass="genbtn" OnClick="btnSearch_Click" Width="80"/></td>
                        </tr>
                    </table>
                    </asp:Panel>
                </div>
            </div>
            <div class="body">
                <div class="descr">共有<%= RecordCount %>个预约信息</div>
                <div class="list">
                    <asp:Repeater ID="rptMain" runat="server" OnItemCommand="rptMain_ItemCommand">
                    <HeaderTemplate>
                    <table width="100%">
                        <tr class="tit">
	                        <td>活动主题</td>
	                        <td width="100">开始日期</td>
	                        <td width="100">截至日期</td>
                            <td width="100">操作</td>
                        </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr bgcolor="<%# Container.ItemIndex % 2 == 0 ? "#ffffff" : "#e8f4fc" %>">
                            <td><a href="BusinessActivityManage.aspx?id=<%# DataBinder.Eval(Container.DataItem, "activityid")%>"><%# DataBinder.Eval(Container.DataItem, "activityname")%></a></td>
                            <td><%# DataBinder.Eval(Container.DataItem, "startdate","{0:d}")%></td>
                            <td><%# DataBinder.Eval(Container.DataItem, "enddate", "{0:d}")%></td>
                            <td>
                                <a href="BusinessActivityManage.aspx?id=<%# DataBinder.Eval(Container.DataItem, "activityid")%>">修改</a> | 
                                <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "activityid")%>' CommandName="delete" OnClientClick="return confirm('确实要删除吗？');">删除</asp:LinkButton></td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                    </table>
                    </FooterTemplate>
                    </asp:Repeater>
                    <% if(rptMain.Items.Count==0){ %>
                    <div class="nodata">暂无内容</div>
                    <%} %>
                </div>
                <div class="right mg_top">
                    <uc1:ParamPageNavigator ID="ParamPageNavigator1" runat="server" />
                </div>
            </div>
        </div>
    </div>
</asp:Content>

