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

<%@ Register Src="/NewProject/ProUserControl/IssueAdd.ascx" TagName="IssueAdd" TagPrefix="uc1" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="/NewProject/ProUserControl/MainComment.ascx" TagName="CommentList"
    TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlace" runat="server">
    <script>
        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>
    <style>
        .icon_tmum
        {
            background: transparent url(/images/navigation_icon.gif) no-repeat scroll 0 -38px;
            display: block;
            height: 22px;
            line-height: 22px;
            padding: 9px 0 0 20px;
            margin: 20px;
        }
        .icon_ttuw
        {
            background: transparent url(/images/navigation_icon.gif) no-repeat scroll 0 -88px;
            display: block;
            height: 22px;
            line-height: 22px;
            padding: 9px 0 0 20px;
            margin: 20px;
        }
        
        .icon_dmum
        {
             background: transparent url(/images/navigation_icon.gif) no-repeat scroll 0 -188px;
            display: block;
            height: 22px;
            line-height: 22px;
            padding: 9px 0 0 20px;
            margin: 20px;
        }
        .ProList
        {
        	height:30px;
        	font-size:12px;
        	padding-left:20px;
        	line-height:30px;
        }
        .LeftMenu
        {
        	float: left; width: 13%; border-right: 1px solid #D6D6D6; height: 500px;
            margin-right: 10px; text-align: center; padding-top: 10px; font-size:16px;
        }
        .LeftMenu a
        {
        	color:#2889a8;
        }

    </style>
    <div style="width: 90%; text-align: left;" class="divNewProject">
        <div style=""  class="LeftMenu">
            <div>
                <img id="TopUserImg" runat="server" width="100" /></div>
            <div style="padding: 10px; border-bottom: 1px solid #D6D6D6; width: 80%;">
                <%= base.RealName %></div>
            <div class="icon_tmum">
                <a href="/NewProject/IssueList.aspx">我的任务</a>
            </div>
            <div class="icon_ttuw">
                <a href="/NewProject/ProjectList.aspx?Search=1">我的项目</a>
               
            </div>

            <asp:Repeater ID="Repeater3" runat="server">
            <ItemTemplate>
            <div class="ProList"><a href=/NewProject/ProjectInfo2.aspx?ProjectId=<%# Eval("ProjectId") %>><%# base.getStr1(  Eval("name").ToString(),8) %></a></div>
            </ItemTemplate>
            </asp:Repeater>
            
      
            <div class="icon_dmum">
                <a href="/NewProject/FileList.aspx">文档资料</a>
            </div>

        </div>
        <div style="float: left; width: 65%">
            <div class="TabList">
                <a class="current" href="javascript:void(0)" id="LiMainCommnet" onclick="ChangeTopDiv('MainCommnet')">
                    发分享 </a><a href="javascript:void(0)" id="LidivIssueAdd" onclick="ChangeTopDiv('divIssueAdd')">
                        发任务</a>
            </div>
            <div id="subTabHome" class="subtablist_m clearfix" style="">
                <ul>
                    <li id="TabLi" class="item_stl_m current"><a title="" href="UserMain.aspx">全部</a></li>
                    <li class="line_stl_m">|</li>
                    <li id="TabLi1" class="item_stl_m"><a title="" href="UserMain.aspx?TypeId=1">我发的</a></li>
                    <li class="line_stl_m">|</li>
                    <li id="TabLi3" class="item_stl_m"><a title="" href="UserMain.aspx?TypeId=3">发给我的</a></li>
                </ul>
            </div>
            <div id="MainCommnet" style="margin-top: 15px;">
                <uc1:IssueAdd ID="IssueAdd1" runat="server" />
                <uc3:CommentList ID="CommentList" runat="server" />
            </div>
        </div>
        <div style="float: left; ">
            <div class="fileshare" style="display: none">
                <a href="#"><b></b><span>待 办 事 项</span></a>
            </div>
            <div class="streamtita" style="display: none">
                <div>
                    未执行：<asp:Label ID="Label1" runat="server" Text=""></asp:Label></div>
                <div>
                    进行中：<asp:Label ID="Label2" runat="server" Text=""></asp:Label></div>
                <div>
                    已到期：<asp:Label ID="Label3" runat="server" Text=""></asp:Label></div>
            </div>
            <div class="fileshare" style="display: none">
                <a href="#"><b></b><span>项 目 团 队</span></a>
            </div>
            <div class="streamtita" style="display: none">
                <asp:Repeater ID="Repeater1" runat="server">
                    <ItemTemplate>
                        <div>
                            <a href="ProjectInfo.aspx?ProjectId=<%# Eval("ProjectId") %>">
                                <%# Eval("name") %></a></div>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
            <div class="fileshare" style=" width:150px; padding-left:10px; padding-right:10px;">
                <a href="#"><b></b><span>公 告 </span></a>
            </div>
            <div class="streamtita"  style=" width:150px;">
                <asp:Repeater ID="Repeater2" runat="server">
                    <ItemTemplate>
                        <div style="overflow: hidden;">
                            <a href="<%# "/Announce/BaseAnnounceView.aspx?ID=" + DataBinder.Eval(Container.DataItem, "Id").ToString() %>">
                                <%# base.getStr1( Eval("title").ToString(),23) %></a>
                        </div>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
            <div class="fileshare"  style=" width:150px; padding-left:10px; padding-right:10px;">
                <a href="#"><b></b><span>业 绩 </span></a>
            </div>
            <div class="streamtita"  style=" width:150px">
                <div>
                    本月工时：<asp:Label ID="Label4" runat="server" Text=""></asp:Label></div>
                <div>
                    本月业绩：<asp:Label ID="Label5" runat="server" Text=""></asp:Label></div>
                <div>
                    本月目标：<asp:Label ID="Label6" runat="server" Text=""></asp:Label></div>
            </div>
        </div>
    </div>
    <script>
        var TypeId = "<%= TypeId %>";

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

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

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

        var divId = "<%= DivId %>";
        if (divId != "")
            ChangeTopDiv(divId);
        
    </script>
</asp:Content>
