class CPackageWelcome extends CWizardStep { var $package; public function __construct($package) { $this->package = $package; parent::__construct(); } function InitStep() { $package = $this->package; $this->SetTitle(GetMessage("MAIN_WIZARD_WELCOME_TITLE")); } function OnPostForm() { } function ShowStep() { $package = $this->package; if ($this->content == '') $this->content = GetMessage("MAIN_WIZARD_WELCOME_TEXT"); } } class CPackageLicense extends CWizardStep { var $package; public function __construct($package) { $this->package = $package; parent::__construct(); } function InitStep() { $package = $this->package; $this->SetTitle(GetMessage("MAIN_WIZARD_LICENSE_STEP_TITLE")); $this->SetSubTitle(GetMessage("MAIN_WIZARD_LICENSE_STEP_SUBTITLE")); $this->SetCancelStep(BX_WIZARD_CANCEL_ID); } function OnPostForm() { $wizard = $this->GetWizard(); $package = $this->package; if ($wizard->IsPrevButtonClick()) return; $agree = $wizard->GetVar("__agree_license"); if ($agree != "Y") $this->SetError(GetMessage("MAIN_WIZARD_LICENSE_STEP_ERROR")); } function ShowStep() { $wizard = $this->GetWizard(); $package = $this->package; if ($this->content == '') $this->content .= GetMessage("MAIN_WIZARD_LICENSE_STEP_CONTENT"); $licensePath = $package->__GetLicensePath(); $this->content .= '
'; $this->content .= $this->ShowCheckboxField("__agree_license", "Y", Array("id" => "agree_license_id")); $this->content .= ''; } } class CPackageSelectSite extends CWizardStep { var $package; public function __construct($package) { $this->package = $package; parent::__construct(); } function InitStep() { $this->SetTitle(GetMessage("MAIN_WIZARD_SELECT_SITE_TITLE")); $this->SetSubTitle(GetMessage("MAIN_WIZARD_SELECT_SITE_DESC")); $this->SetCancelStep(BX_WIZARD_CANCEL_ID); } function OnPostForm() { $wizard = $this->GetWizard(); $package = $this->package; if ($wizard->IsNextButtonClick()) { $siteID = $package->siteID; if ($siteID != "" && array_key_exists($siteID, $package->arSites)) { if ($package->_InitSubStep("select", $package->arSites[$siteID], false)) { $wizard->SetCurrentStep($package->__obFirstStep->GetStepID()); $package->__obFirstStep->SetPrevStep(BX_WIZARD_SELECT_SITE_ID); } else { if ($package->groupExists && $package->templateExists) $wizard->SetCurrentStep(BX_WIZARD_SELECT_GROUP_ID); elseif ($package->templateExists) $wizard->SetCurrentStep(BX_WIZARD_SELECT_TEMPLATE_ID); elseif ($package->serviceExists) $wizard->SetCurrentStep(BX_WIZARD_SELECT_SERVICE_ID); elseif ($package->structureExists) $wizard->SetCurrentStep(BX_WIZARD_SELECT_STRUCTURE_ID); else $wizard->SetCurrentStep(BX_WIZARD_START_INSTALL_ID); } } else $this->SetError(GetMessage("MAIN_WIZARD_ERROR_WRONG_SITE"), "__siteID"); } } function ShowStep() { $wizard = $this->GetWizard(); $package = $this->package; $this->content .= ''.$this->ShowRadioField("__siteID", $siteID, Array("id" => $siteID)).' | '; $this->content .= '';
if (isset($arSite["SCREENSHOT"]) && isset($arSite["PREVIEW"]))
$this->content .= CFile::Show2Images($package->path."/".$arSite["PREVIEW"], $package->path."/".$arSite["SCREENSHOT"], 150, 150, ' border="0"')." "; elseif (isset($arSite["SCREENSHOT"])) $this->content .= CFile::ShowImage($package->path."/".$arSite["SCREENSHOT"], 150, 150, ' border="0"', "", true)." "; $this->content .=' | ';
$this->content .= '';
$this->content .= '';
if (isset($arSite["DESCRIPTION"]) && $arSite["DESCRIPTION"] <> '')
$this->content .= ' '; $this->content .=' | ';
$this->content .= '
';
if (isset($arGroup["SCREENSHOT"]) && isset($arGroup["PREVIEW"]))
$this->content .= CFile::Show2Images($package->path."/".$arGroup["PREVIEW"], $package->path."/".$arGroup["SCREENSHOT"], 150, 150, ' border="0"')." "; elseif (isset($arGroup["SCREENSHOT"])) $this->content .= CFile::ShowImage($package->path."/".$arGroup["SCREENSHOT"], 150, 150, ' border="0"', "", true)." "; $this->content .= '
| ";
//Close table cells
if (!($counter % $colsNumber) && $cellSize != $counter)
$this->content .= "||
"; } $counter++; } $this->content .= " |
';
if ($arTemplate["SCREENSHOT"] && $arTemplate["PREVIEW"])
$this->content .= CFile::Show2Images($arTemplate["PREVIEW"], $arTemplate["SCREENSHOT"], 150, 150, ' border="0"')." "; else $this->content .= CFile::ShowImage($arTemplate["SCREENSHOT"], 150, 150, ' border="0"', "", true)." "; $this->content .= '
".$arTemplate["DESCRIPTION"] : "").''; $this->content .= " | ";
//Close table cells
if (!($counter % $colsNumber) && $cellSize != $counter)
$this->content .= "||
"; } $counter++; } $this->content .= " |
'.$this->ShowRadioField("__serviceID[".$group."]", $serviceID, Array("id" => $serviceID)).' | '; $this->content .= ''; if (isset($arService["ICON"]) && $arService["ICON"] <> '') $this->content .= ''; $this->content .= ' | '; $this->content .= '';
$this->content .= ' '; if (isset($arService["DESCRIPTION"]) && $arService["DESCRIPTION"] <> '') $this->content .= ''; $this->content .= ' | ';
$this->content .= '
'; $this->content .= ' | ';
if (isset($arService["ICON"]) && $arService["ICON"] <> '')
$this->content .= ' | ';
$this->content .= '';
$this->content .= " ".$arService["NAME"].' '; if (isset($arService["DESCRIPTION"]) && $arService["DESCRIPTION"] <> '') $this->content .= ' '.$arService["DESCRIPTION"].' ';
$this->content .= $this->ShowHiddenField("__serviceID[]", $serviceID);
$this->content .= ' | ';
$this->content .= '
'.$this->ShowCheckboxField("__serviceID[]", $serviceID, Array("id" => $serviceID)).' | '; $this->content .= ''; if (isset($arService["ICON"]) && $arService["ICON"] <> '') $this->content .= ''; $this->content .= ' | '; $this->content .= '';
$this->content .= ' '; if (isset($arService["DESCRIPTION"]) && $arService["DESCRIPTION"] <> '') $this->content .= ''; $this->content .= ' | ';
$this->content .= '
{$langStandartPages} | {$langSiteStructure} | {$langPagePosition} | |
---|---|---|---|
|
|
|
|