/**
  * Выводит детальную страницу
  * @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();
 }
Exemple #3
0
    $select = array('*', 'CREATED', 'MODIFIED');
    $filter = array('ID' => $id);
    $fields = $USER_FIELD_MANAGER->GetUserFields(CompanyTable::getUfId());
    foreach ($fields as $field) {
        $select[] = $field['FIELD_NAME'];
    }
    $params = array('select' => $select, 'filter' => $filter);
    $res = CompanyTable::getList($params);
    $company = $res->fetch();
}
if (!empty($errorMessage)) {
    CAdminMessage::ShowMessage($errorMessage);
}
$aTabs = array(array("DIV" => "edit1", "TAB" => GetMessage("COMPANY_TAB"), "ICON" => "catalog", "TITLE" => GetMessage("COMPANY_TAB_DESCR")));
$tabControl = new CAdminForm("company_edit", $aTabs);
$tabControl->BeginPrologContent();
echo $USER_FIELD_MANAGER->ShowScript();
$tabControl->EndPrologContent();
$tabControl->BeginEpilogContent();
echo bitrix_sessid_post();
?>
<input type="hidden" name="update" value="Y">
<input type="hidden" name="lang" value="<?php 
echo $lang;
?>
">
<input type="hidden" name="ID" value="<?php 
echo $id;
?>
">
<?php