本文整理汇总了PHP中CAdminResult::SelectedRowsCount方法的典型用法代码示例。如果您正苦于以下问题:PHP CAdminResult::SelectedRowsCount方法的具体用法?PHP CAdminResult::SelectedRowsCount怎么用?PHP CAdminResult::SelectedRowsCount使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAdminResult
的用法示例。
在下文中一共展示了CAdminResult::SelectedRowsCount方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$arRowActions[] = array("ICON" => "edit", "TEXT" => GetMessage('SALE_REPORT_LIST_ROW_ACTIONS_EDIT_TEXT'), "ACTION" => $lReports->ActionRedirect("sale_report_construct.php?ID=" . $arRes['ID'] . "&lang=" . LANG));
}
$arRowActions[] = array("ICON" => "delete", "TEXT" => GetMessage('SALE_REPORT_LIST_ROW_ACTIONS_DELETE_TEXT'), "ACTION" => "if(confirm('" . GetMessage("REPORT_DELETE_CONFIRM") . "')) " . $lReports->ActionDoGroup($arRes['ID'], "delete"));
}
// </editor-fold>
$lRow->AddActions($arRowActions);
$nReports++;
}
// Group actions
$lReports->AddGroupActionTable(array("delete" => GetMessage("MAIN_ADMIN_LIST_DELETE")));
// Menu of actions.
$arContextMenu = array(array("TEXT" => GetMessage("SALE_REPORT_LIST_ADD_REPORT"), "LINK" => "sale_report_construct.php?lang=" . LANG, "TITLE" => GetMessage("SALE_REPORT_LIST_ADD_REPORT_TITLE"), "ICON" => "btn_new"));
// Attach "Menu of actions".
$lReports->AddAdminContextMenu($arContextMenu);
// Adding summary row.
$lReports->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $dbRepList->SelectedRowsCount()), array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0")));
// Processing options or export to Excel.
$lReports->CheckListMode();
}
// </editor-fold>
// Page header
$APPLICATION->SetTitle(GetMessage("SALE_REPORT_TITLE"));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
// <editor-fold defaultstate="collapsed" desc="--------- Page output ---------">
if ($errorMessage) {
$errAdmMessage = new CAdminMessage(array("DETAILS" => $errorMessage, "TYPE" => "ERROR", "MESSAGE" => GetMessage('SALE_REPORT_ERROR_GETREPORTLIST'), "HTML" => true));
echo $errAdmMessage->Show();
} else {
?>
<?php
if ($nReports == 0) {
示例2: CAdminResult
$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();
$APPLICATION->SetTitle(GetMessage("PERFMON_ICOMPLETE_TITLE"));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
$lAdmin->DisplayList();
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
示例3: addFooter
/**
* Подготавливает массив с настройками футера таблицы Bitrix
* @param \CAdminResult $res - результат выборки данных
*/
protected function addFooter($res)
{
$this->footer = array(array("title" => Loc::getMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $res->SelectedRowsCount()), array("counter" => true, "title" => Loc::getMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0"));
}
示例4: GetMessage
$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
echo $APPLICATION->GetCurPage();
?>
?">
<?php
$oFilter = new CAdminFilter($sTableID . "_filter", array("find_universal" => GetMessage("SB_UNIVERSAL"), "find_user" => GetMessage("SB_FUSER_ID"), "find_user_login" => GetMessage("SB_USER_LOGIN"), "find_price" => GetMessage("SB_PRICE_ALL"), "find_quantity" => GetMessage("SB_QUANTITY_ALL"), "find_cnt" => GetMessage("SB_CNT"), "find_bt" => GetMessage("SB_BASKET_TYPE"), "find_di" => GetMessage("SB_DATE_INSERT"), "find_du" => GetMessage("SB_DATE_UPDATE"), "find_pi" => GetMessage("SB_PRODUCT_ID"), "find_cur" => GetMessage("SB_CURRENCY"), "find_ug" => GetMessage("SB_USER_GROUP_ID"), "find_lid" => GetMessage("SB_LID")));
$oFilter->SetDefaultRows(array("find_universal", "find_price", "find_ug", "find_quantity"));
示例5: array
$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);
}
//die;
$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 ($CURRENCY_RIGHT=="W")
{
$lAdmin->AddGroupActionTable(Array(
"delete"=>GetMessage("MAIN_ADMIN_LIST_DELETE"),
)
);
}*/
$aContext = array(
/*array(
示例6: unset
}
$row->AddViewField("CREATED_BY", $strCreatedBy);
}
if ($selectFieldsMap['MODIFIED_BY']) {
$strModifiedBy = '';
if ($row->arRes['MODIFIED_BY'] > 0 && isset($userList[$row->arRes['MODIFIED_BY']])) {
$strModifiedBy = $userList[$row->arRes['MODIFIED_BY']];
}
$row->AddViewField("MODIFIED_BY", $strModifiedBy);
}
}
if (isset($row)) {
unset($row);
}
}
$adminList->AddFooter(array(array('title' => Loc::getMessage('MAIN_ADMIN_LIST_SELECTED'), 'value' => $discountIterator->SelectedRowsCount()), array('counter' => true, 'title' => Loc::getMessage("MAIN_ADMIN_LIST_CHECKED"), 'value' => "0")));
$adminList->AddGroupActionTable(array("delete" => Loc::getMessage("MAIN_ADMIN_LIST_DELETE"), "activate" => Loc::getMessage("MAIN_ADMIN_LIST_ACTIVATE"), "deactivate" => Loc::getMessage("MAIN_ADMIN_LIST_DEACTIVATE")));
if (!$readOnly) {
$siteLID = '';
$arSiteMenu = array();
if (count($arSitesShop) == 1) {
$siteLID = "&LID=" . $arSitesShop[0]['ID'];
} else {
foreach ($arSitesShop as $val) {
$arSiteMenu[] = array("TEXT" => $val["NAME"] . " (" . $val['ID'] . ")", "ACTION" => "window.location = 'sale_discount_edit.php?lang=" . LANGUAGE_ID . "&LID=" . $val['ID'] . "';");
}
}
$aContext = array(array("TEXT" => Loc::getMessage("BT_SALE_DISCOUNT_LIST_MESS_NEW_DISCOUNT"), "ICON" => "btn_new", "LINK" => "sale_discount_edit.php?lang=" . LANGUAGE_ID . $siteLID, "TITLE" => Loc::getMessage("BT_SALE_DISCOUNT_LIST_MESS_NEW_DISCOUNT_TITLE"), "MENU" => $arSiteMenu));
$adminList->AddAdminContextMenu($aContext);
}
$adminList->CheckListMode();
示例7: GetMessage
$row->AddViewField("CACHE_TYPE", GetMessage("PERFMON_COMP_CACHE_TYPE_NO"));
if ($f_CACHE_COUNT > 0)
$row->AddViewField("CACHE_COUNT", '<a href="perfmon_cache_list.php?lang='.LANGUAGE_ID.'&set_filter=Y&find_component_id='.$f_ID.'">'.$f_CACHE_COUNT.'</a>');
if ($f_CACHE_COUNT_R > 0)
$row->AddViewField("CACHE_COUNT_R", '<a href="perfmon_cache_list.php?lang='.LANGUAGE_ID.'&set_filter=Y&find_component_id='.$f_ID.'&find_op_mode=R">'.$f_CACHE_COUNT_R.'</a>');
if ($f_CACHE_COUNT_W > 0)
$row->AddViewField("CACHE_COUNT_W", '<a href="perfmon_cache_list.php?lang='.LANGUAGE_ID.'&set_filter=Y&find_component_id='.$f_ID.'&find_op_mode=W">'.$f_CACHE_COUNT_W.'</a>');
if ($f_CACHE_COUNT_C > 0)
$row->AddViewField("CACHE_COUNT_C", '<a href="perfmon_cache_list.php?lang='.LANGUAGE_ID.'&set_filter=Y&find_component_id='.$f_ID.'&find_op_mode=C">'.$f_CACHE_COUNT_C.'</a>');
}
$lAdmin->AddFooter(
array(
array(
"title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"),
"value" => $rsData->SelectedRowsCount(),
),
)
);
$aContext = array();
$lAdmin->AddAdminContextMenu($aContext);
$lAdmin->CheckListMode();
$APPLICATION->SetTitle(GetMessage("PERFMON_COMP_TITLE"));
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php");
$oFilter = new CAdminFilter(
$sTableID."_filter",
示例8: array
$couponsList[$coupon['ORDER_ID']] = array();
}
$couponsList[$coupon['ORDER_ID']][] = $coupon['COUPON'];
}
unset($coupon, $couponsIterator);
if (!empty($couponsList)) {
foreach ($couponsList as $order => $coupons) {
$rowsList[$order]->AddViewField('BASKET_DISCOUNT_COUPON', implode('<br><br>', $coupons));
}
unset($order, $coupons);
}
unset($couponsList);
}
}
unset($rowsList);
$arFooterArray = array(array("title" => Loc::getMessage('SOAN_FILTERED1') . ":", "value" => $dbOrderList->SelectedRowsCount()));
// recommendation summary
$rcmValue = array();
$rcmCount = 0;
$runtime = array(new \Bitrix\Main\Entity\ExpressionField('SUM', 'SUM(sale_internals_order.PRICE)'));
if (!empty($runtimeFields) && is_array($runtimeFields)) {
$runtime = array_merge($runtime, $runtimeFields);
}
$getListParamsSum = array('order' => array("CURRENCY" => "ASC"), 'filter' => $arFilterTmp, 'group' => array("CURRENCY"), 'select' => array("CURRENCY", "SUM"), 'runtime' => $runtime);
if ($saleModulePermissions == "W") {
$dbOrderList = \Bitrix\Sale\Internals\OrderTable::getList($getListParamsSum);
while ($arOrderList = $dbOrderList->fetch()) {
$arFooterArray[] = array("title" => Loc::getMessage("SOAN_ITOG") . " " . $arOrderList["CURRENCY"] . ":", "value" => htmlspecialcharsex(SaleFormatCurrency($arOrderList["SUM"], $arOrderList["CURRENCY"])));
}
// recommendation summary
$rcmFilter = $arFilterTmp;
示例9: array
$arHeaders[] = array('id' => 'XML_ID', 'content' => GetMessage('SUP_GL_XML_ID'), 'default' => false, 'sort' => 'XML_ID');
$arHeaders[] = array('id' => 'IS_TEAM_GROUP', 'content' => GetMessage('SUP_GL_IS_TEAM_GROUP'), 'default' => true, 'sort' => 'IS_TEAM_GROUP');
$lAdmin->AddHeaders($arHeaders);
while ($arGroup = $rsData->GetNext()) {
$row =& $lAdmin->AddRow($arGroup['ID'], $arGroup);
$row->AddViewField('NAME', '<a href="' . $EDIT_URL . '?lang=' . LANGUAGE_ID . '&ID=' . $arGroup['ID'] . '">' . $arGroup['NAME'] . '</a>');
$row->AddInputField('XML_ID');
$row->AddInputField('SORT', array('size' => '5'));
$row->AddCheckField('IS_TEAM_GROUP');
$arActions = array();
$arActions[] = array('ICON' => 'edit', 'DEFAULT' => 'Y', 'TEXT' => GetMessage('SUP_GL_EDIT'), 'ACTION' => $lAdmin->ActionRedirect($EDIT_URL . '?lang=' . LANGUAGE_ID . '&ID=' . $arGroup['ID']));
$arActions[] = array("SEPARATOR" => true);
$arActions[] = array('ICON' => 'delete', 'TEXT' => GetMessage('SUP_GL_DELETE'), 'ACTION' => 'if(confirm(\'' . GetMessage('SUP_GL_DELETE_CONFIRMATION') . '\')) ' . $lAdmin->ActionDoGroup($arGroup['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')));
$lAdmin->AddGroupActionTable(array('delete' => GetMessage('MAIN_ADMIN_LIST_DELETE')));
$aContext = array(array('ICON' => 'btn_new', 'TEXT' => GetMessage('SUP_GL_ADD'), 'LINK' => $EDIT_URL . '?lang=' . LANG, 'TITLE' => GetMessage('SUP_GL_ADD')));
$lAdmin->AddAdminContextMenu($aContext);
$lAdmin->CheckListMode();
$APPLICATION->SetTitle(GetMessage('SUP_GL_TITLE'));
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
?>
<form name="form1" method="GET" action="<?php
echo $APPLICATION->GetCurPage();
?>
?"><?php
$filter->Begin();
?>
<tr>
<td><?php
示例10: getFooter
/**
* Подготавливает массив с настройками футера таблицы Bitrix
* @param \CAdminResult $res - результат выборки данных
* @see \CAdminList::AddFooter()
* @return array[]
*/
protected function getFooter($res)
{
return array($this->getButton('MAIN_ADMIN_LIST_SELECTED', array("value" => $res->SelectedRowsCount())), $this->getButton('MAIN_ADMIN_LIST_CHECKED', array("value" => $res->SelectedRowsCount()), array("counter" => true, "value" => "0")));
}
示例11: GetMessage
$txt = "<a title=\"" . GetMessage("STAT_HITS_SHOW") . "\" href=\"hit_searcher_list.php?lang=" . LANGUAGE_ID . "&find_searcher_id={$f_ID}&find_searcher_id_exact_match=Y&set_filter=Y\">{$f_TOTAL_HITS}</a>";
$row->AddViewField("TOTAL_HITS", $txt);
}
$arActions = array();
if (function_exists("ImageCreate")) {
$arActions[] = array("TITLE" => GetMessage("STAT_GRAPH_ALT"), "ACTION" => $lAdmin->ActionRedirect("searcher_graph_list.php?lang=" . LANGUAGE_ID . "&find_searchers[]={$f_ID}&set_filter=Y"), "TEXT" => GetMessage("STAT_GRAPH"), "DEFAULT" => "Y");
}
$arActions[] = array("TITLE" => GetMessage("STAT_DYNAMICS_ALT"), "ACTION" => $lAdmin->ActionRedirect("searcher_dynamic_list.php?lang=" . LANGUAGE_ID . "&find_searcher_id={$f_ID}&find_searcher_id_exact_match=Y&set_filter=Y"), "TEXT" => GetMessage("STAT_DYNAMICS"));
$arActions[] = array("SEPARATOR" => true);
$arActions[] = array("ICON" => "edit", "TITLE" => GetMessage("STAT_CHANGE_SEARCHER"), "ACTION" => $lAdmin->ActionRedirect("searcher_edit.php?lang=" . LANGUAGE_ID . "&ID={$f_ID}"), "TEXT" => GetMessage("STAT_CHANGE"));
if ($STAT_RIGHT >= "W") {
$arActions[] = array("ICON" => "delete", "TITLE" => GetMessage("STAT_DELETE_SEARCHER"), "ACTION" => "javascript:if(confirm('" . GetMessageJS("STAT_CONFIRM") . "')) window.location='?lang=" . LANGUAGE_ID . "&action=delete&ID={$f_ID}&" . bitrix_sessid_get() . "'", "TEXT" => GetMessage("STAT_DELETE"));
}
$row->AddActions($arActions);
}
$footer = array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $rsData->SelectedRowsCount()), array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0"), array("title" => GetMessage("STAT_TOT_TD"), "value" => $total_TODAY_COUNTER), array("title" => GetMessage("STAT_TOT_YTD"), "value" => $total_YESTERDAY_COUNTER), array("title" => GetMessage("STAT_TOT_B_YTD"), "value" => $total_B_YESTERDAY_COUNTER));
if (strlen($arFilter["DATE1_PERIOD"]) > 0) {
$footer[] = array("title" => GetMessage("STAT_TOT_PRD"), "value" => $total_PERIOD_COUNTER);
}
$footer[] = array("title" => GetMessage("STAT_TOTAL"), "value" => $total_TOTAL_COUNTER);
$lAdmin->AddFooter($footer);
$lAdmin->AddGroupActionTable(array("delete" => GetMessage("STAT_DELETE_L")));
$aMenu = array();
$aMenu[] = array("TEXT" => GetMessage("STAT_ADD"), "LINK" => "searcher_edit.php?lang=" . LANG, "ICON" => "btn_new");
$aMenu[] = array("SEPARATOR" => "Y");
$aMenu[] = array("LINK" => "searcher_diagram_list.php?lang=" . LANGUAGE_ID . "&set_default=Y", "TEXT" => GetMessage("STAT_DIAGRAM_S"), "TITLE" => GetMessage("STAT_DIAGRAM"));
$aMenu[] = array("LINK" => "searcher_graph_list.php?lang=" . LANGUAGE_ID . "&set_default=Y", "TEXT" => GetMessage("STAT_GRAPH_FULL_S"), "TITLE" => GetMessage("STAT_GRAPH_FULL"));
$lAdmin->AddAdminContextMenu($aMenu);
$lAdmin->CheckListMode();
$APPLICATION->SetTitle(GetMessage("STAT_RECORDS_LIST", array("#STATISTIC_DAYS#" => COption::GetOptionString("statistic", "SEARCHER_DAYS"))));
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
示例12: GetMessage
"TEXT" => GetMessage("TC_DELETE"),
"ACTION" => "if(confirm('" . GetMessage("TC_CONFIRM") . "')) " . $lAdmin->ActionDoGroup($myrow['ID'], "delete")
);
$arActions[] = array("SEPARATOR" => true);
if (is_set($arActions[count($arActions) - 1], "SEPARATOR"))
{
unset($arActions[count($arActions) - 1]);
}
$row->AddActions($arActions);
}
$lAdmin->AddFooter(
array(
array("title"=>GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value"=>$result->SelectedRowsCount()), // кол-во элементов
array("counter"=>true, "title"=>GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value"=>"0"), // счетчик выбранных элементов
)
);
$lAdmin->AddGroupActionTable(Array(
"delete"=>GetMessage("MAIN_ADMIN_LIST_DELETE"), // удалить выбранные элементы
));
$lAdmin->AddAdminContextMenu($aContext);
$lAdmin->CheckListMode();
$APPLICATION->SetTitle(GetMessage("TC_TITLE"));
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php");
示例13: BeginNote
if ($row->arRes['CREATED_BY'] > 0 && isset($userList[$row->arRes['CREATED_BY']])) {
$strCreatedBy = $userList[$row->arRes['CREATED_BY']];
}
$row->AddViewField("CREATED_BY", $strCreatedBy);
}
if ($selectFieldsMap['MODIFIED_BY']) {
$strModifiedBy = '';
if ($row->arRes['MODIFIED_BY'] > 0 && isset($userList[$row->arRes['MODIFIED_BY']])) {
$strModifiedBy = $userList[$row->arRes['MODIFIED_BY']];
}
$row->AddViewField("MODIFIED_BY", $strModifiedBy);
}
}
if (isset($row)) {
unset($row);
}
}
$adminList->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $currencyIterator->SelectedRowsCount()), array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0")));
if ($CURRENCY_RIGHT == "W") {
$adminList->AddGroupActionTable(array("delete" => GetMessage("MAIN_ADMIN_LIST_DELETE")));
}
$aContext = array(array("ICON" => "btn_new", "TEXT" => GetMessage("currency_add"), "LINK" => "/bitrix/admin/currency_edit.php?lang=" . LANGUAGE_ID, "TITLE" => GetMessage("currency_add")), array("ICON" => "", "TEXT" => GetMessage("currency_list"), "LINK" => "/bitrix/admin/currencies_rates.php?lang=" . LANGUAGE_ID, "TITLE" => GetMessage("currency_list")));
$adminList->AddAdminContextMenu($aContext);
$adminList->CheckListMode();
$APPLICATION->SetTitle(GetMessage("CURRENCY_TITLE"));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
$adminList->DisplayList();
echo BeginNote();
echo GetMessage('CURRENCY_CODES_ISO_STANDART', array('#ISO_LINK#' => CURRENCY_ISO_STANDART_URL));
echo EndNote();
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
示例14: switch
switch ($col['id']) {
case 'AUTHOR_ID':
if ($res['AUTHOR_ID'] && ($user = CUser::GetByID($res['AUTHOR_ID'])->Fetch())) {
$row->AddViewField($col['id'], '[<a href="user_edit.php?lang=' . LANGUAGE_ID . '&ID=' . $res['AUTHOR_ID'] . '" target="_blank">' . $user['ID'] . '</a>] (' . htmlspecialcharsEx($user['LOGIN']) . ') ' . htmlspecialcharsEx($user['NAME'] . ' ' . $user['LAST_NAME']));
} else {
$row->AddViewField($col['id'], $res[$col['id']] . $res['AUTHOR_ID']);
}
break;
case 'POST_MESSAGE':
$input = '<div style="width:400px;"><label for="' . $res['ID'] . '_edit">Отзыв</label><br>';
$input .= '<textarea rows="10" cols="50" name="FIELDS[' . $res['ID'] . '][POST_MESSAGE]" id="' . $res['ID'] . '_edit">' . htmlspecialcharsex($res['POST_MESSAGE']) . '</textarea></div>';
$row->AddEditField('POST_MESSAGE', $input);
break;
default:
$row->AddViewField($col['id'], $res[$col['id']]);
}
}
$actions = [['DEFAULT' => 'Y', 'ICON' => 'edit', 'TEXT' => 'Редактировать', 'ACTION' => $lAdmin->ActionRedirect($APPLICATION->GetCurPageParam(bitrix_sessid_get() . '&ID[]=' . $f_ID . '&action_button=edit', ['sessid', 'ID', 'action_button']))], ['ICON' => 'delete', 'TEXT' => 'Удалить', 'ACTION' => 'if(confirm(\'Вы действительно хотите удалить отзыв?\')) window.location=\'' . $APPLICATION->GetCurPage() . '?lang=' . LANGUAGE_ID . '&action=delete&ID=' . $f_ID . '&' . bitrix_sessid_get() . '\';']];
$row->AddActions($actions);
}
$lAdmin->AddFooter([['title' => Loc::getMessage('MAIN_ADMIN_LIST_SELECTED'), 'value' => $adminResult->SelectedRowsCount()], ['counter' => true, 'title' => Loc::getMessage('MAIN_ADMIN_LIST_CHECKED'), 'value' => '0']]);
$chain = $lAdmin->CreateChain();
$chain->AddItem(['TEXT' => 'Отзывы на сайте', 'LINK' => $APPLICATION->GetCurPageParam('', [], true)]);
$lAdmin->ShowChain($chain);
$lAdmin->AddGroupActionTable(['delete' => 'Удалить отзывы']);
$lAdmin->AddAdminContextMenu([], false, false);
$lAdmin->CheckListMode();
$APPLICATION->SetTitle('Отзывы на сайте');
require_once $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_admin_after.php';
$lAdmin->DisplayList();
require $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/epilog_admin.php';
示例15: array
$arActions[] = array("ICON"=>"edit", "TEXT"=>GetMessage("SALE_OEDIT_DESCR"), "ACTION"=>$lAdmin->ActionRedirect("sale_order_new.php?ID=".$f_ID."&lang=".LANGUAGE_ID.GetFilterParams("filter_")));
if ($saleModulePermissions == "W"
|| $f_PAYED != "Y" && CSaleOrder::CanUserDeleteOrder($f_ID, $arUserGroups, $intUserID))
{
$arActions[] = array("SEPARATOR" => true);
$arActions[] = array("ICON"=>"delete", "TEXT"=>GetMessage("SALE_DELETE_DESCR"), "ACTION"=>"if(confirm('".GetMessage('SALE_CONFIRM_DEL_MESSAGE')."')) ".$lAdmin->ActionDoGroup($f_ID, "delete"));
}
}
$row->AddActions($arActions);
}
$arFooterArray = array(
array(
"title" => GetMessage('SOAN_FILTERED1').":",
"value" => $dbOrderList->SelectedRowsCount()
),
);
// recommendation summary
$rcmValue = array();
$rcmCount = 0;
if ($saleModulePermissions == "W")
{
$dbOrderList = CSaleOrder::GetList(
array("CURRENCY" => "ASC"),
$arFilterTmp,
array("CURRENCY", "SUM" => "PRICE"),
false, //array("nPageSize"=>CAdminResult::GetNavSize($sTableID)),
array("CURRENCY", "SUM" => "PRICE")