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

<%@ Register Src="/NewProject/ProUserControl/IssueAdd2.ascx" TagName="IssueAdd" TagPrefix="uc1" %>
<%@ Register Src="/NewProject/ProUserControl/FileList.ascx" TagName="FileList1" TagPrefix="uc2" %>
<%@ Register Src="/NewProject/ProUserControl/MainComment.ascx" TagName="CommentList"
    TagPrefix="uc3" %>
<%@ Register Src="/NewProject/ProUserControl/ProjectUseList.ascx" TagName="ProjectUserList"
    TagPrefix="uc4" %>
    <%@ Register Src="/NewProject/ProUserControl/UserAdd.ascx" TagName="UserAdd"
    TagPrefix="uc5" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlace" runat="server">
    <style>
        div
        {
            text-align: left;
        }
        .workbasicinfo
        {
            height: 142px;
            padding: 10px 20px 20px;
        }
        .tab_lwbi li
        {
            display: inline;
            float: left;
            height: 34px;
            line-height: 34px;
            margin-right: 6px;
            text-align: center;
            border: 1px solid #E7E7E7;
        }
        
        .tab_lwbi .current a
        {
            background: #FFFFFF none repeat scroll 0 0;
            border-top: 2px solid #F89D40;
        }
        
        .tab_lwbi a
        {
            background-color: #EEEEEE;
            border-top: 2px solid #EEEEEE;
            color: #666666;
            display: inline-block;
            font-family: '宋体' , '新宋体';
            font-size: 12px;
            height: 32px;
            line-height: 32px;
            padding: 0 11px 0 10px;
            text-decoration: none;
        }
        .tab_lwbi .current b
        {
            color: #000000;
            font-weight: 700;
        }
        .tab_lwbi b
        {
            cursor: pointer;
            display: inline-block;
            float: left;
            font-weight: 400;
            padding-right: 10px;
        }
        .tab_lwbi .current span
        {
            color: #000000;
        }
        .tab_lwbi span
        {
            color: #666666;
            cursor: pointer;
            display: inline-block;
            float: left;
            font-family: Arial;
            font-size: 14px;
        }
        #tabMenu
        {
            float: left;
        }
        .FileList
        {
            margin-left: 10px;
            margin-right: 10px;
            text-align: left;
            padding-top: 10px;
            padding-bottom: 10px;
        }
        body
        {
           
        }
        #divDt
        {
        }

    </style>
    <script>
        function ChangeDiv(Id) {

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

                this.style.display = "none";

            });
            $("#" + Id).show();

            $("#tabMenu").find("li").each(function (i) {

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

            });


            $("#li" + Id).addClass("current");

        }

        function OpenEditDialog(id) {

            OpenDialog("/NewProject/ProjectEdit.aspx?ProjectId=" + id, "编辑项目");
            return false;
        }
    </script>
    <table style="border-collapse: collapse; background-color: White; width: 80%; margin: auto;
        margin-top: 15px;" bordercolor="#c0c0c0" border="2" cellspacing="0" cellpadding="0">
        <tr>
            <td>
                <div class="workbasicinfo" style="">
                    <div style="height: 46px;">
                        <table width="100%">
                            <tr>
                                <td style="font-size: 30px; font-weight: bold; width: 70%" id="tdTitle" runat="server">
                                    行政事务
                                </td>
                                <td style="font-size: 12px;">
                                <asp:LinkButton ID="lbtnFollow" runat="server" CssClass="redborderbtn deletebtn deletework"
                                        OnClientClick="" onclick="lbtnFollow_Click">
                        <b><i>关注</i></b> </asp:LinkButton>
                                    <asp:LinkButton ID="lbtnEdit" runat="server" CssClass="redborderbtn deletebtn deletework"
                                        OnClientClick="">
                        <b><i>编辑</i></b> </asp:LinkButton>
                                    <asp:LinkButton ID="lbtnComplete" runat="server" CssClass="redborderbtn completebtn closework"
                                        OnClientClick="return confirm('确认要完成?')" OnClick="lbtnComplete_Click">
                        <b><i>完成了:)</i></b></asp:LinkButton>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div style="float: left; width: 75%">
                        <div style="font-size: 12px; height: 70px; color: #666666; line-height: 20px; padding-right: 100px;"
                            id="divContent" runat="server">
                        </div>
                        <div style="width: 100%; float: left">
                            <ul id="tabMenu" class="tab_lwbi clearfix">
                                <li class="current" id="lidivDt"><a class="clearfix" title="" href="javascript:void(0);"
                                    onclick="ChangeDiv('divDt')"><b>动态</b><asp:Label ID="lblCommentCount" runat="server"
                                        Text="0"></asp:Label>
                                </a></li>
                                <li id="lidivIssue"><a class="tabLi" title="" href="javascript:void(0);" onclick="ChangeDiv('divIssue')">
                                    <b>任务</b><asp:Label ID="lblIssueCount" runat="server" Text="0"></asp:Label>
                                </a></li>
                                <li id="lidivFile"><a class="tabLi" title="" href="javascript:void(0);" onclick="ChangeDiv('divFile')">
                                    <b>文档</b><asp:Label ID="lblFileCount" runat="server" Text="0"></asp:Label>
                                </a></li>
                                <li id="lidivUser" style=""><a class="tabLi" title="" href="javascript:void(0);"
                                    onclick="ChangeDiv('divUser')"><b>成员</b><asp:Label ID="lblUserCount" runat="server"
                                        Text="0"></asp:Label></a></li>
                            </ul>
                        </div>
                    </div>
                    <div class="time_rwbi">
                        <p class="surplus_trwbi" id="dValue" runat="server">
                            <b>剩余</b><span>0</span><b>天</b></p>
                        <div id="starEndDate" class="node_trwbi">
                            <span id="starData" runat="server"><b>2012.12.05</b></span> — <span id="endData"
                                runat="server"><b>2012.12.11</b></span>
                        </div>
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <table style="margin: 10px; width: 95%; margin-left: auto; margin-right: auto; margin-top: 0px;">
                    <tr>
                        <td width="75%" id="tdList" style="vertical-align: top;">
                            <div id="divDt" class="Data">
                                <div style="float: left; width: 65%;padding-top: 10px; ">
                                    <uc3:CommentList ID="CommentList" runat="server" />
                                </div>
                                <div style="float: left; padding-left: 30px; padding-top: 10px; text-align: left;
                                    width: 30%">
                                     <uc5:UserAdd ID="UserAdd" runat="server" />
                                </div>
                            </div>
                            <div id="divIssue" class="Data" style="display: none; padding: 5px;">
                                <uc1:IssueAdd ID="IssueAdd1" runat="server" />
                            </div>
                            <div id="divFile" style="display: none" class="Data">
                                <uc2:FileList1 ID="FileList1" runat="server" />
                            </div>
                            <div id="divUser" class="Data" style="display: none">
                                <uc4:ProjectUserList ID="ProjectUserList" runat="server" />
                            </div>
                        </td>
                    </tr>
                </table>
                <asp:HiddenField ID="hdAssigneeId" runat="server" />
            </td>
        </tr>
    </table>
    <script>
        var divId = "<%= divId %>";
        if (divId != "")
            ChangeDiv(divId);
    </script>
</asp:Content>
