<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ChatMsg.aspx.cs" Inherits="SWTraining.OA.ChatMsg" %>

<%@ Import Namespace="SWTraining" %>
<!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 runat="server">
    <title></title>
    <link id="linkStyle" runat="server" href="../Themes/Blue/css.css" rel="stylesheet"
        type="text/css" />
    <style type="text/css">
        .green
        {
            color: green;
        }
        .blue
        {
            color: blue;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="divpanel" style="background-color: White; border: 1px solid #cccccc;
        white-space: normal; word-wrap: break-word; padding: 5px; width: 99%">
        <asp:Repeater ID="repMsgs" runat="server" EnableViewState="false">
            <ItemTemplate>
                <asp:Label ID="labMsg" runat="server" EnableViewState="false" CssClass='<%#(int)Eval("UserID") == UserInfo.UserID ? "green" : "blue" %>'><%#Eval("TrueName")%>&nbsp;<%#Eval("DateAndTime","{0:yyyy-M-d HH:mm:ss}")%></asp:Label>
                <div style="width:100%;margin-bottom: 5px">
                    <%#swq.Tools.ChatHtmlEncode((string)Eval("Content"))%>
                    </div>
            </ItemTemplate>
        </asp:Repeater>
    </div>
    <div class="divpanel" style="width: 99%">
        <asp:Literal ID="litPagerButton" runat="server"></asp:Literal>
    </div>
    </form>
</body>
</html>
