<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FormDetail.aspx.cs" Inherits="Axium.Web.iForms.FormDetailOlVersion" %>

<!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 id="Head1" runat="server">
    <title></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/jquery.numeric.js" type="text/javascript"></script>
    <script src="../Includes/Scripts/jquery.maxlength.230520.js" type="text/javascript"></script>
    <script src="../Includes/Scripts/ui.datepicker.230520.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/iform.240530.js" type="text/javascript"></script>
    <script src="../Includes/Scripts/iformValidation.240530.OldVersion.js" type="text/javascript"></script>

    <script type="text/javascript">
       urlForBack = window.location.href;     // AX-4481 Set previous url

       history.pushState(null, document.title, location.href);       // AX-4481
       window.addEventListener('popstate', checkCanGoBackForm);      // AX-4481

        function initPage(scrollToTop) {
            resizeParentIframe('formDetailPage', window);
            if (scrollToTop) {
                scrollParentToTop();
            }
            $("#HiddenSaveBtn").attr("saving", "0");     // AX-4481.4
            $("#HiddenSaveBtn").attr("location", window.location.href);     // AX-4481.4
        }

    </script>

    <!-- CMS generated css -->
    <link rel='stylesheet' type='text/css' href='../Includes/Css/popup.231520.css' />
    <style type="text/css" runat="server" ID="logicCss"></style>
</head>
<body id="formDetailPage" runat="server">
    <form id="form1" runat="server">
    <div>
        <asp:Panel runat="server" ID="FormHeader">
            <h1 runat="server" ID="FormTitle"></h1> 
            
            <asp:Panel runat="server" ID="InstructionPanel" CssClass="instructionsPanel"></asp:Panel>   
            <asp:Button runat="server" ID="hiddenRespond" Text="" OnClick="respondBackBtn" style="visibility: hidden; display: none;"  />           

            <asp:Panel runat="server" ID="SubHeader" CssClass="subHeader">
                <asp:Panel runat="server" ID="PageName"></asp:Panel>
                <asp:Panel runat="server" ID="PaginationPanel" CssClass="paginationPanel">
                    <asp:Panel runat="server" ID="PaginationControl" CssClass="controls">
                        <asp:Button ID="FirstButton" runat="server" Text="<< First" OnClick="FirstClick" OnClientClick="return validateNav('ignoreModFirstButton')" />
                        <asp:Button ID="PrevButton" runat="server" Text="< Prev" OnClick="PrevClick" OnClientClick="return validateNav('ignoreModPrevButton')" />
                        <asp:Button ID="NextButton" runat="server" Text="Next >" OnClick="NextClick" OnClientClick="return validateNav('ignoreModNextButton')" />
                        <asp:Button ID="LastButton" runat="server" Text="Last >>" OnClick="LastClick" OnClientClick="return validateNav('ignoreModLastButton')" />
                        <asp:HiddenField runat="server" ID="CurrentPageField" Value="1" />
                    </asp:Panel>
                    <asp:Label runat="server" ID="PaginationLabel" CssClass="label"></asp:Label>
                </asp:Panel>
            </asp:Panel>
        </asp:Panel>
        
        <asp:Panel runat="server" ID="UrgentMessage" CssClass="urgentMessage"></asp:Panel>
        <asp:Panel runat="server" ID="SubmitMessage" CssClass="successMessage"></asp:Panel>

        <asp:Panel runat="server" ID="FormQuestions"></asp:Panel>
        
        <asp:Panel ID="Panel1" runat="server" CssClass="formControls">
            <asp:Button runat="server" ID="IgnoreModFirstButton" OnClick="FirstClick" CssClass="ignoreModFirstButton" />
            <asp:Button runat="server" ID="IgnoreModPrevButton" OnClick="PrevClick" CssClass="ignoreModPrevButton" />
            <asp:Button runat="server" ID="IgnoreModNextButton" OnClick="NextClick" CssClass="ignoreModNextButton" />
            <asp:Button runat="server" ID="IngoreModLastButton" OnClick="LastClick" CssClass="ignoreModLastButton" />
            <%--<asp:Button runat="server" ID="IgnoreBlankSaveButton" OnClientClick="validateSave(true)" CssClass="ignoreBlankSaveButton" />--%>
            <%--<asp:Button runat="server" ID="SaveButton" OnClientClick="validateSave(false)" />--%>
            <button id="SaveBtn" style="height:30px;" type="button" onclick="validateSave(false)"></button> 
            <asp:Button runat="server" ID="MarkButton" OnClick="MarkClick" OnClientClick="return validateMarkClick()" />
            <asp:Button runat="server" ID="ContButton" OnClick="NextClick" OnClientClick="return validateClick()" />
           <asp:Button runat="server" ID="HiddenSaveBtn" Text="" OnClick="SaveClick" style="visibility: hidden; display: none;"  />  
        </asp:Panel>
        
        <asp:Panel runat="server" ID="FormData"></asp:Panel>
        <asp:Panel runat="server" ID="FormPopup"></asp:Panel>
    </div>
    </form>
</body>
</html>
