本文整理汇总了PHP中CAdminList::ActionRedirect方法的典型用法代码示例。如果您正苦于以下问题:PHP CAdminList::ActionRedirect方法的具体用法?PHP CAdminList::ActionRedirect怎么用?PHP CAdminList::ActionRedirect使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAdminList
的用法示例。
在下文中一共展示了CAdminList::ActionRedirect方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$arHeaders[] = array("id" => "TIMESTAMP_X", "content" => GetMessage("MAIL_MBOX_ADM_DATECH"), "default" => true, "sort" => "timestamp_x");
$arHeaders[] = array("id" => "ID", "content" => "ID", "default" => true, "sort" => "id");
$lAdmin->AddHeaders($arHeaders);
// построение списка
while ($arRes = $rsData->NavNext(true, "f_")) {
$row =& $lAdmin->AddRow($f_ID, $arRes);
$str = "mail_filter_admin.php?lang=" . LANG . "&find_mailbox_id=" . $f_ID . "&set_filter=Y";
$row->AddViewField("MAILBOX_NAME", $str);
$row->AddCheckField("ACTIVE");
$row->AddInputField("NAME", array("size" => "35"));
$row->AddInputField("SERVER", array("size" => "35"));
$arActions = array();
$rules = CMailFilter::GetList(array(), array("MAILBOX_ID" => $f_ID), true);
$res = $rules->Fetch();
if ($arRes['USER_ID'] == 0) {
$arActions[] = array("ICON" => "list", "TEXT" => GetMessage("MAIL_MBOX_ADM_RULES_LINK") . " (" . intval($res["CNT"]) . ")", "ACTION" => $lAdmin->ActionRedirect("mail_filter_admin.php?set_filter=Y&find_mailbox_id=" . $f_ID . "&lang=" . LANG));
$arActions[] = array("ICON" => "add", "TEXT" => GetMessage("MAIL_MBOX_ADM_NEWRULE"), "ACTION" => $lAdmin->ActionRedirect("mail_filter_edit.php?MAILBOX_ID=" . $f_ID . "&lang=" . LANG));
$arActions[] = array("SEPARATOR" => true);
$arActions[] = array("ICON" => "list", "TEXT" => GetMessage("MAIL_MBOX_ADM_LOG"), "ACTION" => $lAdmin->ActionRedirect("mail_log.php?set_filter=Y&find_mailbox_id=" . $f_ID . "&lang=" . LANG));
$msgs = CMailMessage::GetList(array(), array("MAILBOX_ID" => $f_ID), true);
$res = $msgs->Fetch();
$arActions[] = array("ICON" => "list", "TEXT" => GetMessage("MAIL_MBOX_ADM_MESSAGES") . " (" . intval($res["CNT_NEW"]) . " / " . intval($res["CNT"]) . ")", "ACTION" => $lAdmin->ActionRedirect("mail_message_admin.php?set_filter=Y&find_mailbox_id=" . $f_ID . "&lang=" . LANG));
$arActions[] = array("SEPARATOR" => true);
}
$arActions[] = array("ICON" => "edit", "DEFAULT" => "Y", "TEXT" => GetMessage("MAIL_MBOX_ADM_CHANGE2"), "ACTION" => $lAdmin->ActionRedirect("mail_mailbox_edit.php?ID=" . $f_ID . "&lang=" . LANG));
if ($MOD_RIGHT == "W") {
$arActions[] = array("SEPARATOR" => true);
$arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("MAIL_MBOX_ADM_DELETE"), "ACTION" => "if(confirm('" . GetMessage('MAIL_MBOX_ADM_DEL_CONFIRM') . "')) " . $lAdmin->ActionDoGroup($f_ID, "delete"));
}
$row->AddActions($arActions);
}
示例2: while
while ($ar_LID = $db_LID->Fetch()) {
$strSITE_ID .= htmlspecialcharsbx($ar_LID["LID"]) . "<br>";
}
$row->AddViewField("LID", $strSITE_ID);
$row->AddCheckField("ACTIVE");
$row->AddInputField("SUBJECT", array("size" => 30));
$row->AddSelectField("BODY_TYPE", $arText_HTML);
$row->AddViewField("EMAIL_FROM", TxtToHtml($arRes["EMAIL_FROM"]));
$row->AddInputField("EMAIL_FROM");
$row->AddViewField("EMAIL_TO", TxtToHtml($arRes["EMAIL_TO"]));
$row->AddInputField("EMAIL_TO");
$row->AddViewField("BCC", TxtToHtml($arRes["BCC"]));
$row->AddInputField("BCC");
$row->AddSelectField("EVENT_NAME", $arEventTypes);
$arActions = array();
$arActions[] = array("ICON" => "edit", "TEXT" => GetMessage("MAIN_ADMIN_MENU_EDIT"), "ACTION" => $lAdmin->ActionRedirect("message_edit.php?ID=" . $f_ID));
$arActions[] = array("ICON" => "copy", "TEXT" => GetMessage("MAIN_ADMIN_ADD_COPY"), "ACTION" => $lAdmin->ActionRedirect("message_edit.php?COPY_ID=" . $f_ID));
if ($isAdmin) {
$arActions[] = array("SEPARATOR" => true);
$arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("MAIN_ADMIN_MENU_DELETE"), "ACTION" => "if(confirm('" . GetMessage('CONFIRM_DEL_MESSAGE') . "')) " . $lAdmin->ActionDoGroup($f_ID, "delete"));
}
$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")));
// Form with buttons
$lAdmin->AddGroupActionTable(array("delete" => GetMessage("MAIN_ADMIN_LIST_DELETE"), "activate" => GetMessage("MAIN_ADMIN_LIST_ACTIVATE"), "deactivate" => GetMessage("MAIN_ADMIN_LIST_DEACTIVATE")));
// $arr = array("REFERENCE" => $event_type_ref, "REFERENCE_ID" => $event_type_ref_id);
// echo SelectBoxFromArray("EVENT_NAME", $arr, htmlspecialcharsbx($find_type_id));
// contextual menu (add, go_to_list)
$aContext = array(array("TEXT" => GetMessage("ADD_TEMPL"), "LINK" => "message_edit.php?lang=" . LANG . '&' . GetFilterParams("find_" . $type . "_"), "TITLE" => GetMessage("ADD_TEMPL_TITLE"), "ICON" => "btn_new"));
示例3: GetMessage
$dbUserTmp = CUser::GetByID($f_STARTED_BY);
$arUserTmp = $dbUserTmp->fetch();
$row->AddField("WORKFLOW_STARTED_BY", CUser::FormatName(COption::GetOptionString("bizproc", "name_template", CSite::GetNameFormat(false), SITE_ID), $arUserTmp, true) . " [" . $f_STARTED_BY . "]");
}
if (in_array("USER", $arVisibleColumns)) {
$dbUserTmp = CUser::GetByID($arResultItem["USER_ID"]);
if ($arUserTmp = $dbUserTmp->GetNext()) {
$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);
示例4: array
$lAdmin->AddHeaders(array(array("id" => "ID", "content" => "ID", "sort" => "id", "default" => true), array("id" => "USER_ID", "content" => GetMessage("SCA_USER"), "sort" => "user_id", "default" => true), array("id" => "ACTIVE", "content" => GetMessage("SCA_ACT"), "sort" => "active", "default" => true), array("id" => "SORT", "content" => GetMessage("SCA_SORT"), "sort" => "sort", "default" => true), array("id" => "CURRENCY", "content" => GetMessage("SCA_CURRENCY"), "sort" => "currency", "default" => true), array("id" => "CARD_TYPE", "content" => GetMessage("SCA_TYPE"), "sort" => "card_type", "default" => true)));
$arVisibleColumns = $lAdmin->GetVisibleHeaderColumns();
while ($arCCard = $dbResultList->NavNext(true, "f_")) {
$row =& $lAdmin->AddRow($f_ID, $arCCard, "sale_ccards_edit.php?ID=" . $f_ID . "&lang=" . LANG . GetFilterParams("filter_"), GetMessage("SCA_UPDATE_ALT"));
$row->AddField("ID", $f_ID);
$fieldValue = "[<a href=\"/bitrix/admin/user_edit.php?ID=" . $f_USER_ID . "&lang=" . LANG . "\">" . $f_USER_ID . "</a>] ";
$fieldValue .= htmlspecialcharsEx($arCCard["USER_NAME"] . (strlen($arCCard["USER_NAME"]) <= 0 || strlen($arCCard["USER_LAST_NAME"]) <= 0 ? "" : " ") . $arCCard["USER_LAST_NAME"]) . "<br>";
$fieldValue .= htmlspecialcharsEx($arCCard["USER_LOGIN"]) . " ";
$fieldValue .= "<a href=\"mailto:" . htmlspecialcharsEx($arCCard["USER_EMAIL"]) . "\">" . htmlspecialcharsEx($arCCard["USER_EMAIL"]) . "</a>";
$row->AddField("USER_ID", $fieldValue);
$row->AddCheckField("ACTIVE");
$row->AddInputField("SORT");
$row->AddField("CURRENCY", $f_CURRENCY);
$row->AddField("CARD_TYPE", $f_CARD_TYPE);
$arActions = array();
$arActions[] = array("ICON" => "edit", "TEXT" => GetMessage("SCA_UPDATE_ALT"), "ACTION" => $lAdmin->ActionRedirect("sale_ccards_edit.php?ID=" . $f_ID . "&lang=" . LANG . GetFilterParams("filter_") . ""), "DEFAULT" => true);
if ($saleModulePermissions >= "W") {
$arActions[] = array("SEPARATOR" => true);
$arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("SCA_DELETE_ALT1"), "ACTION" => "if(confirm('" . GetMessage('SCA_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"), "activate" => GetMessage("MAIN_ADMIN_LIST_ACTIVATE"), "deactivate" => GetMessage("MAIN_ADMIN_LIST_DEACTIVATE")));
if ($saleModulePermissions == "W") {
$aContext = array(array("TEXT" => GetMessage("SCAN_ADD_NEW"), "LINK" => "sale_ccards_edit.php?lang=" . LANG, "TITLE" => GetMessage("SCAN_ADD_NEW_ALT"), "ICON" => "btn_new"));
$lAdmin->AddAdminContextMenu($aContext);
}
$lAdmin->CheckListMode();
/****************************************************************************/
/*********** MAIN PAGE ****************************************************/
示例5: array
}
}
$arHeaders = array(array("id" => "ID", "content" => GetMessage("LFP_SCHEME_LIST_ID"), "sort" => "ID", "align" => "right", "default" => true), array("id" => "NAME", "content" => GetMessage("LFP_SCHEME_LIST_NAME"), "sort" => "NAME", "align" => "left", "default" => true), array("id" => "ACTIVE", "content" => GetMessage("LFP_SCHEME_LIST_ACTIVE"), "sort" => "ACTIVE", "align" => "left", "default" => true), array("id" => "SORT", "content" => GetMessage("LFP_SCHEME_LIST_SORT"), "sort" => "SORT", "align" => "left", "default" => true), array("id" => "LID", "content" => GetMessage("LFP_SCHEME_LIST_LID"), "sort" => "LID", "align" => "left", "default" => true), array("id" => "TYPE", "content" => GetMessage("LFP_SCHEME_LIST_TYPE"), "sort" => "TYPE", "align" => "left", "default" => true));
$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';"));
示例6: GetMessage
$lAdmin->NavText($rsData->GetNavPrint(GetMessage("MAIN_AGENT_LIST_PAGE")));
$lAdmin->AddHeaders(array(array("id" => "ID", "content" => GetMessage("MAIN_AGENT_ID"), "sort" => "ID", "default" => true), array("id" => "MODULE_ID", "content" => GetMessage("MAIN_AGENT_MODULE_ID"), "sort" => "MODULE_ID", "default" => true), array("id" => "USER_ID", "content" => GetMessage("MAIN_AGENT_USER_ID"), "sort" => "USER_ID", "default" => true), array("id" => "SORT", "content" => GetMessage("MAIN_AGENT_SORT"), "sort" => "SORT"), array("id" => "NAME", "content" => GetMessage("MAIN_AGENT_NAME"), "sort" => "NAME", "default" => true), array("id" => "ACTIVE", "content" => GetMessage("MAIN_AGENT_ACTIVE"), "sort" => "ACTIVE", "default" => true), array("id" => "LAST_EXEC", "content" => GetMessage("MAIN_AGENT_LAST_EXEC"), "sort" => "LAST_EXEC", "default" => true), array("id" => "NEXT_EXEC", "content" => GetMessage("MAIN_AGENT_NEXT_EXEC"), "sort" => "NEXT_EXEC", "default" => true), array("id" => "AGENT_INTERVAL", "content" => GetMessage("MAIN_AGENT_INTERVAL"), "sort" => "AGENT_INTERVAL", "default" => true), array("id" => "IS_PERIOD", "content" => GetMessage("MAIN_AGENT_PERIOD"), "sort" => "IS_PERIOD")));
while ($db_res = $rsData->NavNext(true, "a_")) {
$row =& $lAdmin->AddRow($a_ID, $db_res);
$row->AddField("ID", $a_ID);
$row->AddField("MODULE_ID", $a_MODULE_ID);
$row->AddField("USER_ID", $a_USER_ID > 0 ? "<a href=\"/freetrix/admin/user_edit.php?ID=" . $a_USER_ID . "&lang=" . LANG . "\">[" . $a_USER_ID . "] " . $a_USER_NAME . " " . $a_LAST_NAME . " (" . $a_LOGIN . ")</a>" : GetMessage("MAIN_AGENT_SYSTEM_USER"));
$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?>">
示例7: 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();
示例8: implode
</dd>
HTML;
}
}
$row->AddField("LAND", implode("<br />", $res));
$row->AddEditField("LAND", '<dl>' . implode("", $res2) . '</dl>');
$row->AddInputField("SORT", $bCanUpdateForum ? array("size" => "3") : false);
$row->AddViewField("FORUM_GROUP_ID", $arForumGroups[$f_FORUM_GROUP_ID]["NAME"]);
$row->AddSelectField("FORUM_GROUP_ID", $bCanUpdateForum ? $arForumGroupsTitle : false);
$row->AddCheckField("MODERATION", $bCanUpdateForum ? array() : false);
$row->AddCheckField("INDEXATION", $bCanUpdateForum ? array() : false);
$row->AddSelectField("ORDER_BY", $bCanUpdateForum ? $arForumSort : false);
$row->AddSelectField("ORDER_DIRECTION", $bCanUpdateForum ? $arForumSortDirection : false);
$arActions = array();
if ($bCanUpdateForum) {
$arActions[] = array("ICON" => "edit", "TEXT" => GetMessage("FORUM_EDIT"), "ACTION" => $lAdmin->ActionRedirect("forum_edit.php?ID=" . $f_ID . "&lang=" . LANG . GetFilterParams("filter_", false) . ""), "DEFAULT" => true);
}
if ($bCanDeleteForum) {
$arActions[] = array("SEPARATOR" => true);
$arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("FORUM_DELETE"), "ACTION" => "if(confirm('" . GetMessage('DELETE_CONFIRM') . "')) " . $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"), "activate" => GetMessage("MAIN_ADMIN_LIST_ACTIVATE"), "deactivate" => GetMessage("MAIN_ADMIN_LIST_DEACTIVATE"), "clear_html" => GetMessage("MAIN_ADMIN_LIST_CLEAR_HTML")));
if ($forumModulePermissions >= "W") {
$aContext = array(array("TEXT" => GetMessage("FFAN_ADD_NEW"), "LINK" => "forum_edit.php?lang=" . LANG, "TITLE" => GetMessage("FFAN_ADD_NEW_ALT"), "ICON" => "btn_new"));
$lAdmin->AddAdminContextMenu($aContext);
}
$lAdmin->CheckListMode();
/****************************************************************************/
示例9: trim
if ($VOTE_RIGHT == "W") {
$row->AddViewField("SITE", trim($str, " ,"));
$row->AddCheckField("ACTIVE");
$row->AddCheckField("DIAGRAM");
$row->AddCheckField("REQUIRED");
$row->AddInputField("C_SORT");
$f_QUESTION_TEXT = $arRes["QUESTION_TYPE"] == "text" ? "checked" : "";
$f_QUESTION_HTML = $arRes["QUESTION_TYPE"] == "text" ? "" : "checked";
$sHTML = <<<HTML
\t\t\t<input type="radio" name="FIELDS[{$f_ID}][QUESTION_TYPE]" value="text" id="{$f_ID}QUESTIONTEXT" {$f_QUESTION_TEXT} /><label for="{$f_ID}QUESTION">text</label>
\t\t\t<input type="radio" name="FIELDS[{$f_ID}][QUESTION_TYPE]" value="html" id="{$f_ID}QUESTIONHTML" {$f_QUESTION_HTML} /><label for="{$f_ID}QUESTION">html</label><br>
\t\t\t<textarea rows="10" cols="70" name="FIELDS[{$f_ID}][QUESTION]">{$f_QUESTION}</textarea>
HTML;
$row->AddEditField("QUESTION", $sHTML);
$row->AddFileField("IMAGE_ID", array("IMAGE" => "Y", "PATH" => "Y", "FILE_SIZE" => "Y", "DIMENSIONS" => "Y", "IMAGE_POPUP" => "Y"), array('upload' => true, 'medialib' => false, 'file_dialog' => false, 'cloud' => false, 'del' => true, 'description' => false));
$row->AddActions(array(array("ICON" => "edit", "DEFAULT" => true, "TEXT" => GetMessage("MAIN_ADMIN_MENU_EDIT"), "ACTION" => $lAdmin->ActionRedirect("vote_question_edit.php?ID={$f_ID}&VOTE_ID={$VOTE_ID}")), array("ICON" => "delete", "TEXT" => GetMessage("MAIN_ADMIN_MENU_DELETE"), "ACTION" => "if(confirm('" . GetMessage("VOTE_CONFIRM_DEL_QUESTION") . "')) window.location='vote_question_list.php?lang=" . LANGUAGE_ID . "&VOTE_ID={$VOTE_ID}&action=delete&ID={$f_ID}&" . bitrix_sessid_get() . "'")));
}
}
$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 ($VOTE_RIGHT == "W") {
$lAdmin->AddGroupActionTable(array("delete" => GetMessage("VOTE_DELETE"), "activate" => GetMessage("VOTE_ACTIVATE"), "deactivate" => GetMessage("VOTE_DEACTIVATE")));
$aMenu[] = array("TEXT" => GetMessage("VOTE_CREATE"), "TITLE" => GetMessage("VOTE_ADD_QUESTION"), "LINK" => "vote_question_edit.php?lang=" . LANG . "&VOTE_ID={$VOTE_ID}", "ICON" => "btn_new");
$aContext = $aMenu;
$lAdmin->AddAdminContextMenu($aContext);
}
$lAdmin->CheckListMode();
/********************************************************************
Form
********************************************************************/
$APPLICATION->SetTitle(str_replace("#ID#", "{$VOTE_ID}", GetMessage("VOTE_PAGE_TITLE")));
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
示例10: GetMessage
$basketAvaible .= GetMessage("SB_TYPE_SUB");
} elseif ($arB["DELAY"] == "Y") {
$basketAvaible .= GetMessage("SB_TYPE_DEL");
} elseif ($arB["CAN_BUY"] == "Y") {
$basketAvaible .= GetMessage("SB_TYPE_AV");
} else {
$basketAvaible .= GetMessage("SB_TYPE_NA");
}
}
$row->AddField("BASKET", $basket);
$row->AddField("BASKET_NAME", $basketName);
$row->AddField("BASKET_PRICE", $basketPrice);
$row->AddField("BASKET_QUANTITY", $basketQuantity);
$row->AddField("BASKET_AVAIBLE", $basketAvaible);
$arActions = array();
$arActions[] = array("ICON" => "", "TEXT" => GetMessage("SB_CREATE_ORDER"), "ACTION" => $lAdmin->ActionRedirect("sale_basket.php?FUSER_ID=" . $arBasket["FUSER_ID"] . "&SITE_ID=" . $arBasket["LID"] . "&USER_ID=" . $arBasket["USER_ID"] . "&action=order_basket&lang=" . LANG), "DEFAULT" => true);
if (IntVal($arBasket["USER_ID"]) > 0) {
$arActions[] = array("ICON" => "", "TEXT" => GetMessage("SB_FUSER_INFO"), "ACTION" => $lAdmin->ActionRedirect("sale_buyers_profile.php?USER_ID=" . $arBasket["USER_ID"] . "&lang=" . LANG));
}
$row->AddActions($arActions);
}
$arFooterArray = array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $dbResultList->SelectedRowsCount()));
$lAdmin->AddFooter($arFooterArray);
$aContext = array();
$lAdmin->AddAdminContextMenu($aContext);
$lAdmin->CheckListMode();
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/sale/prolog.php";
$APPLICATION->SetTitle(GetMessage("SB_TITLE"));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
?>
<form name="find_form" method="GET" action="<?php
示例11: GetMessage
while ($arSocNet = $dbResultList->NavNext(true, "f_")) {
$row =& $lAdmin->AddRow($f_ID, $arSocNet);
$row->AddField("ID", '<a href="/bitrix/admin/socnet_smile_edit.php?ID=' . $f_ID . '&lang=' . LANGUAGE_ID . '" title="' . GetMessage("SONET_EDIT_DESCR") . '">' . $f_ID . '</a>');
$row->AddField("SORT", $f_SORT);
$row->AddField("SMILE_TYPE", $f_SMILE_TYPE == "I" ? GetMessage("SMILE_TYPE_ICON") : GetMessage("SMILE_TYPE_SMILE"));
$fieldShow = "";
if (in_array("NAME", $arVisibleColumns)) {
$arSmileLang = CSocNetSmile::GetLangByID($f_ID, LANG);
$fieldShow .= htmlspecialcharsbx($arSmileLang["NAME"]);
}
$row->AddField("NAME", $fieldShow);
$row->AddField("TYPING", $f_TYPING);
$row->AddField("ICON", "<img src=\"/bitrix/images/socialnetwork/" . ($f_SMILE_TYPE == "I" ? "icon" : "smile") . "/" . $f_IMAGE . "\" border=\"0\" " . (IntVal($f_IMAGE_WIDTH) > 0 ? "width=\"" . $f_IMAGE_WIDTH . "\"" : "") . " " . (IntVal($f_IMAGE_WIDTH) > 0 ? "height=\"" . $f_IMAGE_HEIGHT . "\"" : "") . ">");
$arActions = array();
if ($sonetModulePermissions >= "R") {
$arActions[] = array("ICON" => "edit", "TEXT" => GetMessage("SONET_EDIT_DESCR"), "ACTION" => $lAdmin->ActionRedirect("socnet_smile_edit.php?ID=" . $f_ID . "&lang=" . LANG . "&" . GetFilterParams("filter_") . ""), "DEFAULT" => true);
}
if ($sonetModulePermissions >= "W") {
$arActions[] = array("SEPARATOR" => true);
$arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("SONET_DELETE_DESCR"), "ACTION" => "if(confirm('" . GetMessage('SMILE_DEL_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")));
if ($sonetModulePermissions >= "W") {
$aContext = array(array("TEXT" => GetMessage("FSAN_ADD_NEW"), "LINK" => "socnet_smile_edit.php?lang=" . LANG, "TITLE" => GetMessage("FSAN_ADD_NEW_ALT"), "ICON" => "btn_new"));
$lAdmin->AddAdminContextMenu($aContext);
}
示例12: GetMessage
}
$row->AddViewField("STATUS", $html);
if ($arRes["STATUS"] == "ONLINE" && $uptime > 0) {
$htmlFLAG = '<div class="lamp-green"></div>';
} else {
$htmlFLAG = '<div class="lamp-red"></div>';
}
if ($uptime === false) {
$htmlFLAG .= GetMessage("CLU_MEMCACHE_NOCONNECTION");
} else {
$htmlFLAG .= GetMessage("CLU_MEMCACHE_UPTIME") . "<br>" . FormatDate(array("s" => "sdiff", "i" => "idiff", "H" => "Hdiff", "" => "ddiff"), time() - $uptime);
}
$row->AddViewField("FLAG", $htmlFLAG);
$row->AddViewField("HOST", $arRes["HOST"] . ":" . $arRes["PORT"]);
$arActions = array();
$arActions[] = array("ICON" => "edit", "DEFAULT" => true, "TEXT" => GetMessage("CLU_MEMCACHE_LIST_EDIT"), "ACTION" => $lAdmin->ActionRedirect('cluster_memcache_edit.php?lang=' . LANGUAGE_ID . '&group_id=' . $group_id . '&ID=' . $arRes["ID"]));
if ($arRes["STATUS"] == "READY") {
$arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("CLU_MEMCACHE_LIST_DELETE"), "ACTION" => "if(confirm('" . GetMessage("CLU_MEMCACHE_LIST_DELETE_CONF") . "')) " . $lAdmin->ActionDoGroup($arRes["ID"], "delete", 'group_id=' . $group_id));
$arActions[] = array("TEXT" => GetMessage("CLU_MEMCACHE_LIST_START_USING"), "ACTION" => $lAdmin->ActionDoGroup($arRes["ID"], "resume", 'group_id=' . $group_id));
} elseif ($arRes["STATUS"] == "ONLINE") {
$arActions[] = array("TEXT" => GetMessage("CLU_MEMCACHE_LIST_STOP_USING"), "ACTION" => $lAdmin->ActionDoGroup($arRes["ID"], "pause", 'group_id=' . $group_id));
}
if (!empty($arActions)) {
$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(array("TEXT" => GetMessage("CLU_MEMCACHE_LIST_ADD"), "LINK" => "/bitrix/admin/cluster_memcache_edit.php?lang=" . LANGUAGE_ID . '&group_id=' . $group_id, "TITLE" => GetMessage("CLU_MEMCACHE_LIST_ADD_TITLE"), "ICON" => "btn_new"), array("TEXT" => GetMessage("CLU_MEMCACHE_LIST_REFRESH"), "LINK" => "cluster_memcache_list.php?lang=" . LANGUAGE_ID . '&group_id=' . $group_id));
$lAdmin->AddAdminContextMenu($aContext, false);
$lAdmin->CheckListMode();
$APPLICATION->SetTitle(GetMessage("CLU_MEMCACHE_LIST_TITLE"));
示例13: Array
{
$row =& $lAdmin->AddRow($f_ID, $arRes);
$row->AddViewField("DEFAULT_VALUE", ($f_DEFAULT_VALUE=="Y")?GetMessage("FORM_YES"):GetMessage("FORM_NO"));
$row->AddViewField("RESULTS", "<a href='form_result_list.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$WEB_FORM_ID&find_status=$f_ID&set_filter=Y' title='".GetMessage("FORM_RESULT_TITLE")."'>$f_RESULTS</a>");
$row->AddViewField("TITLE", "<a href='form_status_edit.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$WEB_FORM_ID&ID=$f_ID' title='".GetMessage("FORM_EDIT")."'>$f_TITLE</a>");
$row->AddCheckField("ACTIVE");
$row->AddInputField("C_SORT");
$arActions = Array();
$arActions[] = array(
"DEFAULT"=>"Y",
"ICON"=>"edit",
"TITLE"=>GetMessage("FORM_EDIT_ALT"),
"ACTION"=>$lAdmin->ActionRedirect("form_status_edit.php?lang=".LANGUAGE_ID."&ID=$f_ID&WEB_FORM_ID=$WEB_FORM_ID"),
"TEXT"=>GetMessage("FORM_EDIT")
);
if ($F_RIGHT>=30)
{
$arActions[] = array(
"ICON"=>"copy",
"TITLE"=>GetMessage("FORM_COPY"),
"ACTION"=>$lAdmin->ActionRedirect("form_status_list.php?lang=".LANGUAGE_ID."&cp_id=$f_ID&WEB_FORM_ID=$WEB_FORM_ID&".freetrix_sessid_get()),
"TEXT"=>GetMessage("FORM_CP")
);
$arActions[] = array(
"ICON"=>"delete",
"TITLE"=>GetMessage("FORM_STATUS_DELETE_ALT"),
"ACTION"=>"javascript:if(confirm('".GetMessage("FORM_DELETE_STATUS_CONFIRM")."')) ".$lAdmin->ActionRedirect("?lang=".LANGUAGE_ID."&action=delete&ID=$f_ID&WEB_FORM_ID=$WEB_FORM_ID&".freetrix_sessid_get()),
"TEXT"=>GetMessage("FORM_STATUS_DELETE")
示例14: array
$row->AddField("ONLINE", '<div class="lamp-green"></div>');
}
else
{
$row->AddField("ONLINE", '<div class="lamp-red" onmouseover="BX.hint(this, \''.Converter::getHtmlConverter()->encode(CUtil::JSEscape(Loc::getMessage('SEO_CAMPAIGN_WRONG_OWNER', array("#USERINFO#" => "(".$campaign["OWNER_ID"].") ".$campaign["OWNER_NAME"])))).'\');"></div>');
}
*/
$row->AddField("UPDATE", '<input type="button" ' . ($bOwner ? '' : 'disabled="disabled"') . ' class="adm-btn-save" value="' . Converter::getHtmlConverter()->encode(Loc::getMessage('SEO_CAMPAIGN_UPDATE')) . '" onclick="updateCampaign(this, ' . $campaign['ID'] . ')" name="save" id="campaign_update_button_' . $campaign['ID'] . '"' . ($bNeedAuth ? ' disabled="disabled"' : '') . ' />');
$row->AddViewField('XML_ID', '<a href="https://direct.yandex.ru/registered/main.pl?cmd=editCamp&cid=' . $campaign['XML_ID'] . '" target="_blank" title="' . Converter::getHtmlConverter()->encode(Loc::getMessage('SEO_CAMPAIGN_EDIT_EXTERNAL')) . '">' . Loc::getMessage('SEO_YANDEX_DIRECT_LINK_TPL', array('#XML_ID#' => $campaign['XML_ID'])) . '</a>');
if ($campaign['SETTINGS']['StatusArchive'] == Engine\YandexDirect::BOOL_YES) {
$row->AddViewField('BANNER_CNT', '<a href="seo_search_yandex_direct_banner.php?lang=' . LANGUAGE_ID . '&campaign=' . $campaign['ID'] . '&archive=1" title="' . Converter::getHtmlConverter()->encode(Loc::getMessage('SEO_CAMPAIGN_BANNER_CNT_TITLE')) . '">' . $bannerCnt . '</a>');
} else {
$row->AddViewField('BANNER_CNT', '<a href="seo_search_yandex_direct_banner.php?lang=' . LANGUAGE_ID . '&campaign=' . $campaign['ID'] . '" title="' . Converter::getHtmlConverter()->encode(Loc::getMessage('SEO_CAMPAIGN_BANNER_CNT_TITLE')) . '">' . $bannerCnt . '</a>' . ($bStrategySupported ? ' [<a href="seo_search_yandex_direct_banner_edit.php?lang=' . LANGUAGE_ID . '&campaign=' . $campaign['ID'] . '" title="' . Converter::getHtmlConverter()->encode(Loc::getMessage('SEO_CAMPAIGN_BANNER_ADD_TITLE')) . '">+</a>]' : ''));
}
if (!$bNeedAuth) {
$actionsList = array(array("ICON" => $bOwner && $bStrategySupported ? "edit" : 'view', "TEXT" => Loc::getMessage($bOwner && $bStrategySupported ? "SEO_CAMPAIGN_EDIT" : "SEO_BANNER_VIEW"), "ACTION" => $adminList->ActionRedirect($editUrl), "DEFAULT" => true));
if ($bOwner) {
$actionsList[] = array("ICON" => "move", "TEXT" => Loc::getMessage("SEO_CAMPAIGN_UPDATE"), "ACTION" => 'updateCampaign(BX(\'campaign_update_button_' . $campaign['ID'] . '\'), ' . $campaign['ID'] . ');');
}
$actionsList[] = array("ICON" => "list", "TEXT" => Loc::getMessage("SEO_CAMPAIGN_BANNER_CNT"), "ACTION" => $adminList->ActionRedirect('seo_search_yandex_direct_banner.php?lang=' . LANGUAGE_ID . '&campaign=' . $campaign['ID'] . ($archive ? '&archive=1' : '')));
if ($bOwner) {
if ($campaign['SETTINGS']['StatusArchive'] == Engine\YandexDirect::BOOL_NO) {
if ($campaign['SETTINGS']['StatusShow'] == Engine\YandexDirect::BOOL_YES) {
$actionsList[] = array("ICON" => "stop", "TEXT" => Loc::getMessage("SEO_BANNER_STOP"), "ACTION" => $adminList->ActionDoGroup($campaign['ID'], 'stop'));
} else {
$actionsList[] = array("ICON" => "resume", "TEXT" => Loc::getMessage("SEO_BANNER_RESUME"), "ACTION" => $adminList->ActionDoGroup($campaign['ID'], 'resume'));
}
}
if ($campaign['SETTINGS']['StatusArchive'] == Engine\YandexDirect::BOOL_YES) {
$actionsList[] = array("ICON" => "unarchive", "TEXT" => Loc::getMessage("SEO_CAMPAIGN_UNARCHIVE"), "ACTION" => "BX.adminPanel.showWait(BX('campaign_update_button_" . $campaign['ID'] . "'));" . $adminList->ActionDoGroup($campaign['ID'], "unarchive", "archive=1"));
} elseif ($campaign['SETTINGS']['IsActive'] !== Engine\YandexDirect::BOOL_YES) {
示例15: array
$dbResultList->NavStart();
$lAdmin->NavText($dbResultList->GetNavPrint(GetMessage("cat_extra_nav")));
while ($arExtra = $dbResultList->NavNext(true, "f_")) {
$row =& $lAdmin->AddRow($f_ID, $arExtra);
$row->AddField("ID", $f_ID);
if ($bReadOnly) {
$row->AddViewField("NAME", $f_NAME);
$row->AddViewField("PERCENTAGE", $f_PERCENTAGE);
} else {
$row->AddInputField("NAME", array("size" => "35"));
$row->AddInputField("PERCENTAGE", array("size" => "10"));
$row->AddCheckField("RECALCULATE");
$row->AddViewField("RECALCULATE", '');
}
$arActions = array();
$arActions[] = array("ICON" => "edit", "TEXT" => GetMessage("CEN_UPDATE_ALT"), "ACTION" => $lAdmin->ActionRedirect("/bitrix/admin/cat_extra_edit.php?ID=" . $f_ID . "&lang=" . LANGUAGE_ID), "DEFAULT" => true);
if (!$bReadOnly) {
$arActions[] = array("SEPARATOR" => true);
$arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("CEN_DELETE_ALT"), "ACTION" => "if(confirm('" . GetMessage('CEN_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")));
if (!$bReadOnly) {
$lAdmin->AddGroupActionTable(array("delete" => GetMessage("MAIN_ADMIN_LIST_DELETE")));
}
if (!$bReadOnly) {
$aContext = array(array("TEXT" => GetMessage("CEN_ADD_NEW"), "ICON" => "btn_new", "LINK" => "cat_extra_edit.php?lang=" . LANG, "TITLE" => GetMessage("CEN_ADD_NEW_ALT")));
$lAdmin->AddAdminContextMenu($aContext);
}
$lAdmin->CheckListMode();