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

<%@ Import Namespace="MTCUN" %>
<!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 id="Head1" runat="server">
    <title>消息列表</title>
    <link id="linkStyle" runat="server" href="../themes/Blue/css.css" rel="stylesheet"
        type="text/css" />

    <link href="../mobile/msg/themes/css.css" rel="stylesheet"
        type="text/css" />

    <%--    <script type="text/javascript">
        function doRefresh() {
            location.reload(true);
        }
    </script>--%>
</head>
<body id="body" runat="server">
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <div id="web_page_contents">
            <div class="search biao_zhun_suo_jin">

                <asp:UpdatePanel ID="upMsgs" runat="server">
                    <ContentTemplate>
                        <div runat="server" id="divNullMsg" visible="false" style="margin: auto; margin-top: 250px; width: 120px">
                            暂无消息！！
                        </div>
                        <asp:Repeater ID="repBlock" runat="server">
                            <ItemTemplate>
                                <div class="kuai" style="margin: 3px; margin-bottom: 10px;" onclick="window.location = '<%#string.Format("Show.aspx?AppTopicID={0}&geturl={1}",Eval("AppTopicID"),swq.Web.PathAndQuery()) %>'">
                                    <div class="inforow">
                                        <div class="logo" style='<%# string.Format("background-image:url(\"{0}\")",ShowUserFace(Eval("FriendFace").ToString())) %>'>
                                        </div>
                                        <div class="newmsgcount" style='<%#(int)Eval("NewMsgCount") == 0 ? "display:none": ""  %>'>
                                            <%#Eval("NewMsgCount")%>
                                        </div>
                                        <div class="name">
                                            <%#Eval("FriendName")%>
                                        </div>
                                        <div class="time">
                                            <%#Eval("LastPostTime","{0:M-d HH:mm}") %>
                                        </div>
                                        <div class="content">
                                            <%#Eval("LastPostContent") %>
                                        </div>
                                    </div>
                                </div>
                            </ItemTemplate>
                        </asp:Repeater>

                        <span style="display: none; visibility: hidden">
                            <asp:Button ID="btnUpdate" runat="server" OnClick="btnUpdate_Click" /></span>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
        </div>
    </form>
</body>
</html>
