<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../Site.xsl"?>
<?xml-stylesheet type="text/css" href="../RenderFail.css"?>

<RDWAPage 
    helpurl="http://go.microsoft.com/fwlink/?LinkId=141038" 
    workspacename="&#1043;&#1088;&#1091;&#1087;&#1087;&#1072;&#32;&#1040;&#1043;&#1056;&#1054;&#1048;&#1053;&#1042;&#1045;&#1057;&#1058;" 
    baseurl="https://webapp.agroinvest.com/RDWeb/Pages/en-US/"
    privacyurl=""
    >
  <RenderFailureMessage>
    <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
            <title>Error: Unable to display RD Web Access</title>
			
        </head>

        <body>
            <h1>Error: Unable to display RD Web Access</h1>
            <p>An unexpected error has occurred that is preventing this page from being displayed correctly.</p>
            <p>Viewing this page in Internet Explorer with the Enhanced Security Configuration enabled can cause such an error.</p>
            <p>Please try loading this page without the Enhanced Security Configuration enabled. If this error continues to be displayed, please contact your administrator.</p>
        </body>
    </html> 
  </RenderFailureMessage>
  <BodyAttr 
    onload="onLoginPageLoad(event)" 
    onunload="onPageUnload(event)"/>
	
  <HTMLMainContent>
  <script src="https://www.google.com/recaptcha/api.js"></script>
		  <script type="text/javascript">
		function callValidation(){
			if(grecaptcha.getResponse().length == 0){
					showRecaptchaError();
					return false;
				}
				
				hideRecaptchaError();
				return onLoginFormSubmit();
			}

			// Callback при успешном прохождении reCAPTCHA
			function onRecaptchaSuccess() {
				hideRecaptchaError();
			}

			// Callback при истечении срока действия reCAPTCHA
			function onRecaptchaExpired() {
				// Можно показать сообщение, что нужно пройти проверку заново
			}

			function showRecaptchaError(message) {
				var errorElement = document.getElementById('trErrorRecaptcha');
				if (errorElement) {
					errorElement.style.display = '';
					errorElement.scrollIntoView({ behavior: 'smooth', block: 'center' });
				}
			}

			function hideRecaptchaError() {
				var errorElement = document.getElementById('trErrorRecaptcha');
				if (errorElement) {
					errorElement.style.display = 'none';
				}
		}
		 </script>
      <form id="FrmLogin" name="FrmLogin" action="login.aspx?ReturnUrl=%2FRDWeb%2FPages%2Fen-US%2FDefault.aspx" method="post" onsubmit="return callValidation();">

        <input type="hidden" name="WorkSpaceID" value="CLD004SV.agroinvest.com"/>
        <input type="hidden" name="RDPCertificates" value="23D2739B6B71D6CEC4138AF60D46AFA10F509EA5"/>
        <input type="hidden" name="PublicModeTimeout" value="20"/>
        <input type="hidden" name="PrivateModeTimeout" value="240"/>
        <input type="hidden" name="WorkspaceFriendlyName" value="%D0%93%D1%80%D1%83%D0%BF%D0%BF%D0%B0%20%D0%90%D0%93%D0%A0%D0%9E%D0%98%D0%9D%D0%92%D0%95%D0%A1%D0%A2"/>
        <input type="hidden" name="EventLogUploadAddress" value=""/>
        <input type="hidden" name="RedirectorName" value="CLD004SV.agroinvest.com"/>
        <input type="hidden" name="ClaimsHint" value=""/>
        <input type="hidden" name="ClaimsToken" value=""/>

        <input name="isUtf8" type="hidden" value="1"/>
        <input type="hidden" name="flags" value="0"/>


        <table id="tableLoginDisabled" width="300" border="0" align="center" cellpadding="0" cellspacing="0" style="display:none">

            <tr id="trWrongAxVersion" style="display:none" >
            <td>
                <table>
                <tr>
                    <td height="20">&#160;</td>
                </tr>
                <tr>
                    <td><span class="wrng">You don't have the right version of Remote Desktop Connection to use RD Web Access.</span></td>
                </tr>
                </table>
            </td>
            </tr>

            <tr id="trUnsupportedBrowser" style="display:none" >
            <td>
                <table>
                <tr>
                    <td height="20">&#160;</td>
                </tr>
                <tr>
                    <td><span class="wrng">Your web browser isn't supported by Microsoft RemoteApp Service. Please use a supported browser.</span></td>
                </tr>
                </table>
            </td>
            </tr> 

            <tr id="trSupportedBrowserAxLoadError" style="display:none" >
            <td>
                <table>
                <tr>
                    <td height="20">&#160;</td>
                </tr>
                <tr>
                    <td><span class="wrng">Your browser has ActiveX controls turned off. Go to your browser's settings to turn on ActiveX controls.</span></td>
                </tr>
                </table>
            </td>
            </tr> 

            <tr id="trCookiesDisabled" style="display:none" >
            <td>
                <table>
                <tr>
                    <td height="20">&#160;</td>
                </tr>
                <tr>
                    <td><span class="wrng">В вашем браузере отключены файлы cookie. Перейдите в настройки вашего браузера, чтобы включить файлы cookie.</span></td>
                </tr>
                </table>
            </td>
            </tr> 

            <tr>
                <td height="50">&#160;</td>
            </tr>

        </table>

        <table id="tableLoginForm" width="300" border="0" align="center" cellpadding="0" cellspacing="0" style="display:none">

            <tr>
            <td height="20">&#160;</td>
            </tr>

            <tr>
            <td>
                <table width="300" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td id="tdDomainUserNameLabel" width="130" align="right" style="display:none">E-mail:</td>
                    <td id="tdClaimsDomainUserNameLable" width="130" align="right" style="display:none">Username@domain:</td>
                    <td width="7"></td>
                    <td align="right">
                    <label><input name="DomainUserName" type="text" id="DomainUserName" class="textInputField" size="25" autocomplete="off" /></label>
                    </td>
                </tr>
                </table>
            </td>
            </tr>
            <tr>
            <td height="7"></td>
            </tr>

            <tr>
            <td>
                <table width="300" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="130" align="right">Пароль:</td>
                    <td width="7"></td>
                    <td align="right">
                    <label><input name="UserPass" type="password" id="UserPass" class="textInputField" size="25" autocomplete="off" /></label>
                    </td>
                </tr>
                </table>
            </td>
            </tr>

    
            <tr id="trPasswordExpiredNoChange" style="display:none" >
            <td>
                <table>
                <tr>
                    <td height="20">&#160;</td>
                </tr>
                <tr>
                    <td><span class="wrng">Срок действия вашего пароля истек. Обратитесь за помощью к своему администратору.</span></td>
                </tr>
                </table>
            </td>
            </tr>
               
    
            <tr id="trPasswordExpired" style="display:none" >
            <td>
                <table>
                <tr>
                    <td height="20">&#160;</td>
                </tr>
                <tr>
					<td>
					  <div class="wrng password-expired-container">
						<p class="password-expired-message">
						  Ваш пароль истёк | Your password is expired.
						</p>
						<div class="password-action-container">
						  <a id="passwordchangelink" 
							 href="checkCaptcha.aspx" 
							 class="password-change-btn">
							Сменить пароль | Set new password
						  </a>
						  <span class="password-change-ending">
							 to change it.
						  </span>
						</div>
					  </div>
					</td>

                </tr>
                </table>
            </td>
            </tr>

    
            <tr id="trErrorWorkSpaceInUse" style="display:none" >
            <td>
                <table>
                <tr>
                    <td height="20">&#160;</td>
                </tr>
                <tr>
                    <td><span class="wrng">Another user of your computer is currently using this connection.  This user must disconnect before you can log on.</span></td>
                </tr>
                </table>
            </td>
            </tr>

    
            <tr id="trErrorWorkSpaceDisconnected" style="display:none" >
            <td>
                <table>
                <tr>
                    <td height="20">&#160;</td>
                </tr>
                <tr>
                    <td><span class="wrng">Another user of your computer has disconnected from this connection.  Please type your user name and password again.</span></td>
                </tr>
                </table>
            </td>
            </tr>

    
            <tr id="trErrorIncorrectCredentials" style="display:none" >
            <td>
                <table>
                <tr>
                    <td height="20">&#160;</td>
                </tr>
                <tr>
                    <td><span class="wrng">Введенное вами имя пользователя или пароль недействительны. Попробуйте ввести его еще раз.</span></td>
                </tr>
                </table>
            </td>
            </tr>


            <tr id="trErrorDomainNameMissing" style="display:none" >
            <td>
                <table>
                <tr>
                    <td height="20">&#160;</td>
                </tr>
                <tr>
                    <td><span class="wrng">You must enter a valid domain name.</span></td>
                </tr>
                </table>
            </td>
            </tr> 
	 
	
            <tr id="trErrorRecaptcha" style="display:none">
            <td>
                <table>
                <tr>
                    <td height="20">&#160;</td>
                </tr>
                <tr>			
                    <td><span class="wrng" id="recaptchaErrorMessage">Пожалуйста, подтвердите что вы не робот</span></td>
                </tr>
                </table>
            </td>
            </tr>
	
    
            <tr id="trErrorUnauthorizedAccess" style="display:none" >
            <td>
                <table>
                <tr>
                    <td height="20">&#160;</td>
                </tr>
                <tr>
                    <td><span class="wrng">You aren’t authorized to log on to this connection.  Contact your system administrator for authorization.</span></td>
                </tr>
                </table>
            </td>
            </tr>

    
            <tr id="trErrorServerConfigChanged" style="display:none" >
            <td>
                <table>
                <tr>
                    <td height="20">&#160;</td>
                </tr>
                <tr>
                    <td><span class="wrng">Your RD Web Access session expired due to configuration changes on the remote computer.  Please sign in again.</span></td>
                </tr>
                </table>
            </td>
            </tr>

            <tr id="trErrorGenericClaimsAuthFailure" style="display:none" >
            <td>
                <table>
                <tr>
                    <td height="20">&#160;</td>
                </tr>
                <tr>
                    <td><span class="wrng">We can't sign you in right now. Please try again later.</span></td>
                </tr>
                </table>
            </td>
            </tr> 

            <tr>
            <td height="20">&#160;</td>
            </tr>

            <tr>
            <td height="20">&#160;</td>
            </tr>
            <tr>
            <td align="right">
                <div class="g-recaptcha" data-sitekey="6LdyB-orAAAAAAkY8NJzYzIENY4jWItOrSySMiCU" data-callback="onRecaptchaSuccess" data-expired-callback="onRecaptchaExpired">
                     style="margin: 10px 0; transform: scale(0.95); transform-origin: 0 0;">
					 
				</div>
					
                <label><input type="submit" class="formButton" id="btnSignIn" value="Войти" /></label>
            </td>
            </tr>

            <tr>
            <td height="20">&#160;</td>
            </tr>
            <tr>
            <td height="1" bgcolor="#CCCCCC"></td>
            </tr>

            <tr>
            <td height="20">&#160;</td>
            </tr>
            <tr>
            <td>Для защиты от несанкционированного доступа ваш сеанс веб-доступа к удаленным рабочим столам автоматически завершается по истечении периода бездействия. Если сеанс завершится, обновите браузер и войдите снова.</td>
            </tr>

            <tr>
            <td height="30">&#160;</td>
            </tr>

        </table>

      </form>


  </HTMLMainContent>

</RDWAPage>
