<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>LinkActor</title>
    <link href="<%=FamousFurnitureExpo.Models.Helper.VRoot %>/Content/Site.css" rel="stylesheet"
        type="text/css" />
    <link href="<%=FamousFurnitureExpo.Models.Helper.VRoot %>/Scripts/messagetipthem1/css/style.css"
        rel="stylesheet" type="text/css" />
    <style type="text/css">
        body
        {
            background-image: none;
            font-size: 12px;
            margin-top: 0px;
        }
    </style>
    <script language="javascript" type="text/javascript" src="<%=FamousFurnitureExpo.Models.Helper.VRoot %>/Scripts/MessageTip.js"></script>
    <script src="<%=FamousFurnitureExpo.Models.Helper.VRoot %>/Scripts/jquery-1.4.1-vsdoc.js"
        type="text/javascript"></script>
    <script type="text/javascript">
        function Send() {
            $("#f1").submit();
        }
        function Back() {
            parent.dynaform.close();
        }
    </script>
</head>
<body>
    <form id="f1" action="" method="post">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" style="font-family:Arial">
        
        <% 
            string Align = "";
            string Color = "";
            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 MsgContent = Server.HtmlEncode(dr["MsgContent"].ToString());
                    string MsgCreateTime = Server.HtmlEncode(dr["MsgCreateTime"].ToString());
                    string MsgSource = Server.HtmlEncode(dr["MsgSource"].ToString());
                    string MsgLook = Server.HtmlEncode(dr["MsgLook"].ToString());
                    if (MsgSource == "Actor")
                    {
                        Align = "right";
                        Color = "#BBBBBB";
                    }
                    else
                    {
                        Align = "left";
                        Color = "#F7A841";
                    }                                     
        %>
        <tr>
            <td align="<%=Align%>" style="width:100%">
                <table width="50%" border="0">
                <tr>
                    <td align="left">
                        <font color="<%=Color%>"><%=MsgContent%></font><br />
                        <%=MsgCreateTime%>
                    </td>
                </tr>
                </table>
            </td>
        </tr>


        <%
                }
            }
        %>


    </table>
    </form>
</body>
</html>
