<%@ Page Title="" Language="C#" MasterPageFile="~/Master/TimeSiteMaster.Master" AutoEventWireup="true" CodeBehind="ProjectStagesPage.aspx.cs" Inherits="MKInsight.Online.ActionTracking.ConfigurationPages.ProjectStagesPage" %>

<%@ Register Src="../UIControls/Header.ascx" TagName="Header" TagPrefix="uc1" %>
<%@ Register Src="../UIControls/MessageBox.ascx" TagName="MessageBox" TagPrefix="uc2" %>
<%@ Register Assembly="UIWebControls" Namespace="UIWebControls" TagPrefix="cc4" %>
<%@ Register Src="../UIControls/UnstructuredEntityAccessControl.ascx" TagName="UnstructuredEntityAccessControl"
    TagPrefix="uc3" %>

<%@ Register src="../UIControls/Interface/TextBoxEx.ascx" tagname="TextBoxEx" tagprefix="uc4" %>
<%@ Register src="../UIControls/Interface/MultilineTextBoxEx.ascx" tagname="MultilineTextBoxEx" tagprefix="uc5" %>

<%@ Register src="../UIControls/Interface/CheckBoxEX.ascx" tagname="CheckBoxEX" tagprefix="uc6" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">


</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="c_M" runat="server">

    <uc1:Header ID="usc_Header" runat="server" />


    <uc2:MessageBox ID="usc_Message" runat="server" />
    <asp:Panel ID="tbP" runat="server" CssClass="w-bar">

        <asp:LinkButton runat="server" ID="tbl_New" CssClass="w-button" Style="background: url(../images/add32.png); " OnClick="OnNew">
            <asp:Label ID="tbl_NewLabel" runat="server"></asp:Label>

        </asp:LinkButton>

    </asp:Panel>
    <table runat="server" style="width:100%">
        <tr>
            <td class="left" style="width: 290px;vertical-align:top;" >
                <asp:Panel ID="pt" runat="server" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px"
                    Height="450px" ScrollBars="Both" Width="300px">
                    <cc4:MKGridView ID="dg_AS" runat="server" AllowPaging="True" AllowSorting="True"
                        AutoGenerateColumns="False" BorderStyle="None" CellPadding="3" DataKeyNames="ID"
                         Font-Size="8pt" OnRowDataBound="OnRowDataBound" Width="95%"
                        OnPageIndexChanging="OnIndexChanging" OnSelectedIndexChanged="OnSelectedStatus"
                        OnSorting="OnGridSorting">
                        <AlternatingRowStyle CssClass="alternatingrowstyle" />
                        <FooterStyle BackColor="White" ForeColor="#000066" />
                        <HeaderStyle CssClass="headerstyle" Font-Bold="True" HorizontalAlign="Left" Wrap="False" />
                        <PagerStyle HorizontalAlign="Left" />
                        <Columns>
                            <asp:CommandField HeaderText="Select" ShowSelectButton="True" />
                            <asp:BoundField DataField="Name" HeaderText="OnlineTimeRecordingProjectPhaseName" SortExpression="Name" />
                            <asp:CheckBoxField DataField="Archived" SortExpression="Archived" HeaderText="Archived" />
                            <asp:CheckBoxField DataField="IsDefault" SortExpression="IsDefault" HeaderText="Default"  />
                            
                            <asp:TemplateField Visible="false" HeaderStyle-Width="0">
                                <ItemTemplate>
                                    <asp:HiddenField ID="hdID" runat="server" Value='<%# Eval("ID") %>' />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerTemplate>
                            <asp:Label ID="lbl_ShowRows" runat="server" Text="Show rows:" /><asp:DropDownList
                                ID="ddlPageSize" runat="server" AutoPostBack="true" OnSelectedIndexChanged="OnSelectedIndexChanged">                                
                                <asp:ListItem Value="10" />
                                <asp:ListItem Value="15" />
                                <asp:ListItem Value="20" />
                            </asp:DropDownList>
                            &#160;&#160;<asp:Label ID="lbl_page" runat="server" Text="Page" />
                            <asp:TextBox ID="txtGoToPage" runat="server" AutoPostBack="true" CssClass="gotopage"
                                OnTextChanged="GoToPageOnTextChanged" />
                            <asp:Label ID="lbl_Of" runat="server" Text="of" />
                            <asp:Label ID="lblTotalNumberOfPages" runat="server" />
                            &nbsp;&nbsp;<asp:Button ID="btn_p" runat="server" CommandArgument="Prev" CommandName="Page"
                                CssClass="previous" SkinID="_" ToolTip="Previous Page" />
                            <asp:Button ID="btn_n" runat="server" CommandArgument="Next" CommandName="Page" CssClass="next"
                                SkinID="_" ToolTip="Next Page" />
                        </PagerTemplate>
                        <SelectedRowStyle BackColor="#D6E8FF" Font-Bold="True" ForeColor="Black" />
                    </cc4:MKGridView>
                </asp:Panel>
            </td>
            <td class="left" colspan="2" style="vertical-align:top;" >
                <asp:Panel ID="pv" runat="server" Visible="False" Width="100%">
                    <table>
                        <tr>
                            <td class="amend_label" style="height: 20px"></td>
                            <td class="amend_field" style="height: 20px"></td>
                        </tr>
                        <tr>
                            <td colspan="2"  >
                                <uc4:TextBoxEx ID="u_Name" runat="server" />
                                </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <uc5:MultilineTextBoxEx ID="u_Description" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <uc6:CheckBoxEX ID="u_Default" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <uc6:CheckBoxEX ID="u_Archived" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">&nbsp;</td>
                        </tr>
                        <tr id="tr_Rights" runat="server">
                            <td   style="vertical-align:top;">
                                <asp:Label ID="lbl_UsageRights" runat="server" Text="UsageRights"></asp:Label>
                            </td>
                            <td class="left" style="vertical-align:top;">
                                <uc3:UnstructuredEntityAccessControl ID="u_Rights" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td class="amend_label_opt" colspan="2" style="vertical-align:top;">
                                <hr class="ee" />
                            </td>
                        </tr>
                        <tr>
                            <td class="left" colspan="2" style="vertical-align:top;">
                                <asp:Button ID="btn_Update" runat="server" Text="Update" />
                                <asp:Button ID="btn_Add" runat="server" Text="Add" />                                
                                <asp:Button ID="btn_Cancel" runat="server" Text="Cancel" />
                                
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
    </table>

</asp:Content>
