• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP CAdminForm类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中CAdminForm的典型用法代码示例。如果您正苦于以下问题:PHP CAdminForm类的具体用法?PHP CAdminForm怎么用?PHP CAdminForm使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了CAdminForm类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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();
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:learn_test_result_edit.php


示例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"));
开发者ID:ASDAFF,项目名称:entask.ru,代码行数:30,代码来源:order_new.php


示例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')
开发者ID:akniyev,项目名称:arteva.ru,代码行数:31,代码来源:order_detail.php


示例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)
	{
开发者ID:ASDAFF,项目名称:callback.form,代码行数:31,代码来源:edit.php


示例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'),
开发者ID:ASDAFF,项目名称:entask.ru,代码行数:31,代码来源:cat_discount_coupon_edit.php


示例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));
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:order_new.php


示例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 
开发者ID:ASDAFF,项目名称:bitrix-module-migrations,代码行数:32,代码来源:main.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);
    }
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:learn_group_edit.php


示例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);
            }
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:learn_course_edit.php


示例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
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:iblock_element_edit.php


示例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 
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:location_type_edit.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;
    }
}
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:learn_test_edit.php


示例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;
		}
开发者ID:ASDAFF,项目名称:entask.ru,代码行数:31,代码来源:cat_catalog_edit.php


示例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 
开发者ID:ASDAFF,项目名称:bitrix-module-migrations,代码行数:32,代码来源:export.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 
开发者ID:ASDAFF,项目名称:1C_Bitrix_info_site,代码行数:31,代码来源:location_zone_edit.php


示例16: GetMessage

if (!$arIBlock["SECTION_NAME"]) {
    $arIBlock["SECTION_NAME"] = $arIBTYPE["SECTION_NAME"] ? $arIBTYPE["SECTION_NAME"] : GetMessage("IBLOCK_SECTION");
}
$bEditRights = $arIBlock["RIGHTS_MODE"] === "E" && CIBlockSectionRights::UserHasRightTo($IBLOCK_ID, $ID, "section_rights_edit");
$aTabs = array(array("DIV" => "edit1", "TAB" => $arIBlock["SECTION_NAME"], "ICON" => "iblock_section", "TITLE" => htmlspecialcharsbx($ID > 0 ? $arIBlock["SECTION_EDIT"] : $arIBlock["SECTION_ADD"])), array("DIV" => "edit5", "TAB" => GetMessage("IBSEC_E_TAB5"), "ICON" => "iblock_iprops", "TITLE" => GetMessage("IBSEC_E_TAB5_TITLE"), "ONSELECT" => "InheritedPropertiesTemplates.onTabSelect();"), array("DIV" => "edit2", "TAB" => GetMessage("IBSEC_E_TAB2"), "ICON" => "iblock_section", "TITLE" => GetMessage("IBSEC_E_TAB2_TITLE")));
//Add user fields tab only when there is fields defined or user has rights for adding new field
if (count($USER_FIELD_MANAGER->GetUserFields("IBLOCK_" . $IBLOCK_ID . "_SECTION")) > 0 || $USER_FIELD_MANAGER->GetRights("IBLOCK_" . $IBLOCK_ID . "_SECTION") >= "W") {
    $aTabs[] = $USER_FIELD_MANAGER->EditFormTab("IBLOCK_" . $IBLOCK_ID . "._SECTION");
}
if ($bEditRights) {
    $aTabs[] = array("DIV" => "edit3", "TAB" => GetMessage("IBSEC_E_TAB_RIGHTS"), "ICON" => "iblock_section", "TITLE" => GetMessage("IBSEC_E_TAB_RIGHTS_TITLE"));
}
if ($arIBlock["SECTION_PROPERTY"] === "Y") {
    $aTabs[] = array("DIV" => "edit4", "TAB" => GetMessage("IBSEC_E_PROPERTY_TAB"), "ICON" => "iblock_section", "TITLE" => GetMessage("IBSEC_E_PROPERTY_TAB_TITLE"));
}
$tabControl = new CAdminForm("form_section_" . $IBLOCK_ID, $aTabs);
if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_REQUEST["Update"]) && $_REQUEST["Update"] != "" && check_bitrix_sessid()) {
    $DB->StartTransaction();
    $bs = new CIBlockSection();
    $arPICTURE = CIBlock::makeFileArray(array_key_exists("PICTURE", $_FILES) ? $_FILES["PICTURE"] : $_REQUEST["PICTURE"], ${"PICTURE_del"} === "Y");
    if ($arPICTURE["error"] == 0) {
        $arPICTURE["COPY_FILE"] = "Y";
    }
    $arDETAIL_PICTURE = CIBlock::makeFileArray(array_key_exists("DETAIL_PICTURE", $_FILES) ? $_FILES["DETAIL_PICTURE"] : $_REQUEST["DETAIL_PICTURE"], ${"DETAIL_PICTURE_del"} === "Y");
    if ($arDETAIL_PICTURE["error"] == 0) {
        $arDETAIL_PICTURE["COPY_FILE"] = "Y";
    }
    $arFields = array("ACTIVE" => $_POST["ACTIVE"], "IBLOCK_SECTION_ID" => $IBLOCK_SECTION_ID, "IBLOCK_ID" => $IBLOCK_ID, "NAME" => $_POST["NAME"], "SORT" => $SORT, "CODE" => $_POST["CODE"], "PICTURE" => $arPICTURE, "DETAIL_PICTURE" => $arDETAIL_PICTURE, "DESCRIPTION" => $_POST["DESCRIPTION"], "DESCRIPTION_TYPE" => $_POST["DESCRIPTION_TYPE"]);
    if (isset($_POST["SECTION_PROPERTY"]) && is_array($_POST["SECTION_PROPERTY"])) {
        $arFields["SECTION_PROPERTY"] = array();
        foreach ($_POST["SECTION_PROPERTY"] as $PID => $arLink) {
开发者ID:spas-viktor,项目名称:books,代码行数:31,代码来源:iblock_section_edit.php


示例17: CAdminForm

		$denyAutosave = ($view=="Y")
			|| (
				(($ID <= 0) || $bCopy)
				&& !CIBlockSectionRights::UserHasRightTo($IBLOCK_ID, $MENU_SECTION_ID, "section_element_bind")
			)
			|| (
				(($ID > 0) && !$bCopy)
				&& !CIBlockElementRights::UserHasRightTo($IBLOCK_ID, $ID, "element_edit")
			)
			|| (
				$bBizproc
				&& !$canWrite
			);
	}

	$tabControl = new CAdminForm($bCustomForm? "tabControl": "form_element_".$IBLOCK_ID, $aTabs, true, $denyAutosave);
	$customTabber = new CAdminTabEngine("OnAdminIBlockElementEdit", array("ID" => $ID, "IBLOCK"=>$arIBlock, "IBLOCK_TYPE"=>$arIBTYPE));
	$tabControl->AddTabs($customTabber);

	if($bCustomForm)
	{
		$tabControl->SetShowSettings(false);
		if ($bCatalog && !empty($arMainCatalog))
		{
			$arMainCatalog['OFFERS_PROPERTY_ID'] = 0;
			$arMainCatalog['OFFERS_IBLOCK_ID'] = 0;
			if ($arMainCatalog['CATALOG_TYPE'] == CCatalogSKU::TYPE_FULL || $arMainCatalog['CATALOG_TYPE'] == CCatalogSKU::TYPE_PRODUCT)
			{
				$arMainCatalog['OFFERS_PROPERTY_ID'] = $arMainCatalog['SKU_PROPERTY_ID'];
				$arMainCatalog['OFFERS_IBLOCK_ID'] = $arMainCatalog['IBLOCK_ID'];
			}
开发者ID:ASDAFF,项目名称:entask.ru,代码行数:31,代码来源:iblock_element_edit.php


示例18: array

if ($ID > 0) {
    $aMenu[] = array("SEPARATOR" => "Y");
    $aMenu[] = array("TEXT" => GetMessage("RATING_EDIT_ADD"), "TITLE" => GetMessage("RATING_EDIT_ADD_TITLE"), "LINK" => "rating_edit.php?lang=" . LANG, "ICON" => "btn_new");
    $aMenu[] = array("TEXT" => GetMessage("RATING_EDIT_DEL"), "TITLE" => GetMessage("RATING_EDIT_DEL_TITLE"), "LINK" => "javascript:if(confirm('" . GetMessage("RATING_EDIT_DEL_CONF") . "')) window.location='rating_list.php?ID=" . $ID . "&action=delete&lang=" . LANG . "&" . bitrix_sessid_get() . "';", "ICON" => "btn_delete");
}
$context = new CAdminContextMenu($aMenu);
$context->Show();
if (is_array($_SESSION["SESS_ADMIN"]["RATING_EDIT_MESSAGE"])) {
    CAdminMessage::ShowMessage($_SESSION["SESS_ADMIN"]["RATING_EDIT_MESSAGE"]);
    $_SESSION["SESS_ADMIN"]["RATING_EDIT_MESSAGE"] = false;
}
if ($message) {
    echo $message->Show();
}
$aTabs = array(array("DIV" => "edit1", "TAB" => GetMessage("RATING_EDIT_TAB_MAIN"), "TITLE" => GetMessage("RATING_EDIT_TAB_MAIN_TITLE")));
$tabControl = new CAdminForm("rating", $aTabs);
$tabControl->BeginEpilogContent();
echo bitrix_sessid_post();
?>
	<input type="hidden" name="ID" value=<?php 
echo $ID;
?>
>
	<input type="hidden" name="lang" value="<?php 
echo LANGUAGE_ID;
?>
">
	<input type="hidden" name="action" value="" id="action">
<?php 
if ($_REQUEST["addurl"] != "") {
    ?>
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:rating_edit.php


示例19: IncludeModuleLangFile

<?php

require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
$saleModulePermissions = $APPLICATION->GetGroupRight("sale");
if ($saleModulePermissions < "W") {
    $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
IncludeModuleLangFile(__FILE__);
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/sale/include.php";
$aTabs = array(array("DIV" => "edit1", "TAB" => GetMessage("BT_SALE_DISCOUNT_EDIT_TAB_NAME_COMMON"), "ICON" => "sale", "TITLE" => GetMessage("BT_SALE_DISCOUNT_EDIT_TAB_TITLE_COMMON")), array("DIV" => "edit3", "TAB" => GetMessage("BT_SALE_DISCOUNT_EDIT_TAB_NAME_ACTIONS"), "ICON" => "sale", "TITLE" => GetMessage("BT_CAT_DISCOUNT_EDIT_TAB_TITLE_ACTIONS")), array("DIV" => "edit2", "TAB" => GetMessage("BT_SALE_DISCOUNT_EDIT_TAB_NAME_GROUPS"), "ICON" => "sale", "TITLE" => GetMessage("BT_SALE_DISCOUNT_EDIT_TAB_TITLE_GROUPS")), array("DIV" => "edit4", "TAB" => GetMessage("BT_SALE_DISCOUNT_EDIT_TAB_NAME_MISC"), "ICON" => "sale", "TITLE" => GetMessage("BT_SALE_DISCOUNT_EDIT_TAB_TITLE_MISC")));
$tabControl = new CAdminForm("sale_discount", $aTabs);
$arErrorMess = array();
$bVarsFromForm = false;
$boolCondParseError = false;
$boolActParseError = false;
$ID = intval($ID);
if ('POST' == $_SERVER['REQUEST_METHOD'] && strlen($Update) > 0 && $saleModulePermissions >= "W" && check_bitrix_sessid()) {
    $obCond3 = new CSaleCondTree();
    $boolCond = $obCond3->Init(BT_COND_MODE_PARSE, BT_COND_BUILD_SALE, array());
    if (!$boolCond) {
        if ($ex = $APPLICATION->GetException()) {
            $arErrorMess[] = $ex->GetString();
        } else {
            $arErrorMess[] = 0 < $ID ? str_replace('#ID#', $ID, GetMessage('BT_SALE_DISCOUNT_EDIT_ERR_UPDATE')) : GetMessage('BT_SALE_DISCOUNT_EDIT_ERR_ADD');
        }
        $bVarsFromForm = true;
    } else {
        $boolCond = false;
        if (isset($_POST['CONDITIONS']) && isset($_POST['CONDITIONS_CHECK'])) {
            if (is_string($_POST['CONDITIONS']) && is_string($_POST['CONDITIONS_CHECK']) && md5($_POST['CONDITIONS']) == $_POST['CONDITIONS_CHECK']) {
                $CONDITIONS = base64_decode($_POST['CONDITIONS']);
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:discount_edit.php


示例20: array

$context->Show();

if(is_array($_SESSION["SESS_ADMIN"]["RATING_RULE_EDIT_MESSAGE"]))
{
	CAdminMessage::ShowMessage($_SESSION["SESS_ADMIN"]["RATING_RULE_EDIT_MESSAGE"]);
	$_SESSION["SESS_ADMIN"]["RATING_RULE_EDIT_MESSAGE"]=false;
}

if($message)
	echo $message->Show();

$aTabs = array(
	array("DIV" => "edit1", "TAB" => GetMessage("RATING_RULE_EDIT_TAB_MAIN"), "TITLE"=>GetMessage("RATING_RULE_EDIT_TAB_MAIN_TITLE")),
);

$tabControl = new CAdminForm("rating_rule", $aTabs, true, true);
$tabControl->BeginEpilogContent();
?>
<?php 
echo freetrix_sessid_post();
?>
	<input type="hidden" name="ID" value=<?php 
echo $ID;
?>
>
	<input type="hidden" name="lang" value="<?php 
echo LANGUAGE_ID;
?>
">
	<input type="hidden" name="action" value="" id="action">
<?if($_REQUEST["addurl"]<>""):?>
开发者ID:ASDAFF,项目名称:open_bx,代码行数:31,代码来源:rating_rule_edit.php



注:本文中的CAdminForm类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP CAdminList类代码示例发布时间:2022-05-23
下一篇:
PHP CAdminFilter类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap