本文整理匯總了PHP中CAdminList::ActionDoGroup方法的典型用法代碼示例。如果您正苦於以下問題:PHP CAdminList::ActionDoGroup方法的具體用法?PHP CAdminList::ActionDoGroup怎麽用?PHP CAdminList::ActionDoGroup使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CAdminList
的用法示例。
在下文中一共展示了CAdminList::ActionDoGroup方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: OnAdminListDisplayHandler
public static function OnAdminListDisplayHandler(&$list) {
$strCurPage = $GLOBALS['APPLICATION']->GetCurPage();
$bElemPage = ($strCurPage=='/bitrix/admin/iblock_element_admin.php' ||
$strCurPage=='/bitrix/admin/cat_product_admin.php'
);
$bSectPage = ($strCurPage=='/bitrix/admin/iblock_section_admin.php' ||
$strCurPage=='/bitrix/admin/cat_section_admin.php'
);
$bMixPage = ($strCurPage=='/bitrix/admin/iblock_list_admin.php');
$bRightPage = ($bElemPage || $bSectPage || $bMixPage);
if ($bRightPage && \CModule::IncludeModule('iblock')) {
$lAdmin = new \CAdminList($list->table_id, $list->sort);
$IBLOCK_ID = intval($_REQUEST['IBLOCK_ID']);
$find_section = intval($_REQUEST['find_section_section']);
if ($find_section < 0)
$find_section = 0;
if ($bSectPage) {
//if ($boolSectionCopy) {
foreach ($list->aRows as $id => $v) {
$arnewActions = array();
foreach ($v->aActions as $i => $act) {
$arnewActions[] = $act;
if ($act['ICON'] == 'edit') {
$arnewActions[] = array('ICON' => 'copy',
'TEXT' => "Парсинг",
'ACTION' => $lAdmin->ActionDoGroup($v->id, 'parsing_in_list',
'&type='.urlencode($_REQUEST['type']).'&lang='.LANGUAGE_ID.'&IBLOCK_ID='.$IBLOCK_ID.'&find_section_section='.$find_section),
);
}
}
$v->aActions = $arnewActions;
}
//}
}
}
}
示例2: array
),
array(
"ICON" => "move",
"TEXT" => Loc::getMessage("SEO_BANNER_UPDATE"),
"ACTION" => 'updateBanner(BX(\'banner_update_button_'.$banner['ID'].'\'), '.$banner['ID'].');',
),
);
if(!$archive)
{
if($banner['SETTINGS']['StatusBannerModerate'] == Engine\YandexDirect::STATUS_NEW)
{
$rowActions[] = array(
"ICON" => "moderate",
"TEXT" => Loc::getMessage("SEO_BANNER_MODERATE"),
"ACTION" => $adminList->ActionDoGroup($banner['ID'], 'moderate', 'campaign='.$campaignId),
);
}
else
{
if($banner['SETTINGS']['StatusShow'] == Engine\YandexDirect::BOOL_YES)
{
$rowActions[] = array(
"ICON" => "stop",
"TEXT" => Loc::getMessage("SEO_BANNER_STOP"),
"ACTION" => $adminList->ActionDoGroup($banner['ID'], 'stop', 'campaign='.$campaignId),
);
}
else
{
$rowActions[] = array(
示例3: GetMessage
}
}
$lAdmin->AddHeaders(array(array("id" => "BANNED", "content" => GetMessage("PERFMON_ICOMPLETE_STATUS"), "align" => "center", "default" => true), array("id" => "TABLE_NAME", "content" => GetMessage("PERFMON_ICOMPLETE_TABLE_NAME"), "default" => true), array("id" => "COLUMN_NAMES", "content" => GetMessage("PERFMON_ICOMPLETE_COLUMN_NAMES"), "default" => true), array("id" => "INDEX_NAME", "content" => GetMessage("PERFMON_ICOMPLETE_INDEX_NAME"), "default" => true)));
$cData = new CPerfomanceIndexComplete();
$rsData = $cData->GetList();
$rsData = new CAdminResult($rsData, $sTableID);
$rsData->NavStart();
$lAdmin->NavText($rsData->GetNavPrint(GetMessage("PERFMON_ICOMPLETE_PAGE")));
while ($arRes = $rsData->NavNext(true, "f_")) {
$row = $lAdmin->AddRow($f_NAME, $arRes);
$arActions = array();
$row->AddViewField("COLUMN_NAMES", str_replace(",", "<br>", $f_COLUMN_NAMES));
if ($f_BANNED == "N") {
$row->AddViewField("BANNED", '<span class="adm-lamp adm-lamp-in-list adm-lamp-green" title="' . htmlspecialcharsbx(GetMessage("PERFMON_ICOMPLETE_GREEN_ALT")) . '"></span>');
if ($isAdmin) {
$arActions[] = array("TEXT" => GetMessage("PERFMON_ICOMPLETE_DELETE_INDEX"), "ACTION" => $lAdmin->ActionDoGroup($f_ID, 'delete_index'));
}
} elseif ($f_BANNED == "Y") {
$row->AddViewField("BANNED", '<span class="adm-lamp adm-lamp-in-list adm-lamp-red" title="' . htmlspecialcharsbx(GetMessage("PERFMON_ICOMPLETE_RED_ALT")) . '"></span>');
$row->AddViewField("INDEX_NAME", GetMessage("PERFMON_ICOMPLETE_NO_INDEX"));
$arActions[] = array("TEXT" => GetMessage("PERFMON_ICOMPLETE_DELETE_BAN"), "ACTION" => $lAdmin->ActionDoGroup($f_ID, 'delete_ban'));
} else {
$row->AddViewField("BANNED", '<span class="adm-lamp adm-lamp-in-list adm-lamp-yellow" title="' . htmlspecialcharsbx(GetMessage("PERFMON_ICOMPLETE_YELLOW_ALT")) . '"></span>');
}
if (!empty($arActions)) {
$row->AddActions($arActions);
}
}
$lAdmin->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $rsData->SelectedRowsCount())));
$lAdmin->AddAdminContextMenu(array());
$lAdmin->CheckListMode();
示例4: CAdminResult
$lAdmin->AddHeaders($arHeaders);
$rsData = CXDILFScheme::GetList(array($by => $order));
$rsData = new CAdminResult($rsData, $sTableID);
while (is_array($arRes = $rsData->GetNext())) {
$row =& $lAdmin->AddRow($arRes["ID"], $arRes);
$row->AddInputField("NAME", array("size" => 20));
$row->AddViewField("NAME", '<a href="xdi_lf_scheme_edit.php?ID=' . $arRes["ID"] . '&lang=' . LANG . '">' . $arRes["NAME"] . '</a>');
$row->AddEditField("LID", CLang::SelectBox("FIELDS[" . $arRes["ID"] . "][LID]", $arRes["LID"]));
$row->AddInputField("SORT", array("size" => 20));
$row->AddCheckField("ACTIVE");
$row->AddViewField("ID", '<a href="xdi_lf_scheme_edit.php?lang=' . LANGUAGE_ID . '&ID=' . $arRes["ID"] . '">' . $arRes["ID"] . '</a>');
$row->AddViewField("TYPE", GetMessage("LFP_SCHEME_LIST_" . $arRes["TYPE"]));
$arActions = array(array("ICON" => "edit", "DEFAULT" => true, "TEXT" => GetMessage("LFP_SCHEME_LIST_EDIT"), "ACTION" => $lAdmin->ActionRedirect('xdi_lf_scheme_edit.php?lang=' . LANGUAGE_ID . '&ID=' . $arRes["ID"])));
$arActions[] = array("SEPARATOR" => "Y");
if ($arRes["ACTIVE"] === "Y") {
$arActions[] = array("TEXT" => GetMessage("LFP_SCHEME_LIST_DEACTIVATE"), "ACTION" => "if(confirm('" . GetMessage("LFP_SCHEME_LIST_DEACTIVATE_CONF") . "')) " . $lAdmin->ActionDoGroup($arRes["ID"], "deactivate"));
} else {
$arActions[] = array("TEXT" => GetMessage("LFP_SCHEME_LIST_ACTIVATE"), "ACTION" => $lAdmin->ActionDoGroup($arRes["ID"], "activate"));
}
$arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("LFP_SCHEME_LIST_DELETE"), "ACTION" => "if(confirm('" . GetMessage("LFP_SCHEME_LIST_DELETE_CONF") . "')) " . $lAdmin->ActionDoGroup($arRes["ID"], "delete"));
if (!empty($arActions)) {
$row->AddActions($arActions);
}
}
$arFooter = array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $rsData->SelectedRowsCount()), array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => 0));
$lAdmin->AddFooter($arFooter);
$lAdmin->AddGroupActionTable(array("delete" => GetMessage("MAIN_ADMIN_LIST_DELETE"), "activate" => GetMessage("MAIN_ADMIN_LIST_ACTIVATE"), "deactivate" => GetMessage("MAIN_ADMIN_LIST_DEACTIVATE")));
$aAdd = array(array("TEXT" => GetMessage("LFP_SCHEME_LIST_POST"), "TITLE" => GetMessage("LFP_SCHEME_LIST_POST"), "ACTION" => "window.location='" . addslashes("/bitrix/admin/xdi_lf_scheme_edit.php") . "?lang=" . LANGUAGE_ID . "&TYPE=POST';"), array("TEXT" => GetMessage("LFP_SCHEME_LIST_RSS"), "TITLE" => GetMessage("LFP_SCHEME_LIST_RSS"), "ACTION" => "window.location='" . addslashes("/bitrix/admin/xdi_lf_scheme_edit.php") . "?lang=" . LANGUAGE_ID . "&TYPE=RSS';"));
if (IsModuleInstalled("webservice")) {
$aAdd[] = array("TEXT" => GetMessage("LFP_SCHEME_LIST_XML"), "TITLE" => GetMessage("LFP_SCHEME_LIST_XML"), "ACTION" => "window.location='" . addslashes("/bitrix/admin/xdi_lf_scheme_edit.php") . "?lang=" . LANGUAGE_ID . "&TYPE=XML';");
}
示例5: array
$row->AddCheckField("SHOW_IN_LIST");
$row->AddCheckField("EDIT_IN_LIST");
$row->AddCheckField("IS_SEARCHABLE");
$row->AddInputField("XML_ID", array("size"=>10));
$arActions = Array();
$arActions[] = array(
"ICON"=>"edit",
"DEFAULT"=>true,
"TEXT"=>GetMessage("MAIN_EDIT"),
"ACTION"=>$lAdmin->ActionRedirect("userfield_edit.php?ID=".$f_ID)
);
$arActions[] = array(
"ICON"=>"delete",
"TEXT"=>GetMessage("MAIN_DELETE"),
"ACTION"=>"if(confirm('".GetMessage('USERTYPE_DELETE_CONF')."')) ".$lAdmin->ActionDoGroup($f_ID, "delete", 'back_url='.urlencode($back_url).'&list_url='.urlencode($list_url))
);
$row->AddActions($arActions);
endwhile;
$lAdmin->AddGroupActionTable(Array(
"delete"=>true,
));
$aContext = array();
// backurl button
if ($back_url <> '')
{
//$aContext[] = array("SEPARATOR" => true);
示例6: foreach
foreach ($arIPs as $i => $ip) {
$arIPs[$i] = htmlspecialcharsex($ip);
}
$row->AddViewField("EXCL_IP", implode("<br>", $arIPs));
}
if ($RIGHT_W) {
$row->AddCheckField("ACTIVE");
$row->AddInputField("SORT", array("size" => 6));
$row->AddEditField("SITE_ID", CLang::SelectBox("FIELDS[" . $f_ID . "][SITE_ID]", $f_SITE_ID, GetMessage("MAIN_ALL")));
$row->AddInputField("NAME", array("size" => 20));
$row->AddCalendarField("ACTIVE_FROM");
$row->AddCalendarField("ACTIVE_TO");
$row->AddCheckField("ADMIN_SECTION");
}
if ($RIGHT_W) {
$arActions = array(array("ICON" => "edit", "DEFAULT" => true, "TEXT" => GetMessage("SEC_IP_LIST_EDIT"), "ACTION" => $lAdmin->ActionRedirect('security_iprule_edit.php?lang=' . LANGUAGE_ID . '&ID=' . $f_ID)), array("ICON" => "delete", "TEXT" => GetMessage("SEC_IP_LIST_DELETE"), "ACTION" => "if(confirm('" . GetMessage("SEC_IP_LIST_DELETE_CONF") . "')) " . $lAdmin->ActionDoGroup($f_ID, "delete")));
$row->AddActions($arActions);
}
}
$lAdmin->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $rsData->SelectedRowsCount()), array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0")));
$aContext = array();
if ($RIGHT_W) {
$aContext[] = array("TEXT" => GetMessage("MAIN_ADD"), "LINK" => "security_iprule_edit.php?lang=" . LANG, "TITLE" => GetMessage("SEC_IP_LIST_ADD_TITLE"), "ICON" => "btn_new");
}
$lAdmin->AddAdminContextMenu($aContext);
if ($RIGHT_W) {
$lAdmin->AddGroupActionTable(array("delete" => GetMessage("MAIN_ADMIN_LIST_DELETE")));
}
$message = CSecurityIPRule::CheckAntiFile(true);
if ($message) {
$lAdmin->BeginPrologContent();
示例7: GetMessage
{
$row->AddViewField("WF_".$k, $v);
$str .= "<b>".(strlen($arStr1[$k]) > 0 ? $arStr1[$k] : GetMessage("IBLIST_BP"))."</b>:<br />".$v."<br />";
}
$row->AddViewField("BIZPROC", $str);
}
}
$arActions = array();
if($f_ACTIVE == "Y")
{
$arActive = array(
"TEXT" => GetMessage("IBLIST_A_DEACTIVATE"),
"ACTION" => $lAdmin->ActionDoGroup($f_TYPE.$f_ID, "deactivate", $sThisSectionUrl),
"ONCLICK" => "",
);
}
else
{
$arActive = array(
"TEXT" => GetMessage("IBLIST_A_ACTIVATE"),
"ACTION" => $lAdmin->ActionDoGroup($f_TYPE.$f_ID, "activate", $sThisSectionUrl),
"ONCLICK" => "",
);
}
$clearCounter = array(
"TEXT" => GetMessage('IBLIST_A_CLEAR_COUNTER'),
"TITLE" => GetMessage('IBLIST_A_CLEAR_COUNTER_TITLE'),
示例8: CAdminResult
$rsData = CForumSubscribe::GetListEx(array($by => $order), $arFilter);
$rsData = new CAdminResult($rsData, $sTableID);
$rsData->NavStart();
$lAdmin->NavText($rsData->GetNavPrint(GetMessage("FM_TITLE_PAGE")));
//************************************ Headers ********************************************************************
$lAdmin->AddHeaders(array(array("id" => "ID", "content" => GetMessage("FM_HEAD_ID"), "sort" => "ID", "default" => true), array("id" => "FORUM_NAME", "content" => GetMessage("FM_HEAD_FORUM"), "sort" => "FORUM_NAME", "default" => true), array("id" => "TITLE", "content" => GetMessage("FM_HEAD_TOPIC"), "sort" => "TITLE", "default" => true), array("id" => "START_DATE", "content" => GetMessage("FM_HEAD_START_DATE"), "sort" => "START_DATE", "default" => true), array("id" => "LAST_SEND", "content" => GetMessage("FM_HEAD_LAST_SEND"), "sort" => "LAST_SEND", "default" => true)));
//************************************ Body ***********************************************************************
while ($arRes = $rsData->NavNext(true, "t_")) {
$row =& $lAdmin->AddRow($t_ID, $arRes);
$LOGIN = $arRes["LOGIN"];
if ($t_TOPIC_ID <= 0) {
$t_TITLE = $t_NEW_TOPIC_ONLY == "Y" ? GetMessage("FM_NEW_TOPIC_ONLY") : GetMessage("FM_ALL_MESSAGE");
}
$row->AddViewField("TITLE", $t_TITLE);
$arActions = array();
$arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("FM_ACT_DELETE"), "ACTION" => "if(confirm('" . GetMessage("FM_ACT_DEL_CONFIRM") . "')) " . $lAdmin->ActionDoGroup($t_ID, "delete", "USER_ID=" . $USER_ID . "&lang=" . LANG));
$row->AddActions($arActions);
}
//************************************ Footer *********************************************************************
$lAdmin->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $rsData->SelectedRowsCount()), array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0")));
$lAdmin->AddGroupActionTable(array("delete" => GetMessage('FM_ACT_DELETE')));
$aMenu = array(array("TEXT" => GetMessage("FM_LIST_USER"), "LINK" => "/bitrix/admin/forum_subscribe.php?lang=" . LANG, "ICON" => "btn_list"));
$lAdmin->AddAdminContextMenu($aMenu);
$lAdmin->CheckListMode();
//************************************ Page ***********************************************************************
$APPLICATION->SetTitle(GetMessage("FM_TITLE") . $LOGIN);
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
$oFilter = new CAdminFilter($sTableID . "_subscribe", array(GetMessage("FM_FLT_START_DATE_ALT"), GetMessage("FM_FLT_SUBSCR_TYPE_ALT")));
?>
<form name="form1" method="get" action="<?php
echo $APPLICATION->GetCurPage();
示例9: Array
$row->AddCheckField("ACTIVE");
$row->AddCheckField("VISIBLE");
$arActions = Array();
$arActions[] = array(
"ICON"=>"edit",
"DEFAULT"=>true,
"TEXT"=>GetMessage("rub_edit"),
"ACTION"=>$lAdmin->ActionRedirect("sender_group_edit.php?ID=".$f_ID)
);
if ($POST_RIGHT>="W")
$arActions[] = array(
"ICON"=>"delete",
"TEXT"=>GetMessage("rub_del"),
"ACTION"=>"if(confirm('".GetMessage('rub_del_conf')."')) ".$lAdmin->ActionDoGroup($f_ID, "delete")
);
$arActions[] = array("SEPARATOR"=>true);
if(is_set($arActions[count($arActions)-1], "SEPARATOR"))
unset($arActions[count($arActions)-1]);
$row->AddActions($arActions);
endwhile;
$lAdmin->AddFooter(
array(
array("title"=>GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value"=>$rsData->SelectedRowsCount()),
array("counter"=>true, "title"=>GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value"=>"0"),
)
示例10: htmlspecialcharsbx
continue;
}
$row =& $lAdmin->AddRow($f_ID, $arRes);
$arUserType = $USER_FIELD_MANAGER->GetUserType($f_USER_TYPE_ID);
$row->AddViewField("USER_TYPE_ID", htmlspecialcharsbx($arUserType["DESCRIPTION"]));
$row->AddInputField("SORT", array("size" => 5));
$row->AddViewField("MULTIPLE", $f_MULTIPLE == "Y" ? GetMessage("MAIN_YES") : GetMessage("MAIN_NO"));
$row->AddCheckField("MANDATORY");
$row->AddSelectField("SHOW_FILTER", array("N" => GetMessage("USER_TYPE_FILTER_N"), "I" => GetMessage("USER_TYPE_FILTER_I"), "E" => GetMessage("USER_TYPE_FILTER_E"), "S" => GetMessage("USER_TYPE_FILTER_S")));
$row->AddCheckField("SHOW_IN_LIST");
$row->AddCheckField("EDIT_IN_LIST");
$row->AddCheckField("IS_SEARCHABLE");
$row->AddInputField("XML_ID", array("size" => 10));
$arActions = array();
$arActions[] = array("ICON" => "edit", "DEFAULT" => true, "TEXT" => GetMessage("MAIN_EDIT"), "ACTION" => $lAdmin->ActionRedirect("userfield_edit.php?ID=" . $f_ID));
$arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("MAIN_DELETE"), "ACTION" => "if(confirm('" . GetMessage('USERTYPE_DELETE_CONF') . "')) " . $lAdmin->ActionDoGroup($f_ID, "delete", 'back_url=' . urlencode($back_url) . '&list_url=' . urlencode($list_url)));
$row->AddActions($arActions);
}
$lAdmin->AddGroupActionTable(array("delete" => true));
$aContext = array();
// backurl button
if ($back_url != '') {
//$aContext[] = array("SEPARATOR" => true);
$aContext[] = array("TEXT" => GetMessage('USERTYPE_BACK_URL_BUTTON'), "LINK" => $back_url, "TITLE" => GetMessage('USERTYPE_BACK_URL_BUTTON'), "ICON" => "btn_list");
}
// add button
$add_url = "userfield_edit.php?lang=" . LANG;
if ($find_type === 'ENTITY_ID' && !empty($find)) {
$add_url .= '&ENTITY_ID=' . urlencode($find);
if ($back_url != '') {
$add_url .= '&back_url=' . urlencode($APPLICATION->GetCurPageParam()) . '&list_url=' . urlencode($APPLICATION->GetCurPageParam());
示例11: array
$arActions[] = array(
"ICON" => "edit",
"DEFAULT" => "Y",
"TEXT" => GetMessage("MAIN_ADMIN_MENU_EDIT"),
"ACTION" => $lAdmin->ActionRedirect("/bitrix/admin/currency_edit.php?ID=".$arRes['CURRENCY']."&lang=".LANGUAGE_ID)
);
if ($CURRENCY_RIGHT=="W" && $arRes['BASE'] != 'Y')
{
$arActions[] = array("SEPARATOR" => true);
$arActions[] = array(
"ICON" => "edit",
"TEXT" => GetMessage('CURRENCY_SET_BASE'),
"TITLE" => GetMessage('CURRENCY_SET_BASE_TITLE'),
"ACTION" => "if(confirm('".GetMessage('CONFIRM_SET_BASE_MESSAGE')."')) ".$lAdmin->ActionDoGroup($arRes['CURRENCY'], "base")
);
$arActions[] = array("SEPARATOR" => true);
$arActions[] = array(
"ICON" => "delete",
"TEXT" => GetMessage("MAIN_ADMIN_MENU_DELETE"),
"ACTION" => "if(confirm('".GetMessage('CONFIRM_DEL_MESSAGE')."')) ".$lAdmin->ActionDoGroup($arRes['CURRENCY'], "delete")
);
}
$row->AddActions($arActions);
}
if ($arSelectFieldsMap['CREATED_BY'] || $arSelectFieldsMap['MODIFIED_BY'])
{
if (!empty($arUserID))
示例12: round
$index = round($index, 1);
$index = sprintf("%03.1f", $index) . '%';
}
$row->AddViewField("ANSWERS_STATS", $index . ' (<a href="learn_test_result_admin.php?lang=' . LANG . '&set_filter=Y&filter_correct=Y&filter_answered=Y">' . $arStat["CORRECT_CNT"] . '</a> / <a href="learn_test_result_admin.php?lang=' . LANG . '">' . $arStat["ALL_CNT"] . '</a>)');
$arActions = array();
$editUrl = "learn_question_edit.php?lang=" . LANG . '&LESSON_PATH=' . $uriLessonPath . "&ID=" . $f_ID . GetFilterParams("filter_", false) . $str_from;
$row->AddViewField("NAME", '<a href="' . htmlspecialcharsbx($editUrl) . '">' . htmlspecialcharsbx($f_NAME) . '</a>');
$arActions[] = array("ICON" => "edit", "DEFAULT" => "Y", "TEXT" => GetMessage("MAIN_ADMIN_MENU_EDIT"), "ACTION" => $lAdmin->ActionRedirect($editUrl));
/*
$arActions[] = array(
"ICON"=>"copy",
"TEXT"=>GetMessage("MAIN_ADMIN_ADD_COPY"),
"ACTION"=>$lAdmin->ActionRedirect("learn_course_edit.php?COPY_ID=".$f_ID));
*/
$arActions[] = array("SEPARATOR" => true);
$arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("MAIN_ADMIN_MENU_DELETE"), "ACTION" => "if(confirm('" . GetMessageJS('LEARNING_CONFIRM_DEL_MESSAGE') . "')) " . $lAdmin->ActionDoGroup($f_ID, "delete", 'LESSON_PATH=' . $uriLessonPath));
$row->AddActions($arActions);
}
// list footer
$lAdmin->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $rsData->SelectedRowsCount()), array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0")));
// group actions buttons
$lAdmin->AddGroupActionTable(array("self" => GetMessage("LEARNING_ACTION_SELF"), "deself" => GetMessage("LEARNING_ACTION_DESELF"), "activate" => GetMessage("MAIN_ADMIN_LIST_ACTIVATE"), "deactivate" => GetMessage("MAIN_ADMIN_LIST_DEACTIVATE"), "required" => GetMessage("MAIN_ADMIN_LIST_REQUIRED"), "derequired" => GetMessage("MAIN_ADMIN_LIST_NOT_REQUIRED"), "delete" => GetMessage("MAIN_ADMIN_LIST_DELETE")));
$arContextPopup = array(array("TEXT" => GetMessage('LEARNING_SINGLE_CHOICE'), "LINK" => "learn_question_edit.php?lang=" . LANG . '&LESSON_PATH=' . $uriLessonPath . "&QUESTION_TYPE=S" . GetFilterParams("filter_", false) . $str_from), array("TEXT" => GetMessage('LEARNING_MULTIPLE_CHOICE'), "LINK" => "learn_question_edit.php?lang=" . LANG . '&LESSON_PATH=' . $uriLessonPath . "&QUESTION_TYPE=M" . GetFilterParams("filter_", false) . $str_from), array("TEXT" => GetMessage('LEARNING_SORTING'), "LINK" => "learn_question_edit.php?lang=" . LANG . '&LESSON_PATH=' . $uriLessonPath . "&QUESTION_TYPE=R" . GetFilterParams("filter_", false) . $str_from), array("TEXT" => GetMessage('LEARNING_TEXT_ANSWER'), "LINK" => "learn_question_edit.php?lang=" . LANG . '&LESSON_PATH=' . $uriLessonPath . "&QUESTION_TYPE=T" . GetFilterParams("filter_", false) . $str_from));
$aContext = array(array("ICON" => "btn_new", "TEXT" => GetMessage("LEARNING_ADD"), "TITLE" => GetMessage("LEARNING_ADD_ALT"), "MENU" => $arContextPopup));
$lAdmin->AddAdminContextMenu($aContext);
// list mode check (if AJAX then terminate the script)
$lAdmin->CheckListMode();
$APPLICATION->SetTitle($arLesson['NAME'] . ': ' . GetMessage('LEARNING_QUESTION'));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
$filter = new CAdminFilter($sTableID . "_filter", array(GetMessage("LEARNING_NAME"), GetMessage("LEARNING_F_SELF"), GetMessage("LEARNING_F_ACTIVE2"), GetMessage("LEARNING_F_CORRECT_REQUIRED")));
?>
示例13: array
}
$arActions[] = array("ICON" => "restore", "TEXT" => GetMessage("MAIN_DUMP_RESTORE"), "ACTION" => "if(confirm('" . CUtil::JSEscape(GetMessage("MAIN_RIGHT_CONFIRM_EXECUTE")) . "')) AjaxSend('/bitrix/admin/dump_list.php?action=restore&f_id=" . $f['NAME'] . "&BUCKET_ID=" . $BUCKET_ID . "&" . bitrix_sessid_get() . "')");
if ($BUCKET_ID == 0) {
if ($arWriteBucket) {
$arActions[] = array("SEPARATOR" => true);
foreach ($arWriteBucket as $arBucket) {
$arActions[] = array("ICON" => "clouds", "TEXT" => GetMessage("MAIN_DUMP_SEND_CLOUD") . htmlspecialcharsbx('"' . $arBucket['BUCKET'] . '"'), "ACTION" => "if(confirm('" . CUtil::JSEscape(GetMessage("MAIN_DUMP_SEND_FILE_CLOUD")) . "?')) " . $lAdmin->ActionRedirect("/bitrix/admin/dump.php?f_id=" . urlencode($f['NAME']) . "&action=cloud_send&dump_bucket_id=" . $arBucket['ID'] . "&" . bitrix_sessid_get()));
}
}
$arActions[] = array("SEPARATOR" => true);
$arName = ParseFileName($f['NAME']);
$arActions[] = array("ICON" => "rename", "TEXT" => GetMessage("MAIN_DUMP_RENAME"), "ACTION" => "if(name=prompt('" . CUtil::JSEscape(GetMessage("MAIN_DUMP_ARC_NAME_W_O_EXT")) . "','" . htmlspecialcharsbx($arName['name']) . "')) tbl_dump.GetAdminList('/bitrix/admin/dump_list.php?ID=" . urlencode($f['NAME']) . "&action=rename&lang=" . LANGUAGE_ID . "&" . bitrix_sessid_get() . "&BUCKET_ID=" . $BUCKET_ID . "&name='+name);");
}
}
if ($BUCKET_ID > -1) {
$arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("MAIN_DUMP_DELETE"), "ACTION" => "if(confirm('" . CUtil::JSEscape(GetMessage('MAIN_DUMP_ALERT_DELETE')) . "')) " . $lAdmin->ActionDoGroup($BUCKET_ID . '_' . $f['NAME'], "delete"));
}
$row->AddActions($arActions);
}
$lAdmin->AddGroupActionTable(array("delete" => true));
$aContext = array(array("TEXT" => GetMessage("MAIN_DUMP_FILE_DUMP_BUTTON"), "LINK" => "dump.php?lang=" . LANGUAGE_ID, "TITLE" => GetMessage("MAIN_DUMP_FILE_DUMP_BUTTON"), "ICON" => "btn_new"), array("TEXT" => GetMessage("MAIN_DUMP_AUTO_BUTTON"), "LINK" => "dump_auto.php?lang=" . LANGUAGE_ID, "TITLE" => GetMessage("MAIN_DUMP_AUTO_BUTTON")));
$lAdmin->AddAdminContextMenu($aContext);
$lAdmin->CheckListMode();
$APPLICATION->SetTitle(GetMessage("MAIN_DUMP_LIST_PAGE_TITLE"));
require $_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/main/include/prolog_admin_after.php";
?>
<script>
function AjaxSend(url, data)
{
CHttpRequest.Action = function(result)
{
示例14: array
$row->AddCheckField("IN_RSS");
$row->AddInputField("EDIT_FILE_BEFORE");
$row->AddInputField("EDIT_FILE_AFTER");
} else {
$row->AddViewField("SORT", $f_SORT);
$row->AddCheckField("SECTIONS", false);
$row->AddCheckField("IN_RSS", false);
$row->AddViewField("EDIT_FILE_BEFORE", $f_EDIT_FILE_BEFORE);
$row->AddViewField("EDIT_FILE_AFTER", $f_EDIT_FILE_AFTER);
}
$arActions = array();
$arActions[] = array("ICON" => "list", "TEXT" => GetMessage("IBLOCK_TYPE_ADMIN_IB"), "ACTION" => $lAdmin->ActionRedirect('iblock_admin.php?lang=' . LANG . '&type=' . $f_ID . '&admin=Y'));
if ($USER->IsAdmin()) {
$arActions[] = array("SEPARATOR" => true);
$arActions[] = array("ICON" => "edit", "TEXT" => GetMessage("MAIN_ADMIN_MENU_EDIT"), "ACTION" => $lAdmin->ActionRedirect('iblock_type_edit.php?lang=' . LANG . '&ID=' . $f_ID), "DEFAULT" => true);
$arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("MAIN_ADMIN_MENU_DELETE"), "ACTION" => "if(confirm('" . GetMessageJS("IBLOCK_TYPE_ADMIN_DEL_CONF") . "')) " . $lAdmin->ActionDoGroup($f_ID, "delete"));
}
$row->AddActions($arActions);
}
// "footer" of the list
$lAdmin->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $rsData->SelectedRowsCount()), array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0")));
// Add form with actions
$arGroupActions = array();
if ($USER->IsAdmin()) {
$arGroupActions["delete"] = GetMessage("MAIN_ADMIN_LIST_DELETE");
}
$lAdmin->AddGroupActionTable($arGroupActions);
// Add context menu
$aContext = array();
if ($USER->IsAdmin()) {
$aContext[] = array("TEXT" => GetMessage("IBLOCK_TYPE_ADMIN_ADD"), "LINK" => "iblock_type_edit.php?lang=" . LANG, "TITLE" => GetMessage("IBLOCK_TYPE_ADMIN_ADD_HINT"), "ICON" => "btn_new");
示例15: GetMessage
///
// FIRST_SHOW
$f_FIRST_SHOW = GetMessage("AD_NOFIRST_SHOW_DATE");
if (isset($arRes["DATE_SHOW_FIRST"])) {
$f_FIRST_SHOW = $arRes["DATE_SHOW_FIRST"];
}
$row->AddViewField("FIRST_SHOW", $f_FIRST_SHOW);
///
$arActions = array();
if ($isDemo || $canAddbanner) {
$arActions[] = array("ICON" => "edit", "TEXT" => GetMessage("AD_BANNER_EDIT"), "ACTION" => $lAdmin->ActionRedirect("adv_banner_edit.php?ID=" . $f_ID . "&CONTRACT_ID=" . $f_CONTRACT_ID), "DEFAULT" => true);
}
$arActions[] = array("ICON" => "view", "TEXT" => GetMessage("AD_BANNER_VIEW_SETTINGS"), "TITLE" => GetMessage("AD_BANNER_VIEW_SETTINGS_TITLE"), "ACTION" => $lAdmin->ActionRedirect("adv_banner_edit.php?ID=" . $f_ID . "&CONTRACT_ID=" . $f_CONTRACT_ID . "&action=view"));
$arActions[] = array("ICON" => "adv_graph", "TEXT" => GetMessage("AD_BANNER_STATISTICS_VIEW"), "TITLE" => GetMessage("AD_BANNER_STATISTICS_VIEW_TITLE"), "ACTION" => $lAdmin->ActionRedirect("adv_banner_graph.php?find_banner_id[]=" . $f_ID . "&find_what_show[]=ctr&set_filter=Y"));
if ($isDemo || $canAddbanner) {
$arActions[] = array("ICON" => "copy", "TEXT" => GetMessage("AD_BANNER_COPY"), "TITLE" => GetMessage("AD_BANNER_COPY_TITLE"), "ACTION" => $lAdmin->ActionDoGroup($f_ID, "copy"));
}
if ($isDemo || $canAddbanner) {
$arActions[] = array("SEPARATOR" => true);
$arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("AD_DELETE_BANNER"), "ACTION" => "if(confirm('" . GetMessage('AD_DELETE_BANNER_CONFIRM') . "')) " . $lAdmin->ActionDoGroup($f_ID, "delete"));
}
$row->AddActions($arActions);
if ($canAddbanner) {
$canAdd = true;
}
}
// "подвал" списка
$lAdmin->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $rsData->SelectedRowsCount()), array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0")));
// показ формы с кнопками добавления, ...
if ($isAdmin || $isDemo || $canAdd) {
$lAdmin->AddGroupActionTable(array("delete" => GetMessage("MAIN_ADMIN_LIST_DELETE"), "activate" => GetMessage("MAIN_ADMIN_LIST_ACTIVATE"), "deactivate" => GetMessage("MAIN_ADMIN_LIST_DEACTIVATE")));