<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/ExhibitorMaster.Master" Inherits="System.Web.Mvc.ViewPage<List<FamousFurnitureExpo.Models.Activity>>" %>

<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">
        $(function () {
            $("#CurrentPosition").html("其他展商活动");
            $("#menu42").css("visibility", "visible");
        });
        function GoTo(str) {
            window.location = "<%=FamousFurnitureExpo.Models.Helper.VRoot %>/Exhibitor/" + str;
        }
    </script>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <center>
            <form id="f1" action="" method="post">
            <table width="100%" border="0" style="text-align: left" cellpadding="0" cellspacing="0" id="main">
                <tr>
                    <td align="left">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td class="td01" width="25%" align="center">活动名称</td>
                                <td class="td01" width="25%" align="center">展商名称</td>
                                <td class="td01" width="25%" align="center">时间</td>
                                <td class="td01" width="15%" align="center">地点</td>
                                <td class="td01" width="10%" align="center">操作</td>
                            </tr>
                        <%
                            if (Model.Count > 0)
                            {
                                foreach (FamousFurnitureExpo.Models.Activity aty in Model)
                                {
                        %>
                            <tr title="<%=Server.HtmlEncode(aty.AtyContent)%>">
                                <td class="td03" align="left" style="padding-left:5px; padding-right:5px;">
                        <% 
                                    if (aty.AtyUrl.Trim() != "")
                                    {
                        %>
                                    <a href="<%=Server.HtmlEncode(aty.AtyUrl) %>" target="_blank"><%=Server.HtmlEncode(aty.AtyTheme)%></a>
                        <%
                                    }
                                    else
                                    {
                        %>            
                                    <%=Server.HtmlEncode(aty.AtyTheme)%>
                        <% 
                                    }    
                        %>
                                </td>
                                <td class="td03" align="left" style="padding-left:5px; padding-right:5px;">
                                    <%=Server.HtmlEncode(aty.AtrName) %>
                                </td>
                                <td class="td03" align="left" style="padding-left:5px; padding-right:5px;">
                                    <%=aty.AtyDate.ToShortDateString() %>&nbsp;
                                    <%=Server.HtmlEncode(aty.AtyBTime) %>-<%=Server.HtmlEncode(aty.AtyETime) %>
                                </td>
                                <td class="td03" align="left" style="padding-left:5px; padding-right:5px;">
                                    <%=aty.AtyPlace %>
                                </td>
                                <td class="td03" align="center">
                                    <a href="<%=FamousFurnitureExpo.Models.Helper.VRoot %>/Exhibitor/ActivityShow/<%=aty.AtyID %>">查看</a>
                                </td>
                            </tr>
                        <%
                                }
                        %>
                            <tr>
                                <td colspan="4">
                                    <script type="text/javascript">
                                        Pager.Display("<%=ViewData["Page"] %>","<%=ViewData["PageSize"] %>","<%=ViewData["TotalNum"] %>","<%=FamousFurnitureExpo.Models.Helper.VRoot %>/Exhibitor/ActorActivityList");
                                    </script>
                                </td>
                            </tr>
                        <%        
                            }
                            else
                            {
                        %>
                            <tr>
                                <td colspan="8" class="td03" align="center" valign="middle" height="40" width="100%">暂无信息</td>
                            </tr>
                        <%
                            }
                        %>
                        </table>
                    </td>
                </tr>
                <tr><td>&nbsp;</td></tr>
                <tr>
                    <td>
                        
                    </td>
                </tr>
            </table>
            </form>
        </center>
    </div>
</asp:Content>
