<%@ Page Language="C#"  Theme="Default" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="CommentInfo.aspx.cs" Inherits="OAWeb.NewProject.CommentInfo" EnableViewState="true" %>

<%@ Register Src="/UserControls/TaskNav.ascx" TagName="TaskNav" TagPrefix="uc1" %>
<%@ Register Src="/NewProject/ProUserControl/CommentInfo.ascx" TagName="MainComment"
    TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlace" runat="server">
    <!--主体左侧-->
    <table id="plc_profile" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td class="main_left">
                <uc1:TaskNav ID="TaskNav1" runat="server" />
            </td>
            <td class="main_center">
                <div class="TabList">
                    <a class="current" href="javascript:void(0)">发分享 </a>
                </div>
                
                <div id="MainCommnet" style="margin-top: 15px;">
                    <uc2:MainComment ID="MainComment1" runat="server" />
                </div>
            </td>
            <td class="main_right">
                <div class="widget">
                    <div class="widget-hd icon-gg">
                        <span>公告</span>
                    </div>
                    <div class="widget-bd">
                        <ul>
                            <asp:Repeater ID="rptAnnounceData" runat="server">
                                <ItemTemplate>
                                    <li><a href="Announce/BaseAnnounceView.aspx?Id=<%#Eval("Id")%>">
                                        <%#Eval("Title")%></a></li>
                                </ItemTemplate>
                            </asp:Repeater>
                        </ul>
                    </div>
                </div>
                <div class="widget" style="float: left; width: 100%">
                    <div class="widget-hd ico08">
                        <span>最近活跃的同事</span>
                    </div>
                    <div class="widget-bd" style="float: left; width: 100%">
                        <ul>
                            <asp:Repeater ID="rptEmployData" runat="server">
                                <ItemTemplate>
                                    <li class="employ_li">
                                        <div>
                                            <img width="30px" height="30px" src='<%#base.GetUserImg(Convert.ToInt32(Eval("Id")), "/images/default_small.jpg") %>' /></div>
                                        <div>
                                            <%#Eval("RealName")%></div>
                                    </li>
                                </ItemTemplate>
                            </asp:Repeater>
                        </ul>
                    </div>
                </div>
                <div class="widget">
                    <div class="widget-hd ico09">
                        <span>最新知识</span>
                    </div>
                    <div class="widget-bd">
                        <ul>
                            <asp:Repeater ID="rptKnowledgeData" runat="server">
                                <ItemTemplate>
                                    <li><a href="Knowledge/KnowledgeView.aspx?Id=<%#Eval("Id")%>">
                                        <%#Eval("Title")%></a></li>
                                </ItemTemplate>
                            </asp:Repeater>
                        </ul>
                    </div>
                </div>
            </td>
        </tr>
    </table>
    <script type="text/javascript">
        var TypeId = "<%= TypeId %>";

        $(".item_stl_m").each(function (i) {

            $(this).removeClass("current");
        });

        $("#TabLi" + TypeId).addClass("current");

        var divId = "<%= DivId %>";
        if (divId != "")
            ChangeTopDiv(divId);
        function ChangeTopDiv(Id) {

            $("#LiMainCommnet").removeClass("current");
            $("#LidivIssueAdd").removeClass("current");
            $("#Li" + Id).addClass("current");

            if (Id == "divIssueAdd") {
                $("#subTabHome").hide();
                $("#CommentBox").hide();
                $("#divIssueAdd").show();
            }
            else {
                $("#subTabHome").show();
                $("#CommentBox").show();
                $("#divIssueAdd").hide();
            }
        }
    </script>
</asp:Content>
