当前位置: 首页>>代码示例>>PHP>>正文


PHP CAdminList::AddFooter方法代码示例

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


在下文中一共展示了CAdminList::AddFooter方法的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) {
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:report.php

示例2: ShowTable

	public static function ShowTable($aMenu)
	{
		$sTableID = "module_index_table";
		// List init
		$lAdmin = new CAdminList($sTableID);

		// List headers
		$lAdmin->AddHeaders(array(
			array("id"=>"NAME", "content"=>GetMessage("admin_lib_index_name"), "default"=>true),
			array("id"=>"DESCRIPTION", "content"=>GetMessage("admin_lib_index_desc"), "default"=>true),
		));

		$n = 0;
		foreach($aMenu["items"] as $submenu)
		{
			// Populate list with data
			if(!$submenu)
				continue;
			$row = &$lAdmin->AddRow(0, null, $submenu["url"], GetMessage("admin_lib_index_go"));
			$row->AddField("NAME", '<a href="'.$submenu["url"].'" title="'.$submenu["title"].'">'.$submenu["text"].'</a>');
			$row->AddField("DESCRIPTION", $submenu["title"]);
			$n++;
		}

		// List footer
		$lAdmin->AddFooter(
			array(
				array(
					"title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"),
					"value" => $n
				)
			)
		);

		$lAdmin->Display();

		echo '
<script>
'.$sTableID.'.InitTable();
</script>
';
	}
开发者ID:ASDAFF,项目名称:bxApiDocs,代码行数:42,代码来源:admin_lib.php

示例3: 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>]&nbsp;(' . 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';
开发者ID:Varfann,项目名称:bx-features,代码行数:31,代码来源:forum_review.php

示例4: 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";
开发者ID:HannibalLecktor,项目名称:alfa74,代码行数:31,代码来源:seofilter_property.php

示例5: SelEl

$arHeader[] = array("id" => "CODE", "content" => GetMessage("BX_MOD_CATALOG_ADMIN_CIS_HEAD_CODE"), "sort" => "CODE");
$lAdmin->AddHeaders($arHeader);
$rsIBlocks = CIBlock::GetList(array($by => $order), $arFilter);
$rsIBlocks = new CAdminResult($rsIBlocks, $sTableID);
$rsIBlocks->NavStart();
$lAdmin->NavText($rsIBlocks->GetNavPrint(GetMessage("BX_MOD_CATALOG_ADMIN_CIS_NAV")));
while ($arRes = $rsIBlocks->GetNext()) {
    $row =& $lAdmin->AddRow($arRes["ID"], $arRes);
    $row->AddViewField("NAME", $arRes["NAME"] . "<input type=hidden name='n" . $arRes["ID"] . "' id='name_" . $arRes["ID"] . "' value='" . CUtil::JSEscape(htmlspecialcharsbx($arRes["NAME"])) . "'>");
    $row->AddViewField("IBLOCK_TYPE_ID", $arRes["IBLOCK_TYPE_ID"]);
    $row->AddCheckField("ACTIVE", false);
    $row->AddViewField("XML_ID", $arRes["XML_ID"]);
    $row->AddViewField("CODE", $arRes["CODE"]);
    $row->AddActions(array(array("DEFAULT" => "Y", "TEXT" => GetMessage("BX_MOD_CATALOG_ADMIN_CIS_SELECT"), "ACTION" => "javascript:SelEl('" . CUtil::JSEscape($arRes["ID"]) . "', '" . CUtil::JSEscape($arRes["NAME"]) . "')")));
}
$lAdmin->AddFooter(array(array("title" => GetMessage("BX_MOD_CATALOG_ADMIN_CIS_MAIN_ADMIN_LIST_SELECTED"), "value" => $rsIBlocks->SelectedRowsCount()), array("counter" => true, "title" => GetMessage("BX_MOD_CATALOG_ADMIN_CIS_MAIN_ADMIN_LIST_CHECKED"), "value" => "0")));
if ($boolMultiSelect) {
    $lAdmin->AddGroupActionTable(array(array("action" => "SelAll()", "value" => "select", "type" => "button", "name" => GetMessage("BX_MOD_CATALOG_ADMIN_CIS_SELECT"))), array("disable_action_target" => true));
}
$lAdmin->AddAdminContextMenu(array(), false);
$lAdmin->CheckListMode();
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_popup_admin.php";
?>
<script type="text/javascript">
function SelEl(id, name)
{
<?php 
if ('' != $lookup) {
    if ('' != $boolMultiSelect) {
        ?>
window.opener.<?php 
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:cat_iblock_search.php

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

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

示例8: array

	$s = "";
	if($rec[0]=="S")
		$s = '<div class="lamp-green" style="float:left"></div>'.GetMessage("SUP_HIST_SUCCESS");
	elseif($rec[0]=="E")
		$s = '<div class="lamp-red" style="float:left"></div>'.GetMessage("SUP_HIST_ERROR");
	elseif($rec[0]=="N")
		$s = '<div class="lamp-yellow" style="float:left"></div>'.GetMessage("SUP_HIST_NOTES");
	$row->AddField("SUCCESS", $s);
	
	$n++;
}

$lAdmin->AddFooter(
	array(
		array("title"=>GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value"=>count($arLogRecs)),
	)
);

$aMenu = array(
	array(
		"TEXT"=>GetMessage("update_log_index"),
		"TITLE"=>GetMessage("update_log_index_title"),
		"LINK"=>"sysupdate.php?lang=".LANGUAGE_ID,
		"ICON"=>"btn_update",
	),
);
$lAdmin->AddAdminContextMenu($aMenu);

$lAdmin->CheckListMode();
开发者ID:ASDAFF,项目名称:bxApiDocs,代码行数:29,代码来源:update_log.php

示例9: array

    // вставим разделитель
    $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"=>$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(
        "TEXT"=>GetMessage("STALL_ORDER_LIST_ADD"),
        "LINK"=>"anmaslov.stall_order_edit.php?lang=".LANG,
        "TITLE"=>GetMessage("STALL_ORDER_LIST_ADD_TITLE"),
        "ICON"=>"btn_new",
开发者ID:anmaslov,项目名称:stall,代码行数:31,代码来源:orders.php

示例10: GetMessage

}
$pagination = '';
if ($page - 10 > 0) {
    $pagination .= '... ';
}
for ($i = max(0, $page - 10); $i < $page; $i++) {
    $pagination .= '<a href="?page=' . $i . '&hpp=' . $holes_per_page . '">' . ($i + 1) . '</a> ';
}
$pagination .= ++$i . ' ';
for (; $i < min($pages_count, $page + 11); $i++) {
    $pagination .= '<a href="?page=' . $i . '&hpp=' . $holes_per_page . '">' . ($i + 1) . '</a> ';
}
if ($page < $pages_count - 10) {
    $pagination .= '...';
}
$lAdmin->AddFooter(array(array('title' => GetMessage('GREENSIGHT_ST1234_HPP:'), 'value' => '<input type="text" name="hpp" value="' . $holes_per_page . '" onkeyup="if(event.keyCode==13)document.location=\'?hpp=\'+this.value;"></form>'), array('title' => GetMessage('GREENSIGHT_ST1234_PAGES:'), 'value' => $pagination)));
$lAdmin->CheckListMode();
$APPLICATION->SetTitle(GetMessage('GREENSIGHT_ST1234_TITLE'));
if (!$USER->IsAdmin()) {
    $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
include $_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/main/include/prolog_admin_after.php";
$arFindFields = array('filter_user_id' => GetMessage('GREENSIGHT_ST1234_filter_user_id'), 'filter_user_login' => GetMessage('GREENSIGHT_ST1234_filter_user_login'), 'filter_latitude' => GetMessage('GREENSIGHT_ST1234_filter_latitude'), 'filter_longitude' => GetMessage('GREENSIGHT_ST1234_filter_longitude'), 'filter_date_created' => GetMessage('GREENSIGHT_ST1234_filter_date_created'), 'filter_state' => GetMessage('GREENSIGHT_ST1234_filter_state'), 'filter_address' => GetMessage('GREENSIGHT_ST1234_filter_address'), 'filter_type' => GetMessage('GREENSIGHT_ST1234_filter_type'));
?>
<form method="GET" name="find_form" id="find_form" action="<?php 
echo $APPLICATION->GetCurPage();
?>
">
<?
$oFilter = new CAdminFilter($sTableID."_filter", $arFindFields);
$oFilter->Begin();
开发者ID:RosYama,项目名称:rosyama.ru,代码行数:31,代码来源:holes_list.php

示例11: array

        $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";
/***************************************************************************
				HTML form
****************************************************************************/
?>
<a name="tb"></a>
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:searcher_list.php

示例12: array

}
$nav = new \Bitrix\Main\UI\AdminPageNavigation("nav-sender-recipient");
$recipientListDb = \Bitrix\Sender\PostingRecipientTable::getList(array('select' => array('NAME', 'EMAIL', 'CALC_IS_READ', 'CALC_IS_CLICK', 'CALC_IS_UNSUB'), 'filter' => $arFilter, 'runtime' => array(new \Bitrix\Main\Entity\ExpressionField('CALC_IS_READ', 'MAX(%s)', 'IS_READ'), new \Bitrix\Main\Entity\ExpressionField('CALC_IS_CLICK', 'MAX(%s)', 'IS_CLICK'), new \Bitrix\Main\Entity\ExpressionField('CALC_IS_UNSUB', 'MAX(%s)', 'IS_UNSUB')), 'group' => array('NAME', 'EMAIL'), 'order' => array($by => $order), 'count_total' => true, 'offset' => $nav->getOffset(), 'limit' => $nav->getLimit()));
$aContext = array();
$nav->setRecordCount($recipientListDb->getCount());
$lAdmin->setNavigation($nav, \Bitrix\Main\Localization\Loc::getMessage("rub_nav"));
$lAdmin->AddHeaders(array(array("id" => "EMAIL", "content" => GetMessage("rub_email"), "sort" => "EMAIL", "default" => true), array("id" => "NAME", "content" => GetMessage("rub_name"), "sort" => "NAME", "default" => true), array("id" => "IS_READ", "content" => GetMessage("rub_f_read"), "sort" => "IS_READ", "default" => true), array("id" => "IS_CLICK", "content" => GetMessage("rub_f_click"), "sort" => "IS_CLICK", "default" => true), array("id" => "IS_UNSUB", "content" => GetMessage("rub_f_unsub"), "sort" => "IS_UNSUB", "default" => true)));
while ($resultRow = $recipientListDb->fetch()) {
    $row =& $lAdmin->AddRow(false, $resultRow);
    $row->AddViewField("NAME", htmlspecialcharsbx($resultRow['NAME']));
    $row->AddViewField("EMAIL", htmlspecialcharsbx($resultRow['EMAIL']));
    $row->AddViewField("IS_READ", $resultRow['CALC_IS_READ'] == 'Y' ? GetMessage("POST_U_YES") : GetMessage("POST_U_NO"));
    $row->AddViewField("IS_CLICK", $resultRow['CALC_IS_CLICK'] == 'Y' ? GetMessage("POST_U_YES") : GetMessage("POST_U_NO"));
    $row->AddViewField("IS_UNSUB", $resultRow['CALC_IS_UNSUB'] == 'Y' ? GetMessage("POST_U_YES") : GetMessage("POST_U_NO"));
}
$lAdmin->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $recipientListDb->getCount()), array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0")));
$lAdmin->AddAdminContextMenu($aContext);
$lAdmin->CheckListMode();
$APPLICATION->SetTitle(GetMessage("rub_title"));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
$oFilter = new CAdminFilter($sTableID . "_filter", array($MAILING_ID > 0 ? GetMessage("rub_f_mailing_chain") : null, GetMessage("rub_f_email"), GetMessage("rub_f_name"), GetMessage("rub_f_sent"), GetMessage("rub_f_read"), GetMessage("rub_f_click"), GetMessage("rub_f_unsub")));
?>
<form name="find_form" method="get" action="<?php 
echo $APPLICATION->GetCurPage();
?>
">
<?php 
$oFilter->Begin();
?>
	<?php 
if ($MAILING_ID > 0) {
开发者ID:Hawkart,项目名称:megatv,代码行数:31,代码来源:mailing_recipient_admin.php

示例13: buildList


//.........这里部分代码省略.........
         $visibleColumns = array_values($visibleColumns);
         $visibleColumns = array_merge($visibleColumns, array_keys($this->tableColumnsMap));
     }
     $className = static::getModel();
     $visibleColumns[] = static::pk();
     $sectionsVisibleColumns[] = static::sectionPk();
     $raw = array('SELECT' => $visibleColumns, 'FILTER' => $this->arFilter, 'SORT' => $sort);
     foreach ($this->fields as $name => $settings) {
         if (isset($settings['VIRTUAL']) and $settings['VIRTUAL'] == true) {
             $key = array_search($name, $visibleColumns);
             unset($visibleColumns[$key]);
             unset($this->arFilter[$name]);
             unset($sort[$name]);
         }
         if (isset($settings['FORCE_SELECT']) and $settings['FORCE_SELECT'] == true) {
             $visibleColumns[] = $name;
         }
     }
     $visibleColumns = array_unique($visibleColumns);
     $sectionsVisibleColumns = array_unique($sectionsVisibleColumns);
     // Поля для селекта (перевернутый массив)
     $listSelect = array_flip($visibleColumns);
     foreach ($this->fields as $code => $settings) {
         $widget = $this->createWidgetForField($code);
         $widget->changeGetListOptions($this->arFilter, $visibleColumns, $sort, $raw);
         // Множественные поля не должны быть в селекте
         if (!empty($settings['MULTIPLE'])) {
             unset($listSelect[$code]);
         }
     }
     // Поля для селекта (множественные поля отфильтрованы)
     $listSelect = array_flip($listSelect);
     if ($sectionEditHelper) {
         $mixedData = $this->getMixedData($sectionsVisibleColumns, $visibleColumns, $sort, $raw);
         $res = new \CDbResult();
         $res->InitFromArray($mixedData);
         $res = new \CAdminResult($res, $this->getListTableID());
         $res->nSelectedCount = $this->totalRowsCount;
         // используем кастомный NavStart что бы определить правильное количество страниц и элементов в списке
         $this->customNavStart($res);
         $this->list->NavText($res->GetNavPrint(Loc::getMessage("PAGES")));
         while ($data = $res->NavNext(false)) {
             $this->modifyRowData($data);
             if ($data['IS_SECTION']) {
                 list($link, $name) = $this->getRow($data, $this->getHelperClass(AdminSectionEditHelper::className()));
                 $row = $this->list->AddRow('s' . $data[$this->pk()], $data, $link, $name);
                 foreach ($this->sectionFields as $code => $settings) {
                     if (in_array($code, $sectionsVisibleColumns)) {
                         $this->addRowSectionCell($row, $code, $data);
                     }
                 }
                 $row->AddActions($this->getRowActions($data, true));
             } else {
                 $this->modifyRowData($data);
                 list($link, $name) = $this->getRow($data);
                 // объединение полей элемента с полями раздела
                 foreach ($this->tableColumnsMap as $elementCode => $sectionCode) {
                     if (isset($data[$elementCode])) {
                         $data[$sectionCode] = $data[$elementCode];
                     }
                 }
                 $row = $this->list->AddRow($data[$this->pk()], $data, $link, $name);
                 foreach ($this->fields as $code => $settings) {
                     $this->addRowCell($row, $code, $data, isset($this->tableColumnsMap[$code]) ? $this->tableColumnsMap[$code] : false);
                 }
                 $row->AddActions($this->getRowActions($data));
             }
         }
     } else {
         $res = $this->getData($className, $this->arFilter, $listSelect, $sort, $raw);
         $res = new \CAdminResult($res, $this->getListTableID());
         $res->NavStart();
         $this->list->NavText($res->GetNavPrint(Loc::getMessage("PAGES")));
         while ($data = $res->NavNext(false)) {
             $this->modifyRowData($data);
             list($link, $name) = $this->getRow($data);
             $row = $this->list->AddRow($data[$this->pk()], $data, $link, $name);
             foreach ($this->fields as $code => $settings) {
                 $this->addRowCell($row, $code, $data);
             }
             $row->AddActions($this->getRowActions($data));
         }
     }
     $this->list->AddFooter($this->getFooter($res));
     $this->list->AddGroupActionTable($this->getGroupActions(), $this->groupActionsParams);
     $this->list->AddAdminContextMenu($this->getContextMenu());
     $this->list->BeginPrologContent();
     echo $this->prologHtml;
     $this->list->EndPrologContent();
     $this->list->BeginEpilogContent();
     echo $this->epilogHtml;
     $this->list->EndEpilogContent();
     // добавляем ошибки в CAdminList для режимов list и frame
     if (in_array($_GET['mode'], array('list', 'frame')) && is_array($this->getErrors())) {
         foreach ($this->getErrors() as $error) {
             $this->list->addGroupError($error);
         }
     }
     $this->list->CheckListMode();
 }
开发者ID:vadim-ontech,项目名称:digitalwand.admin_helper,代码行数:101,代码来源:AdminListHelper.php

示例14: foreach

    } else {
        $row->AddViewField("COUNT", str_replace(" ", "&nbsp;", number_format($f_COUNT, 0, ".", " ")));
    }
    foreach ($arGrpFuncs as $func) {
        foreach ($arGrpCols as $col => $prec) {
            if (strlen($arRes[$func . "_" . $col])) {
                if ($_REQUEST["mode"] == "excel") {
                    $row->AddViewField($func . "_" . $col, number_format($arRes[$func . "_" . $col], $prec, ".", ""));
                } else {
                    $row->AddViewField($func . "_" . $col, str_replace(" ", "&nbsp;", number_format($arRes[$func . "_" . $col], $prec, ".", " ")));
                }
            }
        }
    }
}
$lAdmin->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $rsData->SelectedRowsCount()), array("title" => GetMessage("PERFMON_HIT_TOTAL_HITS") . ":", "value" => $arTotal["COUNT"])));
$aContext = array();
$lAdmin->AddAdminContextMenu($aContext);
$lAdmin->CheckListMode();
$APPLICATION->SetTitle(GetMessage("PERFMON_HIT_TITLE2"));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
$oFilter = new CAdminFilter($sTableID . "_filter", array("find_is_admin" => GetMessage("PERFMON_HIT_IS_ADMIN"), "find_count" => GetMessage("PERFMON_HIT_COUNT")));
?>

<form name="find_form" method="get" action="<?php 
echo $APPLICATION->GetCurPage();
?>
">
<?php 
$oFilter->Begin();
?>
开发者ID:spas-viktor,项目名称:books,代码行数:31,代码来源:perfmon_hit_grouped.php

示例15:

			}
			$row->AddViewField('USER_ID', $userName);
		}
		unset($userName);
	}
	if (isset($row))
		unset($row);
}

$adminList->AddFooter(
	array(
		array(
			'title' => Loc::getMessage('MAIN_ADMIN_LIST_SELECTED'),
			'value' => $couponIterator->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'),
	)
);
开发者ID:akniyev,项目名称:arteva.ru,代码行数:30,代码来源:discount_coupons.php


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