Advertisement
Guest User

Untitled

a guest
Mar 1st, 2019
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.57 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="ru-RU">
  3. <head>
  4. <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=1"/>
  6. <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  7. <meta http-equiv="cache-control" content="no-cache,no-store"/>
  8. <meta http-equiv="pragma" content="no-cache"/>
  9. <meta http-equiv="expires" content="-1"/>
  10. <meta name='mswebdialog-title' content='Выполняется подключение к Золотое Яблоко'/>
  11.  
  12. <title>Вход</title>
  13. <script type='text/javascript'>
  14. //<![CDATA[
  15. function LoginErrors(){this.userNameFormatError = 'Введите идентификатор пользователя в формате \u0026quot;домен\\пользователя\u0026quot; или \u0026quot;пользователь@домен\u0026quot;.'; this.passwordEmpty = 'Введите пароль.'; this.passwordTooLong = 'Слишком длинный пароль (символов: более 128).';}; var maxPasswordLength = 128;
  16. //]]>
  17. </script>
  18.  
  19. <script type='text/javascript'>
  20. //<![CDATA[
  21. // Copyright (c) Microsoft Corporation. All rights reserved.
  22. function InputUtil(errTextElementID, errDisplayElementID) {
  23.  
  24. if (!errTextElementID) errTextElementID = 'errorText';
  25. if (!errDisplayElementID) errDisplayElementID = 'error';
  26.  
  27. this.hasFocus = false;
  28. this.errLabel = document.getElementById(errTextElementID);
  29. this.errDisplay = document.getElementById(errDisplayElementID);
  30. };
  31. InputUtil.prototype.canDisplayError = function () {
  32. return this.errLabel && this.errDisplay;
  33. }
  34. InputUtil.prototype.checkError = function () {
  35. if (!this.canDisplayError){
  36. throw new Error ('Error element not present');
  37. }
  38. if (this.errLabel && this.errLabel.innerHTML) {
  39. this.errDisplay.style.display = '';
  40. var cause = this.errLabel.getAttribute('for');
  41. if (cause) {
  42. var causeNode = document.getElementById(cause);
  43. if (causeNode && causeNode.value) {
  44. causeNode.focus();
  45. this.hasFocus = true;
  46. }
  47. }
  48. }
  49. else {
  50. this.errDisplay.style.display = 'none';
  51. }
  52. };
  53. InputUtil.prototype.setInitialFocus = function (input) {
  54. if (this.hasFocus) return;
  55. var node = document.getElementById(input);
  56. if (node) {
  57. if ((/^\s*$/).test(node.value)) {
  58. node.focus();
  59. this.hasFocus = true;
  60. }
  61. }
  62. };
  63. InputUtil.prototype.setError = function (input, errorMsg) {
  64. if (!this.canDisplayError) {
  65. throw new Error('Error element not present');
  66. }
  67. input.focus();
  68.  
  69. if (errorMsg) {
  70. this.errLabel.innerHTML = errorMsg;
  71. }
  72. this.errLabel.setAttribute('for', input.id);
  73. this.errDisplay.style.display = '';
  74. };
  75. InputUtil.makePlaceholder = function (input) {
  76. var ua = navigator.userAgent;
  77.  
  78. if (ua != null &&
  79. (ua.match(/MSIE 9.0/) != null ||
  80. ua.match(/MSIE 8.0/) != null ||
  81. ua.match(/MSIE 7.0/) != null)) {
  82. var node = document.getElementById(input);
  83. if (node) {
  84. var placeholder = node.getAttribute("placeholder");
  85. if (placeholder != null && placeholder != '') {
  86. var label = document.createElement('input');
  87. label.type = "text";
  88. label.value = placeholder;
  89. label.readOnly = true;
  90. label.style.position = 'absolute';
  91. label.style.borderColor = 'transparent';
  92. label.className = node.className + ' hint';
  93. label.tabIndex = -1;
  94. label.onfocus = function () { this.nextSibling.focus(); };
  95.  
  96. node.style.position = 'relative';
  97. node.parentNode.style.position = 'relative';
  98. node.parentNode.insertBefore(label, node);
  99. node.onkeyup = function () { InputUtil.showHint(this); };
  100. node.onblur = function () { InputUtil.showHint(this); };
  101. node.style.background = 'transparent';
  102.  
  103. node.setAttribute("placeholder", "");
  104. InputUtil.showHint(node);
  105. }
  106. }
  107. }
  108. };
  109. InputUtil.focus = function (inputField) {
  110. var node = document.getElementById(inputField);
  111. if (node) node.focus();
  112. };
  113. InputUtil.hasClass = function(node, clsName) {
  114. return node.className.match(new RegExp('(\\s|^)' + clsName + '(\\s|$)'));
  115. };
  116. InputUtil.addClass = function(node, clsName) {
  117. if (!this.hasClass(node, clsName)) node.className += " " + clsName;
  118. };
  119. InputUtil.removeClass = function(node, clsName) {
  120. if (this.hasClass(node, clsName)) {
  121. var reg = new RegExp('(\\s|^)' + clsName + '(\\s|$)');
  122. node.className = node.className.replace(reg, ' ');
  123. }
  124. };
  125. InputUtil.showHint = function (node, gotFocus) {
  126. if (node.value && node.value != '') {
  127. node.previousSibling.style.display = 'none';
  128. }
  129. else {
  130. node.previousSibling.style.display = '';
  131. }
  132. };
  133. InputUtil.updatePlaceholder = function (input, placeholderText) {
  134. var node = document.getElementById(input);
  135. if (node) {
  136. var ua = navigator.userAgent;
  137. if (ua != null &&
  138. (ua.match(/MSIE 9.0/) != null ||
  139. ua.match(/MSIE 8.0/) != null ||
  140. ua.match(/MSIE 7.0/) != null)) {
  141. var label = node.previousSibling;
  142. if (label != null) {
  143. label.value = placeholderText;
  144. }
  145. }
  146. else {
  147. node.placeholder = placeholderText;
  148. }
  149. }
  150. };
  151.  
  152. //]]>
  153. </script>
  154.  
  155.  
  156.  
  157. <link rel="stylesheet" type="text/css" href="/adfs/portal/css/style.css?id=0A13280A86E7DFA6949BD016EA848912FCAFC05E88CBEDF538AC325B27041205" /><style>.illustrationClass {background-image:url(/adfs/portal/illustration/illustration.png?id=183128A3C941EDE3D9199FA37D6AA90E0A7DFE101B37D10B4FEDA0CF35E11AFD);}</style>
  158.  
  159. </head>
  160. <body dir="ltr" class="body">
  161. <div id="noScript" style="position:static; width:100%; height:100%; z-index:100">
  162. <h1>Требуется поддержка JavaScript</h1>
  163. <p>Требуется поддержка JavaScript. Этот веб-браузер не поддерживает JavaScript или в веб-браузере не включена поддержка JavaScript.</p>
  164. <p>Чтобы узнать, поддерживает ли веб-браузер JavaScript, или включить поддержку JavaScript, обратитесь к разделу справки веб-браузера.</p>
  165. </div>
  166. <script type="text/javascript" language="JavaScript">
  167. document.getElementById("noScript").style.display = "none";
  168. </script>
  169. <div id="fullPage">
  170. <div id="brandingWrapper" class="float">
  171. <div id="branding"></div>
  172. </div>
  173. <div id="contentWrapper" class="float">
  174. <div id="content">
  175. <div id="header">
  176. Золотое Яблоко
  177. </div>
  178. <div id="workArea">
  179.  
  180. <div id="authArea" class="groupMargin">
  181.  
  182.  
  183.  
  184. <div id="loginArea">
  185. <div id="loginMessage" class="groupMargin">Выполнить вход, используя учетную запись организации</div>
  186.  
  187. <form method="post" id="loginForm" autocomplete="off" novalidate="novalidate" onKeyPress="if (event && event.keyCode == 13) Login.submitLoginRequest();" action="/adfs/oauth2/authorize/?client_id=ac3293db-567b-412d-93d2-062d84a21ea0&redirect_uri=https%3a%2f%2fax.d365.goldapple.ru%2fnamespaces%2fAXSF%2f&response_mode=form_post&response_type=code+id_token&scope=openid+profile&state=OpenIdConnect.AuthenticationProperties%3dAQAAANCMnd8BFdERjHoAwE_Cl-sBAAAAaNuyWcl6DUux6gBcU4dDJAAAAAACAAAAAAADZgAAwAAAABAAAAC_fE3ABHnWH9N13zx6-th0AAAAAASAAACgAAAAEAAAAJO7t7nH3QcyAmZDZmFgc7DQAAAA7UJBeRM_BPy9A3aqQmUxivVo8eGDdH-Ulni0xi9NRcb5egIrdC0qc9THU5sfsQUa-Vfh4NfCwUADoi2YYBqZkq-R27DWHj87R1ng4nYjm0WAusC-I4glfGY-GEgzB5r9fmKGLf8TGnLRYd_8WYBv7NWakM44pNGnq6VfklSgDLiE3QH9Yhd69cptHhCu6U6760chaddDBzOoT7neBhrBBqHPC53xQlxtVF1sQbaKS_4CERmEqLoi0tD3owpYwrXSbWDLaswO2_EE9bn7TqCCihQAAAD0s8HoYdbN1qwT6aoRaMmi1147IA&nonce=636870285046984434.ZGQ4OWM5NzgtMWUwMi00MDk3LTg5YzItMjAzNWU5ZWUwNDQ3MThhNTU0NDEtNTM0Zi00NjQxLWIyNjktZDRmN2FmMDdiODdl&max_age=0&client-request-id=7eb29bc9-707c-46eb-6b82-0080000000e1" >
  188. <div id="error" class="fieldMargin error smallText">
  189. <span id="errorText" for=""></span>
  190. </div>
  191.  
  192. <div id="formsAuthenticationArea">
  193. <div id="userNameArea">
  194. <label id="userNameInputLabel" for="userNameInput" class="hidden">Учетная запись пользователя</label>
  195. <input id="userNameInput" name="UserName" type="email" value="" tabindex="1" class="text fullWidth"
  196. spellcheck="false" placeholder="proverka@example.com" autocomplete="off"/>
  197. </div>
  198.  
  199. <div id="passwordArea">
  200. <label id="passwordInputLabel" for="passwordInput" class="hidden">Пароль</label>
  201. <input id="passwordInput" name="Password" type="password" tabindex="2" class="text fullWidth"
  202. placeholder="Пароль" autocomplete="off"/>
  203. </div>
  204. <div id="kmsiArea" style="display:none">
  205. <input type="checkbox" name="Kmsi" id="kmsiInput" value="true" tabindex="3" />
  206. <label for="kmsiInput">Оставаться в системе</label>
  207. </div>
  208. <div id="submissionArea" class="submitMargin">
  209. <span id="submitButton" class="submit" tabindex="4" role="button"
  210. onKeyPress="if (event && event.keyCode == 32) Login.submitLoginRequest();"
  211. onclick="return Login.submitLoginRequest();">Вход</span>
  212. </div>
  213. </div>
  214. <input id="optionForms" type="hidden" name="AuthMethod" value="FormsAuthentication"/>
  215. </form>
  216.  
  217. <div id="authOptions">
  218. <form id="options" method="post" action="https://fs.goldapple.ru:443/adfs/oauth2/authorize/?client_id=ac3293db-567b-412d-93d2-062d84a21ea0&redirect_uri=https%3a%2f%2fax.d365.goldapple.ru%2fnamespaces%2fAXSF%2f&response_mode=form_post&response_type=code+id_token&scope=openid+profile&state=OpenIdConnect.AuthenticationProperties%3dAQAAANCMnd8BFdERjHoAwE_Cl-sBAAAAaNuyWcl6DUux6gBcU4dDJAAAAAACAAAAAAADZgAAwAAAABAAAAC_fE3ABHnWH9N13zx6-th0AAAAAASAAACgAAAAEAAAAJO7t7nH3QcyAmZDZmFgc7DQAAAA7UJBeRM_BPy9A3aqQmUxivVo8eGDdH-Ulni0xi9NRcb5egIrdC0qc9THU5sfsQUa-Vfh4NfCwUADoi2YYBqZkq-R27DWHj87R1ng4nYjm0WAusC-I4glfGY-GEgzB5r9fmKGLf8TGnLRYd_8WYBv7NWakM44pNGnq6VfklSgDLiE3QH9Yhd69cptHhCu6U6760chaddDBzOoT7neBhrBBqHPC53xQlxtVF1sQbaKS_4CERmEqLoi0tD3owpYwrXSbWDLaswO2_EE9bn7TqCCihQAAAD0s8HoYdbN1qwT6aoRaMmi1147IA&nonce=636870285046984434.ZGQ4OWM5NzgtMWUwMi00MDk3LTg5YzItMjAzNWU5ZWUwNDQ3MThhNTU0NDEtNTM0Zi00NjQxLWIyNjktZDRmN2FmMDdiODdl&max_age=0&client-request-id=7eb29bc9-707c-46eb-6b82-0080000000e1">
  219. <script type="text/javascript">
  220. function SelectOption(option) {
  221. var i = document.getElementById('optionSelection');
  222. i.value = option;
  223. document.forms['options'].submit();
  224. return false;
  225. }
  226. </script>
  227. <input id="optionSelection" type="hidden" name="AuthMethod" />
  228. <div id='authOptionLinks' class='groupMargin'></div>
  229. </form>
  230. </div>
  231.  
  232. <div id="introduction" class="groupMargin">
  233.  
  234. </div>
  235.  
  236. <script type="text/javascript">
  237. //<![CDATA[
  238.  
  239. function Login() {
  240. }
  241.  
  242. Login.userNameInput = 'userNameInput';
  243. Login.passwordInput = 'passwordInput';
  244.  
  245. Login.initialize = function () {
  246.  
  247. var u = new InputUtil();
  248.  
  249. u.checkError();
  250. u.setInitialFocus(Login.userNameInput);
  251. u.setInitialFocus(Login.passwordInput);
  252. }();
  253.  
  254. Login.submitLoginRequest = function () {
  255. var u = new InputUtil();
  256. var e = new LoginErrors();
  257.  
  258. var userName = document.getElementById(Login.userNameInput);
  259. var password = document.getElementById(Login.passwordInput);
  260.  
  261. if (!userName.value || !userName.value.match('[@\\\\]')) {
  262. u.setError(userName, e.userNameFormatError);
  263. return false;
  264. }
  265.  
  266. if (!password.value) {
  267. u.setError(password, e.passwordEmpty);
  268. return false;
  269. }
  270.  
  271. if (password.value.length > maxPasswordLength) {
  272. u.setError(password, e.passwordTooLong);
  273. return false;
  274. }
  275.  
  276. document.forms['loginForm'].submit();
  277. return false;
  278. };
  279.  
  280. InputUtil.makePlaceholder(Login.userNameInput);
  281. InputUtil.makePlaceholder(Login.passwordInput);
  282. //]]>
  283. </script>
  284. </div>
  285.  
  286. </div>
  287.  
  288. </div>
  289. <div id="footerPlaceholder"></div>
  290. </div>
  291. <div id="footer">
  292. <div id="footerLinks" class="floatReverse">
  293. <div><span id="copyright">&#169; Корпорация Майкрософт (Microsoft Corporation), 2016</span></div>
  294. </div>
  295. </div>
  296. </div>
  297. </div>
  298. <script type='text/javascript'>
  299. //<![CDATA[
  300. // Copyright (c) Microsoft Corporation. All rights reserved.
  301.  
  302. // This file contains several workarounds on inconsistent browser behaviors that administrators may customize.
  303. "use strict";
  304.  
  305. // iPhone email friendly keyboard does not include "\" key, use regular keyboard instead.
  306. // Note change input type does not work on all versions of all browsers.
  307. if (navigator.userAgent.match(/iPhone/i) != null) {
  308. var emails = document.querySelectorAll("input[type='email']");
  309. if (emails) {
  310. for (var i = 0; i < emails.length; i++) {
  311. emails[i].type = 'text';
  312. }
  313. }
  314. }
  315.  
  316. // In the CSS file we set the ms-viewport to be consistent with the device dimensions,
  317. // which is necessary for correct functionality of immersive IE.
  318. // However, for Windows 8 phone we need to reset the ms-viewport's dimension to its original
  319. // values (auto), otherwise the viewport dimensions will be wrong for Windows 8 phone.
  320. // Windows 8 phone has agent string 'IEMobile 10.0'
  321. if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
  322. var msViewportStyle = document.createElement("style");
  323. msViewportStyle.appendChild(
  324. document.createTextNode(
  325. "@-ms-viewport{width:auto!important}"
  326. )
  327. );
  328. msViewportStyle.appendChild(
  329. document.createTextNode(
  330. "@-ms-viewport{height:auto!important}"
  331. )
  332. );
  333. document.getElementsByTagName("head")[0].appendChild(msViewportStyle);
  334. }
  335.  
  336. // If the innerWidth is defined, use it as the viewport width.
  337. if (window.innerWidth && window.outerWidth && window.innerWidth !== window.outerWidth) {
  338. var viewport = document.querySelector("meta[name=viewport]");
  339. viewport.setAttribute('content', 'width=' + window.innerWidth + ', initial-scale=1.0, user-scalable=1');
  340. }
  341.  
  342. // Gets the current style of a specific property for a specific element.
  343. function getStyle(element, styleProp) {
  344. var propStyle = null;
  345.  
  346. if (element && element.currentStyle) {
  347. propStyle = element.currentStyle[styleProp];
  348. }
  349. else if (element && window.getComputedStyle) {
  350. propStyle = document.defaultView.getComputedStyle(element, null).getPropertyValue(styleProp);
  351. }
  352.  
  353. return propStyle;
  354. }
  355.  
  356. // The script below is used for downloading the illustration image
  357. // only when the branding is displaying. This script work together
  358. // with the code in PageBase.cs that sets the html inline style
  359. // containing the class 'illustrationClass' with the background image.
  360. var computeLoadIllustration = function () {
  361. var branding = document.getElementById("branding");
  362. var brandingDisplay = getStyle(branding, "display");
  363. var brandingWrapperDisplay = getStyle(document.getElementById("brandingWrapper"), "display");
  364.  
  365. if (brandingDisplay && brandingDisplay !== "none" &&
  366. brandingWrapperDisplay && brandingWrapperDisplay !== "none") {
  367. var newClass = "illustrationClass";
  368.  
  369. if (branding.classList && branding.classList.add) {
  370. branding.classList.add(newClass);
  371. } else if (branding.className !== undefined) {
  372. branding.className += " " + newClass;
  373. }
  374. if (window.removeEventListener) {
  375. window.removeEventListener('load', computeLoadIllustration, false);
  376. window.removeEventListener('resize', computeLoadIllustration, false);
  377. }
  378. else if (window.detachEvent) {
  379. window.detachEvent('onload', computeLoadIllustration);
  380. window.detachEvent('onresize', computeLoadIllustration);
  381. }
  382. }
  383. };
  384.  
  385. if (window.addEventListener) {
  386. window.addEventListener('resize', computeLoadIllustration, false);
  387. window.addEventListener('load', computeLoadIllustration, false);
  388. }
  389. else if (window.attachEvent) {
  390. window.attachEvent('onresize', computeLoadIllustration);
  391. window.attachEvent('onload', computeLoadIllustration);
  392. }
  393.  
  394. // Function to change illustration image. Usage example below.
  395. function SetIllustrationImage(imageUri) {
  396. var illustrationImageClass = '.illustrationClass {background-image:url(' + imageUri + ');}';
  397.  
  398. var css = document.createElement('style');
  399. css.type = 'text/css';
  400.  
  401. if (css.styleSheet) css.styleSheet.cssText = illustrationImageClass;
  402. else css.appendChild(document.createTextNode(illustrationImageClass));
  403.  
  404. document.getElementsByTagName("head")[0].appendChild(css);
  405. }
  406.  
  407. // Example to change illustration image on HRD page after adding the image to active theme:
  408. // PSH> Set-AdfsWebTheme -TargetName <activeTheme> -AdditionalFileResource @{uri='/adfs/portal/images/hrd.jpg';path='.\hrd.jpg'}
  409. //
  410. //if (typeof HRD != 'undefined') {
  411. // SetIllustrationImage('/adfs/portal/images/hrd.jpg');
  412. //}
  413. //]]>
  414. </script>
  415.  
  416.  
  417. </body>
  418. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement