<%@ Page Title="" Language="C#" MasterPageFile="~/PatientAccess/PAAdmin/AdminMainSubNav.Master" AutoEventWireup="true" CodeBehind="PageEditorMenu.aspx.cs" Inherits="Axium.Web.PAAdmin.PageTab.PageEditorMenu" EnableSessionState="True" ValidateRequest="false"%>
<%@ MasterType VirtualPath="~/PatientAccess/PAAdmin/AdminMainSubNav.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="AdditionalHeader" runat="server">
    <script type="text/javascript" src="../Include/simpletreemenu.240530.js"></script>
    <script type="text/javascript" src="../Include/PageEditorMenu.240530.js"></script>
    <link rel="stylesheet" type="text/css" href="../Include/simpletree.css" />
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="SubNavigation" runat="server">
    <adminNav:Pages ID="PageNavigationControl" runat="server" />
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="MainContent" runat="server">
    <div class="MainHeader">
        <asp:Button runat="server" ID="PreViewBtn" onClick="PreViewBtn_Click" Text="Preview" CssClass="ButtonGreen" />
        <asp:Button runat="server" ID="SavePageNameBtn" Text="Save" CssClass="ButtonGreen" onclick="SavePageNameBtn_Click"/>
        <asp:Button runat="server" ID="DelPageBtn" Text="Delete" CssClass="ButtonGreen" onclick="DelPageBtn_Click" />
        <asp:Button runat="server" ID="DupPageBtn" Text="Copy" CssClass="ButtonGreen" onclick="DupPageBtn_Click" />
    </div>
    <div class="MainContent">
        <div class="formBox">
            <div class="title">Custom Page</div>
            <div class="field">
                <span class="label">Page ID</span>
                <span class="input"><asp:Label ID="PageIdLabel" runat="server" Text=""></asp:Label></span>
            </div>
            <div class="field">
                <span class="label">Page Title</span>
                <span class="input">
                    <asp:TextBox ID="NewPageNameTxtBox" runat="server" onkeydown='javascript:if(window.event.keyCode == 13){return false;}'></asp:TextBox>
                    <span id="PageNameErrorSpan" runat="server" class="Error"></span>
                </span>
            </div>
            <div class="field">
                <span class="label">Template</span>
                <span class="input"><asp:DropDownList ID="TemplateDropdown" runat="server"></asp:DropDownList></span>
            </div>
            <div class="field">
                <span class="label">Parent</span>
                <span class="input"><asp:DropDownList ID="ParentDropdown" runat="server"></asp:DropDownList></span>
            </div>
            <div class="field">
                <span class="label">Priority</span>
                <span class="input">
                    <asp:TextBox ID="PriorityTextBox" runat="server" onkeydown='javascript:if(window.event.keyCode == 13){return false;}'></asp:TextBox>
                    <asp:RangeValidator ID="PriorityRangeValidator" runat="server" 
                        ErrorMessage="Please Enter a Number between 0-999999" MaximumValue="999999" 
                        MinimumValue="0" Type="Double" ControlToValidate="PriorityTextBox" Display="Dynamic"></asp:RangeValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="PriorityTextBox"
                        ErrorMessage="Please Enter a Value" Display="Dynamic"></asp:RequiredFieldValidator>
					<span id="PriorityErrorSpan" runat="server" class="Error"></span>
                </span>
            </div>
            <div class="field">
                <span class="label">Login Required</span>
                <span class="input"><asp:CheckBox ID="AuthCkBox" runat="server" onclick="EnableDisableHidenRepCkBox()"/></span>
            </div>
            <div class="field">
                <span class="label">Available in PatientAccess</span>
                <span class="input"><asp:CheckBox ID="ActiveCkBox" runat="server" /></span>
            </div>
            <div class="field">
                <span class="label">Available in FirstAccess</span>
                <span class="input">
                    <asp:CheckBox ID="FirstAccessCkBox" runat="server" />
                    <span id="FirstAccessSpan" runat="server" class="Error"></span>
                </span>
					
            </div>
            <div class="field">
                <span class="label">Hidden from Authorized Representatives</span>
                <span class="input"><asp:CheckBox ID="HidenRepCkBox" runat="server" /></span>
            </div>

            <div class="clear">&nbsp;</div>
        </div>
        
        <div class="formBox">
            <div class="title">Content</div>
            <div class="field">
                <span class="label">Header</span>
                <span class="input">
                      <asp:DropDownList ID="HeaderDP" runat="server"></asp:DropDownList>
                      <input id="HeaderBtn" type="button" value="Edit" runat="server" onclick="MediumWindow('ContentEditor.aspx','HeaderEdit', gup('id'), 'Header',gup('isNew'))"/>
                      <span id="HeaderSpan" runat="server" class="Error"></span>
                </span>
            </div>
            <div class="field">
                <span class="label">Banner</span>
                <span class="input">
                    <asp:DropDownList id="BannerDP" runat="server"></asp:DropDownList>
                    <input id="BannerBtn" runat="server" type="button" value="Edit" onclick="MediumWindow('ContentEditor.aspx','BannerEdit', gup('id'), 'Banner',gup('isNew'))"/>
                    <span id="BannerSpan" runat="server" class="Error"></span>
                </span>
            </div>
            <div class="field">
                <span class="label">Left</span>
                <span class="input">
                    <asp:DropDownList id="LeftDP" runat="server"></asp:DropDownList>
                    <input id="LeftBtn" runat="server" type="button" value="Edit" onclick="MediumWindow('ContentEditor.aspx','LeftEdit', gup('id'), 'Left',gup('isNew'))"/>
                    <span id="LeftSpan" runat="server" class="Error"></span>
                </span>
            </div>
            <div class="field">
                <span class="label">Main</span>
                <span class="input">
                    <asp:DropDownList id="MainDP" runat="server"></asp:DropDownList>
                    <input id="ContentBtn" runat="server" type="button" value="Edit" onclick="MediumWindow('ContentEditor.aspx','MainEdit', gup('id'), 'Main',gup('isNew'))"/>
                    <span id="MainSpan" runat="server" class="Error"></span>
                </span>
            </div>
            <div class="field">
                <span class="label">Footer</span>
                <span class="input">
                    <asp:DropDownList ID="FooterDP" runat="server"></asp:DropDownList>
                    <input id="FooterBtn" runat="server" type="button" class="ButtonGrey" value="Edit" onclick="MediumWindow('ContentEditor.aspx','FooterEdit', gup('id'), 'Footer',gup('isNew'))"/>
                    <span id="FooterSpan" runat="server" class="Error"></span>
                </span>
            </div>
            <div class="field">
                <span class="label">Custom 1</span>
                <span class="input">
                    <asp:DropDownList id="Custom1DP" runat="server"></asp:DropDownList>
                    <input id="Custom1Btn" runat="server" type="button" class="ButtonGrey" value="Edit" onclick="MediumWindow('ContentEditor.aspx','Custom1Edit', gup('id'), 'Custom1',gup('isNew'))"/>
                    <span id="Custom1Span" runat="server" class="Error"></span>
                </span>
            </div>
            <div class="field">
                <span class="label">Custom 2</span>
                <span class="input">
                    <asp:DropDownList id="Custom2DP" runat="server"></asp:DropDownList>
                    <input id="Custom2Btn" runat="server" type="button" class="ButtonGrey" value="Edit" onclick="MediumWindow('ContentEditor.aspx','Custom2Edit', gup('id'), 'Custom2',gup('isNew'))"/>
                    <span id="Custom2Span" runat="server" class="Error"></span>
                </span>
            </div>
            <div class="field">
                <span class="label">Custom 3</span>
                <span class="input">
                    <asp:DropDownList id="Custom3DP" runat="server"></asp:DropDownList>
                    <input id="Custom3Btn" runat="server" type="button" class="ButtonGrey" value="Edit" onclick="MediumWindow('ContentEditor.aspx','Custom3Edit', gup('id'), 'Custom3',gup('isNew'))"/>
                    <span id="Custom3Span" runat="server" class="Error"></span>
                </span>
            </div>
            <div class="field">
                <span class="label">Custom 4</span>
                <span class="input">
                    <asp:DropDownList id="Custom4DP" runat="server"></asp:DropDownList>
                    <input id="Custom4Btn" runat="server" type="button" class="ButtonGrey" value="Edit" onclick="MediumWindow('ContentEditor.aspx','Custom4Edit', gup('id'), 'Custom4',gup('isNew'))"/>
                    <span id="Custom4Span" runat="server" class="Error"></span>
                </span>
            </div>
            <div class="field">
                <span class="label">Custom 5</span>
                <span class="input">
                    <asp:DropDownList id="Custom5DP" runat="server"></asp:DropDownList>
                    <input id="Custom5Btn" runat="server" type="button" class="ButtonGrey" value="Edit" onclick="MediumWindow('ContentEditor.aspx','Custom5Edit', gup('id'), 'Custom5',gup('isNew'))"/>
                    <span id="Custom5Span" runat="server" class="Error"></span>
                </span>
            </div>
            <div class="clear">&nbsp;</div>
        </div>
    </div>
</asp:Content>
