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

<!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>Document List</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/JQueryUI/js/jquery-ui-1.13.2.custom.min.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/downloadDocument.js" type="text/javascript"></script>    
    <script src="../Includes/Scripts/documentAttach.js" type="text/javascript"></script>
    <script src="../Includes/Scripts/FileSaver.js" type="text/javascript"></script>

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

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

        <div id="DocumentAttachList">
            <h1>Documents</h1>
            
            <asp:Panel ID="PageHeader" runat="server" CssClass="HeaderRow">
                <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>                
                <a id="DescriptionHeaderDiv" runat="server" class="NoFrameDiv" OnServerClick="OrderByDescription">
                    <asp:Label id="DescriptionHeader" runat="server" Text="Description" class="NoFrameButton" />
                    <asp:Label ID="DescriptionIcon" runat="server"/>
                </a>
            </asp:Panel>    

            <div id="DocumentAttachListArea">
		        <asp:Repeater ID="DocumentRepeater" runat="server" onitemdatabound="DataBound">
		            <HeaderTemplate>
		            </HeaderTemplate>
                    <ItemTemplate> 
                        <asp:Panel ID="DocumentRow" runat="server">
                            <a ID="IdItem" runat="server" OnServerClick="OpenDocument">
                                <div ID="ItemRowDiv" runat="server" >
                                    <div class="DateDiv"><asp:Literal ID="DateLit" runat="server"/></div>
                                    <div class="DescriptionDiv"><asp:Literal ID="DescriptionLit" runat="server"/></div>
                                </div>
                            </a>
                        </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>
                
        <asp:HiddenField runat="server" ID="FileContent" Value="0" />       
        
    </form>
    
     

</body>
</html>
