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

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

    <script>
        function ClearThisSession() { PageMethods.ClearSelectedSession(OnClearComplete, OnClearError); }
        function OnClearError(error, userContext, methodName) { }
        function OnClearComplete(result, userContext, methodName) { }
    </script>

    <script type="text/javascript" src="../scripts/jquery/jquery_min.js"></script>
    <script type="text/javascript" src="../scripts/jquery/jquery-ui.min.js"></script>
    <link rel="stylesheet" type="text/css" href="../scripts/jquery/jqbox.css" />
    <script type="text/javascript" src="../scripts/jquery/jquery.box-min.js"></script>
    <link rel="stylesheet" type="text/css" href="css/timerecordingsection.css" />
    <script type="text/javascript" src="js/timerecordingsection.js"></script>

</asp:Content>

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

    <asp:UpdatePanel ID="u" runat="server" UpdateMode="Conditional">
        <ContentTemplate>

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

                <asp:LinkButton runat="server" ID="tbl_Timeline" CssClass="w-button" Style="background: url(../images/folder32.png); " OnClientClick="$.colorbox({ transition: 'none', width: '95%', height: '95%', iframe: true,href:'AccessibleUsers.aspx' }); return false;">
                    <asp:Label ID="tbl_TimelineLabel" runat="server"></asp:Label>
                </asp:LinkButton>


                <asp:LinkButton runat="server" ID="tbl_Refresh" CssClass="w-button" Style="background: url(../images/refresh32.png); " OnClick="OnRefreshTimeLine">
                    <asp:Label ID="tbl_RefreshLabel" runat="server"></asp:Label>
                </asp:LinkButton>

                <asp:LinkButton runat="server" ID="tbl_Management" CssClass="w-button" Style="background: url(../images/management32.png); " OnClientClick="$.colorbox({ transition: 'none', width: '95%', height: '95%', iframe: true,href:'ManagementActionsPage.aspx' }); return false;">
                    <asp:Label ID="tbl_ManagementLabel" runat="server"></asp:Label>
                </asp:LinkButton>

            </asp:Panel>

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

                <asp:LinkButton runat="server" ID="tbl_Save" CssClass="w-button" Style="background: url(../images/save32.png); " OnClick="OnSave">
                    <asp:Label ID="tbl_SaveLabel" runat="server"></asp:Label>
                </asp:LinkButton>

                <asp:DropDownList ID="drp_Weeks" runat="server" CssClass="w-button" Style="background: url(../images/week32.png); padding-left:30px; padding-top:0px;height:34px;"
                    AutoPostBack="true" OnSelectedIndexChanged="OnWeekViewChanges">
                </asp:DropDownList>

                <asp:DropDownList ID="drp_Years" runat="server" CssClass="w-button" Style="background: url(../images/listnumber32.png); padding-left:30px; padding-top:0px;height:34px;"
                    AutoPostBack="true" OnSelectedIndexChanged="OnRangeYearItemClick">
                </asp:DropDownList>

                <asp:DropDownList ID="drp_Months" runat="server" CssClass="w-button" Style="background: url(../images/listnumber32.png); padding-left:30px; padding-top:0px;margin-right:10px;height:34px;"
                    AutoPostBack="true" OnSelectedIndexChanged="OnRangeMonthItemClick">
                </asp:DropDownList>

                <asp:LinkButton runat="server" ID="tbl_DisplayRange" Visible="false" CssClass="w-button" Style="background: url(../images/search32.png); " OnClientClick="$.colorbox({ transition: 'none', width: '95%', height: '95%', iframe: true,href:'UI/DateRangeSelection.aspx' }); return false;">
                    <asp:Label ID="tbl_DisplayRangeLabel" runat="server"></asp:Label>
                </asp:LinkButton>

               
                <asp:LinkButton runat="server" ID="tbl_Back4" CssClass="w-button" Style="background: url(../images/left2_32.png); padding-top:5px;" 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); padding-top:5px;" 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); padding-top:5px;" 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); padding-top:5px;" OnClick="OnNextFourWeeks">
                    <asp:Label ID="tbl_Next4Label" runat="server"></asp:Label>
                </asp:LinkButton>


                <asp:LinkButton runat="server" ID="tbl_Expand" CssClass="w-button" Style="background: url(../images/expand32.png); padding-top:5px;" OnClick="OnExpand">
                    <asp:Label ID="tbl_ExpandLabel" runat="server"></asp:Label>
                </asp:LinkButton>

                <asp:LinkButton runat="server" ID="tbl_Collapse" CssClass="w-button" Style="background: url(../images/collapse32.png); padding-top:5px;" OnClick="OnCollapse">
                    <asp:Label ID="tbl_CollapseLabel" runat="server"></asp:Label>
                </asp:LinkButton>

            </asp:Panel>

            <asp:Panel ID="tb_Level3" runat="server" CssClass="w-bar" >
                <asp:DropDownList ID="drp_Add" runat="server" onchange="OnAddItem(this);" CssClass="w-button" style="padding-left:0px; padding-top:0px;margin-right:10px;">

                    <asp:ListItem Text="AddItem" Value="-1"></asp:ListItem>

                    <asp:ListItem Text="AddProject" Value="AddProject"></asp:ListItem>
                    <asp:ListItem Text="AddAuditCode" Value="AddAuditCode"></asp:ListItem>
                    <asp:ListItem Text="AddWorkProgramme" Value="AddWorkProgramme"></asp:ListItem>
                    <asp:ListItem Text="AddChecklist" Value="AddChecklist"></asp:ListItem>
                    <asp:ListItem Text="__________________" disabled style="width: 100%"></asp:ListItem>
                    <asp:ListItem Text="" disabled></asp:ListItem>
                    <asp:ListItem Text="AddNonAuditCode" Value="AddNonAuditCode"></asp:ListItem>
                    <asp:ListItem Text="" disabled></asp:ListItem>
                </asp:DropDownList>

               
                <asp:LinkButton runat="server" ID="tb_AddNotes" CssClass="w-button" Style="background: url(../images/addnote32.png); padding-top:5px;" OnClick="OnAddNote">
                    <asp:Label ID="tb_AddNotesLabel" runat="server"></asp:Label>
                </asp:LinkButton>

            </asp:Panel>

            <asp:Button ID="btn_parital_refresh_updatevalues" runat="server" OnClick="OnChangeValue" Style="display: none;" />
            <asp:Button ID="btn_parital_refresh_updateflexi" runat="server" OnClick="OnFlexiChangeValue" Style="display: none;" />

            <asp:Button ID="btn_partial_refresh" runat="server" Text="Postback inside update" Style="display: none;" OnClick="OnPostBackInsideUpdatePanel" />

            <asp:HiddenField ID="hd_cell_value" runat="server" />
            <asp:HiddenField ID="hd_cell_focus" runat="server" />

            <asp:HiddenField ID="hd_flexi_value" runat="server" />


            <asp:Panel ID="p_ts" runat="server" ScrollBars="Both">
            </asp:Panel>


        </ContentTemplate>

    </asp:UpdatePanel>

</asp:Content>
