<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MessageList.aspx.cs" Inherits="Axium.Web.Messages.MessageList" Culture="en-US" %>


<!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" >
<head runat="server">
    <title>Message List</title>

    <!-- 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/message.231520.js" type="text/javascript"></script>
    <script src="../Includes/Scripts/message.list.230520.js" type="text/javascript"></script>
    
    <link rel='stylesheet' type='text/css' href='../Includes/Css/popup.231520.css' />

</head>
<body id="messagePage" onload="initPage()">
    <form id="form2" runat="server">
        <div id="PatientMessageList">
            <h1>Message List</h1>
            <%--
            <div id="Messages">
                <span class="ReadMsg">READ</span>
                <span ID="unreadLbl" runat="server" class="UnreadMsg">UNREAD</span> 
            </div>
            --%>
            <div id="ActionsBtns">
                <asp:Button ID="ComposeBtn" runat="server" Text="Compose" CssClass="MessageActionBtn" OnClick="ComposeClick" />
                <asp:Button ID="ReplyBtn" runat="server" Text="Reply" CssClass="MessageActionBtn" OnClick="ReplyClick"/>
                <asp:Button ID="ReplyAllBtn" runat="server" Text="Reply All" CssClass="MessageActionBtn" OnClick="ReplyAllClick"/>
                <asp:Button ID="ForwardBtn" runat="server" Text="Forward" CssClass="MessageActionBtn" OnClick="ForwardClick"/>
                <asp:Button ID="DeleteBtn" runat="server" Text="Delete" CssClass="MessageActionBtn" OnClientClick="validateDeleteClick(); return false;"/>
                <input id="hdnDeleteBtn" type="button" value="delete" runat="server" class="hdnControl" OnServerClick="DeleteClick" />
                <span class="Navigation">
                    <a ID="InboxClick" runat="server" onclick="callInboxBtn()" ><asp:Label ID="InboxTxt" runat="server" Text="Inbox"></asp:Label></a>
                    <a ID="SentClick" runat="server" onclick="callSentBtn()" >Sent</a>
                    <input id="hdnSentBtn" type="button" value="sent" runat="server" class="hdnControl" onclick="disableInputBtn();" OnServerClick="SentOnClick"  />
                    <input id="hdnInboxBtn" type="button" value="inbox" runat="server" class="hdnControl" onclick="disableInputBtn();" OnServerClick="InboxOnClick"  />
                </span>
                <input id="RefreshBtn" type="button" value="Refresh" runat="server" class="RefreshMsgBtn" onclick="disableInputBtn();" OnServerClick="RefreshPageOnClick" />

            </div>
    
            <asp:Panel ID="PageHeader2" runat="server" CssClass="HeaderRow">
                <div id="MessageListCheckBoxArea" runat="server"></div>
                <a id="MessageListPriorityHeader" runat="server" class="NoFrameDiv" OnServerClick="OrderByPriority">
                    <asp:Label ID="PriorityHeader" runat="server" class="NoFrameButtonCenter" />
                </a>                
        
                <a id="MessageListNameHeader" runat="server" class="NoFrameDiv" OnServerClick="OrderByName">
                    <asp:Label ID="NameHeader" runat="server" class="NoFrameButton" />
                    <asp:Label ID="NameIcon" runat="server"></asp:Label>
                </a>
        
                <div id="MessageListSubjectHeader" class="NoFrameDiv" >
                    <asp:Label ID="SubjectHeader" runat="server" class="NoFrameButton"/>
                    <asp:Label ID="SubjectIcon" runat="server"></asp:Label>
                </div>
        
                <a id="MessageListDateHeader" runat="server" class="NoFrameDiv"  OnServerClick="OrderByDate">
                    <asp:Label ID="DateHeader" runat="server" class="NoFrameButton" />
                    <asp:Label ID="DateIcon" runat="server"></asp:Label>
                </a>
        
            </asp:Panel>    

            <div id="Info">
		        <asp:Repeater ID="MessageRepeater" runat="server" onitemdatabound="DataBound">
		            <HeaderTemplate>
		            </HeaderTemplate>
                    <ItemTemplate> 
                        <asp:Panel ID="MessageRow" runat="server">
                            <div ID="ItemRowDiv" runat="server">
                                <div class="MessageListCheckBox">
                                    <input type="checkbox" id="messageCheckBox" value='<%#Eval("Id") %>' class="CheckBox" runat="server" onclick="validateCheckBox(this)" />
                                </div>  
                                <asp:Panel ID="ClickableRow" runat="server" CssClass="ClickableRow">
                                    <div class="MessageListUrgent"><asp:Label ID="UrgentTxt" runat="server" Text="!" /></div>
                                    <div ID="DivNewMg" runat="server"><sup class="NewMsgSup">NEW</sup></div>
                                    <div ID="ListNameDiv" runat="server">
                                        <asp:Label runat="server" ID="UserOutput" CssClass="MessageListName"></asp:Label>
                                    </div>
                                    <div ID="ListSubjectDateDiv" runat="server">
                                        <asp:Label runat="server" ID="SubjectOutput" CssClass="MessageListSubject"></asp:Label>
                                        <asp:Label runat="server" ID="DateOutput" CssClass="MessageListDate"></asp:Label>
                                    </div>
                                </asp:Panel>
                            </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">
                        </asp:Literal>
                    </FooterTemplate>
                </asp:Repeater>
        
                <div class="bottomArea">
                    <div class="pagination-page"></div>
                </div>

                <asp:Button runat="server" ID="PageClickButton" OnClick="PageClick" />
                <asp:HiddenField runat="server" ID="OptionsValue" />
                <asp:HiddenField runat="server" ID="CurrentPageValue" Value="0" />
                <asp:HiddenField runat="server" ID="TotalPagesValue" Value = "0" />
                <br/>
            </div>
        </div>
        <asp:PlaceHolder ID="AutoLogout" runat="server" Visible="false" EnableViewState="false" />
    </form>
</body>
</html>


