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

<%@ 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/Orange/css.css" rel="stylesheet"
        type="text/css" />
    <style type="text/css">
        html
        {
            height: 100%;
            min-height: 100%;
        }
        body
        {
            height: 99.8%;
        }
    </style>

    <script src="../Jscript/MsgBox.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div class="divpanel">
        <table cellpadding="0" style="width: 100%">
            <tr runat="server" id="trmsg" visible="false">
                <td>
                    <table cellpadding="0" style="width: auto; margin: 2px" cellspacing="0">
                        <tr>
                            <td style="border: solid 1px #DF8434; background-color: #FEE7A2; padding: 2px">
                                <span style="color:Red">官方提醒：</span><asp:Literal ID="litMsg" runat="server"></asp:Literal>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <table class="table" cellspacing="0">
                        <tr>
                            <th style="text-align: center">
                                公告栏
                            </th>
                        </tr>
                        <tr>
                            <td style="min-height: 120px; height: 120px" valign="top">
                                <asp:DataList runat="server" ID="dalAnns" DataSource='<%#db.Ann.GetAnns(10)  %>'
                                    RepeatColumns="3" RepeatDirection="Horizontal">
                                    <ItemTemplate>
                                        <div class="ann_ico" style="float: left">
                                        </div>
                                        <div style="float: left">
                                            <nobr>
                                                <asp:HyperLink ID="hlkSubject" runat="server" Text='<%# swq.Tools.HtmlEncode(Eval("Subject")) %>'
                                                    NavigateUrl='<%# swq.JScript.OpenWin(string.Format("../User/AnnShow.aspx?AnnID={0}",Eval("AnnID")),500,500,true) %>'></asp:HyperLink>
                                                <span style="font-size: 11px; color: #c0c0c0">
                                                    <%#Eval("DateAndTime","{0:yy-MM-dd}")%></span></nobr>
                                        </div>
                                        <div style="clear: both">
                                        </div>
                                    </ItemTemplate>
                                </asp:DataList>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <table class="table" cellspacing="0">
                        <tr>
                            <th>
                                在线员工
                            </th>
                        </tr>
                        <tr>
                            <td>
                                <asp:DataList ID="DataList1" CssClass="cleartablestyle" runat="server" RepeatColumns="5"
                                    Width="100%">
                                    <ItemTemplate>
                                        <asp:Image ID="img" runat="server" ImageAlign="AbsBottom" ImageUrl='<%# "../images/userface/" + Eval("UserFace")%>' />
                                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# (int) Eval("UserID") != UserInfo.UserID  ? JsOpen("../OA/Chat.aspx?UserID="+Eval("UserID"),Eval("UserID").ToString(),520,500) : "" %>'
                                            Text='<%#Eval("TrueName")%>' ToolTip='<%# (int) Eval("UserID") != UserInfo.UserID  ? string.Format("用户：{1}{0}IP：{2}{0}状态：{3}{0}来访：{4}{0}活动：{5}{0}",@"&#13;",Eval("TrueName"),Eval("IP"),Eval("Location"),Eval("DateAndTime"),Eval("LastDateTime")) : "我自己" %>'>
                                        </asp:HyperLink>
                                    </ItemTemplate>
                                </asp:DataList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Literal ID="litPagerButton" runat="server"></asp:Literal>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <div id="eMeng" style="z-index: 99999; left: 0px; width: 240px; position: absolute;
        visibility: hidden; top: 0px;">
        <table class="table" cellspacing="0" style="margin-bottom: 2px">
            <tr>
                <th>
                    <div style="float: left;" class="tips_radio">
                    </div>
                    <div style="float: left">
                        系统提醒</div>
                    <div class="tips_close" style="float: right; cursor: pointer" onclick="closeDiv();">
                    </div>
                    <div style="clear: both">
                    </div>
                </th>
            </tr>
            <tr>
                <td style="min-height: 120px; height: 120px" valign="top">
                    <asp:Repeater ID="Repeater1" runat="server">
                        <ItemTemplate>
                            <div class="tips_ico" style="float: left">
                            </div>
                            <div style="float: left">
                                <asp:HyperLink ID="hlkMsg" runat="server" Target='<%# Eval("Target")%>' NavigateUrl='<%# GetNavigateUrl(Eval("ContentSql"),Eval("NavigateUrl"),Eval("ReminderID"))%>'
                                    Text='<%# Eval("Message")%>'></asp:HyperLink></div>
                            <div style="clear: both">
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
