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


<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">
        $(function () {
            $("#CurrentPosition").html("活动信息详情");
            //$("#menu6").css("visibility", "visible");
        });
        function back() {
            window.history.go(-1);
        }
    </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">
                        <% 
                            if (Model != null)
                            {
                                Dictionary<int, string> typeDi = FamousFurnitureExpo.Models.Activity.GetAtyTypeDictionary();
                                string atyTypeName = "";    
                        %>
                        <table border="0" cellpadding="7" cellspacing="0" width="100%">
                            <tr>
                                <td colspan="2" class="td01">活动信息详情</td>
                            </tr>
                            <tr>
                                <td align="right" class="td03">活动类型：</td>
                                <%
                                if (typeDi.Keys.Contains(Model.AtyType))
                                {
                                    atyTypeName = typeDi[Model.AtyType];
                                }
                                %>
                                <td align="left" class="td03"><%=atyTypeName%></td>
                            </tr>
                            <tr>
                                <td align="right" width="20%" class="td03">活动主题：</td>
                                <td align="left" height="80%" class="td03"><%=Server.HtmlEncode(Model.AtyTheme)%></td>
                            </tr>
                            <tr>
                                <td align="right" class="td03"valign="top" >活动内容：</td>
                                <td align="left" class="td03">
                                    <%=Server.HtmlEncode(Model.AtyContent).Replace("\n", "<br />")%>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" class="td03">举办者：</td>
                                <td align="left" class="td03"><%=Server.HtmlEncode(Model.AtySource)%></td>
                            </tr>
                            <tr>
                                <td align="right" class="td03">活动日期：</td>
                                <td align="left" class="td03"><%=Model.AtyDate.ToShortDateString()%></td>
                            </tr>
                            <tr>
                                <td align="right" class="td03">活动时间：</td>
                                <td align="left" class="td03"><%=Server.HtmlEncode(Model.AtyBTime)%>&nbsp;至&nbsp;<%=Server.HtmlEncode(Model.AtyETime)%> </td>
                            </tr>
                            <tr>
                                <td align="right" class="td03">活动地点：</td>
                                <td align="left" class="td03"><%=Server.HtmlEncode(Model.AtyPlace)%></td>
                            </tr>
                            <tr>
                                <td align="right" class="td03">主讲人：</td>
                                <td align="left" class="td03"><%=Server.HtmlEncode(Model.AtySpeaker)%></td>
                            </tr>
                            <tr>
                                <td align="right" class="td03">名额：</td>
                                <td align="left" class="td03"><%=Model.AtyQuoTa == 0 ? "不限" : Model.AtyQuoTa + "名"%></td>
                            </tr>
                            <tr>
                                <td align="right" class="td03">活动链接：</td>
                                <td align="left" class="td03"><a href="<%=Server.HtmlEncode(Model.AtyUrl) %>" target="_blank"><%=Server.HtmlEncode(Model.AtyUrl)%></a></td>
                            </tr>
                        </table>
                    <% 
                            }    
                    %>
                    </td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td>
                        <div class="button" onclick="back()">返回</div>
                    </td>
                </tr>
            </table>
            </form>
        </center>
    </div>
</asp:Content>
