<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MessageCompose.aspx.cs" Inherits="Axium.Web.Messages.MessageCompose" 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 Compose</title>
    
    <!-- css styles -->
    <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/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.compose.240.js" type="text/javascript"></script>
    
    <script src="../Includes/Scripts/jquery.maxlength.230520.js" type="text/javascript"></script>

    <link rel='stylesheet' type='text/css' href='../Includes/Css/popup.231520.css' />
    
    <style type="text/css" runat="server" ID="logicCss"></style>        <%-- Area to load load logic CSS from CMS (using LogicPage Extension class)--%>

</head>
<body id="messageComposePage" onload="initPage();">
    <form id="aspForm" runat="server">
        <div id="MessageCompose">
            <asp:HiddenField runat="server" ID="hdnMessageId"/>
            <asp:HiddenField runat="server" ID="hdnToIds" />
            <asp:HiddenField runat="server" ID="hdnCcIds" />
            <asp:HiddenField runat="server" ID="hdnIdsOnlyAvail"/>
            <asp:HiddenField runat="server" ID="hdnIdsEncrypt"/>
            <span id="hdAction" class="HdnAction"><%= Action %></span>
            <span id="hdPageTypeId" class="HdnAction" ><%= PageTypeId %></span>

            <h1><asp:Literal ID="TitleLiteral" runat="server" EnableViewState="False" Text="Compose Message"></asp:Literal></h1>
            <div id="ComposeArea" class="ComposeArea" runat="server">
                <div class="BackAddDiv">
                    <div class="BackDiv">
                        <asp:Button ID="BackBtn" runat="server" OnClick="BackBtnClick" UseSubmitBehavior="false"/>
                    </div>
                    <div class="AddContactDiv">
                        <input id="RecipientsBtn" type="button" value="Recipients" onclick="openMessageContactPopup()" />
                    </div>
                </div>
                <div class="ToDiv">
                    <span onclick="openMessageContactPopup()" class="TitleLink">To</span>
                    <span onclick="openMessageContactPopup()" class="TitleLink">
                        <asp:TextBox ID="ToList" CssClass="TextLink" runat="server" onclick="removeFocus(this)" onpaste="return false;" onkeydown="return false;" autocomplete="off" TabIndex="-1"></asp:TextBox>
                    </span>
                </div>
                <div class="CcDiv">
                    <span onclick="openMessageContactPopup()" class="TitleLink">Cc</span>
                    <span onclick="openMessageContactPopup()" class="TitleLink">
                        <asp:TextBox ID="CcList"  CssClass="TextLink" runat="server" onclick="removeFocus(this)" onpaste="return false;" onkeydown="return false;" autocomplete="off" TabIndex="-1"></asp:TextBox>
                    </span>
                </div>
                <div class="SubjectDiv">
                    <asp:Label ID="SubjectLbl" class="TitleLbl" runat="server" Text="Subject"></asp:Label>
                    <asp:TextBox ID="SubjectTxt"  CssClass="TextEdit" runat="server" autocomplete="off" ></asp:TextBox>
                </div>
                <div class="MessageTitleDiv">
                    <asp:Label ID="MsgLabel" class="TitleLbl" runat="server" Text="Message"></asp:Label>
                    <asp:TextBox ID="MsgText" CssClass="TextEditMsg" runat="server" TextMode="MultiLine" autocomplete="off" ></asp:TextBox>
                </div>
                <div class="SendDiv">
                    <input id="SendBtn2" type="button" value="Send" runat="server" class="SendBtn" onclick="if (valEmptyFields()) { disableInputBtn() } else {return false;}" OnServerClick="SendBtnOnClick" />
                </div>
                <br/>
            </div>
            <div id="NOMESSAGE" runat="server"></div>
        </div>
    </form>
</body>
</html>
