<%@ page title="" language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="PCC_System_LogsExplorer, MachSol.MachPanel.Web" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="UC" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="body">
                <EM:TabContainer ID="TC_LogsExplorer" runat="server" OnClientActiveTabChanged="loadTabPanel">
                    <EM:TabPanel ID="Tab_ControlLogs" runat="server" HeaderText='<%$ Resources:Content,ControlServer%>'>
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab0" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent0" runat="server">
                                <%-- Search Panel --%>
                                <asp:Panel ID="Pnl_FilterControl" runat="server" DefaultButton="Btn_SearchControl">
                                    <div class="row">
                                        <div class="panel-group search-panel" id="AS_Control" role="tablist" aria-multiselectable="true">
                                            <div class="col-xs-12" role="tab" id="SH_Control">
                                                <div class="card">
                                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_Control" href="#<%= CSB_Control.ClientID%>" aria-expanded="true" aria-controls="SH_Control">
                                                        <h3>
                                                            <%= Resources.Content.GN0000395%>
                                                        </h3>
                                                    </div>
                                                    <div id="CSB_Control" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_Control" aria-expanded="false">
                                                        <div class="row">
                                                            <div class="col-md-5 col-sm-6 col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:DropDownList ID="Ddl_ControlServer" runat="server"></asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_FileNameControl" runat="server" MaxLength="200"></asp:TextBox>
                                                                        <asp:Label ID="Label8" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SPT002087%>" class="form-label"></asp:Label>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="clearfix"></div>
                                                            <div class="col-md-2 col-sm-6 col-xs-12">
                                                                <label>
                                                                    <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,DGN1110197%>" EnableViewState="false" />:
                                                                </label>

                                                            </div>
                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <label>
                                                                    <asp:Literal ID="Literal11" runat="server" Text="<%$ Resources:Content,GN0000685%>" EnableViewState="false" />:</label>
                                                                <div class="form-group display-date-input">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_FromDateControl" runat="server"></asp:TextBox>
                                                                    </div>
                                                                </div>
                                                                <i runat="server" id="A_FromDateControl" class="material-icons icon-calendar col-calendar"></i>
                                                                <EM:CalendarExtender ID="CE_FromDateControl" runat="server" TargetControlID="TxBx_FromDateControl"
                                                                    Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                                                    PopupButtonID="A_FromDateControl" CssClass="date__calendar">
                                                                </EM:CalendarExtender>
                                                            </div>
                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <label>
                                                                    <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,GN0000690%>" EnableViewState="false" />:
                                                                </label>
                                                                <div class="form-group display-date-input">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_ToDateControl" runat="server"></asp:TextBox>
                                                                    </div>
                                                                </div>
                                                                <i runat="server" id="A_ToDateControl" class="material-icons icon-calendar col-calendar"></i>
                                                                <EM:CalendarExtender ID="CE_ToDateControl" runat="server" TargetControlID="TxBx_ToDateControl"
                                                                    Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                                                    PopupButtonID="A_ToDateControl" CssClass="date__calendar">
                                                                </EM:CalendarExtender>
                                                            </div>
                                                            <div class="col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <asp:Button ID="Btn_SearchControl" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                                    <asp:Button ID="Btn_ClearControl" Visible="false" class="btn btn-primary waves-effect" runat="server"
                                                                        Text="<%$ Resources:Content,String289 %>" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>

                                <%-- Log files listing --%>
                                <asp:GridView CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                    ID="GV_ControlLogs" runat="server" AllowSorting="true" AutoGenerateColumns="false" DataKeyNames="FileMachineIP">
                                    <Columns>
                                        <asp:BoundField DataField="FileName" SortExpression="FileName" HeaderText="<%$ Resources:Content,DGN1110452%>" HeaderStyle-CssClass="col-xs-4" />
                                        <asp:TemplateField HeaderText="<%$ Resources:Content,DEV1176%>" HeaderStyle-CssClass="col-xs-1">
                                            <ItemTemplate>
                                                <asp:Label ID="LB_FileSize" runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="DateCreated" SortExpression="DateCreated" HeaderText="<%$ Resources:Content,GN00001496%>" HeaderStyle-CssClass="col-xs-2" />
                                        <asp:BoundField DataField="DateModified" SortExpression="DateModified" HeaderText="<%$ Resources:Content,SMI0439%>" HeaderStyle-CssClass="col-xs-2" />

                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000360%>" HeaderStyle-CssClass="col-xs-1">
                                            <ItemTemplate>
                                                <asp:Button ID="LB_View" CssClass="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,SMI0350%>"></asp:Button>
                                                <asp:Button ID="LB_Download" CssClass="btn btn-primary waves-effect" runat="server" Text="<%$ REsources:Content,SMI0547 %>" CommandName="download" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <PagerTemplate>
                                        <UC:Pager ID="Pager1" runat="server" />
                                    </PagerTemplate>
                                </asp:GridView>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_RemoteLogs" runat="server" HeaderText='<%$ Resources:Content,SMI5977%>'>
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab1" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent1" runat="server" Visible="false">
                                <%-- Search Panel --%>
                                <asp:Panel ID="Pnl_FilterRemote" runat="server" DefaultButton="Btn_SearchRemote">
                                    <div class="row">
                                        <div class="panel-group search-panel" id="AS_Remote" role="tablist" aria-multiselectable="true">
                                            <div class="col-xs-12" role="tab" id="SH_Remote">
                                                <div class="card">
                                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_Remote" href="#<%= CSB_Remote.ClientID%>" aria-expanded="true" aria-controls="SH_Remote">
                                                        <h3>
                                                            <%= Resources.Content.GN0000395%>
                                                        </h3>
                                                    </div>
                                                    <div id="CSB_Remote" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_Remote" aria-expanded="false">
                                                        <div class="row">
                                                            <div class="col-md-5 col-sm-6 col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:DropDownList ID="DDL_RemoteServerIPs" runat="server"></asp:DropDownList>
                                                                </div>
                                                            </div>

                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_FileNameRemote" runat="server" MaxLength="200"></asp:TextBox>
                                                                        <asp:Label ID="Label1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SPT002087%>" class="form-label"></asp:Label>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="clearfix"></div>
                                                            <div class="col-md-2 col-sm-6 col-xs-12">
                                                                <label>
                                                                    <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content,DGN1110197%>" EnableViewState="false" />:
                                                                    
                                                                </label>
                                                                
                                                            </div>
                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <label>
                                                                    <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Content,GN0000685%>" EnableViewState="false" />:
                                                                </label>
                                                                <div class="form-group display-date-input">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_FromDateRemote" runat="server"></asp:TextBox>
                                                                    </div>
                                                                </div>
                                                                <i runat="server" id="A_FromDateRemote" class="material-icons icon-calendar col-calendar"></i>
                                                                <EM:CalendarExtender ID="CE_FromDateRemote" runat="server" TargetControlID="TxBx_FromDateRemote"
                                                                    Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                                                    PopupButtonID="A_FromDateRemote" CssClass="date__calendar">
                                                                </EM:CalendarExtender>
                                                            </div>
                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <label>
                                                                    <asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:Content,GN0000690%>" EnableViewState="false" />:
                                                                </label>
                                                                <div class="form-group display-date-input">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_ToDateRemote" runat="server"></asp:TextBox>
                                                                    </div>
                                                                </div>
                                                                <i runat="server" id="A_ToDateRemote" class="material-icons icon-calendar col-calendar"></i>
                                                                <EM:CalendarExtender ID="CE_ToDateRemote" runat="server" TargetControlID="TxBx_ToDateRemote"
                                                                    Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                                                    PopupButtonID="A_ToDateRemote" CssClass="date__calendar">
                                                                </EM:CalendarExtender>
                                                            </div>
                                                            <div class="col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <asp:Button ID="Btn_SearchRemote" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                                    <asp:Button ID="Btn_ClearRemote" Visible="false" class="btn btn-primary waves-effect" runat="server"
                                                                        Text="<%$ Resources:Content,String289 %>" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>

                                <%-- Log files listing --%>
                                <asp:GridView CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                    ID="GV_RemoteLogs" AllowSorting="true" runat="server" AutoGenerateColumns="false" DataKeyNames="FileMachineIP">
                                    <Columns>
                                        <asp:BoundField DataField="FileName" SortExpression="FileName" HeaderText="<%$ Resources:Content,DGN1110452%>" HeaderStyle-CssClass="col-xs-4" />
                                        <asp:TemplateField HeaderText="<%$ Resources:Content,DEV1176%>" HeaderStyle-CssClass="col-xs-1">
                                            <ItemTemplate>
                                                <asp:Label ID="LB_FileSize" runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        
                                        <asp:BoundField DataField="DateCreated" SortExpression="DateCreated" HeaderText="<%$ Resources:Content,GN00001496%>" HeaderStyle-CssClass="col-xs-2" />
                                        <asp:BoundField DataField="DateModified" SortExpression="DateModified" HeaderText="<%$ Resources:Content,SMI0439%>" HeaderStyle-CssClass="col-xs-2" />

                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000360%>" HeaderStyle-CssClass="col-xs-1">
                                            <ItemTemplate>
                                                <asp:Button ID="LB_View" CssClass="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,SMI0350%>"></asp:Button>
                                                <asp:Button ID="LB_Download" CssClass="btn btn-primary waves-effect" runat="server" Text="<%$ REsources:Content,SMI0547 %>" CommandName="download" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <PagerTemplate>
                                        <UC:Pager ID="Pager1" runat="server" />
                                    </PagerTemplate>
                                </asp:GridView>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_ErrorMsgLogs" runat="server" HeaderText='<%$ Resources:Content,ErrorMessageLogs%>'>
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab2" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent2" runat="server" Visible="false">
                                <%-- Search Panel --%>
                                <asp:Panel ID="Pnl_FilterErrorMsg" runat="server" DefaultButton="Btn_SearchErrorMsg">
                                    <div class="row">
                                        <div class="panel-group search-panel" id="AS_ErrorMsg" role="tablist" aria-multiselectable="true">
                                            <div class="col-xs-12" role="tab" id="SH_ErrorMsg">
                                                <div class="card">
                                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_ErrorMsg" href="#<%= CSB_ErrorMsg.ClientID%>" aria-expanded="true" aria-controls="SH_ErrorMsg">
                                                        <h3>
                                                            <%= Resources.Content.GN0000395%>
                                                        </h3>
                                                    </div>
                                                    <div id="CSB_ErrorMsg" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_Remote" aria-expanded="false">
                                                        <div class="row">
                                                            <div class="col-md-4 col-sm-6 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_ParametersErrorMsg" runat="server" MaxLength="200"></asp:TextBox>
                                                                        <asp:Label ID="Label2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Parameters%>" class="form-label"></asp:Label>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="col-md-4 col-sm-6 col-xs-12">
                                                                <label>
                                                                    <asp:Literal ID="Literal7" runat="server" Text="<%$ Resources:Content,DGN1110197%>" EnableViewState="false" />
                                                                    (<asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Content,GN0000685%>" EnableViewState="false" />):
                                                                </label>
                                                                <div class="form-group display-date-input">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_FromDateErrorMsg" runat="server"></asp:TextBox>
                                                                    </div>
                                                                </div>
                                                                <i runat="server" id="A_FromDateErrorMsg" class="material-icons icon-calendar col-calendar"></i>
                                                                <EM:CalendarExtender ID="CE_FromDateErrorMsg" runat="server" TargetControlID="TxBx_FromDateErrorMsg"
                                                                    Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                                                    PopupButtonID="A_FromDateErrorMsg" CssClass="date__calendar">
                                                                </EM:CalendarExtender>
                                                            </div>
                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <label>
                                                                    <asp:Literal ID="Literal9" runat="server" Text="<%$ Resources:Content,GN0000690%>" EnableViewState="false" />:
                                                                </label>
                                                                <div class="form-group display-date-input">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_ToDateErrorMsg" runat="server"></asp:TextBox>
                                                                    </div>
                                                                </div>
                                                                <i runat="server" id="A_ToDateErrorMsg" class="material-icons icon-calendar col-calendar"></i>
                                                                <EM:CalendarExtender ID="CE_ToDateErrorMsg" runat="server" TargetControlID="TxBx_ToDateErrorMsg"
                                                                    Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                                                    PopupButtonID="A_ToDateErrorMsg" CssClass="date__calendar">
                                                                </EM:CalendarExtender>
                                                            </div>
                                                            <div class="col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <asp:Button ID="Btn_SearchErrorMsg" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                                    <asp:Button ID="Btn_ClearErrorMsg" Visible="false" class="btn btn-primary waves-effect" runat="server"
                                                                        Text="<%$ Resources:Content,String289 %>" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>

                                <div class="row" id="tbl_Operations" runat="server">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="header">
                                                <h3>
                                                    <asp:Literal ID="Literal10" runat="server" Text='<%$ Resources:Content,GN00001320%>' EnableViewState="false" />
                                                </h3>
                                            </div>
                                            <div class="body">
                                                <asp:Button ID="Btn_ExportToExcel" class="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,Ex001 %>' />
                                                <asp:Button ID="Btn_SendToMachsol" class="btn btn-primary waves-effect btnAction" runat="server" Text='<%$ Resources:Content,strSendToMachsol %>' />
                                                <asp:Button ID="Btn_ClearMessages" class="btn btn-primary waves-effect btnAction" runat="server" Text='<%$ Resources:Content,ClearMessages %>' />
                                                <EM:ConfirmButtonExtender ID="CBE_Btn_ClearMessages" ConfirmText="<%$ Resources:Content,GN000200%>"
                                                    TargetControlID="Btn_ClearMessages" runat="server">
                                                </EM:ConfirmButtonExtender>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <%-- Error Msg Log files listing --%>
                                <asp:GridView CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                    ID="GV_ErrorMsgLogs" AllowSorting="true" runat="server" AutoGenerateColumns="false">
                                    <Columns>
                                        <asp:TemplateField SortExpression="Message" HeaderText="<%$ Resources:Content,GN0000774%>" HeaderStyle-CssClass="col-xs-8">
                                            <ItemTemplate>
                                                <%--<asp:Literal ID="Lbl_Message" runat="server"></asp:Literal>--%>

                                                <div id="Div_Details" runat="server" />
                                                <div id="Div_expand" runat="server" class="cursor-pointer" />
                                                <div id="HF_Data" runat="server" style="display: none;" />
                                                <div id="HF_FullData" runat="server" style="display: none;" />
                                                <asp:HiddenField ID="HF_Op" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:BoundField DataField="DateCreated" SortExpression="DateCreated" HeaderText="<%$ Resources:Content,GN00001496%>" HeaderStyle-CssClass="col-xs-2" />

                                        <asp:TemplateField HeaderText="<%$ Resources:Content,strLoginAs%>" HeaderStyle-CssClass="col-xs-2">
                                            <ItemTemplate>
                                                <asp:Literal ID="Lbl_LoggedInAs" runat="server"></asp:Literal>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <PagerTemplate>
                                        <UC:Pager ID="Pager1" runat="server" />
                                    </PagerTemplate>
                                </asp:GridView>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                </EM:TabContainer>
            </div>
        </div>
    </div>

    <!-- File Content display popup -->
    <asp:Button ID="Btn_Dummy" Style="display: none" runat="server" />
    <asp:HiddenField ID="Hf_OrderId" runat="server" />
    <asp:Panel ID="Panel1" runat="server" CssClass="width-modal-popup-auto" Style="display: none">
        <div class="col-xs-12">
            <div class="card">
                <div class="header container-fluid">
                    <h3 class="pull-left">
                        <asp:Literal ID="Literal2" runat="server" Text='<%$ Resources:Content, Dev675 %>'
                            EnableViewState="false" />
                    </h3>
                    <span>
                        <button type="button" class="close" onclick="$find('<%=MP1.ClientID%>').hide();">&times;</button>
                    </span>
                </div>
                <div class="body">
                    <div class="row">
                        <div class="col-xs-12">
                            <div id="Div_LogDetails" runat="server"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>
    <EM:ModalPopupExtender runat="server" ID="MP1" BackgroundCssClass="modalBackground"
        DropShadow="false" PopupControlID="Panel1" TargetControlID="Btn_Dummy">
    </EM:ModalPopupExtender>

    <ajax:UpdatePanel ID="UP_TestEmail" runat="server" UpdateMode="CONDITIONAL">
        <ContentTemplate>
            <asp:Panel ID="Pnl_TestEmail" BackColor="white" BorderColor="black" BorderStyle="Solid"
                BorderWidth="1px" ScrollBars="Auto" runat="server" Style="display: none" CssClass="width-modal-popup-auto">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="header">
                                <h3><%= Resources.Content.SendErrorMsgLogMail %></h3>
                            </div>
                            <div class="body">
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        *
                                        <asp:Label ID="Lb_SendTo" runat="server" Text="<%$ Resources:Content,String320 %>" EnableViewState="false"></asp:Label>:
                                    </div>
                                    <div class="col-sm-9 col-xs-12">
                                        <asp:Label ID="TxBx_SendTo" runat="server"></asp:Label>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <label>*
                                            <asp:Label ID="Lb_From" runat="server" Text="<%$ Resources:Content,DGN1110162 %>" EnableViewState="false"></asp:Label>:</label>
                                    </div>
                                    <div class="col-sm-9 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_From" runat="server" ValidationGroup="TestMail"></asp:TextBox>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                            </div>
                            <div class="header">
                                <h3><%= Resources.Content.String321 %></h3>
                            </div>
                            <div class="body">
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        *
                                        <asp:Label ID="Label3" runat="server" Text="<%$ Resources:Content,InstallationID %>" EnableViewState="false"></asp:Label>:
                                    </div>
                                    <div class="col-sm-9 col-xs-12">
                                        <div class="form-group">
                                            <asp:Literal ID="Ltrl_InstallationID" runat="server"></asp:Literal>
                                            <asp:HiddenField ID="HF_AttachmentPath" runat="server"></asp:HiddenField>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        *
                                        <asp:Label ID="Label4" runat="server" Text="<%$ Resources:Content,GN00001101 %>" EnableViewState="false"></asp:Label>:
                                    </div>
                                    <div class="col-sm-9 col-xs-12">
                                        <div class="form-group">
                                            <asp:Literal ID="Ltrl_Version" runat="server"></asp:Literal>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        *
                                        <asp:Label ID="Label5" runat="server" Text="<%$ Resources:Content,SearchFilter %>" EnableViewState="false"></asp:Label>:
                                    </div>
                                    <div class="col-sm-9 col-xs-12">
                                        <div class="form-group">
                                            <asp:Literal ID="Ltrl_SearchFilter" runat="server"></asp:Literal>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <label>*
                                            <asp:Label ID="Lb_Body" runat="server" Text="<%$ Resources:Content,String321 %>" EnableViewState="false"></asp:Label>:</label>
                                    </div>
                                    <div class="col-sm-9 col-xs-12">
                                        <div class="form-group">
                                            <asp:TextBox ID="TxBx_Body" runat="server" TextMode="MultiLine" Width="100%" Height="150px"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:Button class="btn btn-primary waves-effect btnAction" ID="Btn_EmailSend" runat="server"
                                            Text='<%$ Resources:Content,DGN1110199%>' ValidationGroup="TestMail" CausesValidation="true" />
                                        <asp:Button class="btn btn-primary waves-effect" ID="Btn_EmailCancel" runat="server"
                                            Text='<%$ Resources:Content,GN0000572%>' ValidationGroup="TestMail" CausesValidation="false" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </asp:Panel>
            <asp:Button ID="Btn_Dummy1" runat="server" Style="display: none" Text='<%$ Resources:Content,GN0000575%>' />
            <EM:ModalPopupExtender runat="server" ID="MPE_TestEmail" BackgroundCssClass="modalBackground"
                DropShadow="false" CancelControlID="Btn_EmailCancel" PopupControlID="Pnl_TestEmail"
                TargetControlID="Btn_Dummy1" />
        </ContentTemplate>
    </ajax:UpdatePanel>
    <script type="text/javascript">
        function ValidatePopup(IdSendTo, IdFrom) {
            var Txt_SendTo = document.getElementById(IdSendTo);
            var Txt_From = document.getElementById(IdFrom);
            if (Txt_SendTo != null && Txt_From != null) {



                if (Txt_SendTo.value == '') { alert(<% Response.Write("'" + Resources.Content.GN00008027 + "'")%>); Txt_SendTo.focus(); return false; }

                if (Txt_From.value == '') { alert(<% Response.Write("'" + Resources.Content.GN00008027 + "'")%>); Txt_From.focus(); return false; }

                if (!(convertToASCIIAndValidate(Txt_SendTo.value,EmailValidationExpression.toString()))) { alert(<% Response.Write("'" + Resources.Content.Dev487 + "'")%>); Txt_SendTo.focus(); return false; }

                if (!(convertToASCIIAndValidate(Txt_From.value,EmailValidationExpression.toString()))) { alert(<% Response.Write("'" + Resources.Content.Dev487 + "'")%>); Txt_From.focus(); return false; }

                return true;
            }
        }
    </script>
</asp:Content>
