本文整理汇总了PHP中CAdminForm::BeginPrologContent方法的典型用法代码示例。如果您正苦于以下问题:PHP CAdminForm::BeginPrologContent方法的具体用法?PHP CAdminForm::BeginPrologContent怎么用?PHP CAdminForm::BeginPrologContent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAdminForm
的用法示例。
在下文中一共展示了CAdminForm::BeginPrologContent方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: show
/**
* Выводит детальную страницу
* @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();
}
示例2: 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();
}
示例3: bitrix_sessid_post
$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