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

<%@ 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 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;
        }

        .annkuai {
            margin: 5px;
            border: 0px solid #ccc;
            background-color: white;
            border-radius: 5px;
            padding: 5px;
            margin-top: 20px;
            background-color: #F4F6FD;
            box-shadow: 0 0 20px rgba(0,102,153,0.3);
            display: inline-table;
        }
    </style>

    <script src="../Jscript/Md5.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;
        }
    </script>

    <script type="text/javascript">
        function onClickLink(sender, href) {
            var str = href.toLowerCase();
            hash = "__mt_" + hex_md5(str);
            parent.onClickLink2(sender, hash, href);
        }
    </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 {
            border-style: solid;
            cursor: pointer;
            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;
        }


        .task {
            text-decoration: none;
            list-style: none;
            padding: 0px;
            margin: 0px;
            display: inline-table;
            border:0px;
            line-height:none;
        }

            .task li {
                list-style: none;
                display:inline-table;
                text-decoration: none;
                padding: 0px;
                margin: 0px;
                width: 50px;
                border:0px;line-height:none;
                /*line-height: 14px;*/
            }
    </style>
</head>
<body style="margin: 5px">
    <form id="form1" runat="server">

        <table cellpadding="0" style="width: 100%; margin: 0px; padding: 0px;" cellspacing="0">
            <tr>
                <td align="left" style="padding-left: 4px" runat="server" id="tdMsg" visible="false">
                    <table cellpadding="0" cellspacing="0">
                        <tr>
                            <td style="border: none; color: red">new:</td>
                            <td style="border: none">
                                <asp:Literal ID="litMsg" runat="server"></asp:Literal></td>
                        </tr>
                    </table>
                </td>
                <td style="border: 0px; width: 180px; padding-right: 4px" align="right">
                    <table cellpadding="0" style="margin: 0px; padding: 0px" cellspacing="2">
                        <tr>
                            <td style="border-width: 0px;" class="sign" title="签到工具" id="tdSignln" runat="server"></td>
                            <td style="border-width: 0px;" class="wwz" title="浏览网站" id="tdWWZ" runat="server"></td>
                            <td style="border-width: 0px;" class="dy" title="打印插件下载" id="tdDYXZ" runat="server"></td>
                            <td style="border-width: 0px;" class="mts" title="登录麦田会员中心！" id="tdMTS" runat="server"></td>
                            <td style="border-width: 0px;" class="fk" title="让我们知道你的想法！" id="tdFK" runat="server"></td>
                            <td style="border-width: 0px;" class="help" title="帮助" id="tdHelp" runat="server"></td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>

        <div class="annkuai" style="width: 280px">
            <table cellspacing="0" style="width: 100%">
                <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="1" RepeatDirection="Horizontal" Width="100%">
                            <ItemStyle Width="100%" />
                            <ItemTemplate>
                                <div class="ann_ico" style="float: left; background-position: left; padding-left: 25px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 150px">
                                    <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: right; width: 100px; font-size: 11px; color: #c0c0c0; text-align: right">
                                    <%#Eval("DateAndTime","{0:yy-MM-dd}")%>
                                </div>
                                <div style="clear: both">
                                </div>

                            </ItemTemplate>
                        </asp:DataList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Literal ID="litPagerButton2" runat="server"></asp:Literal>
                    </td>
                </tr>
            </table>
        </div>

        <div class="annkuai" style="width: 280px">
            <table cellspacing="0" style="width: 100%">
                <tr>
                    <th style="text-align: left; padding-left: 4px">系统提醒
                    </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" 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>

        <div class="annkuai" style="width: 280px">
            <table cellspacing="0" style="width: 100%">
                <tr>
                    <th style="text-align: left; padding-left: 4px">
                        <ul class="task">
                            <li id="tdShow1" class="nav_td" onclick="javascript:onClickLink(this,'../Task/DoTask.aspx?StatusID=0,1')"
                                onmouseover="mouseover(this)" onmouseout="mouseout(this)">待办
                            </li>
                            <li id="tdShow2" class="nav_td" onclick="javascript:onClickLink(this,'../Task/DoTask.aspx?StatusID=2')"
                                onmouseover="mouseover(this)" onmouseout="mouseout(this)">已办
                            </li>
                            <li id="tdShow3" class="nav_td" onclick="javascript:onClickLink(this,'../Task/PostTask.aspx')"
                                onmouseover="mouseover(this)" onmouseout="mouseout(this)">发布
                            </li>
                            <li id="tdShow4" class="nav_td" onclick="javascript:onClickLink(this,'../Task/TaskList.aspx')"
                                onmouseover="mouseover(this)" onmouseout="mouseout(this)">已发
                            </li>
                        </ul>
                    </th>
                </tr>
                <tr>
                    <td style="min-height: 120px; height: 120px" valign="top">
                        <asp:Repeater ID="repTask" runat="server" OnItemDataBound="repTask_ItemDataBound">
                            <ItemTemplate>
                                <table class="table_simple_kuan" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td>
                                            <div class="ann_ico" style="background-position: left; padding-left: 25px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 150px">
                                                <asp:HyperLink ID="hlkTaskName" runat="server" Text='<%# swq.Tools.HtmlEncode(Eval("TaskName")) %>'
                                                    NavigateUrl='<%# swq.JScript.OpenWin(string.Format("../Task/TaskShow.aspx?TaskID={0}",Eval("TaskID")),500,500,true) %>'></asp:HyperLink>
                                            </div>
                                        </td>
                                        <td>
                                            <div style="width: 50px; font-size: 11px; color: #c0c0c0; text-align: right">
                                                <%#Eval("DateAndTime","{0:MM-dd}")%>
                                            </div>
                                        </td>
                                        <td style="text-align: right;">
                                            <div class="lab_button_sub" style="font-size:12px" id="divState" runat="server">
                                                <asp:HyperLink runat="server" ID="hlkState" Text='<%# Eval("StatusName")%>' NavigateUrl='<%# GetStatusUrl(Eval("TaskID")) %>'></asp:HyperLink>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:Repeater>
                    </td>
                </tr>
                <tr>
                    <td colspan="6">
                        <asp:Literal ID="litPagerButton3" runat="server"></asp:Literal>
                    </td>
                </tr>
            </table>

        </div>

        <div class="annkuai" style="width: 280px">
            <table cellspacing="0" style="width: 100%">
                <tr>
                    <th style="text-align: left; padding-left: 4px">在线员工
                    </th>
                </tr>
                <tr>
                    <td>
                        <%--<%# (int) Eval("UserID") != UserInfo.UserID  ? JsOpen("../OA/Chat.aspx?UserID="+Eval("UserID"),Eval("UserID").ToString(),520,500) : "" %>--%>
                        <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='#'
                                    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>
        </div>

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