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

<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">
        $(function () {
            selectMenu("LEADMARKETING联络结果");
        });
    </script>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<div>
    <form id="f1" action="" method="post">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td align="left">
                <strong>LEADMARKETING联络结果</strong>
            </td>
        </tr>
        <tr>
            <td align="left">
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="td01" width="250px">
                            观众公司
                        </td>
                        <td class="td01" width="150px">
                            观众姓名
                        </td>
                        <td class="td01" width="150px">
                            Email
                        </td>
                        <td class="td01" width="150px">
                            手机
                        </td>
                        <td class="td01" width="150px">
                            联络结果
                        </td>
                    </tr>
                <% 
                    System.Data.DataTable dt = ViewData["Data"] as System.Data.DataTable;

                    int DtCount = dt.Rows.Count;
                    string IfNoData = "false";
                    string Result = "";
                    if (DtCount == 1)
                    {
                        Result = dt.Rows[0]["Result"].ToString();
                        if (Result != "1")
                        {
                            IfNoData = "true";
                        }
                    }


                    if (dt != null && dt.Rows.Count > 0 && IfNoData == "false")
                    {
                        foreach (System.Data.DataRow dr in dt.Rows)
                        {
                            string company = Server.HtmlEncode(dr["CompanyName"].ToString());
                            string fname = Server.HtmlEncode(dr["FirstName"].ToString());
                            string name = Server.HtmlEncode(dr["Surname"].ToString());
                            string email = Server.HtmlEncode(dr["Email"].ToString());
                            string mobile = Server.HtmlEncode(dr["MobileNumber"].ToString());
                            string result = FamousFurnitureExpo.Models.Helper.TreatLinkResult(Server.HtmlEncode(dr["Responses"].ToString()));
                %>
                    <tr>
                        <td class="td03" align="left">
                            <%=company%>
                        </td>
                        <td class="td03" align="left">
                            <%=fname%> <%=name%>
                        </td>
                        <td class="td03" align="left">
                            <%=email%>
                        </td>
                        <td class="td03" align="left">
                            <%=mobile%>
                        </td>
                        <td class="td03" align="left">
                            <%=result%>
                        </td>
                    </tr>
                <%            
}
                %>
                    <tr><td colspan="5">&nbsp;</td></tr>
                    <%--<tr>
                        <td colspan="4">
                            <script type="text/javascript">
                                PagerPost.Display("<%=ViewData["Page"] %>","<%=ViewData["PageSize"] %>","<%=ViewData["TotalNum"] %>","f1");
                            </script>
                        </td>
                    </tr>--%>
                <%    
}
                    else
                    { 
                %>
                    <tr>
                        <td colspan="5" align="center" style="padding:6px">暂无信息</td>
                    </tr>
                <%    
                    }
                %>
                </table>
            </td>
        </tr>
    </table>
    </form>
</div>
</asp:Content>
