<%@ 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/Blue/css.css" rel="stylesheet"
        type="text/css" />
    <style type="text/css">
        html
        {
            height: 100%;
            min-height: 100%;
            margin: 0px;
            padding: 0px;
        }
        body
        {
            height: 100%;
            margin: 0px;
            padding: 0px;
        }
        form
        {
            height: 100%;
            margin: 0px;
            padding: 0px;
        }
    </style>
    <script src="../Jscript/MsgBox.js" type="text/javascript"></script>
    <script type="text/javascript">

        var StudentID = 0;
        //选择菜单代码:::::::::::::
        var lastSelected = null;

        function Selected(the, gotoUrl) {
            if (the == lastSelected) {
                ifTask.location = gotoUrl;
                return;
            }


            var TdSelected = the;
            TdSelected.className = "bgc6 bgimg1 TdSelected";
            if (lastSelected != null) {
                lastSelected.className = "Nav_td";
            }
            lastSelected = TdSelected;
            ifTask.location = gotoUrl;
        }

        function mouseover(the) {
            currentClass = the.className;
            if (currentClass == 'Nav_td') the.className = 'Nav_td bgc4';
        }

        function mouseout(the) {
            if (the != lastSelected)
                the.className = currentClass;
        }



        function DefaultSelected() {
            if (lastSelected == null) {
                var theTd = document.getElementById("tdShow1");
                theTd.onclick();

            }
        }


        
    </script>
    <script type="text/javascript">
        function AutoHeight() {
            var iftask = document.getElementById("ifTask");
            if (iftask.contentDocument == null)
                document.all['ifTask'].style.height = ifTask.document.body.scrollHeight + 10;
            else {

                iftask.style.height = iftask.contentDocument.body.offsetHeight + 10 + "px";
            }
        }
    </script>
    <script type="text/javascript">
        function OnFrameLoad(sender) {
            try {
                if (___isie6) {
                    document.frames[sender.name].window.document.body.scroll = 'yes';
                }
            } catch (ex)
                { }
        }

        function OnLoad() {
            try {
                if (___isie6) {
                    divContent.style.position = "relative";
                    divContent.style.width = "100%";
                    divContent.style.height = "100%";
                    divContent.style.top = "0px";
                    divContent.style.bottom = "0px";
                    divContent.style.left = "0px";
                    divContent.style.right = "0px";
                    document.body.style.margin = "5px";
                }
            } catch (ex)
                { }
        }
    </script>
    <style type="text/css">
        .NavStyle
        {
            width: 100%;
            text-align: left;
            border-width: 0px;
            line-height: 24px;
            height: 85%;
        }
        .NavTitle td
        {
            border-style: solid;
            border-width: 0px 0px 1px 0px;
        }
        .Nav_td
        {
            width: 65px;
            border-style: solid;
            border-width: 0px 0px 1px 0px;
            cursor: pointer;
            cursor: hand;
            height: 22px;
            text-align: center;
        }
        .TdSelected
        {
            width: 65px;
            border-style: solid !important;
            border-width: 1px 1px 0px 1px !important;
            background-repeat: repeat-x !important;
            text-align: center;
            height: 22px;
        }
        .NavStyle td div
        {
            height: 1px;
            font-size: 1px;
            line-height: 1px;
        }
    </style>
</head>
<body onload="OnLoad();getMsg();">
    <form id="form1" runat="server">
    <div id="divContent" class="divpanel" style="position: absolute; width: auto; height: auto;
        top: 4px; bottom: 4px; left: 4px; right: 4px">
        <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="NavStyle" cellspacing="0" style="width: 100%">
                        <tr class="bgc2">
                            <td colspan="6" class="ControlPanelTop" style="height: 2px; border-width: 1px 1px 0px 1px;">
                                <div>
                                </div>
                            </td>
                        </tr>
                        <tr class="NavTitle bgc2">
                            <td style="width: 15px; border-width: 0px 0px 1px 1px;">
                                &nbsp;
                            </td>
                            <td id="tdShow1" class="Nav_td" onclick="Selected(this,'../Task/DoTask.aspx?StatusID=0,1')"
                                onmouseover="mouseover(this)" onmouseout="mouseout(this)">
                                待办任务
                            </td>
                            <td id="tdShow2" class="Nav_td" onclick="Selected(this,'../Task/DoTask.aspx?StatusID=2')"
                                onmouseover="mouseover(this)" onmouseout="mouseout(this)">
                                已办任务
                            </td>
                            <td id="tdShow3" class="Nav_td" onclick="Selected(this,'../Task/PostTask.aspx')"
                                onmouseover="mouseover(this)" onmouseout="mouseout(this)">
                                发布任务
                            </td>
                            <td id="tdShow4" class="Nav_td" onclick="Selected(this,'../Task/TaskList.aspx')"
                                onmouseover="mouseover(this)" onmouseout="mouseout(this)">
                                已发任务
                            </td>
                            <td style="border-width: 0px 1px 1px 0px">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td colspan="6" class="bgc6" style="height: 2px; border-width: 0px 1px 1px 1px; font-size: 0px;
                                line-height: 0px">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                    <table cellspacing="0" cellpadding="0" style="width: 100%">
                        <tr>
                            <td colspan="5" style="border-width: 0px 1px 1px 1px;">
                                <iframe style="width: 100%; height: 50px; border: 0px; margin-top: 1px" frameborder="0"
                                    scrolling="no" id="ifTask" name="ifTask" onload="AutoHeight();"></iframe>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <table class="table" cellspacing="0">
                        <tr>
                            <th style="text-align: left; padding-left: 4px">
                                公告栏
                            </th>
                        </tr>
                        <tr>
                            <td style="min-height: 80px; height: 80px" valign="top">
                                <asp:DataList runat="server" ID="dalAnns" RepeatColumns="3" RepeatDirection="Horizontal">
                                    <ItemTemplate>
                                        <div style="float: left;">
                                            <div class="ann_ico" style="float: left; background-position:left; padding-left:25px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
                                                width: 200px">
                                                <asp:HyperLink ID="hlkSubject" runat="server" Text='<%# swq.Tools.HtmlEncode(Eval("Subject")) %>' ToolTip='<%# swq.Tools.HtmlEncode(Eval("Subject")) %>'
                                                    NavigateUrl='<%# swq.JScript.OpenWin(string.Format("../User/AnnShow.aspx?AnnID={0}",Eval("AnnID")),850,500,true) %>'></asp:HyperLink></div>
                                            <div style="float: left; width:100px; font-size: 11px; color: #c0c0c0">
                                                <%#Eval("DateAndTime","{0:yy-MM-dd}")%></div>
                                            <div style="clear: both">
                                            </div>
                                        </div>
                                        <div style="clear: both">
                                        </div>
                                    </ItemTemplate>
                                </asp:DataList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Literal ID="litPagerButton2" runat="server"></asp:Literal>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <table class="table" cellspacing="0">
                        <tr>
                            <th style="text-align: left; padding-left: 4px">
                                在线员工
                            </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>
    <script type="text/javascript">
        DefaultSelected();
    </script>
</body>
</html>
