<%@ Page Title="" Language="C#" MasterPageFile="~/EmptyAjaxMaster.Master" AutoEventWireup="true" CodeBehind="AccessibleUsers.aspx.cs" Inherits="MKInsight.Online.TimeRecording.UI.AccessibleUsers" %>

<%@ Register Src="../UIControls/Interface/SimpleSectionBreak.ascx" TagName="SimpleSectionBreak" TagPrefix="uc1" %>
<%@ Register Src="../UIControls/Interface/CommandLink.ascx" TagName="CommandLink" TagPrefix="uc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="h" runat="server">
    <link rel="stylesheet" type="text/css" href="css/timerecordingsection.css" />

    <script type="text/javascript" src="../scripts/jquery/jquery_min.js"></script>
    <script type="text/javascript" src="../scripts/jquery/jquery.box-min.js"></script>

    <script type="text/javascript">
        function OnOpenEntityDataWithClose(sender, url) {

            $(document).ready(function () {                
                $.colorbox({ position: 'absolute', scrolling: false, top: "0px", closeButton:false, left: "0px", transition: 'none', width: '0px', height: '0px', iframe: true, href: url, onClosed: function () { } });
            });
        }

        function cb() {
            
            parent.$.colorbox.close();
            $.colorbox.close();
            parent.parent.$.colorbox.close();
            $('[id*=btn_partial_refresh]', parent.parent.document).click();
        }
        function cb2() {
            parent.$.colorbox.close();
        }
    </script>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="cm" runat="server">
    <table style="width: 100%">
        <tr>
            <td>

                <uc1:SimpleSectionBreak ID="u_SearchTimelines" runat="server" />

            </td>
        </tr>
        <tr>
            <td>

                <uc2:CommandLink ID="btn_OpenMyTimeline" runat="server" />

            </td>
        </tr>
        <tr>
            <td>
                <br />
                <asp:Panel runat="server" ID="pn" DefaultButton="img_Search">


                    <table>
                        <tr>
                            <td>
                                <asp:TextBox ID="txt_Search" runat="server" Width="418" Height="23"></asp:TextBox>
                            </td>
                            <td>
                                <asp:ImageButton ID="img_Search" runat="server" ImageUrl="../images/search16.png" OnClick="OnSearch" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td>
                <asp:TreeView ID="tr" runat="server" OnSelectedNodeChanged="OnSelectedNodeChanged">
                </asp:TreeView>
            </td>
        </tr>
        <tr>
            <td>
                <uc1:SimpleSectionBreak ID="u_SubmittedTimesheets" runat="server" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:UpdatePanel ID="p_t" runat="server">
                    <ContentTemplate>

                        <asp:Panel ID="tb_Level1" runat="server" CssClass="w-bar">

                            <asp:LinkButton runat="server" ID="tbl_DefaultRange" CssClass="w-button" Style="background: url(../images/week32.png); " OnClick="OnDefaultDateRange">
                                <asp:Label ID="tbl_DefaultRangeLabel" runat="server"></asp:Label>
                            </asp:LinkButton>

                            <asp:DropDownList ID="drp_Years" runat="server"  CssClass="w-button" Style="background: url(../images/listnumber32.png); "
                                AutoPostBack="true" OnSelectedIndexChanged="OnRangeYearItemClick">
                            </asp:DropDownList>

                            <asp:DropDownList ID="drp_Months" runat="server"  CssClass="w-button" Style="background: url(../images/listnumber32.png); "
                                AutoPostBack="true" OnSelectedIndexChanged="OnRangeMonthItemClick">
                            </asp:DropDownList>

                            <asp:LinkButton runat="server" ID="tbl_Back4" CssClass="w-button" Style="background: url(../images/left2_32.png); " OnClick="OnBackFourWeeks">
                                <asp:Label ID="tbl_Back4Label" runat="server"></asp:Label>
                            </asp:LinkButton>

                            <asp:LinkButton runat="server" ID="tbl_Back" CssClass="w-button" Style="background: url(../images/blutleft32.png); " OnClick="OnBack">
                                <asp:Label ID="tbl_BackLabel" runat="server"></asp:Label>
                            </asp:LinkButton>

                            <asp:LinkButton runat="server" ID="tbl_Next" CssClass="w-button" Style="background: url(../images/blueright32.png); " OnClick="OnNext">
                                <asp:Label ID="tbl_NextLabel" runat="server"></asp:Label>
                            </asp:LinkButton>

                            <asp:LinkButton runat="server" ID="tbl_Next4" CssClass="w-button" Style="background: url(../images/right2_32.png); " OnClick="OnNextFourWeeks">
                                <asp:Label ID="tbl_Next4Label" runat="server"></asp:Label>
                            </asp:LinkButton>

                        </asp:Panel>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
        </tr>
        <tr>
            <td>
                <asp:UpdatePanel ID="p_u" runat="server">
                    <ContentTemplate>
                        <asp:Panel ID="p" runat="server">
                        </asp:Panel>
                    </ContentTemplate>
                </asp:UpdatePanel>

            </td>
        </tr>
    </table>

</asp:Content>
