1450 CUtil::InitJSCore(
array(
"ajax"));
1464 $ajaxScripts =
$GLOBALS[
"APPLICATION"]->GetHeadStrings();
1465 $ajaxScripts .=
$GLOBALS[
"APPLICATION"]->GetHeadScripts();
1467 $obStep =
$wizard->GetCurrentStep();
1468 $arErrors = $obStep->GetErrors();
1470 if (!empty($arErrors))
1472 foreach ($arErrors as $arError)
1476 if ($arError[1] !==
false)
1477 $strJsError .= ($strJsError <>
""?
", ":
"").
"{'name':'".CUtil::addslashes(
$wizard->GetRealName($arError[1])).
"', 'title':'".CUtil::addslashes(
htmlspecialcharsback($arError[0])).
"'}";
1481 $strError =
'<div id="step_error">'.$strError.
"</div>";
1485 ShowWarnings(['.$strJsError.
']);
1489 $stepTitle = $obStep->GetTitle();
1490 $stepSubTitle = $obStep->GetSubTitle();
1493 if ($obStep->IsAutoSubmit())
1494 $autoSubmit =
'setTimeout("AutoSubmit();", 500);';
1496 $alertText =
GetMessageJS(
"MAIN_WIZARD_WANT_TO_CANCEL");
1497 $loadingText =
GetMessageJS(
"MAIN_WIZARD_WAIT_WINDOW_TEXT");
1499 $package =
$wizard->GetPackage();
1503<html
id=
"bx-admin-prefix">
1507 <meta
http-equiv=
"X-UA-Compatible" content=
"IE=edge">
1508 <meta
http-equiv=
"Content-Type" content=
"text/html; charset={$charset}">
1510 <
style type=
"text/css">
1516 font-family:
"Helvetica Neue",Helvetica,Arial,sans-serif;
1518 table {font-
size:100%;}
1519 form {margin:0; padding:0; }
1523 text-decoration: underline;
1528 border: solid 1px #DCE7ED;
1529 background-
color: #F5F9F9;
1535 border-bottom: 1px solid #DCE7ED;
1537 padding: 6px 30px 9px 9px;
1538 margin-bottom: 12px;
1542 .step-subtitle { font-
size: 13px; }
1554 .step-buttons input:enabled {
1558 .step-buttons input {
1559 -webkit-border-
radius: 4px;
1562 border-
top:1px solid #fff;
1563 -webkit-box-shadow: 0 0 1px rgba(0,0,0,.11), 0 1px 1px rgba(0,0,0,.3), inset 0 1px #fff, inset 0 0 1px rgba(255,255,255,.5);
1564 box-shadow: 0 0 1px rgba(0,0,0,.3), 0 1px 1px rgba(0,0,0,.3), inset 0 1px #fff, inset 0 0 1px rgba(255,255,255,.5);
1565 background-image: -webkit-linear-gradient(bottom, #d7e3e7, #fff)!important;
1566 background-image: -moz-linear-gradient(bottom, #d7e3e7, #fff)!important;
1567 background-image: -ms-linear-gradient(bottom, #d7e3e7, #fff)!important;
1568 background-image: -o-linear-gradient(bottom, #d7e3e7, #fff)!important;
1569 background-image: linear-gradient(bottom, #d7e3e7, #fff)!important;
1572 font-family:
"Helvetica Neue",Helvetica,Arial,sans-serif;
1576 text-shadow:0 1px rgba(255,255,255,0.7);
1577 text-decoration:none;
1579 vertical-
align:middle;
1580 -webkit-font-smoothing: antialiased;
1581 padding: 0 13px 2px;
1585 .step-buttons input:hover {
1586 text-decoration: none;
1587 background:#f3f6f7!important;
1588 background-image: -webkit-linear-gradient(
top, #f8f8f9, #f2f6f8)!important;
1589 background-image: -moz-linear-gradient(
top, #f8f8f9, #f2f6f8)!important;
1590 background-image: -ms-linear-gradient(
top, #f8f8f9, #f2f6f8)!important;
1591 background-image: -o-linear-gradient(
top, #f8f8f9, #f2f6f8)!important;
1592 background-image: linear-gradient(
top, #f8f8f9, #f2f6f8)!important;
1595 .step-buttons input:active {
1596 -webkit-border-
radius: 4px;
1598 background-
color: #b7c4c9!important;
1599 -webkit-box-shadow: inset 0 1px 1px 1px rgba(103,109,123,.78);
1600 box-shadow: inset 0 1px 1px 1px rgba(103,109,123,.78);
1601 background-image: -webkit-linear-gradient(
top, rgba(179,194,200,.96), rgba(202,215,219,.96))!important;
1602 background-image: -moz-linear-gradient(
top, rgba(179,194,200,.96), rgba(202,215,219,.96))!important;
1603 background-image: -ms-linear-gradient(
top, rgba(179,194,200,.96), rgba(202,215,219,.96))!important;
1604 background-image: -o-linear-gradient(
top, rgba(179,194,200,.96), rgba(202,215,219,.96))!important;
1605 background-image: linear-gradient(
top, rgba(179,194,200,.96), rgba(202,215,219,.96))!important;
1606 border-
top:transparent;
1609 padding:2px 13px 1px;
1620 background:#F8F9FC none
repeat scroll 0%;
1624 filter:alpha(opacity=1);
1633 table.wizard-data-table { border:1px solid #B2C4DD; border-
collapse:
collapse;}
1634 table.wizard-data-table td { border:1px solid #B2C4DD; background-
color:#FFFFFF; padding:3px 5px; }
1635 table.wizard-data-table thead td, table.wizard-data-table th {
1636 background-
color:#E4EDF5;
1638 background-image:none;
1639 border:1px solid #B2C4DD;
1642 table.wizard-data-table tbody td { background-
color:#FFF; background-image:none; }
1643 table.wizard-data-table tfoot td { background-
color:#F2F5F9; padding:4px; }
1645 .wizard-note-box { background:#FEFDEA; padding:7px; border:1px solid #D7D6BA; }
1646 .wizard-required {
color:red; }
1648 .bx-session-message {
display: none !important;}
1656 top.BX.message({
"ADMIN_WIZARD_EXIT_ALERT" :
"{$alertText}"});
1660 var dialog =
top.BX.WindowManager.Get();
1662 dialog.SetTitle(
'{$wizardName}');
1664 var form = document.forms[
"{$formName}"];
1667 form.onsubmit = OnFormSubmit;
1669 var cancelButton = document.forms[
"{$formName}"].elements[
"{$cancelButtonID}"];
1670 var nextButton = document.forms[
"{$formName}"].elements[
"{$nextButtonID}"];
1671 var prevButton = document.forms[
"{$formName}"].elements[
"{$prevButtonID}"];
1672 var finishButton = document.forms[
"{$formName}"].elements[
"{$finishButtonID}"];
1674 if (cancelButton && !nextButton && !prevButton && !finishButton)
1676 top.WizardWindow.isClosed =
true;
1677 cancelButton.onclick = CloseWindow;
1679 else if(cancelButton)
1681 cancelButton.onclick = ConfirmCancel;
1687 function OnFormSubmit()
1689 var div = document.body.appendChild(document.createElement(
"DIV"));
1690 div.id =
"hidden-layer";
1693 function AutoSubmit()
1695 var nextButton = document.forms[
"{$formName}"].elements[
"{$nextButtonID}"];
1698 var wizard =
top.WizardWindow;
1701 wizard.messLoading =
"{$loadingText}";
1702 wizard.ShowWaitWindow();
1706 nextButton.disabled=
true;
1710 function ConfirmCancel()
1712 return (confirm(
"{$alertText}"));
1715 function ShowWarnings(warnings)
1717 var form = document.forms[
"{$formName}"];
1721 for(var i in warnings)
1723 var e = form.elements[warnings[i][
"name"]];
1727 var type = (e.type? e.type.toLowerCase():
"");
1728 var bBefore =
false;
1729 if(e.length > 1 && type !=
"select-one" && type !=
"select-multiple")
1734 if(type ==
"textarea" || type ==
"select-multiple")
1737 var td = e.parentNode;
1741 img = td.insertBefore(
new Image(), e);
1742 td.insertBefore(document.createElement(
"BR"), e);
1746 img = td.insertBefore(
new Image(), e.nextSibling);
1749 img.style.verticalAlign =
"bottom";
1751 img.src =
"/bitrix/themes/"+phpVars.ADMIN_THEME_ID+
"/images/icon_warn.gif";
1752 img.title = warnings[i][
"title"];
1756 document.onkeydown = EnterKeyPress;
1758 function EnterKeyPress(event)
1761 event =
event || window.event;
1766 var key = (
event.keyCode ?
event.keyCode : (
event.which ?
event.which :
null) );
1771 if (key == 13 || key == 39)
1773 var nextButton = document.forms[
"{$formName}"].elements[
"{$nextButtonID}"];
1779 var prevButton = document.forms[
"{$formName}"].elements[
"{$prevButtonID}"];
1785 function CloseWindow()
1787 if (
self.parent.window.WizardWindow)
1788 self.parent.window.WizardWindow.Close();
1795 <body onload=
"OnLoad();">
1798 <div
class=
"step-content">
1799 <div
class=
"step-header">
1800 <div
class=
"step-title">{$stepTitle}</div>
1801 <div
class=
"step-subtitle">{$stepSubTitle}</div>
1803 <div
class=
"step-body">
1809 <div
class=
"step-buttons">{#BUTTONS#}</div>