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

<%@ Register Src="UserControls/TaskNav.ascx" TagName="TaskNav" TagPrefix="uc1" %>
<%@ Register Src="NewProject/ProUserControl/MainComment.ascx" TagName="MainComment"
    TagPrefix="uc2" %>
<%@ Register src="UserControls/MainAnnounceList.ascx" tagname="MainAnnounceList" tagprefix="uc3" %>
<%@ Register src="UserControls/MainKnowledgeList.ascx" tagname="MainKnowledgeList" tagprefix="uc4" %>
<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="subTabHome" class="subtablist_m clearfix" style="">
                    <ul>
                        <li id="TabLi" class="item_stl_m current"><a title="" href="Default.aspx">全部</a></li>
                        <li class="line_stl_m">|</li>
                        <li id="TabLi1" class="item_stl_m"><a title="" href="Default.aspx?TypeId=1">我发的</a></li>
                        <li class="line_stl_m">|</li>
                        <li id="TabLi3" class="item_stl_m"><a title="" href="Default.aspx?TypeId=3">发给我的</a></li>
                        <li class="line_stl_m">|</li>
                        <li id="TabLi4" class="item_stl_m"><a title="" href="Default.aspx?TypeId=4">我关注的</a></li>
                    </ul>
                </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">
                        <uc3:MainAnnounceList ID="MainAnnounceList1" runat="server" />
                    </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  class="widget-hd" style=" font-size:16px;  padding-left:20%;">
                        <a href="javascript:void(0)" onclick="OpenDialog('/Dialog/FollowUser.aspx','添加关注');return false;" style="color:#2889A8" ><span style=" font-size:18px;">+</span> 关注其他同事</a>
                    </div>
                    <br />
                </div>
                <div class="widget">
                    <div class="widget-hd ico09">
                        <span>最新知识</span>
                    </div>
                    <div class="widget-bd">
                        <uc4:MainKnowledgeList ID="MainKnowledgeList1" runat="server" />
                    </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>
