本文整理汇总了PHP中CAdminForm类的典型用法代码示例。如果您正苦于以下问题:PHP CAdminForm类的具体用法?PHP CAdminForm怎么用?PHP CAdminForm使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CAdminForm类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
if (!$r->ExtractFields("str_")) {
$bBadResult = true;
}
}
if ($bBadResult) {
$APPLICATION->SetTitle(GetMessage("LEARNING_ADMIN_TITLE"));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
$aContext = array(array("ICON" => "btn_list", "TEXT" => GetMessage("LEARNING_BACK_TO_ADMIN"), "LINK" => "learn_unilesson_admin.php?lang=" . LANG, "TITLE" => GetMessage("LEARNING_BACK_TO_ADMIN")));
$context = new CAdminContextMenu($aContext);
$context->Show();
CAdminMessage::ShowMessage(GetMessage("LEARNING_BAD_ATTEMPT_ID_EX"));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
die;
}
$aTabs = array(array("DIV" => "edit1", "TAB" => GetMessage("LEARNING_ADMIN_TAB1"), "ICON" => "main_user_edit", "TITLE" => GetMessage("LEARNING_ADMIN_TAB1_EX")));
$tabControl = new CAdminForm("testResultTabControl", $aTabs);
if ($_SERVER["REQUEST_METHOD"] == "POST" && strlen($Update) > 0 && check_bitrix_sessid()) {
if ($ANSWERED != "Y") {
$ANSWERED = "N";
$RESPONSE = "";
$POINT = 0;
} elseif ($CORRECT != "Y") {
$CORRECT = "N";
$POINT = 0;
}
$arFields = array("ANSWERED" => $ANSWERED, "CORRECT" => $CORRECT, "RESPONSE" => $RESPONSE, "POINT" => $POINT);
$DB->StartTransaction();
$tr = new CTestResult();
$res = $tr->Update($ID, $arFields);
if (!$res) {
$DB->Rollback();
示例2: GetMessage
die();
}
}
if (!isset($str_CURRENCY) OR $str_CURRENCY == "")
$str_CURRENCY = CSaleLang::GetLangCurrency($LID);
if (isset($ID) && $ID > 0)
$title = GetMessage("SOEN_TAB_ORDER_TITLE");
else
$title = GetMessage("SOEN_TAB_ORDER_NEW_TITLE");
$aTabs = array(
array("DIV" => "edit1", "TAB" => GetMessage("SOEN_TAB_ORDER"), "ICON" => "sale", "TITLE" => $title),
);
$tabControl = new CAdminForm("order_edit_info", $aTabs, false, true);
$tabControl->SetShowSettings(false);
if (isset($ID) && $ID > 0)
$APPLICATION->SetTitle(str_replace("#ID#", $ID, GetMessage("NEWO_TITLE_EDIT")));
elseif (isset($LID) && $LID != "")
{
$siteName = $LID;
$dbSite = CSite::GetByID($LID);
if($arSite = $dbSite->Fetch())
$siteName = $arSite["NAME"]." (".$LID.")";
$APPLICATION->SetTitle(str_replace("#LID#", $siteName, GetMessage("NEWO_TITLE_ADD")));
}
else
$APPLICATION->SetTitle(GetMessage("NEWO_TITLE_DEFAULT"));
示例3: htmlspecialcharsbx
$row->AddField("DATA", htmlspecialcharsbx($arRecord["INFO"]));
$arOperations[$arChangeRecord["TYPE"]] = $arRecord["NAME"];
}
if($_REQUEST["table_id"]==$sTableID_tab5)
$lAdmin_tab5->CheckListMode();
//end get history order list
$aTabs = array();
$aTabs[] = array("DIV" => "edit1", "TAB" => GetMessage("SODN_TAB_ORDER"), "TITLE" => GetMessage("SODN_TAB_ORDER_DESCR"), "ICON" => "sale");
$aTabs[] = array("DIV" => "edit3", "TAB" => GetMessage("SODN_TAB_TRANSACT"), "TITLE" => GetMessage("SODN_TAB_TRANSACT_DESCR"), "ICON" => "sale");
$aTabs[] = array("DIV" => "edit4", "TAB" => GetMessage("SODN_TAB_HISTORY"), "TITLE" => GetMessage("SODN_TAB_HISTORY_DESCR"), "ICON" => "sale");
$tabControl = new CAdminForm("order_view_info", $aTabs, true, true);
$tabControl->SetShowSettings(false);
$tabControl->AddTabs($customTabber);
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php");
$aMenu = array(
array(
"TEXT" => GetMessage("SOD_TO_LIST"),
"LINK" => "/bitrix/admin/sale_order_detail.php?ID=".$ID."&dontsave=Y&lang=".LANGUAGE_ID.GetFilterParams("filter_"),
"ICON"=>"btn_list",
)
);
if ($boolLocked && $saleModulePermissions >= 'W')
示例4: require_once
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); // первый общий пролог
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/subscribe/include.php"); // инициализация модуля
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/subscribe/prolog.php"); // пролог модуля
//CModule::IncludeModule("softbalance.callback");
\Bitrix\Main\Loader::includeModule("softbalance.callback");
// подключим языковой файл
IncludeModuleLangFile(__FILE__);
// сформируем список закладок
$aTabs = array(
array("DIV" => "edit1", "TAB" => GetMessage("TAB_NAME"), "ICON"=>"main_user_edit", "TITLE"=>GetMessage("TAB_NAME_TITLE"))
);
$tabControl = new CAdminForm("table_calls", $aTabs);
$ID = intval($_REQUEST["ID"]); // идентификатор редактируемой записи
$message = null; // сообщение об ошибке
$bVarsFromForm = false; // флаг "Данные получены с формы", обозначающий, что выводимые данные получены с формы, а не из БД.
// ******************************************************************** //
// ОБРАБОТКА ИЗМЕНЕНИЙ ФОРМЫ //
// ******************************************************************** //
//echo "<pre>";print_r($_REQUEST);echo "</pre>";
if($REQUEST_METHOD == "POST" && ($_REQUEST["save"]!="" || $_REQUEST["apply"]!="") && check_bitrix_sessid())
{
if($ID > 0)
{
示例5: IncludeModuleLangFile
ShowError($strError);
require($_SERVER['DOCUMENT_ROOT']."/bitrix/modules/main/include/epilog_admin.php");
die();
}
IncludeModuleLangFile(__FILE__);
if (!empty($return_url) && strtolower(substr($return_url, strlen($APPLICATION->GetCurPage())))==strtolower($APPLICATION->GetCurPage()))
$return_url = "";
$aTabs = array(
array("DIV" => "edit1", "TAB" => GetMessage("CDEN_TAB_DISCOUNT"), "ICON" => "catalog", "TITLE" => GetMessage("CDEN_TAB_DISCOUNT_DESCR")),
);
$tabControl = new CAdminForm("tabControl", $aTabs);
$tabControl->SetShowSettings(false);
$errorMessage = '';
$bVarsFromForm = false;
$ID = 0;
if (isset($_REQUEST['ID']))
$ID = (int)$_REQUEST['ID'];
if (!$bReadOnly && $_SERVER['REQUEST_METHOD']=="POST" && strlen($Update)>0 && check_bitrix_sessid())
{
$DB->StartTransaction();
$arFields = array(
"ACTIVE" => (isset($_POST['ACTIVE']) && 'Y' == $_POST['ACTIVE'] ? 'Y' : 'N'),
示例6: GetMessage
echo "<div style=\"margin:10px auto;text-align:center;\">";
echo GetMessage("NEWO_NO_SITE_SELECT");
echo "<div>";
die;
}
}
if (!isset($str_CURRENCY) or $str_CURRENCY == "") {
$str_CURRENCY = CSaleLang::GetLangCurrency($LID);
}
if (isset($ID) && $ID > 0) {
$title = GetMessage("SOEN_TAB_ORDER_TITLE");
} else {
$title = GetMessage("SOEN_TAB_ORDER_NEW_TITLE");
}
$aTabs = array(array("DIV" => "edit1", "TAB" => GetMessage("SOEN_TAB_ORDER"), "ICON" => "sale", "TITLE" => $title));
$tabControl = new CAdminForm("form_order_buyers", $aTabs, false, true);
if (isset($ID) && $ID > 0) {
$APPLICATION->SetTitle(str_replace("#ID#", $ID, GetMessage("NEWO_TITLE_EDIT")));
} elseif (isset($LID) && $LID != "") {
$siteName = $LID;
$dbSite = CSite::GetByID($LID);
if ($arSite = $dbSite->Fetch()) {
$siteName = $arSite["NAME"] . " (" . $LID . ")";
}
$APPLICATION->SetTitle(str_replace("#LID#", $siteName, GetMessage("NEWO_TITLE_ADD")));
} else {
$APPLICATION->SetTitle(GetMessage("NEWO_TITLE_DEFAULT"));
}
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
$aMenu = array();
$aMenu = array(array("ICON" => "btn_list", "TEXT" => GetMessage("SOE_TO_LIST"), "LINK" => "/bitrix/admin/sale_order.php?lang=" . LANGUAGE_ID));
示例7: CAdminForm
}
}
//--------------------------------------------------------------------------
/** @var $localization \WS\Migrations\Localization */
$localization;
/** @var $APPLICATION CMain */
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
?>
<form method="POST" action="<?php
echo $APPLICATION->GetCurUri();
?>
" ENCTYPE="multipart/form-data" name="apply"><?
$form = new CAdminForm('ws_maigrations_main', array(
array(
"DIV" => "edit1",
"TAB" => $localization->getDataByPath('title'),
"ICON" => "iblock",
"TITLE" => $localization->getDataByPath('title'),
) ,
));
$form->Begin(array(
'FORM_ACTION' => $APPLICATION->GetCurUri()
));
$form->BeginNextFormTab();
$form->BeginCustomField('version', 'vv');
?><tr>
<td width="30%"><?php
echo $localization->getDataByPath('version');
?>
:</td>
<td width="60%"><b><?php
示例8: array_unique
$arMembers = array_unique($arMembers);
}
}
if ($bBadResult) {
$APPLICATION->SetTitle(GetMessage("LEARNING_ADMIN_TITLE"));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
$aContext = array(array("ICON" => "btn_list", "TEXT" => GetMessage("LEARNING_BACK_TO_LEARNING_GROUPS"), "LINK" => "learn_group_admin.php?lang=" . LANG, "TITLE" => GetMessage("LEARNING_BACK_TO_LEARNING_GROUPS")));
$context = new CAdminContextMenu($aContext);
$context->Show();
CAdminMessage::ShowMessage(GetMessage("LEARNING_BAD_LEARNING_GROUP_ID_EX"));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
die;
}
$aTabs = array(array("DIV" => "edit1", "TAB" => GetMessage("LEARNING_ADMIN_TAB1"), "ICON" => "main_user_edit", "TITLE" => GetMessage("LEARNING_ADMIN_TAB1_EX")));
$aTabs[] = $USER_FIELD_MANAGER->EditFormTab('LEARNING_LGROUPS');
$tabControl = new CAdminForm("learningGroupResultTabControl", $aTabs);
if ($_SERVER["REQUEST_METHOD"] == "POST" && strlen($Update) > 0 && check_bitrix_sessid()) {
if ($ACTIVE !== 'Y') {
$ACTIVE = 'N';
}
$COURSE_LESSON_ID = (int) $COURSE_LESSON_ID;
$str_COURSE_LESSON_ID = (int) $COURSE_LESSON_ID;
$arFields = array("TITLE" => $TITLE, "ACTIVE" => $ACTIVE, "CODE" => $CODE, "SORT" => $SORT, "ACTIVE_FROM" => $ACTIVE_FROM, "ACTIVE_TO" => $ACTIVE_TO, "COURSE_LESSON_ID" => $COURSE_LESSON_ID);
// Process lessons' delays
if ($ID && isset($PERIOD_L) && is_array($PERIOD_L)) {
$arDelays = array();
foreach ($PERIOD_L as $lessonId => $delay) {
$arDelays[(int) $lessonId] = (int) $delay;
}
CLearningGroupLesson::setDelays($ID, $arDelays);
}
示例9: array
die;
}
}
$aTabs = array(array("DIV" => "edit1", "TAB" => GetMessage("LEARNING_ADMIN_TAB1"), "ICON" => "main_user_edit", "TITLE" => GetMessage("LEARNING_ADMIN_TAB1_EX")), array("DIV" => "edit2", "TAB" => GetMessage("LEARNING_ADMIN_TAB3"), "ICON" => "main_user_edit", "TITLE" => GetMessage("LEARNING_ADMIN_TAB3_EX")), array("DIV" => "edit3", "TAB" => GetMessage("LEARNING_ADMIN_TAB4"), "ICON" => "main_user_edit", "TITLE" => GetMessage("LEARNING_ADMIN_TAB4_EX")));
if ($COURSE_ID > 0 && ($linkedLessonId = CCourse::CourseGetLinkedLesson($COURSE_ID))) {
$arOPathes = CLearnLesson::GetListOfParentPathes($linkedLessonId);
$arOPathes_cnt = count($arOPathes);
$tabName = GetMessage("LEARNING_ADMIN_TAB5");
if ($arOPathes_cnt > 1) {
$tabName .= ' (' . $arOPathes_cnt . ')';
}
$aTabs[] = array("DIV" => "edit4", "ICON" => "main_user_edit", "TAB" => $tabName, "TITLE" => GetMessage("LEARNING_ADMIN_TAB5_EX"));
}
$aTabs[] = array("DIV" => "edit5", "ICON" => "main_user_edit", "TAB" => GetMessage("LEARNING_PERMISSIONS"), "TITLE" => GetMessage("LEARNING_PERMISSIONS"));
$aTabs[] = $USER_FIELD_MANAGER->EditFormTab('LEARNING_LESSONS');
$tabControl = new CAdminForm("courseTabControl", $aTabs, true, $bDenyAutosave);
if ($_SERVER["REQUEST_METHOD"] == "POST" && $Perm >= "X" && strlen($_POST["Update"]) > 0 && check_bitrix_sessid()) {
$course = new CCourse();
$arPREVIEW_PICTURE = $_FILES["PREVIEW_PICTURE"];
$arPREVIEW_PICTURE["del"] = $PREVIEW_PICTURE_del;
$arPREVIEW_PICTURE["MODULE_ID"] = "learning";
$arPREVIEW_PICTURE["description"] = $PREVIEW_PICTURE_descr;
$arFields = array("ACTIVE" => $ACTIVE, "NAME" => $NAME, "CODE" => $CODE, "SITE_ID" => $SITE_ID, "GROUP_ID" => $GROUP, "SORT" => $SORT, "DETAIL_TEXT" => $DETAIL_TEXT, "DETAIL_TEXT_TYPE" => $DETAIL_TEXT_TYPE, "PREVIEW_PICTURE" => $arPREVIEW_PICTURE, "PREVIEW_TEXT" => $PREVIEW_TEXT, "PREVIEW_TEXT_TYPE" => $PREVIEW_TEXT_TYPE, "ACTIVE_FROM" => $ACTIVE_FROM, "ACTIVE_TO" => $ACTIVE_TO, "RATING" => $RATING, "RATING_TYPE" => $RATING_TYPE);
$USER_FIELD_MANAGER->EditFormAddFields('LEARNING_LESSONS', $arFields);
$res = false;
if ($COURSE_ID > 0) {
$linkedLessonId = CCourse::CourseGetLinkedLesson($COURSE_ID);
if ($linkedLessonId !== false) {
if ($oAccess->IsLessonAccessible($linkedLessonId, CLearnAccess::OP_LESSON_WRITE)) {
$res = $course->Update($COURSE_ID, $arFields);
}
示例10: array
}
if ($bOffers && !$bPropertyAjax) {
$aTabs[] = array("DIV" => "edit8", "TAB" => GetMessage("IBLOCK_EL_TAB_OFFERS"), "ICON" => "iblock_element", "TITLE" => GetMessage("IBLOCK_EL_TAB_OFFERS_TITLE"));
}
$aTabs[] = array("DIV" => "edit3", "TAB" => GetMessage("IBLOCK_EL_TAB_MO"), "ICON" => "iblock_element", "TITLE" => GetMessage("IBLOCK_EL_TAB_MO_TITLE"));
if ($bTab4) {
$aTabs[] = array("DIV" => "edit4", "TAB" => GetMessage("IBLOCK_EL_TAB_WF"), "ICON" => "iblock_element_wf", "TITLE" => GetMessage("IBLOCK_EL_TAB_WF_TITLE"));
}
if ($bTab7) {
$aTabs[] = array("DIV" => "edit7", "TAB" => GetMessage("IBEL_E_TAB_BIZPROC"), "ICON" => "iblock_element_bizproc", "TITLE" => GetMessage("IBEL_E_TAB_BIZPROC"));
}
if ($bEditRights) {
$aTabs[] = array("DIV" => "edit9", "TAB" => GetMessage("IBEL_E_TAB_RIGHTS"), "ICON" => "iblock_element_rights", "TITLE" => GetMessage("IBEL_E_TAB_RIGHTS_TITLE"));
}
$bCustomForm = strlen($arIBlock["EDIT_FILE_AFTER"]) > 0 && is_file($_SERVER["DOCUMENT_ROOT"] . $arIBlock["EDIT_FILE_AFTER"]) || strlen($arIBTYPE["EDIT_FILE_AFTER"]) > 0 && is_file($_SERVER["DOCUMENT_ROOT"] . $arIBTYPE["EDIT_FILE_AFTER"]);
$tabControl = new CAdminForm($bCustomForm ? "tabControl" : "form_element_" . $IBLOCK_ID, $aTabs);
if ($bCustomForm) {
$tabControl->SetShowSettings(false);
}
if ($ID > 0) {
$rsElement = CIBlockElement::GetList(array(), array("ID" => $ID, "IBLOCK_ID" => $IBLOCK_ID, "SHOW_HISTORY" => "Y"), false, false, array("ID", "CREATED_BY"));
if (!($arElement = $rsElement->Fetch())) {
$error = new _CIBlockError(1, "BAD_ELEMENT", GetMessage("IBLOCK_BAD_ELEMENT"));
$APPLICATION->SetTitle($arIBTYPE["ELEMENT_NAME"] . ": " . GetMessage("IBLOCK_EDIT_TITLE"));
break;
}
}
$customTabber = new CAdminTabEngine("OnAdminIBlockElementEdit", array("ID" => $ID, "IBLOCK" => $arIBlock, "IBLOCK_TYPE" => $arIBTYPE));
// workflow mode
if ($ID > 0 && $WF == "Y") {
// get ID of the last record in workflow
示例11: array
} else {
// load blank form, optionally with parent id filled up
$formData = array();
}
}
} catch (Main\SystemException $e) {
$fatalFailure = true;
$code = $e->getCode();
$fatalFailureMessage = $e->getMessage() . (!empty($code) ? ' (' . $code . ')' : '');
}
#####################################
#### PAGE INTERFACE GENERATION
#####################################
if (!$fatalFailure) {
$topMenu = new CAdminContextMenu(array(array("TEXT" => GetMessage("SALE_LOCATION_E_GO_BACK"), "LINK" => Helper::getListUrl(array('id' => $parentId)), "ICON" => "btn_list")));
$tabControl = new CAdminForm("tabcntrl_type_edit", array(array("DIV" => "main", "TAB" => Loc::getMessage('SALE_LOCATION_E_MAIN_TAB'), "TITLE" => Loc::getMessage('SALE_LOCATION_E_MAIN_TAB_TITLE'))));
$tabControl->BeginPrologContent();
$tabControl->EndPrologContent();
$tabControl->BeginEpilogContent();
?>
<?php
if (strlen($_REQUEST['return_url'])) {
?>
<input type="hidden" name="return_url" value="<?php
echo htmlspecialcharsbx($returnUrl);
?>
">
<?php
}
?>
<?php
示例12: IncludeModuleLangFile
} else {
CAdminMessage::ShowMessage(GetMessage('LEARNING_MODULE_NOT_FOUND'));
}
require $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/epilog_admin.php';
// system's epilog
exit;
}
require_once $_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/learning/prolog.php";
IncludeModuleLangFile(__FILE__);
ClearVars();
$message = null;
$bVarsFromForm = false;
$ID = intval($ID);
$COURSE_ID = intval($COURSE_ID);
$aTabs = array(array("DIV" => "edit1", "TAB" => GetMessage('LEARNING_TEST'), "ICON" => "main_user_edit", "TITLE" => GetMessage('LEARNING_TEST_TITLE')), array("DIV" => "edit2", "TAB" => GetMessage('LEARNING_DESC'), "ICON" => "main_user_edit", "TITLE" => GetMessage('LEARNING_DESC_TITLE')), array("DIV" => "edit3", "TAB" => GetMessage('LEARNING_MARKS'), "ICON" => "main_user_edit", "TITLE" => GetMessage('LEARNING_MARKS_TITLE')));
$tabControl = new CAdminForm("testTabControl", $aTabs);
$isReadAccess = false;
$isCreateOrEditAccess = false;
$isBtnsDisabled = true;
$oAccess = CLearnAccess::GetInstance($USER->GetID());
$linkedLessonId = CCourse::CourseGetLinkedLesson($COURSE_ID);
if ($linkedLessonId !== false) {
if ($oAccess->IsLessonAccessible($linkedLessonId, CLearnAccess::OP_LESSON_READ)) {
$isReadAccess = true;
}
if ($oAccess->IsLessonAccessible($linkedLessonId, CLearnAccess::OP_LESSON_WRITE)) {
$isReadAccess = true;
$isCreateOrEditAccess = true;
$isBtnsDisabled = false;
}
}
示例13: array
$aTabs = array(
array(
"DIV" => "edit1",
"TAB" => GetMessage("CAT_CEDIT_MAIN_TAB"),
"ICON" => "iblock_section",
"TITLE" => GetMessage("CAT_CEDIT_MAIN_TAB_TITLE"),
),
array(
"DIV" => "edit3",
"TAB" => GetMessage("CAT_CEDIT_PROPERTY_TAB"),
"ICON" => "iblock_section",
"TITLE" => GetMessage("CAT_CEDIT_PROPERTY_TAB_TITLE"),
),
);
$tabControl = new CAdminForm("form_catalog_edit_".$IBLOCK_ID, $aTabs);
if($REQUEST_METHOD=="POST" && (strlen($save)>0 || strlen($apply)>0) && check_bitrix_sessid())
{
if($_POST["NAME"] != $arIBlock["NAME"])
{
$ib = new CIBlock;
$res = $ib->Update($IBLOCK_ID, array(
"NAME" => $_POST["NAME"],
));
if(!$res)
{
$strWarning .= $ib->LAST_ERROR."<br>";
$bVarsFromForm = true;
}
示例14: header
header("Pragma: public");
echo $text;
die;
}
/** @var $localization \WS\Migrations\Localization */
$localization;
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
?>
<form method="POST" action="<?php
echo $APPLICATION->GetCurUri();
?>
" ENCTYPE="multipart/form-data" name="apply"><?
$form = new CAdminForm('ws_maigrations_export', array(
array(
"DIV" => "edit1",
"TAB" => $localization->getDataByPath('title'),
"ICON" => "iblock",
"TITLE" => $localization->getDataByPath('title'),
) ,
));
$form->Begin(array(
'FORM_ACTION' => $APPLICATION->GetCurUri()
));
$form->BeginNextFormTab();
$form->BeginCustomField('version', 'vv');
?><tr>
<td width="30%"><?php
echo $localization->getDataByPath('version');
?>
:</td>
<td width="60%"><b><?php
示例15: CAdminContextMenu
#####################################
if(!$fatalFailure) // no fatals like "module not installed, etc."
{
$topMenu = new CAdminContextMenu(array(
array(
"TEXT" => GetMessage("SALE_LOCATION_E_GO_BACK"),
"LINK" => Helper::getListUrl(),
"ICON" => "btn_list",
)
));
$tabControl = new CAdminForm("tabcntrl_zone_edit", array(
array(
"DIV" => "main",
"TAB" => Loc::getMessage('SALE_LOCATION_E_MAIN_TAB'),
"TITLE" => Loc::getMessage('SALE_LOCATION_E_MAIN_TAB_TITLE')
)
));
$tabControl->BeginPrologContent();
$tabControl->EndPrologContent();
$tabControl->BeginEpilogContent();
?>
<?if(strlen($_REQUEST['return_url'])):?>
<input type="hidden" name="return_url" value="<?php
echo htmlspecialcharsbx($returnUrl);
?>
">
<?endif?>
<?php