<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RecentActivity.aspx.cs" Inherits="Axium.Web.Activity.RecentActivity" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head runat="server">
    <title>Recent Activity</title>
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <meta http-equiv="Content-Script-Type" content="text/javascript" />

     <!-- css styles -->
     <link href="../Includes/Css/simplePagination.css" rel="stylesheet" type="text/css" />
     <link href="../Includes/Css/spinner.css" rel="stylesheet" type="text/css" />

    <!-- plug in -->
    <script src="../Includes/JQueryUI/js/jquery-3.5.1.min.js" type="text/javascript"></script>
    <script src="../Includes/JQueryUI/js/jquery-migrate-3.3.2.min.js" type="text/javascript"></script>
    <script src="../Includes/Scripts/dateControl.js" type="text/javascript"></script>
    <script src="../Includes/Scripts/ui.datepicker.js" type="text/javascript"></script>
    <script src="../Includes/Scripts/jquery.simplePagination.js" type="text/javascript"></script>
    <script src="../Includes/Scripts/spin.min.js" type="text/javascript"></script>

    <!-- custom -->
    <script src="../Includes/Scripts/general.240530.js" type="text/javascript"></script>
    <script src="../Includes/Scripts/iframe.231520.js" type="text/javascript"></script>
    <script src="../Includes/Scripts/recent.Activity.240.js" type="text/javascript"></script>


    <style type="text/css" runat="server" ID="logicCss"></style>       
</head>
<body id="recentActivityPage" onload="initPage();">
    <form id="form2" runat="server">

        <asp:HiddenField runat="server" ID="FromDateField"/>
        <asp:HiddenField runat="server" ID="ToDateField"/>  
        <asp:HiddenField runat="server" ID="AdvanceSearchStateVal"/>      
        <asp:HiddenField runat="server" ID="CurrentPageValue" Value="0" />
        <asp:HiddenField runat="server" ID="TotalPagesValue" Value="0" />

        <div id="RecentActivityList">
            <h1>Recent Activity</h1>

            <div id="SearchArea">
                <div id="ActionedArea" runat="server">
                    <div id="ActionedDpDiv">
                        <label class="FieldLabel" for="ActionedDrp">Actioned By:</label>
                        <asp:DropDownList ID="ActionedDrp" runat="server" />
                    </div>
                    <div id="SubmitActionedDiv" runat="server">
                        <asp:Button ID="SubmitActionedBtn" runat="server" Text="Submit" OnClientClick="checkDates()" OnClick="SubmitClick"/>
                    </div>
                    <div id="AdvanceSearchDiv">
                        <span id="AdvanceSearchSpan" onclick="AdvanceSearchToggle()" tabindex="0" runat="server"></span>                        
                    </div>
                </div>
                <div id="AdvanceSearchArea" runat="server">
                    <div id="DateSearchArea">
                        <div id="FromDate">
                            <asp:Label ID="DateFromLbl" runat="server" Text="Dates From:"  CssClass="FieldLabel"></asp:Label>
                            <asp:Image ID="FromDateImgError" runat="server" ImageUrl="../Includes/Images/unchecked.png" CssClass="imgErrorHide" AlternateText="Error Date From"/>
                            <br />
                            <asp:Panel runat="server" ID="FromDateControlDiv"></asp:Panel>
                        </div>
                        <span id="ToDate">
                            <asp:Label ID="DateToLbl" runat="server" Text="Dates To:"  CssClass="FieldLabel"></asp:Label>
                            <asp:Image ID="ToDateImgError" runat="server" ImageUrl="../Includes/Images/unchecked.png" CssClass="imgErrorHide" AlternateText="Error Date To"/>
                            <br />
                            <asp:Panel runat="server" ID="ToDateControlDiv"></asp:Panel>
                        </span>
                    </div>                    
                    <div id="ActionArea">
                        <asp:Label ID="ActionLbl" runat="server" Text="Action:"  CssClass="FieldLabel"></asp:Label>
                        <span id="SelectAllSpan" onclick="selectActions()" tabindex="0" runat="server" >Select All</span>
                        <span id="Separator" >|</span>
                        <span id="ClearAllSpan" onclick="clearActions()" tabindex="0" runat="server" >Clear All</span>                        
                    </div>
                    <div id="ActionTypeArea">
                        <div id="ActionTypeChkBoxDiv">
                            <asp:CheckBoxList ID="ActionTypeChkBoxLst" runat="server" RepeatDirection="Horizontal"/>
                        </div>
                        <div id="SubmitAdvanceDiv">
                            <asp:Button ID="SubmitAdvanceBtn" runat="server" Text="Submit" OnClientClick="checkDates()" OnClick="SubmitClick"/>
                        </div>
                    </div>
                </div>
            </div>
            <asp:Panel ID="PageHeader" runat="server" CssClass="HeaderRow">
                <a id="ActionedHeaderDiv" runat="server" class="NoFrameDiv" OnServerClick="OrderByActioned">
                    <asp:Label id="ActionedHeader" runat="server" Text="Actioned By" class="NoFrameButton" />
                    <asp:Label ID="ActionedIcon" runat="server"/>
                </a>
                <a id="ActionHeaderDiv" runat="server" class="NoFrameDiv" OnServerClick="OrderByAction">
                    <asp:Label ID="ActionHeader" runat="server" Text="Action" class="NoFrameButton" />
                    <asp:Label ID="ActionIcon" runat="server"/>
                </a>
                <a id="InfoHeaderDiv" runat="server" class="NoFrameDiv" OnServerClick="OrderByInfo">
                    <asp:Label ID="InfoHeader" runat="server" Text="Information" class="NoFrameButton" />
                    <asp:Label ID="InfoIcon" runat="server"/>
                </a>
                <a id="DateHeaderDiv" runat="server" class="NoFrameDiv" OnServerClick="OrderByDate">
                    <asp:Label ID="DateHeader" runat="server" Text="Date" class="NoFrameButton"  />
                    <asp:Label ID="DateIcon" runat="server"/>
                </a>
            </asp:Panel>    

            <div id="RecentActListArea">
		        <asp:Repeater ID="ActivityRepeater" runat="server" onitemdatabound="DataBound">
		            <HeaderTemplate>
		            </HeaderTemplate>
                    <ItemTemplate> 
                        <asp:Panel ID="ActivityRow" runat="server">
                            <div ID="ItemRowDiv" runat="server">
                                <div class="ActionedByDiv RecentRow"><div class="RecentRowLabel">Actioned By</div><div class="RecentRowItem"><asp:Literal ID="ActionedByLit" runat="server"/></div></div>
                                <div class="ActionDiv RecentRow"><div class="RecentRowLabel">Action</div><div class="RecentRowItem"><asp:Literal ID="ActionLit" runat="server"/></div></div>
                                <div class="InfoDiv RecentRow"><div class="RecentRowLabel">Information</div><div class="RecentRowItem"><asp:Literal ID="InfoLit" runat="server"/></div></div>
                                <div class="DateDiv RecentRow"><div class="RecentRowLabel">Date</div><div class="RecentRowItem"><asp:Literal ID="DateLit" runat="server"/></div></div>
                            </div>
                            <div ID="ItemRowCorrupted" runat="server">
                                <div id="CorruptedArea" runat="server" class="CorruptedMsg"></div>
                            </div>
                        </asp:Panel>
                    </ItemTemplate>
                    <FooterTemplate>        
                        <asp:Literal ID="lblEmptyData" Text="" runat="server" Visible="false"/>
                    </FooterTemplate>
                </asp:Repeater>
                <div class="bottomArea">
                    <div class="pagination-page"></div>
                </div>

                <asp:Button runat="server" ID="PageClickButton" OnClick="PageClick" Text="Page"/>
            </div>
        </div>
    </form>
</body>
</html>
