/** * Выводит детальную страницу * @internal */ public function show() { $this->fillMenu(); $context = new \CAdminContextMenu($this->menu); $context->Show(); $this->tabControl->BeginPrologContent(); $this->showMessages(); $this->showProlog(); $this->tabControl->EndPrologContent(); $this->tabControl->BeginEpilogContent(); $this->showEpilog(); $this->tabControl->EndEpilogContent(); $query = $this->additionalUrlParams; if (isset($_REQUEST[$this->pk()])) { $query[$this->pk()] = $_REQUEST[$this->pk()]; } $this->tabControl->Begin(array('FORM_ACTION' => static::getEditPageURL($query))); foreach ($this->tabs as $tabSettings) { if ($tabSettings['VISIBLE']) { $this->showTabElements($tabSettings); } } $this->showEditPageButtons(); $this->tabControl->ShowWarnings('editform', array()); //TODO: дописать $this->tabControl->Show(); }
/** * {@inheritdoc} */ public function show() { if (!$this->hasReadRights()) { $this->addErrors(Loc::getMessage('DIGITALWAND_ADMIN_HELPER_ACCESS_FORBIDDEN')); $this->showMessages(); return false; } $context = new \CAdminContextMenu($this->getMenu()); $context->Show(); $this->tabControl->BeginPrologContent(); $this->showMessages(); $this->showProlog(); $this->tabControl->EndPrologContent(); $this->tabControl->BeginEpilogContent(); $this->showEpilog(); $this->tabControl->EndEpilogContent(); $query = $this->additionalUrlParams; if (isset($_REQUEST[$this->pk()])) { $query[$this->pk()] = $_REQUEST[$this->pk()]; } elseif (isset($_REQUEST['SECTION_ID']) && $_REQUEST['SECTION_ID']) { $model = $this->getModel(); $this->data[$model::getSectionField()] = $_REQUEST['SECTION_ID']; } $this->tabControl->Begin(array('FORM_ACTION' => static::getUrl($query))); foreach ($this->tabs as $tabSettings) { if ($tabSettings['VISIBLE']) { $this->showTabElements($tabSettings); } } $this->showEditPageButtons(); $this->tabControl->ShowWarnings('editform', array()); //TODO: дописать $this->tabControl->Show(); }
break; } } } else { oBXEditorUtils.appendButton("insert_media", pMediaButton, "standart"); } </script> <?php } AddEventHandler("fileman", "OnIncludeHTMLEditorScript", "CustomizeEditor"); ?> <?php $tabControl->BeginEpilogContent(); ?> <?php echo bitrix_sessid_post(); ?> <?php echo GetFilterHiddens("filter_"); ?> <input type="hidden" name="Update" value="Y"> <input type="hidden" name="from" value="<?php echo htmlspecialcharsbx($from); ?> "> <input type="hidden" name="return_url" value="<?php echo htmlspecialcharsbx($return_url); ?>