本文整理汇总了PHP中CAdminList::AddGroupActionTable方法的典型用法代码示例。如果您正苦于以下问题:PHP CAdminList::AddGroupActionTable方法的具体用法?PHP CAdminList::AddGroupActionTable怎么用?PHP CAdminList::AddGroupActionTable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAdminList
的用法示例。
在下文中一共展示了CAdminList::AddGroupActionTable方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: GetMessage
$lAdmin->NavText($rsData->GetNavPrint(GetMessage("STAT_USER_AGENT_PAGES")));
$lAdmin->AddHeaders(array(array("id" => "USER_AGENT", "content" => GetMessage("STAT_USER_AGENT"), "sort" => "", "default" => true), array("id" => "COUNTER", "content" => GetMessage("STAT_SESSIONS"), "sort" => "", "default" => true, "align" => "right"), array("id" => "FAKE_MASK", "content" => GetMessage("STAT_MASK"), "sort" => "", "default" => true), array("id" => "FAKE_SRCH_S", "content" => GetMessage("STAT_SEARCHER"), "align" => "center", "default" => true), array("id" => "FAKE_SRCH_B", "content" => GetMessage("STAT_BROWSER"), "align" => "center", "default" => true)));
$i = 0;
while ($arRes = $rsData->NavNext(true, "f_")) {
$arRes["ID"] = $f_ID = $i++;
$arRes["FAKE_MASK"] = preg_replace("/[0-9\\\\'\"]/", "_", $arRes["USER_AGENT"]);
$row = $lAdmin->AddRow($f_ID, $arRes);
$row->AddViewField("COUNTER", "<a title=\"" . GetMessage("STAT_SESS_LIST") . "\" href=\"/bitrix/admin/session_list.php?lang=" . LANGUAGE_ID . "&find_user_agent=" . urlencode("\"" . str_replace(array("\\", "\\'", "\""), "_", $f_USER_AGENT) . "\"") . "&set_filter=Y\">{$f_COUNTER}</a>");
$row->AddInputField("FAKE_MASK", array("size" => 35));
$row->AddEditField("FAKE_SRCH_S", "<input type=\"radio\" name=\"" . htmlspecialcharsbx("FIELDS[" . $f_ID . "][type]") . "\" value=\"s\" checked> ");
$row->AddEditField("FAKE_SRCH_B", "<input type=\"radio\" name=\"" . htmlspecialcharsbx("FIELDS[" . $f_ID . "][type]") . "\" value=\"b\"> ");
$arActions = array(array("TEXT" => GetMessage("STAT_ADD_AS_SEARCHER"), "ACTION" => $lAdmin->ActionDoGroup($f_ID, "add_as_searcher", "&mask=" . urlencode($arRes["FAKE_MASK"]))), array("TEXT" => GetMessage("STAT_ADD_AS_BROWSER"), "ACTION" => $lAdmin->ActionDoGroup($f_ID, "add_as_browser", "&mask=" . urlencode($arRes["FAKE_MASK"]))));
$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")));
$lAdmin->AddGroupActionTable(array(), array("disable_action_target" => true));
$lAdmin->CheckListMode();
$APPLICATION->SetTitle(GetMessage("STAT_RECORDS_LIST"));
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
?>
<a name="tb"></a>
<form name="form1" method="GET" action="<?php
echo $APPLICATION->GetCurPage();
?>
?">
<?php
$oFilter = new CAdminFilter($sTableID . "_filter", array(GetMessage("STAT_FL_DAY"), GetMessage("STAT_FL_SESS")));
$oFilter->Begin();
?>
<tr>
<td nowrap><b><?php
示例2: 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);
$aContext[] = array(
"TEXT"=>GetMessage('USERTYPE_BACK_URL_BUTTON'),
"LINK"=>$back_url,
"TITLE"=>GetMessage('USERTYPE_BACK_URL_BUTTON'),
"ICON"=>"btn_list"
);
}
示例3: GetMessage
$str = CUser::FormatName(COption::GetOptionString("bizproc", "name_template", CSite::GetNameFormat(false), SITE_ID), $arUserTmp, true);
$str .= " [" . $arResultItem["USER_ID"] . "]";
} else {
$str = str_replace("#USER_ID#", $arResultItem["USER_ID"], GetMessage("BPATL_USER_NOT_FOUND"));
}
$row->AddField("USER", $str);
}
$arActions = array();
$arActions[] = array("ICON" => "edit", "TEXT" => GetMessage("BPATL_VIEW"), "ACTION" => $lAdmin->ActionRedirect('bizproc_task.php?id=' . $f_ID . $s . '&back_url=' . urlencode($APPLICATION->GetCurPageParam("lang=" . LANGUAGE_ID, array("lang"))) . ''), "DEFAULT" => true);
$row->AddActions($arActions);
}
$lAdmin->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $dbResultList->SelectedRowsCount()), array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0")));
if ($allowAdminAccess && isset($arFilter['USER_STATUS']) && $arFilter['USER_STATUS'] == 0) {
$lAdmin->AddGroupActionTable(array('set_status_' . CBPTaskUserStatus::Yes => GetMessage("BPATL_GROUP_ACTION_YES"), 'set_status_' . CBPTaskUserStatus::No => GetMessage("BPATL_GROUP_ACTION_NO"), 'set_status_' . CBPTaskUserStatus::Ok => GetMessage("BPATL_GROUP_ACTION_OK"), 'delegate' => GetMessage('BPATL_GROUP_ACTION_DELEGATE'), 'delegate_dialog' => array('type' => 'html', 'value' => '<div id="action_delegate_to" style="display:none">
<input type="text" name="delegate_to" size="3" name=""/>
<input type="button" OnClick="window.open(\'/bitrix/admin/user_search.php?lang=' . LANGUAGE_ID . '&FN=form_' . $sTableID . '&FC=delegate_to\',
\'\', \'scrollbars=yes,resizable=yes,width=760,height=500,top=\'+Math.floor((screen.height - 560)/2-14)
+\',left=\'+Math.floor((screen.width - 760)/2-5));" value=" ... "></div>')), array('select_onchange' => 'BX("action_delegate_to").style.display = (this.value == "delegate"? "block":"none");', 'disable_action_target' => true));
}
if ($bizprocModulePermissions >= "W") {
$aContext = array();
$lAdmin->AddAdminContextMenu($aContext);
}
$lAdmin->AddAdminContextMenu(array(), false);
$lAdmin->CheckListMode();
/****************************************************************************/
/*********** MAIN PAGE ****************************************************/
/****************************************************************************/
$APPLICATION->SetTitle(GetMessage("BPATL_TITLE"));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
?>
示例4: array
$arActions[] = array("TITLE" => GetMessage("FORM_PREVIEW_ALT"), "ACTION" => $lAdmin->ActionRedirect("form_view.php?lang=" . LANGUAGE_ID . "&WEB_FORM_ID={$f_ID}"), "TEXT" => GetMessage("FORM_PREVIEW"));
}
if ($F_RIGHT >= 30) {
$arActions[] = array("SEPARATOR" => true);
$arActions[] = array("TITLE" => GetMessage("FORM_DELETE_RESULTS_ALT"), "ACTION" => "javascript:if(confirm('" . GetMessage("FORM_CONFIRM_DELETE_RESULTS") . "')) window.location='?lang=" . LANGUAGE_ID . "&reset_id=" . $f_ID . "&" . bitrix_sessid_get() . "'", "TEXT" => GetMessage("FORM_DELETE_RESULTS"));
}
if (CForm::IsAdmin()) {
$arActions[] = array("ICON" => "delete", "TITLE" => GetMessage("FORM_DELETE_ALT"), "ACTION" => "javascript:if(confirm('" . GetMessage("FORM_CONFIRM_DELETE") . "')) window.location='?lang=" . LANGUAGE_ID . "&action=delete&ID={$f_ID}&" . bitrix_sessid_get() . "'", "TEXT" => GetMessage("FORM_DELETE"));
}
$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")));
if ($FORM_RIGHT == "W") {
// add list buttons
$lAdmin->AddGroupActionTable(array("delete" => GetMessage("FORM_DELETE_L")));
}
// context menu
if ($FORM_RIGHT == "W") {
$aMenu = array();
$aMenu[] = array("TEXT" => GetMessage("FORM_CREATE"), "TITLE" => GetMessage("FORM_CREATE_TITLE"), "LINK" => "form_edit.php?lang=" . LANG, "ICON" => "btn_new");
$aContext = $aMenu;
$lAdmin->AddAdminContextMenu($aContext);
}
// check list output mode
$lAdmin->CheckListMode();
/***************************************************************************
HTML form
****************************************************************************/
$APPLICATION->SetTitle(GetMessage("FORM_PAGE_TITLE"));
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
示例5: GetMessage
$row->AddInputField("SORT");
$row->AddInputField("NAME");
$row->AddCheckField("ACTIVE");
$row->AddField("LAST_EXEC", $a_LAST_EXEC);
$row->AddField("NEXT_EXEC", $a_NEXT_EXEC);
$row->AddInputField("AGENT_INTERVAL");
$row->AddCheckField("IS_PERIOD", $a_IS_PERIOD == "Y" ? GetMessage("MAIN_AGENT_PERIOD_YES") : GetMessage("MAIN_AGENT_PERIOD_NO"));
$arActions = array();
$arActions[] = array("ICON" => "edit", "TEXT" => GetMessage("MAIN_AGENT_EDIT"), "ACTION" => $lAdmin->ActionRedirect("agent_edit.php?ID=" . $a_ID), "DEFAULT" => true);
$arActions[] = array("ICON" => "", "TEXT" => GetMessage("MAIN_AGENT_ACTIVATE"), "ACTION" => $lAdmin->ActionDoGroup($a_ID, "activate"));
$arActions[] = array("ICON" => "", "TEXT" => GetMessage("MAIN_AGENT_DEACTIVATE"), "ACTION" => $lAdmin->ActionDoGroup($a_ID, "deactivate"));
$arActions[] = array("SEPARATOR" => true);
$arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("MAIN_AGENT_DELETE"), "ACTION" => "if(confirm('" . GetMessage('MAIN_AGENT_ALERT_DELETE') . "')) " . $lAdmin->ActionDoGroup($a_ID, "delete"));
$row->AddActions($arActions);
}
$lAdmin->AddGroupActionTable(array("delete" => true, "activate" => GetMessage("MAIN_AGENT_ACTIVATE"), "deactivate" => GetMessage("MAIN_AGENT_DEACTIVATE")));
$aContext = array(array("TEXT" => GetMessage("MAIN_AGENT_ADD_AGENT"), "LINK" => "agent_edit.php?lang=" . LANG, "TITLE" => GetMessage("MAIN_AGENT_ADD_AGENT_TITLE"), "ICON" => "btn_new"));
$lAdmin->AddAdminContextMenu($aContext);
$APPLICATION->SetTitle(GetMessage("MAIN_AGENT_PAGE_TITLE"));
$lAdmin->CheckListMode();
require $_SERVER["DOCUMENT_ROOT"] . FX_ROOT . "/modules/main/include/prolog_admin_after.php";
?>
<form name="find_form" method="GET" action="<?echo $APPLICATION->GetCurPage()?>?">
<input type="hidden" name="lang" value="<?echo LANG?>">
<?
$oFilter = new CAdminFilter(
$sTableID."_filter",
array(
GetMessage("MAIN_AGENT_FLT_ID"),
GetMessage("MAIN_AGENT_FLT_MODULE_ID"),
GetMessage("MAIN_AGENT_FLT_USER_ID"),
示例6: array
// 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"),
)
);
// add group actions
$lAdmin->AddGroupActionTable(Array(
"delete"=>GetMessage("FORM_DELETE_L"),
"activate"=>GetMessage("FORM_ACTIVATE_L"),
"deactivate"=>GetMessage("FORM_DEACTIVATE_L"),
));
$aMenu = array(
array(
"ICON" => "btn_new",
"TEXT" => GetMessage("FORM_ADD"),
"TITLE" => GetMessage("FORM_ADD_STATUS"),
"LINK" => "/freetrix/admin/form_status_edit.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=".$WEB_FORM_ID,
),
);
$lAdmin->AddAdminContextMenu($aMenu);
$lAdmin->CheckListMode();
示例7: exportData
}
$arActions = array();
$arActions[] = array("ICON" => "edit", "TEXT" => $USER->CanDoOperation('edit_other_settings') || $USER->CanDoOperation('lpa_template_edit') ? GetMessage("MAIN_ADMIN_MENU_EDIT") : GetMessage("MAIN_ADMIN_MENU_VIEW"), "ACTION" => $lAdmin->ActionRedirect("template_edit.php?ID=" . $u_ID));
if ($edit_php) {
$arActions[] = array("ICON" => "copy", "TEXT" => GetMessage("MAIN_ADMIN_MENU_COPY"), "ACTION" => $lAdmin->ActionDoGroup($u_ID, "copy"));
$arActions[] = array("ICON" => "export", "TEXT" => GetMessage("MAIN_ADMIN_LIST_EXPORT"), "ACTION" => "exportData('" . $u_ID . "')");
if ($edit_php && $f_DEFAULT != "Y") {
$arActions[] = array("SEPARATOR" => true);
$arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("MAIN_T_ADMIN_DEL"), "ACTION" => "if(confirm('" . GetMessage('MAIN_T_ADMIN_DEL_CONF') . "')) " . $lAdmin->ActionDoGroup($u_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")));
if ($edit_php) {
$lAdmin->AddGroupActionTable(array("copy" => GetMessage("MAIN_T_ADMIN_COPY_1"), "delete" => GetMessage("MAIN_ADMIN_LIST_DELETE")));
}
$aContext = array();
if ($edit_php) {
$aContext[] = array("TEXT" => GetMessage("MAIN_ADD_TEMPL"), "LINK" => "template_edit.php?lang=" . LANGUAGE_ID, "TITLE" => GetMessage("MAIN_ADD_TEMPL_TITLE"), "ICON" => "btn_new");
$aContext[] = array("TEXT" => GetMessage("MAIN_LOAD"), "LINK" => "template_load.php?lang=" . LANGUAGE_ID, "TITLE" => GetMessage("MAIN_T_IMPORT"), "ICON" => "");
}
$lAdmin->AddAdminContextMenu($aContext);
// проверка на вывод только списка (в случае списка, скрипт дальше выполняться не будет)
$lAdmin->CheckListMode();
$APPLICATION->SetTitle(GetMessage("MAIN_T_ADMIN_TITLE"));
require $_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/main/include/prolog_admin_after.php";
?>
<script>
function exportData(val)
{
示例8: GetMessage
if ($arRecurring["SUCCESS_PAYMENT"] == "Y") {
$fieldValue = GetMessage("SRA_YES");
} else {
$fieldValue = GetMessage("SRA_UNSECCESS") . $arRecurring["REMAINING_ATTEMPTS"] . "";
}
$row->AddField("SUCCESS_PAYMENT", $fieldValue);
$arActions = array();
$arActions[] = array("ICON" => "edit", "TEXT" => GetMessage("SRA_UPDATE_ALT"), "ACTION" => $lAdmin->ActionRedirect("sale_recurring_edit.php?ID=" . $f_ID . "&lang=" . LANG . GetFilterParams("filter_") . ""), "DEFAULT" => true);
if ($saleModulePermissions >= "W") {
$arActions[] = array("SEPARATOR" => true);
$arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("SRA_DELETE_ALT1"), "ACTION" => "if(confirm('" . GetMessage('SRA_DELETE_CONF') . "')) " . $lAdmin->ActionDoGroup($f_ID, "delete"));
}
$row->AddActions($arActions);
}
$lAdmin->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $dbResultList->SelectedRowsCount()), array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0")));
$lAdmin->AddGroupActionTable(array("delete" => GetMessage("MAIN_ADMIN_LIST_DELETE"), "cancel" => GetMessage("SRAN_CANCEL_REC"), "uncancel" => GetMessage("SRAN_UNCANCEL_REC")));
if ($saleModulePermissions >= "W") {
$aContext = array(array("TEXT" => GetMessage("SRAN_ADD_NEW"), "LINK" => "sale_recurring_edit.php?lang=" . LANG, "ICON" => "btn_new", "TITLE" => GetMessage("SRAN_ADD_NEW_ALT")));
$lAdmin->AddAdminContextMenu($aContext);
}
$lAdmin->CheckListMode();
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/sale/prolog.php";
$APPLICATION->SetTitle(GetMessage("SRA_TITLE"));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
?>
<form name="find_form" method="GET" action="<?php
echo $APPLICATION->GetCurPage();
?>
?">
<?php
示例9: GetMessage
}
}
if (array_key_exists("CREATED_BY", $arVisibleColumnsMap) && intval($f_CREATED_BY) > 0) {
if (!array_key_exists($f_CREATED_BY, $arUsersCache)) {
$rsUser = CUser::GetByID($f_CREATED_BY);
$arUsersCache[$f_CREATED_BY] = $rsUser->Fetch();
}
if ($arUser = $arUsersCache[$f_MODIFIED_BY]) {
$row->AddViewField("CREATED_BY", '[<a href="user_edit.php?lang=' . LANG . '&ID=' . $f_CREATED_BY . '" title="' . GetMessage("IBLOCK_SECSEARCH_USERINFO") . '">' . $f_CREATED_BY . "</a>] (" . $arUser["LOGIN"] . ") " . $arUser["NAME"] . " " . $arUser["LAST_NAME"]);
}
}
$row->AddActions(array(array("DEFAULT" => "Y", "TEXT" => GetMessage("IBLOCK_SECSEARCH_SELECT"), "ACTION" => "javascript:SelEl('" . ($get_xml_id ? $f_XML_ID : $f_ID) . "', '" . htmlspecialcharsbx($jsPath . htmlspecialcharsbx(CUtil::JSEscape($arRes["NAME"]), ENT_QUOTES)) . " / " . "')")));
}
$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 ($m) {
$lAdmin->AddGroupActionTable(array(array("action" => "SelAll()", "value" => "select", "type" => "button", "name" => GetMessage("IBLOCK_SECSEARCH_SELECT"))), array("disable_action_target" => true));
}
$lAdmin->AddAdminContextMenu(array(), false);
if ($IBLOCK_ID > 0) {
$chain = $lAdmin->CreateChain();
if (intval($find_section_section) > 0) {
$nav = CIBlockSection::GetNavChain($IBLOCK_ID, $find_section_section);
while ($ar_nav = $nav->GetNext()) {
if ($find_section_section == $ar_nav["ID"]) {
$chain->AddItem(array("TEXT" => $ar_nav["NAME"]));
} else {
$chain->AddItem(array("TEXT" => $ar_nav["NAME"], "LINK" => 'iblock_section_search.php?lang=' . LANG . '&IBLOCK_ID=' . $IBLOCK_ID . '&find_section_section=-1' . '&n=' . urlencode($n) . '&k=' . urlencode($k) . ($m ? "&m=y" : ""), "ONCLICK" => $lAdmin->ActionAjaxReload('iblock_section_search.php?lang=' . LANG . '&IBLOCK_ID=' . $IBLOCK_ID . '&find_section_section=' . $ar_nav["ID"] . '&n=' . urlencode($n) . '&k=' . urlencode($k) . ($m ? "&m=y" : "")) . ';return false;'));
}
}
}
$lAdmin->ShowChain($chain);
示例10: round
$arTotal["TOTAL_MONEY"] = round(doubleval($arTotal["TOTAL_MONEY"]), 2);
$arFooter = array();
$arFooter[] = array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $rsData->SelectedRowsCount());
if ($group_by == "") {
$arFooter[] = array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0");
}
$arFooter[] = array("title" => GetMessage("STAT_TODAY_EVENTS"), "value" => $arTotal["TODAY_COUNTER"] . ($STAT_RIGHT > "M" && $arTotal["TODAY_MONEY"] > 0 ? "(" . str_replace(" ", $thousand_sep, number_format($arTotal["TODAY_MONEY"], 2, ".", " ")) . ")" : ""));
$arFooter[] = array("title" => GetMessage("STAT_YESTERDAY_EVENTS"), "value" => $arTotal["YESTERDAY_COUNTER"] . ($STAT_RIGHT > "M" && $arTotal["YESTERDAY_MONEY"] > 0 ? "(" . str_replace(" ", $thousand_sep, number_format($arTotal["YESTERDAY_MONEY"], 2, ".", " ")) . ")" : ""));
$arFooter[] = array("title" => GetMessage("STAT_B_YESTERDAY_EVENTS"), "value" => $arTotal["B_YESTERDAY_COUNTER"] . ($STAT_RIGHT > "M" && $arTotal["B_YESTERDAY_MONEY"] > 0 ? "(" . str_replace(" ", $thousand_sep, number_format($arTotal["B_YESTERDAY_MONEY"], 2, ".", " ")) . ")" : ""));
if ($bIsPeriod) {
$arFooter[] = array("title" => GetMessage("STAT_PERIOD_EVENTS"), "value" => $arTotal["PERIOD_COUNTER"] . ($STAT_RIGHT > "M" && $arTotal["PERIOD_MONEY"] > 0 ? "(" . str_replace(" ", $thousand_sep, number_format($arTotal["PERIOD_MONEY"], 2, ".", " ")) . ")" : ""));
}
$arFooter[] = array("title" => GetMessage("STAT_TOTAL_EVENTS"), "value" => $arTotal["TOTAL_COUNTER"] . ($STAT_RIGHT > "M" && $arTotal["TOTAL_MONEY"] > 0 ? "(" . str_replace(" ", $thousand_sep, number_format($arTotal["TOTAL_MONEY"], 2, ".", " ")) . ")" : ""));
$lAdmin->AddFooter($arFooter);
if ($group_by == "") {
$lAdmin->AddGroupActionTable(array("delete" => GetMessage("STAT_DELETE"), "clear" => GetMessage("STAT_CLEAR")));
}
$aContext = array(array("TEXT" => GetMessage("STAT_ADD"), "LINK" => "event_type_edit.php?lang=" . LANG, "TITLE" => GetMessage("STAT_ADD_TITLE"), "ICON" => "btn_new"));
$aContext[] = array("TEXT" => $group_by == "" ? GetMessage("STAT_GROUP") : GetMessage("STAT_GROUPED") . $group_by, "MENU" => array(array("TEXT" => GetMessage("STAT_WO_GROUP"), "ACTION" => $lAdmin->ActionDoGroup(0, "", "group_by="), "ICON" => $group_by == "" ? "checked" : ""), array("TEXT" => GetMessage("STAT_EVENT1_GROUP"), "ACTION" => $lAdmin->ActionDoGroup(0, "", "group_by=event1"), "ICON" => $group_by == "event1" ? "checked" : ""), array("TEXT" => GetMessage("STAT_EVENT2_GROUP"), "ACTION" => $lAdmin->ActionDoGroup(0, "", "group_by=event2"), "ICON" => $group_by == "event2" ? "checked" : "")));
$aContext[] = array("SEPARATOR" => "Y");
$aContext[] = array("TEXT" => GetMessage("STAT_DIAGRAM_S"), "LINK" => "/bitrix/admin/event_diagram_list.php?lang=" . LANGUAGE_ID . "&set_default=Y", "TITLE" => GetMessage("STAT_DIAGRAM"));
$aContext[] = array("TEXT" => GetMessage("STAT_GRAPH_FULL_S"), "LINK" => "/bitrix/admin/event_graph_list.php?lang=" . LANGUAGE_ID . "&set_default=Y", "TITLE" => GetMessage("STAT_GRAPH_FULL"));
$lAdmin->AddAdminContextMenu($aContext);
$lAdmin->CheckListMode();
$APPLICATION->SetTitle(GetMessage("STAT_RECORDS_LIST", array("#STATISTIC_DAYS#" => $STORED_DAYS)));
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
$arFilterDropDown = array(GetMessage('STAT_F_ID'), "event1", "event2", GetMessage("STAT_F_NAME"), GetMessage("STAT_F_DESCRIPTION"), GetMessage("STAT_F_DATE_ENTER"), GetMessage("STAT_F_DATE_LAST"), GetMessage("STAT_F_PERIOD"), GetMessage("STAT_F_COUNTER"));
if ($STAT_RIGHT > "M") {
$arFilterDropDown[] = GetMessage("STAT_F_MONEY");
if ($currency_module == "Y") {
$arFilterDropDown[] = GetMessage("STAT_F_CURRENCY");
示例11: array
//$arGrActionAr["move"] = GetMessage("FILEMAN_ADM_MOVE");
$arGrActionAr["move"] = array("action" => "setCopyMove('" . Cutil::JSEscape($site) . "', '" . Cutil::JSEscape($path) . "', false, " . CUtil::PhpToJSObject($arrIsDir) . ")", "value" => "move", "name" => GetMessage("FILEMAN_ADM_MOVE"));
}
// if($USER->CanDoFileOperation('fm_create_new_'.$type, $arPath))
// {
// $arGrActionAr["copy2"] = array(
// "type" => "html",
// "value" => " ".GetMessage("FILEMAN_ADMIN_IN")." "
// );
// $arGrActionAr["copy1"] = array(
// "type" => "html",
// "value" => $strHTML
// );
// }
if ($logical != "Y") {
$lAdmin->AddGroupActionTable($arGrActionAr, array());
}
$defaultEdit = COption::GetOptionString("fileman", "default_edit", "text");
if ($USER->CanDoOperation('view_groups') && $USER->CanDoFileOperation('fm_view_permission', $arPath)) {
$arDDMenu = array();
$isB = false;
$dbRes = CGroup::GetDropDownList();
while ($arRes = $dbRes->Fetch()) {
if ($show_perms_for == $arRes["REFERENCE_ID"]) {
$isB = true;
}
$arDDMenu[] = array("TEXT" => $arRes["REFERENCE"], "ACTION" => $lAdmin->ActionAjaxReload("fileman_admin.php?" . $addUrl_s . "&site=" . urlencode($site) . "&path=" . urlencode($path) . "&show_perms_for=" . $arRes["REFERENCE_ID"]) . ';return false;', "ICON" => $show_perms_for == $arRes["REFERENCE_ID"] ? "checked" : "");
}
$arDDMenu[] = array("TEXT" => GetMessage("FILEMAN_ADM_CUR_USER"), "ACTION" => $lAdmin->ActionAjaxReload("fileman_admin.php?" . $addUrl_s . "&site=" . urlencode($site) . "&path=" . urlencode($path) . "&show_perms_for=0") . ';return false;', "ICON" => !$isB ? "checked" : "");
}
$aContext = array();
示例12: array
$adminList->AddHeaders(array(array("id" => "ID", "content" => "ID", "sort" => "ID", "default" => true), array("id" => "NAME", "content" => Loc::getMessage("NAME"), "sort" => "name", "default" => true), array("id" => "CODE", "content" => Loc::getMessage("culture_code"), "sort" => "CODE", "default" => true), array("id" => "FORMAT_DATE", "content" => Loc::getMessage("culture_date"), "sort" => "FORMAT_DATE", "default" => true), array("id" => "FORMAT_DATETIME", "content" => Loc::getMessage("culture_datetime"), "sort" => "FORMAT_DATETIME", "default" => true), array("id" => "FORMAT_NAME", "content" => Loc::getMessage("culture_name"), "sort" => "FORMAT_NAME", "default" => true), array("id" => "CHARSET", "content" => Loc::getMessage("culture_charset"), "sort" => "CHARSET", "default" => true), array("id" => "WEEK_START", "content" => Loc::getMessage("culture_week"), "sort" => "WEEK_START", "default" => false), array("id" => "DIRECTION", "content" => Loc::getMessage("culture_direction"), "sort" => "DIRECTION", "default" => false)));
$days = array(Loc::getMessage("culture_su"), Loc::getMessage("culture_mo"), Loc::getMessage("culture_tu"), Loc::getMessage("culture_we"), Loc::getMessage("culture_th"), Loc::getMessage("culture_fr"), Loc::getMessage("culture_sa"));
while ($culture = $data->Fetch()) {
$id = htmlspecialcharsbx($culture["ID"]);
$name = htmlspecialcharsbx($culture["NAME"]);
$row =& $adminList->AddRow($id, $culture, "culture_edit.php?ID=" . $id . "&lang=" . LANGUAGE_ID, Loc::getMessage("LANG_EDIT_TITLE"));
$row->AddViewField("ID", $id);
$row->AddField("NAME", '<a href="culture_edit.php?ID=' . $id . '&lang=' . LANGUAGE_ID . '" title="' . Loc::getMessage("LANG_EDIT_TITLE") . '">' . $name . '</a>', $name);
$row->AddInputField("CODE");
$row->AddInputField("FORMAT_DATE");
$row->AddInputField("FORMAT_DATETIME");
$row->AddInputField("FORMAT_NAME");
$row->AddViewField("WEEK_START", $days[$culture["WEEK_START"]]);
$row->AddInputField("CHARSET");
$row->AddViewField("DIRECTION", $culture["DIRECTION"] == CultureTable::LEFT_TO_RIGHT ? Loc::getMessage("culture_left_to_right") : Loc::getMessage("culture_right_to_left"));
$arActions = array();
$arActions[] = array("ICON" => "edit", "TEXT" => Loc::getMessage("CHANGE"), "ACTION" => $adminList->ActionRedirect("culture_edit.php?ID=" . $id));
if ($isAdmin) {
$arActions[] = array("ICON" => "copy", "TEXT" => Loc::getMessage("COPY"), "ACTION" => $adminList->ActionRedirect("culture_edit.php?COPY_ID=" . $id));
$arActions[] = array("SEPARATOR" => true);
$arActions[] = array("ICON" => "delete", "TEXT" => Loc::getMessage("DELETE"), "ACTION" => "if(confirm('" . Loc::getMessage('CONFIRM_DEL') . "')) " . $adminList->ActionDoGroup($id, "delete"));
}
$row->AddActions($arActions);
}
$adminList->AddGroupActionTable(array("delete" => true));
$aContext = array(array("TEXT" => Loc::getMessage("ADD_LANG"), "LINK" => "culture_edit.php?lang=" . LANGUAGE_ID, "TITLE" => Loc::getMessage("ADD_LANG_TITLE"), "ICON" => "btn_new"));
$adminList->AddAdminContextMenu($aContext);
$adminList->CheckListMode();
require $_SERVER["DOCUMENT_ROOT"] . FX_ROOT . "/modules/main/include/prolog_admin_after.php";
$adminList->DisplayList();
require $_SERVER["DOCUMENT_ROOT"] . FX_ROOT . "/modules/main/include/epilog_admin.php";
示例13: switch
continue;
}
switch ($_REQUEST['action']) {
case "delete":
\Xpage\Seofilter\PropertyTable::delete($ID);
break;
}
}
}
$obGroups = \Xpage\Seofilter\PropertyTable::getList(['order' => ['ID' => 'ASC'], 'select' => ['ID', 'TITLE', 'SORT', 'PROPERTY_ID', 'PROPERTY_NAME' => 'PROPERTY.NAME']]);
$obGroups = new CAdminResult($obGroups, $listTableId);
$obGroups->NavStart();
$adminList->NavText($obGroups->GetNavPrint("Разделы"));
$colHeaders = [["id" => 'ID', "content" => 'ID', "sort" => 1, "default" => true], ["id" => 'TITLE', "content" => 'TITLE', "sort" => 2, "default" => true], ["id" => 'SORT', "content" => 'SORT', "sort" => 3, "default" => true], ["id" => 'PROPERTY_NAME', "content" => 'PROPERTY_NAME', "sort" => 4, "default" => true]];
$adminList->AddHeaders($colHeaders);
$visibleHeaderColumns = $adminList->GetVisibleHeaderColumns();
$arUsersCache = [];
while ($arRes = $obGroups->GetNext()) {
$row =& $adminList->AddRow($arRes["ID"], $arRes);
$arActions = [["ICON" => "delete", "TEXT" => "Удалить", "ACTION" => $adminList->ActionDoGroup($arRes["ID"], "delete")], ["ICON" => "edit", "TEXT" => "Редактировать", "ACTION" => $adminList->ActionRedirect("seofilter_property_edit.php?ID=" . $arRes["ID"] . "&lang=" . LANGUAGE_ID), "DEFAULT" => true], ["ICON" => "", "TEXT" => "Замена", "ACTION" => $adminList->ActionRedirect("seofilter_property_values_edit.php?ID=" . $arRes["PROPERTY_ID"] . "&lang=" . LANGUAGE_ID)]];
$row->AddActions($arActions);
}
$adminList->AddFooter([["title" => "Всего", "value" => $obGroups->SelectedRowsCount()], ["counter" => true, "title" => "Отмечено", "value" => "0"]]);
$adminList->AddGroupActionTable(["delete" => "Удалить"]);
$aContext = [["TEXT" => GetMessage("MAIN_ADD"), "LINK" => "seofilter_property_edit.php", "TITLE" => GetMessage("POST_ADD_TITLE"), "ICON" => "btn_new"]];
$adminList->AddAdminContextMenu($aContext);
$adminList->CheckListMode();
$APPLICATION->SetTitle("Свойства сеофильтра");
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
$adminList->DisplayList();
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
示例14: isset
$row->AddViewField("RESULT_EXECUTE", '');
$row->AddViewField("DATE_EXECUTE", '');
}
$row->AddViewField("STATUS", isset($arStatus[$f_STATUS]) ? $arStatus[$f_STATUS] : $f_STATUS);
$row->AddViewField("TASK_ID", isset($arTask[$f_TASK_ID]) ? $arTask[$f_TASK_ID] : $f_TASK_ID);
$row->AddViewField("CONTROLLER_MEMBER_NAME", '<a href="controller_member_edit.php?ID=' . $f_CONTROLLER_MEMBER_ID . '">' . $f_CONTROLLER_MEMBER_NAME . '</a>');
$row->AddViewField("CONTROLLER_MEMBER_URL", '<a href="' . $f_CONTROLLER_MEMBER_URL . '">' . $f_CONTROLLER_MEMBER_URL . '</a>');
$arActions = array();
$arActions[] = array("ICON" => "other", "TEXT" => GetMessage("CTRLR_TASK_MENU_REPEAT"), "ACTION" => "if(confirm('" . GetMessage("CTRLR_TASK_MENU_REPEAT_CONFIRM") . "')) " . $lAdmin->ActionDoGroup($f_ID, "repeat"));
$arActions[] = array("SEPARATOR" => true);
$arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("CTRLR_TASK_MENU_CANCEL"), "ACTION" => "if(confirm('" . GetMessage("CTRLR_TASK_MENU_CANCEL_CONFIRM") . "')) " . $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")));
if ($MOD_RIGHT >= "V") {
$lAdmin->AddGroupActionTable(array("delete" => GetMessage("MAIN_ADMIN_LIST_DELETE"), "repeat" => GetMessage("CTRLR_TASK_REPEAT")));
}
$lAdmin->AddAdminContextMenu(array());
$lAdmin->CheckListMode();
$APPLICATION->SetTitle(GetMessage("CTRLR_TASK_TITLE"));
require $_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/main/include/prolog_admin_after.php";
?>
<form name="form1" method="GET" action="<?php
echo $APPLICATION->GetCurPage();
?>
?">
<?php
$filter->Begin();
?>
<tr>
示例15: setTargetValue
$row =& $lAdmin->AddRow($f_ID, $arRes);
$row->AddViewField("EVENT1", $f_EVENT1 . '<input type="hidden" name="EVENT_NAME[' . $f_ID . ']" id="EVENT_NAME[' . $f_ID . ']" value="' . $f_EVENT . " [" . $f_ID . ']">');
$id = CUtil::JSEscape($f_ID . ($full_name == "Y" ? " (" . $f_EVENT1 . " / " . $f_EVENT2 . ")" : ""));
$fld = CUtil::JSEscape($field);
$row->AddViewField("SELECT_BUTTON", "<a href=\"" . htmlspecialcharsbx("javascript:setTargetValue('" . $id . "', '" . $fld . "');") . "\" title=\"" . GetMessage("STAT_CHOOSE_TITLE") . "\">" . GetMessage("STAT_CHOOSE") . "</a>");
if ($target_control == "text") {
$arActions = array(array("ICON" => "", "DEFAULT" => true, "TEXT" => GetMessage("STAT_CHOOSE"), "ACTION" => htmlspecialcharsbx("javascript:setTargetValue('" . $id . "', '" . $fld . "');")));
$row->AddActions($arActions);
}
}
$arFooter = array();
$arFooter[] = array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $rsData->SelectedRowsCount());
$arFooter[] = array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0");
$lAdmin->AddFooter($arFooter);
if ($target_control != "text") {
$lAdmin->AddGroupActionTable(array(array("action" => htmlspecialcharsbx("setTargetValue(0, '" . CUtil::JSEscape($field) . "')"), "value" => "select", "type" => "button", "title" => GetMessage("STAT_SELECT_TITLE"), "name" => GetMessage("STAT_SELECT"))), array("disable_action_target" => true));
}
$lAdmin->CheckListMode();
$APPLICATION->SetTitle(GetMessage("STAT_TITLE"));
/***************************************************************************
HTML
****************************************************************************/
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_popup_admin.php";
?>
<script type="text/javascript">
<!--
function setTargetValue(id, field)
{
var arSelect = window.opener.document.getElementById(field);
if(!arSelect)