<%@ page title="商家活动" language="C#" masterpagefile="~/shopdetail/MasterPage.master" autoeventwireup="true" inherits="shopdetail_Activitys, App_Web_w7a7wpou" enableviewstate="false" enableEventValidation="false" %>

<%@ Register src="~/inc/ParamPageNavigator.ascx" tagname="ParamPageNavigator" tagprefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<meta name="keywords" content="<%= details.companyname %> <%= Utils.GetKeywordsByBcid(details.cid,details.city)%>" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="sblock activitylist mg_top">
    <div class="tit">商家最新活动</div>
    <div class="cnt">
        <div class="left">
            <div><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id=scriptmain name=scriptmain codebase="http://download.macromedia.com/pub/shockwave/cabs/
        flash/swflash.cab#version=6,0,29,0" width="500" height="200">
            <param name="movie" value="/flash/bcastr.swf?bcastr_flie=<%= ImageLinks %>">
            <param name="quality" value="high">
            <param name=scale value=noscale>
            <param name="LOOP" value="false">
            <param name="menu" value="false">
            <param name="wmode" value="transparent">
            <embed src="/flash/bcastr.swf?bcastr_flie=<%= ImageLinks %>" width="500" height="200" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" salign="T" name="scriptmain" menu="false" wmode="transparent"></embed>
          </object></div>
        </div>
        <div class="right">
            <asp:Repeater ID="rptActivitys" runat="server">
            <HeaderTemplate>
            <ul>
            </HeaderTemplate>
            <ItemTemplate>
                <li><a href="/vip/<%= buid %>/act_<%# DataBinder.Eval(Container.DataItem, "activityid")%>.html"><%# Utils.FormatNumberString(Utils.GetShortText(DataBinder.Eval(Container.DataItem, "activityname"), 30)) %></a><span><%# Utils.GetSmallShortDate(DataBinder.Eval(Container.DataItem, "startdate"))%> 至 <%# Utils.GetSmallShortDate(DataBinder.Eval(Container.DataItem, "enddate")) %></span></li>
            </ItemTemplate>
            <FooterTemplate>
            </ul>
            </FooterTemplate>
            </asp:Repeater>
            <%if(rptActivitys.Items.Count==0){ %>
            <div class="nodata">暂无活动</div>
            <%} %>
        </div>
        <div class="clear"></div>
    </div>
</div>

<div class="sblock mg_top activitys">
    <div class="tit"><a id="mark_descr">商家最新活动</a></div>
    <div class="cnt">
        <div class="right">
            <asp:Panel ID="Panel1" runat="server" DefaultButton="btnSearch">
            <table border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td>请输入关键字搜索：<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 class="clear"></div>
        <asp:Repeater ID="rptMain" runat="server" >
            <HeaderTemplate>
                <ul class="activity">
            </HeaderTemplate>
            <ItemTemplate>
                <li>
                    <div class="left">
                        <div class="subject"><a href="/vip/<%= buid %>/act_<%# DataBinder.Eval(Container.DataItem, "activityid")%>.html"><%# Utils.FormatNumberString(DataBinder.Eval(Container.DataItem, "activityname")) %></a></div>
                        <div class="time">
                            活动时间：<%# Utils.GetCHSDate(DataBinder.Eval(Container.DataItem, "startdate"))%> - <%# Utils.GetCHSDate(DataBinder.Eval(Container.DataItem, "enddate"))%>
                        </div>
                    </div>
                    <div class="right">
                        <a href="/vip/<%= buid %>/act_<%# DataBinder.Eval(Container.DataItem, "activityid")%>.html"><img src="/uploadfiles/<%# DataBinder.Eval(Container.DataItem, "picurl")%>" width="220" height="80" alt="<%# DataBinder.Eval(Container.DataItem, "activityname")%>" /></a>
                    </div>
                </li>
            </ItemTemplate>
            <FooterTemplate>
                <% if(rptMain.Items.Count == 0) { %>
                <li>暂无活动</li>
                <% } %>
                </ul>
            </FooterTemplate>
            </asp:Repeater>
         <div class="clear"></div>
         <div class="mg_top right">
            <uc2:ParamPageNavigator ID="ParamPageNavigator1" runat="server" RewriteExpression="/vip/act/*.html" />
         </div>
         <div class="clear"></div>
    </div>
</div>
</asp:Content>

