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

<%@ Register Src="/UserControls/TaskNav.ascx" TagName="TaskNav" TagPrefix="uc1" %>
<%@ Register Src="/NewProject/ProUserControl/ProjectAdd.ascx" TagName="ProjectAdd"
    TagPrefix="uc1" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<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="page_main">
                    <div class="page_content">
                        <div class="divNewProject" style="width: 100%">
                            <div class="" style="margin-bottom: 10px; width: 100%; margin-top: 10px; text-align: left;
                                font-size: 15px;">
                                <a href="ProjectList.aspx?Search=1" id="link1">我参与的项目</a> <a href="ProjectList.aspx?Search=2"
                                    style="margin: 10px" id="link2">我负责的项目</a> <a href="ProjectList.aspx" style="margin: 10px" id="link">所有项目</a>
                                <p style="margin-top: 15px;">
                                    <a href="javascript:void(0)" onclick="ShowDiv(1)" style="font-size: 20px;" id="LinkProjectAdd"
                                        runat="server">+ 新建项目</a>
                                </p>
                            </div>
                            <div style="width: 100%; text-align: left; display: none;" id="DivProjectAdd">
                                <uc1:ProjectAdd ID="ProjectAdd1" runat="server" />
                            </div>
                            <asp:Repeater ID="grdvProject" runat="server" OnItemDataBound="grdvProject_ItemDataBound"
                                OnItemCommand="grdvProject_ItemCommand">
                                <ItemTemplate>
                                    <div class="li_wl">
                                        <div class="title_wl clearfix">
                                            <img class="img_twl" alt="" src="/images/default_middle.jpg" width="50" runat="server"
                                                id="UserImg" />
                                            <a href="ProjectInfo2.aspx?ProjectId=<%# Eval("ProjectId") %>" class="name_twl" style="color: #000000">
                                                <%# Eval("name") %></a> <span class="btn_twl">
                                                    <asp:LinkButton ID="lbtnDel" CommandName="del" CommandArgument='<%# Eval("ProjectId") %>'
                                                        runat="server" CssClass="redborderbtn deletebtn deletework" OnClientClick="return confirm('将删除相关的任务和动态?')">
                        <b><i>删除</i></b> </asp:LinkButton>
                                                    <asp:LinkButton ID="lbtnComplete" CommandName="complete" CommandArgument='<%# Eval("ProjectId") %>'
                                                        runat="server" CssClass="redborderbtn completebtn closework" OnClientClick="return confirm('确认要完成?')">
                        <b><i>完成了:)</i></b></asp:LinkButton>
                                                </span>
                                        </div>
                                        <table cellspacing="0" cellpadding="0" class="workinfo_wl">
                                            <tbody>
                                                <tr>
                                                    <td>
                                                        <div class="remainder_wwl" id="divState" runat="server">
                                                            <span class="remaind_rwwl">剩余</span> <b class="remaindnum_rwwl">6</b> <span class="remaind_rwwl">
                                                                天</span>
                                                        </div>
                                                    </td>
                                                    <td class="feednum_wwl">
                                                        <a href='ProjectInfo2.aspx?divId=divDt&ProjectId=<%# Eval("ProjectId") %>'><span
                                                            id="LinkComment" runat="server"></span>
                                                            <br />
                                                            <b>动态</b></a>
                                                    </td>
                                                    <td class="feednum_wwl ">
                                                        <a href='ProjectInfo2.aspx?divId=divIssue&ProjectId=<%# Eval("ProjectId") %>'><span
                                                            id="LinkIssue" runat="server"></span>
                                                            <br />
                                                            <b>任务</b></a>
                                                    </td>
                                                    <td class="feednum_wwl">
                                                        <a href='ProjectInfo2.aspx?divId=divUser&ProjectId=<%# Eval("ProjectId") %>'><span
                                                            id="LinkUser" runat="server">0</span><br />
                                                            <b>成员</b></a>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </ItemTemplate>
                            </asp:Repeater>
                            <div class="pager-bar" style="width: 100%">
                                <webdiyer:AspNetPager ID="plProject" runat="server" OnPageChanged="plProject_PageChanged"
                                    CssClass="anpager" currentpagebuttonclass="cpb" PageSize="10" NextPageText="下一页"
                                    LastPageText="页 尾" FirstPageText="第一页" PrevPageText="上一页" ShowBoxThreshold="10"
                                    SubmitButtonText="跳 转" AlwaysShow="True">
                                </webdiyer:AspNetPager>
                            </div>
                        </div>
                    </div>
                </div>
            </td>
        </tr>
    </table>
    <script>
        var Seach = "<%= Search %>";
        $("#link" + Seach).css("color", "red");
    </script>
</asp:Content>
