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


<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
    <script src="<%=FamousFurnitureExpo.Models.Helper.VRoot %>/Scripts/DynaForm.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            selectMenu("意向观众");
        });

        var dynaform;
        function AddMatch(id) {
            dynaform = new DynaForm({
                id: "dynaform",
                title: "新增预约",
                src: "<%=FamousFurnitureExpo.Models.Helper.VRoot %>/Exhibitor/MeetingEdit?id=" + id,
                width: "650px",
                height: "500px",
                top: "50px"
            });
            dynaform.showModalDialog();
        }

        function Sub() {
            $("#f1").submit();
        }
    </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">
                已有&nbsp;<font color="red"><%=ViewData["TotalNum"] %></font>&nbsp;位观众对您的新品表示感兴趣
            </td>
        </tr>
        <tr>
            <td align="left">
                以下是想和您取得联系的观众信息：
            </td>
        </tr>
        <tr>
            <td align="left">
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td class="td01" width="250px">
                            观众公司
                        </td>
                        <td class="td01" width="150px">
                            观众姓名
                        </td>
                        <td class="td01" width="150px">
                            职务
                        </td>
                        <td class="td01" width="50px">
                            
                        </td>
                        <%--<td class="td01" width="150px">
                            Email
                        </td>
                        <td class="td01" width="150px">
                            手机
                        </td>--%>
                    </tr>
                <% 
                    System.Data.DataTable dt = ViewData["Data"] as System.Data.DataTable;
                    if (dt != null && dt.Rows.Count > 0)
                    {
                        foreach (System.Data.DataRow dr in dt.Rows)
                        {
                            string company = Server.HtmlEncode(dr["Company"].ToString());
                            string name = Server.HtmlEncode(dr["Name"].ToString());
                            string email = Server.HtmlEncode(dr["Email"].ToString());
                            string mobile = Server.HtmlEncode(dr["Mobile"].ToString());
                            string rank = Server.HtmlEncode(dr["Rank"].ToString());
                            string psnid = Server.HtmlEncode(dr["PsnID"].ToString());
                %>
                    <tr>
                        <td class="td03" align="left">
                            <%=company%>
                        </td>
                        <td class="td03" align="left">
                            <%=name%>
                        </td>
                        <td class="td03" align="left">
                            <%=rank%>
                        </td>
                        <td class="td03" align="center">
                            <a href="javascript:AddMatch(<%=psnid %>);">预约</a>
                        </td>
                        <%--<td class="td03" align="left">
                            <%=email%>
                        </td>
                        <td class="td03" align="left">
                            <%=mobile%>
                        </td>--%>
                    </tr>
                <%            
}
                %>
                    <tr><td>&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="4" align="center" style="padding:6px">暂无信息</td>
                    </tr>
                <%    
                    }
                %>
                </table>
            </td>
        </tr>
    </table>
    </form>
</div>
</asp:Content>
