/** * Выводит детальную страницу * @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(); }
?> "> <input type="hidden" name="return_url" value="<?php echo htmlspecialcharsbx($return_url); ?> "> <input type="hidden" name="ID" value="<?php echo $ID; ?> "> <input type="hidden" name="LESSON_PATH" value="<?php echo htmlspecialcharsbx(urldecode($uriLessonPath)); ?> "> <?php $tabControl->EndEpilogContent(); $tabControl->Begin(); $tabControl->BeginNextFormTab(); ?> <!-- ID --> <?php $tabControl->BeginCustomField("ID", "ID", false); ?> <?php if ($ID > 0) { ?> <tr> <td><?php echo $tabControl->GetCustomLabelHTML(); ?> :</td>