• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/wizard.php
  • Класс: CWizardBase
  • Вызов: CWizardBase::_DisplayStep
function _DisplayStep()
{
	$oStep = $this->GetCurrentStep();
	$oStep->ShowStep();

	$formStart = '
'; $formStart .= ''; $formStart .= $this->__DisplayHiddenVars($this->GetVars(), $oStep); /* if ($oStep->prevStepID !== null) $strResult .= ' '; if ($oStep->nextStepID !== null) $strResult .= ' '; if ($oStep->finishStepID !== null) $strResult .= ' '; if ($oStep->cancelStepID !== null) $strResult .= '   '; */ $formEnd = "
"; $stepLayout = $this->__GetStepLayout(); $stepLayout = $stepLayout->GetLayout(); $buttonsHtml = ""; $prevButtonHtml = ""; if ($oStep->prevStepID !== null) { $formStart .= ''; $prevButtonHtml = ''; $buttonsHtml .= $prevButtonHtml; } $nextButtonHtml = ""; if ($oStep->nextStepID !== null) { $formStart .= ''; $nextButtonHtml = ''; $buttonsHtml .= ($buttonsHtml <> '' ? " " : "").$nextButtonHtml; } $finishButtonHtml = ""; if ($oStep->finishStepID !== null) { $formStart .= ''; $finishButtonHtml = ''; $buttonsHtml .= ($buttonsHtml <> '' ? " " : "").$finishButtonHtml; } $cancelButtonHtml = ""; if ($oStep->cancelStepID !== null) { $formStart .= ''; $cancelButtonHtml = ''; $buttonsHtml .= ($buttonsHtml <> '' ? "   " : "").$cancelButtonHtml; } $output = str_replace("{#FORM_START#}", $formStart, $stepLayout); $output = str_replace("{#FORM_END#}", $formEnd, $output); $output = str_replace("{#CONTENT#}", $oStep->content, $output); //$output = str_replace("{#BUTTONS#}", $this->__DisplayButtons(), $output); $output = str_replace("{#BUTTONS#}", $buttonsHtml, $output); $output = str_replace("{#BUTTON_PREVIOUS#}", $prevButtonHtml, $output); $output = str_replace("{#BUTTON_NEXT#}", $nextButtonHtml, $output); $output = str_replace("{#BUTTON_CANCEL#}", $finishButtonHtml, $output); $output = str_replace("{#BUTTON_FINISH#}", $cancelButtonHtml, $output); if ($this->returnOutput) return $output; else echo $output; }