<%@ 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 () {
            $("#CurrentPosition").html("观众邀请");
            $("#mainmenu5").css("visibility", "visible");
        });
        function GoTo(str) {
            document.location = "<%=FamousFurnitureExpo.Models.Helper.VRoot %>/Exhibitor/" + str;
        }
        function ShowDetail(type, statu) {
            $("#Type").val(type);
            $("#Statu").val(statu);

            $("#f2").submit();
        }
    </script>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <% 
        string MailCount = ViewData["Mailcount"].ToString();
        string MsgCount = ViewData["MsgCount"].ToString();

        string MailOKCount = ViewData["MailOKcount"].ToString();
        string MailFailCount = ViewData["MailFailcount"].ToString();
        string MailSendCount = ViewData["MailSendcount"].ToString();
        string MailRegCount = ViewData["MailRegCount"].ToString();

        string MsgOKCount = ViewData["MsgOKcount"].ToString();
        string MsgFailCount = ViewData["MsgFailcount"].ToString();
        string MsgSendCount = ViewData["MsgSendcount"].ToString();
        string MsgRegCount = ViewData["MsgRegCount"].ToString();

        string LinkCount = ViewData["LinkCount"].ToString();
    %>
    <div>
        <center>
            <form id="f2" name="f2" method="post" action="">
            <table width="100%" border="0" style="text-align: left" cellpadding="0" cellspacing="0"
                id="main">
                <tr>
                    <td align="left">
                        <table border='0' cellpadding="0" cellspacing="0" width="100%" align="left">
                            <tr>
                                <td class="tdMenu" onclick="GoTo('VisitorInvite')">
                                    邀请注册
                                </td>
                                <td class="tdMenuWidth">&nbsp;</td>
                                <td class="tdMenuSelect" onclick="GoTo('VisitorInviteCount')">
                                    邀请统计
                                </td>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
                                <td class="tdMenuLine" colspan="4"></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td>
                                    <table width="100%" border="0" cellpadding="5" cellspacing="0">
                                        <tr>
                                            <td height="21" align="center" class="td01" rowspan="2">
                                                邀请方式
                                            </td>
                                            <td align="center" class="td01" rowspan="2">
                                                总计
                                            </td>
                                            <td align="center" class="td01" rowspan="2">
                                                已注册
                                            </td>
                                            <td align="center" class="td01" colspan="3">
                                                邀请信息发送状态
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" class="td03">
                                                待发送
                                            </td>
                                            <td align="center" class="td03">
                                                成功
                                            </td>
                                            <td align="center" class="td03">
                                                失败
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" class="td03">
                                                链接
                                            </td>
                                            <td align="center" class="td03">
                                                &nbsp;<a href="javascript:ShowDetail('Link','Total')"><%=LinkCount %></a>
                                            </td>
                                            <td align="center" class="td03">
                                                &nbsp;<a href="javascript:ShowDetail('Link','Reg')"><%=LinkCount %></a>
                                            </td>
                                            <td align="center" class="td03">
                                                &nbsp;
                                            </td>
                                            <td align="center" class="td03">
                                                &nbsp;
                                            </td>
                                            <td align="center" class="td03">
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" class="td03">
                                                邮件
                                            </td>
                                            <td align="center" class="td03">
                                                &nbsp;<a href="javascript:ShowDetail('Mail','Total')"><%=MailCount %></a>
                                            </td>
                                            <td align="center" class="td03">
                                                &nbsp;<a href="javascript:ShowDetail('Mail','Reg')"><%=MailRegCount %></a>
                                            </td>
                                            <td align="center" class="td03">
                                                &nbsp;<a href="javascript:ShowDetail('Mail','Send')"><%=MailSendCount %></a>
                                            </td>
                                            <td align="center" class="td03">
                                                &nbsp;<a href="javascript:ShowDetail('Mail','OK')"><%=MailOKCount %></a>
                                            </td>
                                            <td align="center" class="td03">
                                                &nbsp;<a href="javascript:ShowDetail('Mail','Fail')"><%=MailFailCount %></a> 
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" class="td03">
                                                短信
                                            </td>
                                            <td align="center" class="td03">
                                                &nbsp;<a href="javascript:ShowDetail('Msg','Total')"><%=MsgCount %></a>
                                            </td>
                                            <td align="center" class="td03">
                                                &nbsp;<a href="javascript:ShowDetail('Msg','Reg')"><%=MsgRegCount %></a>
                                            </td>
                                            <td align="center" class="td03">
                                                &nbsp;<a href="javascript:ShowDetail('Msg','Send')"><%=MsgSendCount %></a>
                                            </td>
                                            <td align="center" class="td03">
                                                &nbsp;<a href="javascript:ShowDetail('Msg','OK')"><%=MsgOKCount %></a>
                                            </td>
                                            <td align="center" class="td03">
                                                &nbsp;<a href="javascript:ShowDetail('Msg','Fail')"><%=MsgFailCount %></a>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        <div class="button" onclick="GoTo('VisitorInvite')">邀请注册</div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <input type="hidden" id="Type" name="Type" value="" />
                        <input type="hidden" id="Statu" name="Statu" value="" />
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <%
                    if (ViewData["Li"] != null)
                    {    
                        List<string> li = ViewData["Li"] as List<string>;
                        if (li.Count > 0)
                        {
                %>
                <tr>
                    <td>
                        <table align="center" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td width="300px" height="30px" class="td01" align="center">
                                    <span><%=ViewData["Title"] %></span>
                                </td>
                            </tr>
                            <%
                            foreach (string str in li)
                            {
                            %>
                            <tr>
                                <td style=" padding-left:20px; " class="td03">
                                    <span><%=str%></span>
                                </td>
                            </tr>
                            <%            
                            }
                            %>
                        </table>
                    </td>
                </tr>
                <%
                        }
                    }
                %>
            </table>
            </form>
        </center>
    </div>
</asp:Content>
