<%@ page language="VB" autoeventwireup="false" inherits="Auth_Error, MachSol.MachPanel.Web" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<!DOCTYPE html>
<html>
<head id="Head" runat="server">
    <title id="Title" runat="server">Error Report</title>

    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">

    <!-- Google Fonts -->

    <link rel="stylesheet" type='text/css' href='<%# "/css/google/material-icons.css?" + ProductVersion %>' />

    <!-- Jquery base library -->
    <link rel="stylesheet" type='text/css' href='<%# "/plugins/jquery-ui-1.13.2/jquery-ui.min.css?" + ProductVersion %>' />

    <!-- Bootstrap Core Css -->
    <link rel="stylesheet" type='text/css' href='<%# "/plugins/bootstrap/css/bootstrap.css?" + ProductVersion %>' />

    <!-- Bootstrap Select Css -->
    <link rel="stylesheet" type='text/css' href='<%# "/plugins/bootstrap-select/css/bootstrap-select.css?" + ProductVersion %>' />

    <!-- Waves Effect Css -->
    <link rel="stylesheet" type='text/css' href='<%# "/plugins/node-waves/waves.css?" + ProductVersion %>' />


    <!-- AdminBSB Themes -->
    <link rel="stylesheet" type='text/css' href='<%# "/css/themes/all-themes.css?" + ProductVersion %>' />


    <!-- font-glyphs css -->
    <link rel="stylesheet" type='text/css' href='<%# "/css/font-glyphs.css?" + ProductVersion %>' />

    <!-- Custom Css -->
    <link rel="stylesheet" type='text/css' href='<%# "/css/Style.css?" + ProductVersion %>' />


    <style type="text/css">
        textarea {
            width: 97%;
        }

        .form-horizontal, .form-group {
            margin-left: 0px !important;
            margin-right: 0px !important;
        }
    </style>


    <!-- JQuery Framework References -->
    <script type="text/javascript" src='/plugins/jquery/jquery.min.js?<%# ProductVersion %>'></script>
    <script type="text/javascript" src='/plugins/jquery-ui-1.13.2/jquery-ui.min.js?<%# ProductVersion %>'></script>

    <script type="text/javascript" src='/JS/adal.js?<%# ProductVersion %>'></script>
    <script type="text/javascript" src='/JS/aad-login.js?<%# ProductVersion %>'></script>

    <script type="text/javascript" src='/JS/sweetalert/js/swl.js?<%# ProductVersion %>' defer></script>
    <link rel="stylesheet" type='text/css' href='<%# "/JS/sweetalert/css/swl.css?" + ProductVersion %>' />
    <script type="text/javascript" src='/JS/fido2/helpers.js?<%# ProductVersion %>' defer></script>
    <script type="text/javascript" src='/JS/fido2/passwordless.login.js?<%# ProductVersion %>' defer></script>
    <!-- Waves Effect Plugin Js -->
    <script type="text/javascript" src="/plugins/node-waves/waves.js?<%# ProductVersion %>"></script>
    <!-- Select Plugin Js -->
    <script type="text/javascript" src="/plugins/bootstrap-select/js/bootstrap-select.js?<%# ProductVersion %>"></script>
    <script type="text/javascript" src="/JS/admin.js?<%# ProductVersion %>"></script>
    <script type="text/javascript" src="/JS/Master_Ready.js?<%# ProductVersion %>"></script>
    <script type="text/javascript" src='/JS/Utility.js?<%# ProductVersion %>'></script>

    <script type="text/javascript" src='/JS/Duo/Duo-Web-v2.js?<%# ProductVersion %>'></script>
    <link rel="icon" href="" type="image/ico" sizes="16x16" id="link_favicon" runat="server">
    <script type="text/javascript" lang="javascript">

        function HideShowStackTrace(error_detail_id, hideStackTraceButtonClientID, innerTextHideStackTrace, innerTextShowStackTrace) {
            var error_detail = document.getElementById(error_detail_id);
            var hideStackTraceButton = document.getElementById(hideStackTraceButtonClientID);
            var linkText;

            if ($(error_detail).hasClass('hide')) {
                $(error_detail).removeClass('hide')
                $(hideStackTraceButton).html(innerTextHideStackTrace);
            }
            else {
                $(error_detail).addClass('hide')
                $(hideStackTraceButton).html(innerTextShowStackTrace);
            }

            //// FireFox doesn't support 'innerText' property - so I have to do verification
            //var hasInnerText = (hideStackTraceButton.innerText != undefined) ? true : false;

            //if (!hasInnerText) {
            //    hideStackTraceButton.textContent = linkText;
            //}
            //else {
            //    hideStackTraceButton.innerText = linkText;

            //}

            return false;
        }
    </script>

</head>
<body id="Bdy" runat="server">
    <%If MachSol.MachPanel.DBCore.SystemSettings.IsDMP() Then %>
    <link rel="stylesheet" type='text/css' href='/css/sar-customizations.css?<%# ProductVersion %>' />
    <%End If%>

    <form id="form1" runat="server" autocomplete="off" class="form-horizontal">
        <div class="row center-block m-t-30 m-b-20" id="Div_Report" runat="server">
            <div class="col-sm-offset-3 col-sm-6 col-xs-offset-1 col-xs-12">
                <div class="card">
                    <div class="header">
                        <h2>
                            <asp:Label ID="lbl_ErrorTitle" CssClass="text-info" runat="server" Text='<%$ Resources:Content, GN00001462 %>' />
                            <i class="material-icons icon-warning col-danger m-r-10 pull-right"></i>
                        </h2>
                    </div>
                    <div class="body">
                        <div class="row">
                            <div class="col-xs-12 ">
                                <asp:Button ID="btn_GoBack" CssClass="btn btn-primary" Text="<%$Resources:Content,String1018%>"
                                    runat="server" />
                                <br />
                                <h4>
                                    <asp:Label ID="lbl_apologies" Text="<%$Resources:Content,String1019%>" runat="server" CssClass="text-info"></asp:Label>
                                </h4>
                                <br />
                                <asp:Literal ID="Literal6" runat="server" Text="<%$Resources:Content,strCustomeHomePageError%>" EnableViewState="false" />
                                <a id="hyperlink_HomePageIssue" href="/RCC/dashboard.aspx" runat="server">
                                    <asp:Literal ID="Literal7" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strClickToFixHomePage%>" /></a>
                                <br />
                                 <br />
                                <%--StackTrac Starts Here--%>
                                <div id="Div_StackTrace" runat="server">
                                    <div class="panel panel-info hide" id="error-detail">
                                        <div class="panel-heading alert alert-dismissable">
                                            <button class="close m-r-15" onclick="return HideShowStackTrace('error-detail', 'HideStackTraceButton', '<%= Resources.Content.strHideDetails %>', 
                                        '<%= Resources.Content.Lync369%>');">
                                                &times;</button>
                                            <%--<asp:Literal ID="Ltrl_ErrorDetailsHeading" runat="server" Text="<%$Resources:Content,strErrorDetails %>"></asp:Literal>--%>
                                        </div>
                                        <div class="panel-body">
                                            <span id="StackTraceLabel" runat="server"></span>
                                        </div>
                                    </div>
                                    <a onclick="return HideShowStackTrace('error-detail', 'HideStackTraceButton', '<%= Resources.Content.strHideDetails %>', 
                                        '<%= Resources.Content.Lync369%>');"
                                        id="HideStackTraceButton" href="javascript:__doPostBack('HideStackTraceButton','')">
                                        <asp:Literal ID="Literal10" runat="server" Text="<%$Resources:Content,Lync369%>"></asp:Literal>
                                    </a>
                                </div>
                                <%--StackTrace Ends Here--%>
                                <div id="RecommendedActionsPanel" runat="server" class="panel panel-info">
                                    <div class="panel-heading">
                                        <asp:Literal ID="ltr_ReActions" runat="server" Text="<%$Resources:Content,String1025%>"></asp:Literal>
                                    </div>
                                    <div id="Div_Remedy" runat="server" class="panel-body">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div id="SubmitTheIssueDiv" runat="server" class="panel panel-default">
                            <div class="panel-heading color-white">
                                <h4>
                                    <asp:Literal ID="Literal8" runat="server" EnableViewState="false" Text="<%$Resources:Content,String1020%>" /></h4>
                            </div>
                            <div class="panel-body">
                                <div class="row">
                                    <div class="col-xs-12 ">
                                        <div class="clearfix"></div>
                                        <asp:Literal ID="literal9" runat="server" EnableViewState="false" Text="<%$Resources:Content,String1021%>" />
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12 ">
                                        <div class="glyphicon glyphicon-asterisk text-danger font-11"></div>
                                        <div class="clearfix"></div>
                                        <textarea name="SendingMessageTextBox" rows="10" cols="20" runat="server" id="Txbx_Details"
                                            class="multiline_text"></textarea>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="Txbx_Details" ErrorMessage="Please submit the issue."
                                            Display="None" SetFocusOnError="True" ValidationGroup="SendMail">
                                        </asp:RequiredFieldValidator>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12 ">
                                        <label>
                                            <asp:Literal ID="literal5" runat="server" EnableViewState="false" Text="<%$Resources:Content,String1022%>" />
                                        </label>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12 ">
                                        <div class="glyphicon glyphicon-asterisk text-danger font-11"></div>
                                        <br />
                                        <div class="form-group form-float p-l-10 p-r-10">
                                            <div class="form-line">
                                                <asp:TextBox ID="Txbx_Name" runat="server" class="text_box" MaxLength="40" CssClass="form-control"></asp:TextBox>
                                                <asp:Label ID="Label1" runat="server" Text="<%$Resources:Content,String1023%>" CssClass="form-label" />
                                                <asp:RequiredFieldValidator ID="RFV_Name" runat="server" ControlToValidate="Txbx_Name"
                                                    Display="None" SetFocusOnError="True" ValidationGroup="SendMail">
                                                </asp:RequiredFieldValidator>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12 ">
                                        <div class="glyphicon glyphicon-asterisk text-danger font-11"></div>
                                        <br />
                                        <div class="form-group form-float p-l-10 p-r-10">
                                            <div class="form-line">
                                                <asp:TextBox ID="Txbx_Email" runat="server" MaxLength="40" CssClass="form-control"></asp:TextBox>
                                                <asp:Label ID="Label2" runat="server" Text="<%$Resources:Content,String1024%>" CssClass="form-label" />
                                                <asp:RequiredFieldValidator ID="RFV_Email" runat="server" ControlToValidate="Txbx_Email"
                                                    Display="None" SetFocusOnError="True" ValidationGroup="SendMail">
                                                </asp:RequiredFieldValidator>
                                                <%--<asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" ErrorMessage='<%$ Resources:Content,DGN1110038%>'
                                                    ControlToValidate="Txbx_Email" Display="None" SetFocusOnError="True" ValidationExpression="<%$ Resources:MPRegex,EmailAddress %>"
                                                    ValidationGroup="SendMail" />--%>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row form-group">
                                    <div class="col-xs-12 p-l-0">
                                        <asp:Button ID="btn_Send" CssClass="btn btn-primary" runat="server" ValidationGroup="SendMail" SkinID="sendbutton"
                                            Text="<%$ Resources:Content,SMI0001%>" />
                                        <asp:ValidationSummary ID="ValidationSummary1" ValidationGroup="SendMail" HeaderText="<%$ Resources:Content,EM000001 %>"
                                            runat="server" ShowSummary="false" ShowMessageBox="true" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>


        <div id="Div_SuccFail" runat="server" visible="false">
            <div id="errorReportScreen">
                <div class="errorReport">
                    <div id="Msg_Succ" runat="server" class="msg-success" visible="false" />
                    <div id="Msg_Fail" class="msg-fail" runat="server" visible="false" />
                    <div class="msg-report">
                        <asp:Literal ID="Literal4" runat="server" Text="<%$Resources:Content,SPT002026%>" EnableViewState="false" />
                        <a id="hyperlink_ClickHere" href="/RCC/dashboard.aspx" runat="server">
                            <asp:Literal ID="Literal11" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SMI0002%>" /></a>
                        <asp:Literal ID="Literal12" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SMI0003%>" />
                        <a id="A2" href="Login.aspx" runat="server">
                            <asp:Literal ID="Literal14" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SPT002027%>" /></a>
                    </div>
                </div>
            </div>
        </div>
        <div id="Div_ErrorMsg" runat="server" class="col-sm-offset-3 col-sm-6 col-xs-offset-1 col-xs-12" visible="false">
            <div id="screenWrapper">
                <div class="errorMsg">
                    <div class="errorbox">
                        <asp:Literal ID="asdf" runat="server" EnableViewState="false" Text="<%$Resources:Content,SPT002025%>" />
                    </div>
                    <div id="Div_Error" runat="server" />
                    <div class="errorbox">
                        <asp:Literal ID="Literal1" runat="server" EnableViewState="false" Text="<%$Resources:Content,SPT002026%>" />
                        <a href="Login.aspx">
                            <asp:Literal ID="Literal2" runat="server" EnableViewState="false" Text="<%$Resources:Content,SPT002027%>" />
                        </a>
                        <asp:Literal ID="Literal3" runat="server" EnableViewState="false" Text="<%$Resources:Content,SPT002028%>" />
                    </div>
                </div>
            </div>
            <asp:Button ID="Btn_License" Visible="false" runat="server" Text="<%$Resources:Content,SPT002604%>" />
        </div>
    </form>
    <!--Custom JS File-->
    <script type="text/javascript" src='/JS/custom-fixes-rcc.js?<%# ProductVersion %>'></script>
</body>
</html>
