<%@ control language="VB" autoeventwireup="false" inherits="RCC_Exchange_CC_OOO, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="obout_Editor" Namespace="OboutInc.Editor" TagPrefix="obout" %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility"
    TagPrefix="CC" %>
<CC:UpdatePanelInlineScriptControl id="UpdatePanelInlineScriptControl1" runat="server">
    <script type="text/javascript">
        function update() {

            if (document.getElementById('ctl00_CPH_Content_TC_ExchangeAccounts_Tab_Mailboxes_MailBox_Detail_OOO_HF_StartDate') != null) {
                document.getElementById('ctl00_CPH_Content_TC_ExchangeAccounts_Tab_Mailboxes_MailBox_Detail_OOO_HF_StartDate').value = document.getElementById('ctl00_CPH_Content_TC_ExchangeAccounts_Tab_Mailboxes_MailBox_Detail_OOO_TxBx_StartDate').value;
                document.getElementById('ctl00_CPH_Content_TC_ExchangeAccounts_Tab_Mailboxes_MailBox_Detail_OOO_HF_EndDate').value = document.getElementById('ctl00_CPH_Content_TC_ExchangeAccounts_Tab_Mailboxes_MailBox_Detail_OOO_TxBx_EndDate').value;
            }

        }

    //function insertAtCursor(myField, myValue) {
    //    var TextBox = document.getElementById(myField);
    //    var DDL = document.getElementById(myValue);

    //    myValue = DDL.options[DDL.selectedIndex].value;

    //    var editPanel = oboutGetEditorByClientId(myField);
    //    editPanel.InsertHTML(myValue);


    //}

    </script>
</CC:UpdatePanelInlineScriptControl>
<div class="card">
    <div class="body">
        <div class="row">
            <div class="col-sm-4 col-xs-12 row-label" id="div_CB_Enabled" runat="server">
                <label>
                    *<asp:Literal ID="Literal57" runat="server" Text="<%$ Resources:Content,GN000195%>"
                        EnableViewState="false" />:</label>
            </div>
            <div class="col-sm-8 col-xs-12">
                <asp:CheckBox ID="CB_Enabled" AutoPostBack="true" onClick="update();" Checked="false" runat="server" Text=" " />
            </div>
        </div>
        <div id="TR_OOO" visible="false" runat="server">
            <div class="row">
                <div class="col-sm-4 col-xs-12 row-label">
                    <label>
                        *<asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:Content,ExchOO02%>"
                            EnableViewState="false" />:</label>
                </div>
                <div class="col-sm-8 col-xs-12">
                    <asp:CheckBox ID="CB_Schedule" AutoPostBack="true" onClick="update();" Checked="false" runat="server" Text=" " />
                </div>
            </div>
            <div id="TR_Schedule" runat="server" visible="false">
                <div class="row">
                    <div class="col-sm-4 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,ExchOO03%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-2 col-xs-12">
                        <div class="form-group display-date-input">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_StartDate" Enabled="false" runat="server"></asp:TextBox>
                            </div>
                        </div>
                        <i runat="server" id="A_StartDate" class="material-icons icon-calendar col-calendar"></i>
                        <EM:CalendarExtender ID="CE_StartDate" runat="server" TargetControlID="TxBx_StartDate"
                            Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                            PopupButtonID="A_StartDate" CssClass="date__calendar">
                        </EM:CalendarExtender>
                        <asp:HiddenField ID="HF_StartDate" runat="server" />
                    </div>
                    <div class="col-sm-2 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="DDL_StartTime" runat="server">
                                <asp:ListItem Text="12:00 AM" Value="00:00:00"></asp:ListItem>
                                <asp:ListItem Text="12:30 AM" Value="00:30:00"></asp:ListItem>
                                <asp:ListItem Text="1:00 AM" Value="01:00:00"></asp:ListItem>
                                <asp:ListItem Text="1:30 AM" Value="01:30:00"></asp:ListItem>
                                <asp:ListItem Text="2:00 AM" Value="02:00:00"></asp:ListItem>
                                <asp:ListItem Text="2:30 AM" Value="02:30:00"></asp:ListItem>
                                <asp:ListItem Text="3:00 AM" Value="03:00:00"></asp:ListItem>
                                <asp:ListItem Text="3:30 AM" Value="03:30:00"></asp:ListItem>
                                <asp:ListItem Text="4:00 AM" Value="04:00:00"></asp:ListItem>
                                <asp:ListItem Text="4:30 AM" Value="04:30:00"></asp:ListItem>
                                <asp:ListItem Text="5:00 AM" Value="05:00:00"></asp:ListItem>
                                <asp:ListItem Text="5:30 AM" Value="05:30:00"></asp:ListItem>
                                <asp:ListItem Text="6:00 AM" Value="06:00:00"></asp:ListItem>
                                <asp:ListItem Text="6:30 AM" Value="06:30:00"></asp:ListItem>
                                <asp:ListItem Text="7:00 AM" Value="07:00:00"></asp:ListItem>
                                <asp:ListItem Text="7:30 AM" Value="07:30:00"></asp:ListItem>
                                <asp:ListItem Text="8:00 AM" Value="08:00:00"></asp:ListItem>
                                <asp:ListItem Text="8:30 AM" Value="08:30:00"></asp:ListItem>
                                <asp:ListItem Text="9:00 AM" Value="09:00:00"></asp:ListItem>
                                <asp:ListItem Text="9:30 AM" Value="09:30:00"></asp:ListItem>
                                <asp:ListItem Text="10:00 AM" Selected="true" Value="10:00:00"></asp:ListItem>
                                <asp:ListItem Text="10:30 AM" Value="10:30:00"></asp:ListItem>
                                <asp:ListItem Text="11:00 AM" Value="11:00:00"></asp:ListItem>
                                <asp:ListItem Text="11:30 AM" Value="11:30:00"></asp:ListItem>
                                <asp:ListItem Text="12:00 PM" Value="12:00:00"></asp:ListItem>
                                <asp:ListItem Text="12:30 PM" Value="12:30:00"></asp:ListItem>
                                <asp:ListItem Text="1:00 PM" Value="13:00:00"></asp:ListItem>
                                <asp:ListItem Text="1:30 PM" Value="13:30:00"></asp:ListItem>
                                <asp:ListItem Text="2:00 PM" Value="14:00:00"></asp:ListItem>
                                <asp:ListItem Text="2:30 PM" Value="14:30:00"></asp:ListItem>
                                <asp:ListItem Text="3:00 PM" Value="15:00:00"></asp:ListItem>
                                <asp:ListItem Text="3:30 PM" Value="15:30:00"></asp:ListItem>
                                <asp:ListItem Text="4:00 PM" Value="16:00:00"></asp:ListItem>
                                <asp:ListItem Text="4:30 PM" Value="16:30:00"></asp:ListItem>
                                <asp:ListItem Text="5:00 PM" Value="17:00:00"></asp:ListItem>
                                <asp:ListItem Text="5:30 PM" Value="17:30:00"></asp:ListItem>
                                <asp:ListItem Text="6:00 PM" Value="18:00:00"></asp:ListItem>
                                <asp:ListItem Text="6:30 PM" Value="18:30:00"></asp:ListItem>
                                <asp:ListItem Text="7:00 PM" Value="19:00:00"></asp:ListItem>
                                <asp:ListItem Text="7:30 PM" Value="19:30:00"></asp:ListItem>
                                <asp:ListItem Text="8:00 PM" Value="20:00:00"></asp:ListItem>
                                <asp:ListItem Text="8:30 PM" Value="20:30:00"></asp:ListItem>
                                <asp:ListItem Text="9:00 PM" Value="21:00:00"></asp:ListItem>
                                <asp:ListItem Text="9:30 PM" Value="21:30:00"></asp:ListItem>
                                <asp:ListItem Text="10:00 PM" Value="22:00:00"></asp:ListItem>
                                <asp:ListItem Text="10:30 PM" Value="22:30:00"></asp:ListItem>
                                <asp:ListItem Text="11:00 PM" Value="23:00:00"></asp:ListItem>
                                <asp:ListItem Text="11:30 PM" Value="23:30:00"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-4 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,ExchOO04%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-2 col-xs-12">
                        <div class="form-group display-date-input">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_EndDate" Enabled="false" runat="server"></asp:TextBox>
                            </div>
                        </div>
                        <i runat="server" id="A_EndDate" class="material-icons icon-calendar col-calendar"></i>
                        <EM:CalendarExtender ID="CE_EndDate" runat="server" TargetControlID="TxBx_EndDate"
                            Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                            PopupButtonID="A_EndDate" CssClass="date__calendar">
                        </EM:CalendarExtender>
                        <asp:HiddenField ID="HF_EndDate" runat="server" />
                    </div>
                    <div class="col-sm-2 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="DDL_EndTime" runat="server">
                                <asp:ListItem Text="12:00 AM" Value="00:00:00"></asp:ListItem>
                                <asp:ListItem Text="12:30 AM" Value="00:30:00"></asp:ListItem>
                                <asp:ListItem Text="1:00 AM" Value="01:00:00"></asp:ListItem>
                                <asp:ListItem Text="1:30 AM" Value="01:30:00"></asp:ListItem>
                                <asp:ListItem Text="2:00 AM" Value="02:00:00"></asp:ListItem>
                                <asp:ListItem Text="2:30 AM" Value="02:30:00"></asp:ListItem>
                                <asp:ListItem Text="3:00 AM" Value="03:00:00"></asp:ListItem>
                                <asp:ListItem Text="3:30 AM" Value="03:30:00"></asp:ListItem>
                                <asp:ListItem Text="4:00 AM" Value="04:00:00"></asp:ListItem>
                                <asp:ListItem Text="4:30 AM" Value="04:30:00"></asp:ListItem>
                                <asp:ListItem Text="5:00 AM" Value="05:00:00"></asp:ListItem>
                                <asp:ListItem Text="5:30 AM" Value="05:30:00"></asp:ListItem>
                                <asp:ListItem Text="6:00 AM" Value="06:00:00"></asp:ListItem>
                                <asp:ListItem Text="6:30 AM" Value="06:30:00"></asp:ListItem>
                                <asp:ListItem Text="7:00 AM" Value="07:00:00"></asp:ListItem>
                                <asp:ListItem Text="7:30 AM" Value="07:30:00"></asp:ListItem>
                                <asp:ListItem Text="8:00 AM" Value="08:00:00"></asp:ListItem>
                                <asp:ListItem Text="8:30 AM" Value="08:30:00"></asp:ListItem>
                                <asp:ListItem Text="9:00 AM" Value="09:00:00"></asp:ListItem>
                                <asp:ListItem Text="9:30 AM" Value="09:30:00"></asp:ListItem>
                                <asp:ListItem Text="10:00 AM" Selected="true" Value="10:00:00"></asp:ListItem>
                                <asp:ListItem Text="10:30 AM" Value="10:30:00"></asp:ListItem>
                                <asp:ListItem Text="11:00 AM" Value="11:00:00"></asp:ListItem>
                                <asp:ListItem Text="11:30 AM" Value="11:30:00"></asp:ListItem>
                                <asp:ListItem Text="12:00 PM" Value="12:00:00"></asp:ListItem>
                                <asp:ListItem Text="12:30 PM" Value="12:30:00"></asp:ListItem>
                                <asp:ListItem Text="1:00 PM" Value="13:00:00"></asp:ListItem>
                                <asp:ListItem Text="1:30 PM" Value="13:30:00"></asp:ListItem>
                                <asp:ListItem Text="2:00 PM" Value="14:00:00"></asp:ListItem>
                                <asp:ListItem Text="2:30 PM" Value="14:30:00"></asp:ListItem>
                                <asp:ListItem Text="3:00 PM" Value="15:00:00"></asp:ListItem>
                                <asp:ListItem Text="3:30 PM" Value="15:30:00"></asp:ListItem>
                                <asp:ListItem Text="4:00 PM" Value="16:00:00"></asp:ListItem>
                                <asp:ListItem Text="4:30 PM" Value="16:30:00"></asp:ListItem>
                                <asp:ListItem Text="5:00 PM" Value="17:00:00"></asp:ListItem>
                                <asp:ListItem Text="5:30 PM" Value="17:30:00"></asp:ListItem>
                                <asp:ListItem Text="6:00 PM" Value="18:00:00"></asp:ListItem>
                                <asp:ListItem Text="6:30 PM" Value="18:30:00"></asp:ListItem>
                                <asp:ListItem Text="7:00 PM" Value="19:00:00"></asp:ListItem>
                                <asp:ListItem Text="7:30 PM" Value="19:30:00"></asp:ListItem>
                                <asp:ListItem Text="8:00 PM" Value="20:00:00"></asp:ListItem>
                                <asp:ListItem Text="8:30 PM" Value="20:30:00"></asp:ListItem>
                                <asp:ListItem Text="9:00 PM" Value="21:00:00"></asp:ListItem>
                                <asp:ListItem Text="9:30 PM" Value="21:30:00"></asp:ListItem>
                                <asp:ListItem Text="10:00 PM" Value="22:00:00"></asp:ListItem>
                                <asp:ListItem Text="10:30 PM" Value="22:30:00"></asp:ListItem>
                                <asp:ListItem Text="11:00 PM" Value="23:00:00"></asp:ListItem>
                                <asp:ListItem Text="11:30 PM" Value="23:30:00"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-xs-12 row-label">
                    <label>
                        <asp:Literal ID="Literal90" runat="server" Text="<%$ Resources:Content, ExchOO05%>"
                            EnableViewState="false" />:</label>
                </div>
            </div>
            <div class="row">
                <div class="col-xs-12">
                    <obout:Editor ID="TxBx_InternalMessage" Width="1000" Submit="false" ShowWaitMessage="false" AjaxWait="false" runat="server" Appearance="custom" ShowQuickFormat="false">
                        <Buttons>
                            <obout:Select Name="FontName" />
                            <obout:Select Name="FontSize" />
                            <obout:HorizontalSeparator />
                            <obout:Toggle Name="Bold" />
                            <obout:Toggle Name="Italic" />
                            <obout:Toggle Name="Underline" />
                            <obout:Toggle Name="StrikeThrough" />
                            <obout:Toggle Name="SuperScript" />
                            <obout:Toggle Name="SubScript" />
                            <obout:HorizontalSeparator />
                            <obout:Method Name="ForeColor" />
                            <obout:Method Name="ForeColorClear" />
                            <obout:Method Name="BackColor" />
                            <obout:Method Name="BackColorClear" />
                            <obout:VerticalSeparator />
                            <obout:Method Name="Redo" />
                            <obout:Method Name="Undo" />
                            <obout:HorizontalSeparator />
                            <obout:Method Name="Cut" />
                            <obout:Method Name="Copy" />
                            <obout:Method Name="Paste" />
                            <obout:Method Name="PasteText" />
                            <obout:HorizontalSeparator />
                            <obout:Method Name="Paragraph" />
                            <obout:Method Name="GetFormat" />
                            <obout:Method Name="ApplyFormat" />
                            <obout:HorizontalSeparator />
                            <obout:Method Name="JustifyLeft" />
                            <obout:Method Name="JustifyCenter" />
                            <obout:Method Name="JustifyRight" />
                            <obout:Method Name="JustifyFull" />
                            <obout:HorizontalSeparator />
                            <obout:Method Name="OrderedList" />
                            <obout:Method Name="BulletedList" />
                            <obout:HorizontalSeparator />
                            <obout:Method Name="InsertHR" />
                            <obout:Method Name="CreateLink" />
                            <obout:Method Name="InsertAnchor" />
                            <obout:Method Name="InsertIMG" />
                            <obout:HorizontalSeparator />
                            <obout:Method Name="ClearStyles" />
                        </Buttons>
                    </obout:Editor>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-4 col-xs-12 row-label">
                    <label>
                        <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Content, ExchOO06%>"
                            EnableViewState="false" />:</label>
                </div>
                <div class="col-sm-4 col-xs-12">
                    <asp:CheckBox ID="CB_SendOOOExternal" runat="server" Checked="true" onClick="update();" AutoPostBack="true" Text=" " />
                </div>
            </div>
            <div id="TR_OOOExternal" runat="server">
                <div class="row">
                    <div class="col-xs-12">
                        <asp:RadioButtonList ID="RBL_ExternalOOOOption" runat="server">
                            <asp:ListItem Text="<%$ Resources:Content,ExchOO07%>" Value="False"></asp:ListItem>
                            <asp:ListItem Text="<%$ Resources:Content,ExchOO08%>" Selected="True" Value="True"></asp:ListItem>
                        </asp:RadioButtonList>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content, ExchOO09%>"
                                EnableViewState="false" />:</label>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <obout:Editor ID="TxBx_ExternalMessage" Width="1000" Submit="false" ShowWaitMessage="false" AjaxWait="false" runat="server" Appearance="custom" ShowQuickFormat="false">
                            <Buttons>
                                <obout:Select Name="FontName" />
                                <obout:Select Name="FontSize" />
                                <obout:HorizontalSeparator />
                                <obout:Toggle Name="Bold" />
                                <obout:Toggle Name="Italic" />
                                <obout:Toggle Name="Underline" />
                                <obout:Toggle Name="StrikeThrough" />
                                <obout:Toggle Name="SuperScript" />
                                <obout:Toggle Name="SubScript" />
                                <obout:HorizontalSeparator />
                                <obout:Method Name="ForeColor" />
                                <obout:Method Name="ForeColorClear" />
                                <obout:Method Name="BackColor" />
                                <obout:Method Name="BackColorClear" />
                                <obout:VerticalSeparator />
                                <obout:Method Name="Redo" />
                                <obout:Method Name="Undo" />
                                <obout:HorizontalSeparator />
                                <obout:Method Name="Cut" />
                                <obout:Method Name="Copy" />
                                <obout:Method Name="Paste" />
                                <obout:Method Name="PasteText" />
                                <obout:HorizontalSeparator />
                                <obout:Method Name="Paragraph" />
                                <obout:Method Name="GetFormat" />
                                <obout:Method Name="ApplyFormat" />
                                <obout:HorizontalSeparator />
                                <obout:Method Name="JustifyLeft" />
                                <obout:Method Name="JustifyCenter" />
                                <obout:Method Name="JustifyRight" />
                                <obout:Method Name="JustifyFull" />
                                <obout:HorizontalSeparator />
                                <obout:Method Name="OrderedList" />
                                <obout:Method Name="BulletedList" />
                                <obout:HorizontalSeparator />
                                <obout:Method Name="InsertHR" />
                                <obout:Method Name="CreateLink" />
                                <obout:Method Name="InsertAnchor" />
                                <obout:Method Name="InsertIMG" />
                                <obout:HorizontalSeparator />
                                <obout:Method Name="ClearStyles" />
                            </Buttons>

                        </obout:Editor>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-xs-12">
                <asp:Button ID="Btn_Save" runat="server" OnClientClick="update();" Text="<%$ Resources:Content,GN0000281%>" class="btn btn-primary waves-effect btnAction" />
            </div>
        </div>
    </div>
</div>
