本文整理汇总了PHP中CAdminResult::NavNext方法的典型用法代码示例。如果您正苦于以下问题:PHP CAdminResult::NavNext方法的具体用法?PHP CAdminResult::NavNext怎么用?PHP CAdminResult::NavNext使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAdminResult
的用法示例。
在下文中一共展示了CAdminResult::NavNext方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
}
}
$DB->Commit();
break;
}
}
}
// Getting reports list.
$dbRepList = Bitrix\Report\ReportTable::getList(array('select' => array('ID', 'TITLE', 'DESCRIPTION', 'CREATED_DATE', 'MARK_DEFAULT'), 'filter' => array('=CREATED_BY' => $USER->GetID(), '=OWNER_ID' => CBaseSaleReportHelper::getOwners())));
$dbRepList = new CAdminResult($dbRepList, $sTableID);
$dbRepList->NavStart();
$lReports->NavText($dbRepList->GetNavPrint(GetMessage("SALE_REPORT_TITLE")));
$lReports->AddHeaders(array(array('id' => 'TITLE', 'content' => '<b>' . GetMessage('SALE_REPORT_LIST_TITLE') . '</b>', 'sort' => 'TITLE', 'default' => true), array('id' => 'CREATED_DATE', 'content' => '<b>' . GetMessage('SALE_REPORT_LIST_CREATED_DATE') . '</b>', 'sort' => 'CREATED_DATE', 'default' => true)));
// $arRes containing array as: array( 'ID' =>..., 'TITLE'=>..., 'DESCRIPTION'=>..., 'CREATED_DATE'=>... ).
$nReports = 0;
while ($arRes = $dbRepList->NavNext(false)) {
$lRow = $lReports->AddRow($arRes['ID'], $arRes);
$lRow->AddViewField('TITLE', "<a href='" . "sale_report_view.php?lang=" . LANG . '&ID=' . $arRes['ID'] . "' title='" . $arRes['DESCRIPTION'] . "'>" . $arRes['TITLE'] . "</a>");
$createdDateStr = $arRes['CREATED_DATE'] instanceof \Bitrix\Main\Type\DateTime || $arRes['CREATED_DATE'] instanceof \Bitrix\Main\Type\Date ? ConvertTimeStamp($arRes['CREATED_DATE']->getTimestamp(), 'SHORT') : '';
$lRow->AddViewField('CREATED_DATE', $createdDateStr);
$markNum = 0;
if (isset($arRes['MARK_DEFAULT'])) {
$markNum = intval($arRes['MARK_DEFAULT']);
}
// <editor-fold defaultstate="collapsed" desc="Context menu of rows of AdminList.">
$arRowActions = array();
if ($saleModulePermissions >= 'D') {
$arRowActions[] = array("ICON" => "view", "TEXT" => GetMessage('SALE_REPORT_LIST_ROW_ACTIONS_VIEW_TEXT'), "ACTION" => $lReports->ActionRedirect("sale_report_view.php?lang=" . LANG . "&ID=" . $arRes['ID']), "DEFAULT" => true);
}
if ($saleModulePermissions >= 'W') {
$arRowActions[] = array("ICON" => "copy", "TEXT" => GetMessage('SALE_REPORT_LIST_ROW_ACTIONS_COPY_TEXT'), "ACTION" => $lReports->ActionRedirect("sale_report_construct.php?copyID=" . $arRes['ID'] . "&lang=" . LANG));
示例2: array
}
$arAddHeaders = array(array("id" => "ID", "content" => "ID", "sort" => "ID", "default" => true), array("id" => "DOCUMENT_NAME", "content" => GetMessage("BPATL_DOCUMENT_NAME"), "default" => false, "sort" => "DOCUMENT_NAME"), array("id" => "NAME", "content" => GetMessage("BPATL_NAME"), "sort" => "NAME", "default" => true), array("id" => "DESCRIPTION", "content" => GetMessage("BPATL_DESCR"), "default" => true, "sort" => "DESCRIPTION"), array("id" => "DESCRIPTION_FULL", "content" => GetMessage("BPATL_DESCR_FULL"), "default" => false, "sort" => "DESCRIPTION"), array("id" => "MODIFIED", "content" => GetMessage("BPATL_MODIFIED"), "sort" => "MODIFIED", "default" => true), array("id" => "OVERDUE_DATE", "content" => GetMessage("BPATL_OVERDUE_DATE"), "default" => false, "sort" => "OVERDUE_DATE"), array("id" => "WORKFLOW_STARTED", "content" => GetMessage("BPATL_STARTED"), "default" => false, "sort" => "WORKFLOW_STARTED"), array("id" => "WORKFLOW_STARTED_BY", "content" => GetMessage("BPATL_STARTED_BY"), "default" => false, "sort" => "WORKFLOW_STARTED_BY"), array("id" => "WORKFLOW_NAME", "content" => GetMessage("BPATL_WORKFLOW_NAME"), "default" => true, "sort" => "WORKFLOW_TEMPLATE_NAME"), array("id" => "WORKFLOW_STATE", "content" => GetMessage("BPATL_WORKFLOW_STATE"), "default" => true, "sort" => "WORKFLOW_STATE"));
if ($allowAdminAccess) {
$arAddHeaders[] = array("id" => "USER", "content" => GetMessage("BPATL_USER"), "default" => true, "sort" => "USER_ID");
}
$lAdmin->AddHeaders($arAddHeaders);
$arVisibleColumns = $lAdmin->GetVisibleHeaderColumns();
$arSelectFields = array("ID", "WORKFLOW_ID", "ACTIVITY", "ACTIVITY_NAME", "MODIFIED", "OVERDUE_DATE", "NAME", "DESCRIPTION", "PARAMETERS", 'DOCUMENT_NAME', 'WORKFLOW_STARTED', 'WORKFLOW_STARTED_BY', 'OVERDUE_DATE', 'WORKFLOW_TEMPLATE_NAME', 'WORKFLOW_STATE');
if (in_array("USER", $arVisibleColumns) && $allowAdminAccess) {
$arSelectFields[] = "USER_ID";
}
$dbResultList = CBPTaskService::GetList(array($by => $order), $arFilter, false, false, $arSelectFields);
$dbResultList = new CAdminResult($dbResultList, $sTableID);
$dbResultList->NavStart();
$lAdmin->NavText($dbResultList->GetNavPrint(GetMessage("BPATL_NAV")));
while ($arResultItem = $dbResultList->NavNext(true, "f_")) {
$row =& $lAdmin->AddRow($f_ID . '_' . $f_USER_ID, $arResultItem);
$s = $allowAdminAccess ? "&uid=" . intval($arResultItem["USER_ID"]) : "";
$row->AddField("ID", '<a href="bizproc_task.php?id=' . $f_ID . $s . '&back_url=' . urlencode($APPLICATION->GetCurPageParam("lang=" . LANGUAGE_ID, array("lang"))) . '" title="' . GetMessage("BPATL_VIEW") . '">' . $f_ID . '</a>');
$row->AddField("NAME", $f_NAME);
$description = $f_DESCRIPTION;
if (strlen($description) > 100) {
$description = substr($description, 0, 97) . "...";
}
$row->AddField("DESCRIPTION", $description);
$row->AddField("DESCRIPTION_FULL", $f_DESCRIPTION);
$row->AddField("MODIFIED", $f_MODIFIED);
$row->AddField("WORKFLOW_NAME", $f_WORKFLOW_TEMPLATE_NAME);
$row->AddField("WORKFLOW_STATE", $f_WORKFLOW_STATE);
$row->AddField("WORKFLOW_STARTED", FormatDateFromDB($f_WORKFLOW_STARTED));
if (intval($f_STARTED_BY) > 0) {
示例3: array
}
$arHeaders = array(array("id" => "ID", "content" => "ID", "sort" => "ID", "default" => true), array("id" => "NAME", "content" => GetMessage("BLB_NAME"), "sort" => "NAME", "default" => true), array("id" => "DATE_CREATE", "content" => GetMessage('BLB_DATE_CREATE'), "sort" => "DATE_CREATE", "default" => true), array("id" => "DATE_UPDATE", "content" => GetMessage('BLB_DATE_UPDATE'), "sort" => "DATE_UPDATE", "default" => true), array("id" => "ACTIVE", "content" => GetMessage('BLB_ACTIVE'), "sort" => "ACTIVE", "default" => true), array("id" => "OWNER_INFO", "content" => GetMessage('BLB_OWNER_ID'), "sort" => "", "default" => true), array("id" => "SOCNET_GROUP_ID", "content" => GetMessage('BLB_SOCNET_GROUP_ID'), "sort" => "SOCNET_GROUP_ID"), array("id" => "URL", "content" => GetMessage('BLB_URL'), "sort" => "URL", "default" => true), array("id" => "GROUP_ID", "content" => GetMessage('BLB_GROUP_ID'), "sort" => "GROUP_ID", "default" => true), array("id" => "USE_SOCNET", "content" => GetMessage('BLB_USE_SOCNET'), "sort" => "USE_SOCNET", "default" => false));
$USER_FIELD_MANAGER->AdminListAddHeaders("BLOG_BLOG", $arHeaders);
$lAdmin->AddHeaders($arHeaders);
$arVisibleColumns = $lAdmin->GetVisibleHeaderColumns();
$arSelectedFields = array("ID", "NAME", "DATE_CREATE", "DATE_UPDATE", "ACTIVE", "OWNER_ID", "URL", "REAL_URL", "GROUP_ID", "OWNER_LOGIN", "OWNER_NAME", "OWNER_LAST_NAME", "OWNER_EMAIL", "GROUP_NAME", "GROUP_SITE_ID", "SOCNET_GROUP_ID", "USE_SOCNET");
foreach ($arVisibleColumns as $val) {
if (!in_array($val, $arSelectedFields)) {
$arSelectedFields[] = $val;
}
}
$dbResultList = CBlog::GetList(array($by => $order), $arFilter, false, array("nPageSize" => CAdminResult::GetNavSize($sTableID)), $arSelectedFields);
$dbResultList = new CAdminResult($dbResultList, $sTableID);
$dbResultList->NavStart();
$lAdmin->NavText($dbResultList->GetNavPrint(GetMessage("BLB_GROUP_NAV")));
while ($arBlog = $dbResultList->NavNext(true, "f_")) {
$row =& $lAdmin->AddRow($f_ID, $arBlog, "/bitrix/admin/blog_blog_edit.php?ID=" . $f_ID . "&lang=" . LANGUAGE_ID, GetMessage("BLB_UPDATE_ALT"));
$row->AddField("ID", '<a href="/bitrix/admin/blog_blog_edit.php?ID=' . $f_ID . '&lang=' . LANGUAGE_ID . '" title="' . GetMessage("BLB_UPDATE_ALT") . '">' . $f_ID . '</a>');
$row->AddField("NAME", "<a href=\"" . CBlog::PreparePath($f_URL, $f_GROUP_SITE_ID, false, $f_OWNER_ID, $f_SOCNET_GROUP_ID) . "\">" . $f_NAME . "</a>");
$row->AddField("DATE_CREATE", $f_DATE_CREATE);
$row->AddField("DATE_UPDATE", $f_DATE_UPDATE);
$row->AddField("ACTIVE", $f_ACTIVE == "Y" ? GetMessage("BLB_YES") : GetMessage("BLB_NO"));
if (IntVal($f_OWNER_ID) > 0) {
$row->AddField("OWNER_INFO", "<a href=\"/bitrix/admin/user_edit.php?ID=" . $f_OWNER_ID . "&lang=" . LANG . "\">[" . $f_OWNER_ID . "] " . $f_OWNER_NAME . " " . $f_OWNER_LAST_NAME . " (" . $f_OWNER_LOGIN . ")</a>");
}
if (IntVal($f_SOCNET_GROUP_ID) > 0) {
$row->AddField("SOCNET_GROUP_ID", $f_SOCNET_GROUP_ID);
if (CModule::IncludeModule("socialnetwork")) {
$arGroupSo = CSocNetGroup::GetByID($f_SOCNET_GROUP_ID);
if (!empty($arGroupSo)) {
$row->AddField("SOCNET_GROUP_ID", "[" . $f_SOCNET_GROUP_ID . "] " . $arGroupSo["NAME"]);
示例4: array
break;
case "activate":
CAgent::Update($ID, array("ACTIVE" => "Y"));
break;
case "deactivate":
CAgent::Update($ID, array("ACTIVE" => "N"));
break;
}
}
}
$agentList = CAgent::GetList(array($by => $order), $arFilter);
$rsData = new CAdminResult($agentList, $sTableID);
$rsData->NavStart(20);
$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"));
示例5: array
break;
}
}
}
if (!empty($sError)) {
$lAdmin->AddFilterError($sError);
}
}
$rsData = CForumTopic::GetListEx(array($by => $order), $arFilter, false, 0, array("NoFilter" => true));
$rsData = new CAdminResult($rsData, $sTableID);
$rsData->NavStart();
$lAdmin->NavText($rsData->GetNavPrint(GetMessage("FM_TOPICS")));
/*******************************************************************/
$lAdmin->AddHeaders(array(array("id" => "ID", "content" => "ID", "sort" => "ID", "default" => true), array("id" => "TITLE", "content" => GetMessage("FM_TITLE_NAME"), "sort" => "TITLE", "default" => true), array("id" => "DESCRIPTION", "content" => GetMessage("FM_TITLE_DESCRIPTION"), "sort" => "DESCRIPTION", "default" => false), array("id" => "STATE", "content" => GetMessage("FM_TITLE_STATE"), "sort" => "STATE", "default" => true), array("id" => "APPROVED", "content" => GetMessage("FM_TITLE_APPROVED"), "sort" => "APPROVED", "default" => true), array("id" => "SORT", "content" => GetMessage("FM_TITLE_SORT"), "sort" => "SORT", "default" => true), array("id" => "USER_START_NAME", "content" => GetMessage("FM_TITLE_AUTHOR"), "sort" => "USER_START_NAME", "default" => true), array("id" => "START_DATE", "content" => GetMessage("FM_TITLE_DATE_CREATE"), "sort" => "START_DATE", "default" => true), array("id" => "POSTS", "content" => GetMessage("FM_TITLE_MESSAGES"), "sort" => "POSTS", "default" => false), array("id" => "VIEWS", "content" => GetMessage("FM_TITLE_VIEWS"), "sort" => "VIEWS", "default" => false), array("id" => "FORUM_ID", "content" => GetMessage("FM_TITLE_FORUM"), "sort" => "FORUM_NAME", "default" => true), array("id" => "LAST_POST_DATE", "content" => GetMessage("FM_TITLE_LAST_MESSAGE"), "sort" => "LAST_POST_DATE", "default" => false)));
/*******************************************************************/
while ($res = $rsData->NavNext(true, "t_")) {
$row =& $lAdmin->AddRow($t_ID, $res);
$bCanUpdateForum = CForumTopic::CanUserUpdateTopic($t_ID, $USER->GetUserGroupArray(), $USER->GetID());
$bCanDeleteForum = CForumTopic::CanUserDeleteTopic($t_ID, $USER->GetUserGroupArray(), $USER->GetID());
$row->bReadOnly = !$bCanUpdateForum || !$bCanDeleteForum ? true : false;
$row->AddField("ID", $t_ID);
$row->AddInputField("TITLE", array("size" => "35"));
$row->AddInputField("DESCRIPTION", array("size" => "35"));
if ($t_STATE != "L") {
$row->AddSelectField("STATE", array("Y" => GetMessage("F_OPEN"), "N" => GetMessage("F_CLOSE")));
} else {
$row->AddField("STATE", "Link");
}
$row->AddSelectField("APPROVED", array("Y" => GetMessage("F_SHOW"), "N" => GetMessage("F_HIDE")));
$row->AddSelectField("SORT", array("100" => GetMessage("F_PINN"), "150" => GetMessage("F_UNPINN")));
$row->AddInputField("USER_START_NAME", array("size" => "20"));
示例6: CAdminResult
}
$DB->Commit();
break;
}
}
}
$dbResultList = CSocNetSmile::GetList(array($by => $order), $arFilter);
$dbResultList = new CAdminResult($dbResultList, $sTableID);
$dbResultList->NavStart();
// установке параметров списка
$lAdmin->NavText($dbResultList->GetNavPrint(GetMessage("PAGES")));
// заголовок списка
$lAdmin->AddHeaders(array(array("id" => "ID", "content" => GetMessage("SMILE_ID"), "sort" => "ID", "default" => true), array("id" => "SORT", "content" => GetMessage("SMILE_SORT"), "sort" => "SORT", "default" => true), array("id" => "SMILE_TYPE", "content" => GetMessage('SMILE_TYPE'), "sort" => "SMILE_TYPE", "default" => true), array("id" => "NAME", "content" => GetMessage("SONET_NAME"), "sort" => "", "default" => true), array("id" => "TYPING", "content" => GetMessage("SONET_TYPING"), "sort" => "", "default" => true), array("id" => "ICON", "content" => GetMessage("SONET_SMILE_ICON"), "sort" => "", "default" => true)));
$arVisibleColumns = $lAdmin->GetVisibleHeaderColumns();
// построение списка
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);
示例7: CAdminResult
$sScript = "";
$dbOrderList = CSaleOrder::GetList(
$arFilterOrder,
$arFilterTmp,
$arGroupByTmp,
array("nPageSize"=>CAdminResult::GetNavSize($sTableID)),
$arSelectFields
);
$dbOrderList = new CAdminResult($dbOrderList, $sTableID);
$dbOrderList->NavStart();
$lAdmin->NavText($dbOrderList->GetNavPrint(GetMessage("SALE_PRLIST")));
while ($arOrder = $dbOrderList->NavNext(true, "f_"))
{
/**
* define personalization settings
*/
$isRecommended = false;
$bNeedBasket = false;
foreach($arVisibleColumns as $val)
{
if(strpos($val, "BASKET") !== false)
$bNeedBasket = true;
}
// personaliztion
if (\Bitrix\Main\Analytics\Catalog::isOn() || $bNeedBasket)
示例8: array
}
if (strlen($date2_stm) > 0) {
$arFilter = array_merge($arFilter, array("<=LAST_POST_DATE" => $DATE_TO));
}
if (!empty($arMsg)) {
$err = new CAdminException($arMsg);
$lAdmin->AddFilterError($err->GetString());
}
$rsData = CForumTopic::GetList(array($by => $order), $arFilter);
$rsData = new CAdminResult($rsData, $sTableID);
$rsData->NavStart();
$lAdmin->NavText($rsData->GetNavPrint(GetMessage("FM_TOPICS")));
//************************************ Headers ********************************************************************
$lAdmin->AddHeaders(array(array("id" => "ID", "content" => "ID", "sort" => "ID", "default" => true), array("id" => "TITLE", "content" => GetMessage("FM_TITLE_NAME"), "sort" => "TITLE", "default" => true), array("id" => "START_DATE", "content" => GetMessage("FM_TITLE_DATE_CREATE"), "sort" => "START_DATE", "default" => true), array("id" => "USER_START_NAME", "content" => GetMessage("FM_TITLE_AUTHOR"), "sort" => "USER_START_NAME", "default" => true), array("id" => "POSTS", "content" => GetMessage("FM_TITLE_MESSAGES"), "sort" => "POSTS", "default" => false), array("id" => "VIEWS", "content" => GetMessage("FM_TITLE_VIEWS"), "sort" => "VIEWS", "default" => false), array("id" => "FORUM_ID", "content" => GetMessage("FM_TITLE_FORUM"), "sort" => "FORUM_ID", "default" => true), array("id" => "LAST_POST_DATE", "content" => GetMessage("FM_TITLE_LAST_MESSAGE"), "sort" => "LAST_POST_DATE", "default" => false), array("id" => "ACTION", "content" => GetMessage("MAIN_ACTION"), "default" => true)));
//************************************ Body ***********************************************************************
while ($arForum = $rsData->NavNext(true, "t_")) {
$row =& $lAdmin->AddRow($t_ID, $arForum);
$row->bReadOnly = True;
$row->AddViewField("ID", $t_ID);
$row->AddViewField("TITLE", $t_TITLE);
$row->AddViewField("START_DATE", $t_START_DATE);
$row->AddViewField("USER_START_NAME", $t_USER_START_NAME);
$row->AddViewField("POSTS", $t_POSTS);
$row->AddViewField("VIEWS", $t_VIEWS);
$row->AddViewField("FORUM_ID", $t_FORUM_ID);
$row->AddViewField("LAST_POST_DATE", $t_LAST_POST_DATE);
$row->AddViewField("ACTION", "<input type=\"button\" onClick=\"SetValue('" . $t_ID . "');\" value=\"" . GetMessage("MAIN_SELECT") . "\">");
}
//************************************ Footer *********************************************************************
$lAdmin->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $rsData->SelectedRowsCount()), array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0")));
$lAdmin->CheckListMode();
示例9: create_event_list
//.........这里部分代码省略.........
global $f_GUESTS_BEF_YESTERDAY, $f_GUESTS_BACK_BEF_YESTERDAY, $f_GUESTS_PERIOD, $f_GUESTS_BACK_PERIOD;
global $f_GUESTS, $f_GUESTS_BACK;
$arSum = array("TODAY" => event_format_link($sum_today, $f_GUESTS_TODAY, false, $GROUP, "event_list.php?lang=" . LANG . "&find_adv_id=" . $adv_id . "&find_adv_id_exact_match=Y&find_adv_back=N&find_date1=" . urlencode($now_date) . "&find_date2=" . urlencode($now_date) . "&set_filter=Y", $show_money), "TODAY_BACK" => event_format_link($sum_back_today, $f_GUESTS_BACK_TODAY, true, $GROUP, "event_list.php?lang=" . LANG . "&find_adv_id=" . $adv_id . "&find_adv_id_exact_match=Y&find_adv_back=Y&find_date1=" . urlencode($now_date) . "&find_date2=" . urlencode($now_date) . "&set_filter=Y", $show_money), "YESTERDAY" => event_format_link($sum_yesterday, $f_GUESTS_YESTERDAY, false, $GROUP, "event_list.php?lang=" . LANG . "&find_adv_id=" . $adv_id . "&find_adv_id_exact_match=Y&find_adv_back=N&find_date1=" . urlencode($yesterday_date) . "&find_date2=" . urlencode($yesterday_date) . "&set_filter=Y", $show_money), "YESTERDAY_BACK" => event_format_link($sum_back_yesterday, $f_GUESTS_BACK_YESTERDAY, true, $GROUP, "event_list.php?lang=" . LANG . "&find_adv_id=" . $adv_id . "&find_adv_id_exact_match=Y&find_adv_back=Y&find_date1=" . urlencode($yesterday_date) . "&find_date2=" . urlencode($yesterday_date) . "&set_filter=Y", $show_money), "BEF_YESTERDAY" => event_format_link($sum_bef_yesterday, $f_GUESTS_BEF_YESTERDAY, false, $GROUP, "event_list.php?lang=" . LANG . "&find_adv_id=" . $adv_id . "&find_adv_id_exact_match=Y&find_adv_back=N&find_date1=" . urlencode($bef_yesterday_date) . "&find_date2=" . urlencode($bef_yesterday_date) . "&set_filter=Y", $show_money), "BEF_YESTERDAY_BACK" => event_format_link($sum_back_bef_yesterday, $f_GUESTS_BACK_BEF_YESTERDAY, true, $GROUP, "event_list.php?lang=" . LANG . "&find_adv_id=" . $adv_id . "&find_adv_id_exact_match=Y&find_adv_back=Y&find_date1=" . urlencode($bef_yesterday_date) . "&find_date2=" . urlencode($bef_yesterday_date) . "&set_filter=Y", $show_money), "PERIOD" => event_format_link($sum_period, $f_GUESTS_PERIOD, false, $GROUP, "event_list.php?lang=" . LANG . "&find_adv_id=" . $adv_id . "&find_adv_id_exact_match=Y&find_adv_back=N&find_date1=" . urlencode($find_date1_period) . "&find_date2=" . urlencode($find_date2_period) . "&set_filter=Y", $show_money), "PERIOD_BACK" => event_format_link($sum_back_period, $f_GUESTS_BACK_PERIOD, true, $GROUP, "event_list.php?lang=" . LANG . "&find_adv_id=" . $adv_id . "&find_adv_id_exact_match=Y&find_adv_back=Y&find_date1=" . urlencode($find_date1_period) . "&find_date2=" . urlencode($find_date2_period) . "&set_filter=Y", $show_money), "TOTAL" => event_format_link($sum_total, $f_GUESTS, false, $GROUP, "event_list.php?lang=" . LANG . "&find_adv_id=" . $adv_id . "&find_adv_id_exact_match=Y&find_adv_back=N&&set_filter=Y", $show_money), "TOTAL_BACK" => event_format_link($sum_back_total, $f_GUESTS_BACK, true, $GROUP, "event_list.php?lang=" . LANG . "&find_adv_id=" . $adv_id . "&find_adv_id_exact_match=Y&find_adv_back=Y&&set_filter=Y", $show_money));
$full_list = $show_events == "list" || $show_events == "event1" || $show_events == "event2";
$arHeaders = array();
if ($show_events == "list" || $show_events == "event1") {
$arHeaders[] = array("id" => "EVENT1", "content" => "event1", "default" => true);
}
if ($show_events == "list" || $show_events == "event2") {
$arHeaders[] = array("id" => "EVENT2", "content" => "event2", "default" => true);
}
if ($list_mode != "period") {
$arHeaders[] = array("id" => "today", "content" => GetMessage("STAT_TODAY") . "<br>" . GetMessage("STAT_STRAIGHT"), "align" => "right", "default" => true);
$arHeaders[] = array("id" => "today_back", "content" => GetMessage("STAT_TODAY") . "<br>" . GetMessage("STAT_BACK"), "align" => "right", "default" => true);
$arHeaders[] = array("id" => "yesterday", "content" => GetMessage("STAT_YESTERDAY") . "<br>" . GetMessage("STAT_STRAIGHT"), "align" => "right", "default" => true);
$arHeaders[] = array("id" => "yesterday_back", "content" => GetMessage("STAT_YESTERDAY") . "<br>" . GetMessage("STAT_BACK"), "align" => "right", "default" => true);
$arHeaders[] = array("id" => "bef_yesterday", "content" => GetMessage("STAT_BEFYESTERDAY") . "<br>" . GetMessage("STAT_STRAIGHT"), "align" => "right", "default" => true);
$arHeaders[] = array("id" => "bef_yesterday_back", "content" => GetMessage("STAT_BEFYESTERDAY") . "<br>" . GetMessage("STAT_BACK"), "align" => "right", "default" => true);
}
global $find_date1_period, $find_date2_period, $is_filtered;
if ((strlen($find_date1_period) > 0 || strlen($find_date2_period) > 0) && $is_filtered) {
$arHeaders[] = array("id" => "period", "content" => GetMessage("STAT_PERIOD") . "<br>" . GetMessage("STAT_STRAIGHT"), "align" => "right", "default" => true);
$arHeaders[] = array("id" => "period_back", "content" => GetMessage("STAT_PERIOD") . "<br>" . GetMessage("STAT_BACK"), "align" => "right", "default" => true);
}
$arHeaders[] = array("id" => "total", "content" => GetMessage("STAT_TOTAL") . "<br>" . GetMessage("STAT_STRAIGHT"), "align" => "right", "default" => true);
$arHeaders[] = array("id" => "total_back", "content" => GetMessage("STAT_TOTAL") . "<br>" . GetMessage("STAT_BACK"), "align" => "right", "default" => true);
$lAdmin->AddHeaders($arHeaders);
if ($full_list) {
$events = new CDBResult();
$events->InitFromArray($arEvents);
$rsData = new CAdminResult($events, $lAdmin->table_id);
$first = true;
$i = COption::GetOptionInt("statistic", "ADV_DETAIL_TOP_SIZE");
while ($i > 0 && ($arRes = $rsData->NavNext(true, "e_"))) {
if ($first) {
foreach ($arRes as $key => $value) {
global ${"e_" . $key};
}
$first = false;
}
$row =& $lAdmin->AddRow($e_ID, $arRes);
if ($show_events == "list") {
$title = "ID = " . $e_ID;
if (strlen($e_EVENT1) > 0) {
$title .= "\nevent1 = " . $e_EVENT1;
}
if (strlen($e_EVENT2) > 0) {
$title .= "\nevent2 = " . $e_EVENT2;
}
if (strlen($e_NAME) > 0) {
$title .= "\n" . GetMessage("STAT_NAME") . " " . $e_NAME;
}
if (strlen($e_DESCRIPTION) > 0) {
$title .= "\n" . GetMessage("STAT_DESCRIPTION") . " " . $e_DESCRIPTION;
}
$name = "<a target=\"_blank\" href=\"event_type_list.php?lang=" . LANG . "&find_id=" . $e_ID . "&find_id_exact_match=Y&set_filter=Y\" class=\"tablebodylink\" title=\"" . $title . "\">" . $e_EVENT . "</a>";
} elseif ($show_events == "event1") {
$name = "<a target=\"_blank\" href=\"event_type_list.php?lang=" . LANG . "&find_event1=" . urlencode("\"" . $e_EVENT1 . "\"") . "&set_filter=Y\" class=\"tablebodylink\">" . $e_EVENT1 . "</a>";
} elseif ($show_events == "event2") {
$name = "<a target=\"_blank\" href=\"event_type_list.php?lang=" . LANG . "&find_event2=" . urlencode("\"" . $e_EVENT2 . "\"") . "&set_filter=Y\" class=\"tablebodylink\">" . $e_EVENT2 . "</a>";
}
$strHTML = event_format_link(array("C" => $e_COUNTER_TODAY, "M" => $e_MONEY_TODAY), $f_GUESTS_TODAY, false, $GROUP, "event_list.php?lang=" . LANG . "&find_event_id=" . $e_ID . "&find_event_id_exact_match=Y&find_adv_id=" . $adv_id . "&find_adv_id_exact_match=Y&find_adv_back=N&find_date1=" . urlencode($now_date) . "&find_date2=" . urlencode($now_date) . "&set_filter=Y", $show_money);
$row->AddViewField("today", $strHTML);
$strHTML = event_format_link(array("C" => $e_COUNTER_BACK_TODAY, "M" => $e_MONEY_BACK_TODAY), $f_GUESTS_BACK_TODAY, true, $GROUP, "event_list.php?lang=" . LANG . "&find_event_id=" . $e_ID . "&find_event_id_exact_match=Y&find_adv_id_exact_match=Y&find_adv_id=" . $adv_id . "&find_adv_back=Y&find_date1=" . urlencode($now_date) . "&find_date2=" . urlencode($now_date) . "&set_filter=Y", $show_money);
$row->AddViewField("today_back", $strHTML);
$strHTML = event_format_link(array("C" => $e_COUNTER_YESTERDAY, "M" => $e_MONEY_YESTERDAY), $f_GUESTS_YESTERDAY, false, $GROUP, "event_list.php?lang=" . LANG . "&find_event_id=" . $e_ID . "&find_adv_id=" . $adv_id . "&find_event_id_exact_match=Y&find_adv_id_exact_match=Y&find_adv_back=N&find_date1=" . urlencode($yesterday_date) . "&find_date2=" . urlencode($yesterday_date) . "&set_filter=Y", $show_money);
示例10: array
$arFilter["<=ID"] = ${"filter_id_end"};
}
if (!empty(${"filter_timestamp_from"})) {
$arFilter["DATE_MODIFY_FROM"] = ${"filter_timestamp_from"};
}
if (!empty(${"filter_timestamp_to"})) {
$arFilter["DATE_MODIFY_TO"] = ${"filter_timestamp_to"};
}
$dbResultList = CIBlockElement::GetList(array($by => $order), $arFilter, false, array("nPageSize" => 20), ${"filter_count_for_show"});
$dbResultList = new CAdminResult($dbResultList, $sTableID);
$dbResultList->NavStart();
$lAdmin->NavText($dbResultList->GetNavPrint(GetMessage("sale_prod_search_nav")));
$arHeaders = array(array("id" => "ID", "content" => "ID", "sort" => "id", "default" => true), array("id" => "ACTIVE", "content" => GetMessage("SPS_ACT"), "sort" => "active", "default" => true), array("id" => "NAME", "content" => GetMessage("SPS_NAME"), "sort" => "name", "default" => true), array("id" => "ACT", "content" => " ", "default" => true));
$lAdmin->AddHeaders($arHeaders);
$arVisibleColumns = $lAdmin->GetVisibleHeaderColumns();
while ($arItems = $dbResultList->NavNext(true, "f_")) {
$row =& $lAdmin->AddRow($f_ID, $arItems);
$row->AddField("ID", $f_ID);
$row->AddField("ACTIVE", $f_ACTIVE);
$row->AddField("NAME", $f_NAME);
$URL = CIBlock::ReplaceDetailUrl($arItems["DETAIL_PAGE_URL"], $arItems, true);
$row->AddField("ACT", "<a href=\"javascript:void(0)\" onClick=\"SelEl(" . $arItems["ID"] . ", '" . htmlspecialcharsbx(str_replace("'", "\\'", str_replace("\\", "\\\\", $arItems["NAME"]))) . "', '" . htmlspecialcharsbx(str_replace("'", "\\'", str_replace("\\", "\\\\", $URL))) . "')\">" . GetMessage("SPS_SELECT") . "</a>");
}
$lAdmin->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $dbResultList->SelectedRowsCount())));
} else {
echo ShowError(GetMessage("SPS_NO_PERMS") . ".");
}
$lAdmin->CheckListMode();
$APPLICATION->SetTitle(GetMessage("SPS_SEARCH_TITLE"));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_popup_admin.php";
$func_name = preg_replace("/[^a-z0-9_\\[\\]:]/i", "", $_REQUEST['func_name']);
示例11: CAdminResult
break;
}
}
}
$dbResultList = CSaleOrderProps::GetList(array($by => $order), $arFilter);
$dbResultList = new CAdminResult($dbResultList, $sTableID);
$dbResultList->NavStart();
$lAdmin->NavText($dbResultList->GetNavPrint(GetMessage("SALE_PRLIST")));
$lAdmin->AddHeaders(array(array("id" => "ID", "content" => "ID", "sort" => "ID", "default" => true), array("id" => "PERSON_TYPE_ID", "content" => GetMessage("SALE_PERSON_TYPE"), "sort" => "PERSON_TYPE_ID", "default" => true), array("id" => "NAME", "content" => GetMessage('SALE_FIELD_NAME'), "sort" => "NAME", "default" => true), array("id" => "CODE", "content" => GetMessage('SALE_FIELD_CODE'), "sort" => "CODE", "default" => true), array("id" => "ACTIVE", "content" => GetMessage("SALE_FIELD_ACTIVE"), "sort" => "ACTIVE", "default" => true), array("id" => "SORT", "content" => GetMessage('SALE_FIELD_SORT'), "sort" => "SORT", "default" => true), array("id" => "TYPE", "content" => GetMessage("SALE_FIELD_TYPE"), "sort" => "TYPE", "default" => true), array("id" => "REQUIED", "content" => GetMessage("SALE_REQUIED"), "sort" => "REQUIED", "default" => true), array("id" => "MULTIPLE", "content" => GetMessage("SALE_MULTIPLE"), "sort" => "MULTIPLE", "default" => true), array("id" => "PROPS_GROUP_ID", "content" => GetMessage("SALE_GROUP"), "sort" => "PROPS_GROUP_ID", "default" => true), array("id" => "USER_PROPS", "content" => GetMessage("SALE_USER"), "sort" => "USER_PROPS", "default" => true), array("id" => "UTIL", "content" => GetMessage("SALE_FIELD_UTIL"), "sort" => "UTIL", "default" => true)));
$arPersonTypeList = array();
$dbPersonType = CSalePersonType::GetList(array("SORT" => "ASC", "NAME" => "ASC"), array());
while ($arPersonType = $dbPersonType->Fetch()) {
$arPersonTypeList[$arPersonType["ID"]] = array("ID" => $arPersonType["ID"], "NAME" => htmlspecialcharsEx($arPersonType["NAME"]), "LID" => implode(", ", $arPersonType["LIDS"]));
}
$arVisibleColumns = $lAdmin->GetVisibleHeaderColumns();
while ($arOrderProp = $dbResultList->NavNext(true, "f_")) {
$editUrl = "sale_order_props_edit.php?ID=" . $f_ID . "&lang=" . LANG . GetFilterParams("filter_");
$row =& $lAdmin->AddRow($f_ID, $arOrderProp, $editUrl, GetMessage("SALE_EDIT_DESCR"));
$row->AddField("ID", "<b><a href='" . $editUrl . "' title='" . GetMessage("SALE_EDIT_DESCR") . "'>" . $f_ID . "</a>");
$fieldValue = "";
if (in_array("PERSON_TYPE_ID", $arVisibleColumns)) {
$fieldValue = "[" . $arPersonTypeList[$f_PERSON_TYPE_ID]["ID"] . "] ";
$fieldValue .= $arPersonTypeList[$f_PERSON_TYPE_ID]["NAME"] . " ";
$fieldValue .= "(" . htmlspecialcharsEx($arPersonTypeList[$f_PERSON_TYPE_ID]["LID"]) . ")";
}
$row->AddField("PERSON_TYPE_ID", $fieldValue);
$row->AddInputField("NAME");
$row->AddInputField("SORT");
$row->AddInputField("CODE");
$row->AddField("TYPE", "[" . $f_TYPE . "] " . $SALE_FIELD_TYPES[$f_TYPE] . "");
$row->AddCheckField("ACTIVE");
示例12: CAdminList
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
}
$sTableID = "tbl_catalog_admin";
$lAdmin = new CAdminList($sTableID);
$arHeader = array(array("id" => "NAME", "content" => GetMessage("CAT_CADM_NAME"), "default" => true), array("id" => "SORT", "content" => GetMessage("CAT_CADM_SORT"), "default" => true, "align" => "right"), array("id" => "ACTIVE", "content" => GetMessage("CAT_CADM_ACTIVE"), "default" => true, "align" => "center"), array("id" => "LID", "content" => GetMessage("CAT_CADM_LANG"), "default" => true, "align" => "left"), array("id" => "ID", "content" => GetMessage("CAT_CADM_ID"), "sort" => "id", "default" => true, "align" => "right"));
$lAdmin->AddHeaders($arHeader);
$arCatalogs = array();
$rsCatalog = CCatalog::GetList(array(), array(), false, false, array('IBLOCK_ID', 'PRODUCT_IBLOCK_ID'));
while ($ar = $rsCatalog->Fetch()) {
if (!$ar["PRODUCT_IBLOCK_ID"]) {
$arCatalogs[$ar["IBLOCK_ID"]] = 1;
}
}
$rsIBlocks = CIBlock::GetList(array("SORT" => "asc", "NAME" => "ASC"), array('ID' => array_keys($arCatalogs), "MIN_PERMISSION" => "U"));
$rsIBlocks = new CAdminResult($rsIBlocks, $sTableID);
while ($dbrs = $rsIBlocks->NavNext(true, "f_")) {
$row =& $lAdmin->AddRow($f_ID, $dbrs, 'cat_catalog_edit.php?IBLOCK_ID=' . $f_ID . '&lang=' . LANGUAGE_ID);
$f_LID = '';
$db_LID = CIBlock::GetSite($f_ID);
while ($ar_LID = $db_LID->Fetch()) {
$f_LID .= ($f_LID != "" ? " / " : "") . htmlspecialcharsbx($ar_LID["LID"]);
}
$row->AddViewField("LID", $f_LID);
$row->AddViewField("NAME", '<a href="' . htmlspecialcharsbx('cat_catalog_edit.php?IBLOCK_ID=' . $f_ID . '&lang=' . LANGUAGE_ID) . '">' . $f_NAME . '</a>');
$row->AddCheckField("ACTIVE", false);
$arActions = array();
if (CIBlockRights::UserHasRightTo($f_ID, $f_ID, "iblock_edit")) {
$arActions[] = array("ICON" => "edit", "TEXT" => GetMessage("MAIN_ADMIN_MENU_EDIT"), "DEFAULT" => $_REQUEST["admin"] == "Y", "ACTION" => "window.location='" . CUtil::JSEscape('cat_catalog_edit.php?IBLOCK_ID=' . $f_ID . '&lang=' . LANGUAGE_ID) . "';");
}
if (!empty($arActions)) {
$row->AddActions($arActions);
示例13: array
if ($service && $ID > 0 && strlen($service->getTrackingClass()) > 0) {
$aTabs[] = array("DIV" => "edit_tracking", "TAB" => Loc::getMessage("SALE_DSE_TAB_TRACKING"), "ICON" => "sale", "TITLE" => Loc::getMessage("SALE_DSE_TAB_TRACKING_DESCR"));
}
$tabControl = new CAdminTabControl("tabControl", $aTabs);
/* Profiles */
if ($canHasProfiles) {
$sTableIDSubService = "tbl_sale_delivery_subservice";
$oSortSubService = new CAdminSorting($sTableIDSubService);
$lAdminSubServices = new CAdminList($sTableIDSubService, $oSortSubService);
$dbSubServicesRes = \Bitrix\Sale\Delivery\Services\Table::getList(array("filter" => array("PARENT_ID" => $ID), "select" => array("ID", "NAME", "ACTIVE", "LOGOTIP", "PARENT_ID"), "order" => isset($_REQUEST["by"]) && isset($_REQUEST["order"]) ? array($_REQUEST["by"] => $_REQUEST["order"]) : array("NAME" => "ASC")));
$profilesList = new CAdminResult($dbSubServicesRes, $sTableIDSubService);
$profilesList->NavStart();
$lAdminSubServices->NavText($profilesList->GetNavPrint("PROFILES"));
$profileHeader = array(array("id" => "ID", "content" => "ID", "sort" => "ID", "default" => true), array("id" => "NAME", "content" => Loc::getMessage("SALE_DSE_PROF_HEAD_NAME"), "sort" => "NAME", "default" => true), array("id" => "ACTIVE", "content" => Loc::getMessage("SALE_DSE_PROF_HEAD_ACTIVE"), "sort" => "ACTIVE", "default" => true), array("id" => "LOGOTIP", "content" => Loc::getMessage("SALE_DSE_PROF_HEAD_LOGOTIP"), "sort" => "LOGOTIP", "default" => true));
$lAdminSubServices->AddHeaders($profileHeader);
while ($profileParams = $profilesList->NavNext(true, "f_")) {
$actUrl = "sale_delivery_service_edit.php?lang=" . LANG . "&PARENT_ID=" . $f_PARENT_ID . "&ID=" . $f_ID . '&' . $tabControl->ActiveTabParam() . "&back_url=" . urlencode($APPLICATION->GetCurPageParam());
$row =& $lAdminSubServices->AddRow($f_ID, $profileParams, $actUrl, Loc::getMessage("SALE_DSE_EDIT_DESCR"));
$row->AddField("NAME", '<a href="' . $actUrl . '" class="adm-list-table-icon-link">' . '<span class="adm-list-table-link">' . $f_NAME . '</span>' . '</a>');
$row->AddField("ID", $f_ID);
$logoHtml = intval($f_LOGOTIP) > 0 ? CFile::ShowImage(CFile::GetFileArray($f_LOGOTIP), 150, 150, "border=0", "", false) : "";
$row->AddField("LOGOTIP", $logoHtml);
$row->AddField("ACTIVE", $f_ACTIVE == "Y" ? Loc::getMessage("SALE_DSE_YES") : Loc::getMessage("SALE_DSE_NO"));
$row->AddField("CLASS_NAME", $f_CLASS_NAME);
$arActions = array();
$arActions[] = array("ICON" => "edit", "TEXT" => Loc::getMessage("SALE_DSE_COPY"), "ACTION" => $lAdminSubServices->ActionRedirect("sale_delivery_service_edit.php?lang=" . LANG . "&ID=" . $f_ID . "&action=copy&back_url=" . urlencode($APPLICATION->GetCurPageParam())), "DEFAULT" => true);
$arActions[] = array("ICON" => "edit", "TEXT" => Loc::getMessage("SALE_DSE_EDIT_DESCR"), "ACTION" => $lAdminSubServices->ActionRedirect("sale_delivery_service_edit.php?lang=" . LANG . "&PARENT_ID=" . $f_PARENT_ID . "&ID=" . $f_ID . "&back_url=" . urlencode($APPLICATION->GetCurPageParam())), "DEFAULT" => true);
if ($saleModulePermissions >= "W") {
$arActions[] = array("SEPARATOR" => true);
$arActions[] = array("ICON" => "delete", "TEXT" => Loc::getMessage("SALE_DSE_DELETE"), "ACTION" => "if(confirm('" . Loc::getMessage('SALE_DSE_CONFIRM_DEL_PROFILE_MESSAGE') . "')) " . $lAdminSubServices->ActionRedirect("sale_delivery_service_edit.php?lang=" . LANG . "&PARENT_ID=" . $fields["PARENT_ID"] . "&ID=" . $ID . "&action=profile_delete&ID_PROF=" . $f_ID));
}
示例14: array
array("id"=>"NAME", "content"=>Loc::getMessage('SEO_BANNER_NAME'), "sort"=>"NAME", "default"=>true),
array("id"=>"XML_ID", "content"=>Loc::getMessage('SEO_BANNER_XML_ID'), "sort"=>"XML_ID", "default"=>true),
array("id"=>"SHOW", "content"=>Loc::getMessage('SEO_STATUS_SHOW'), "default"=>true),
array("id"=>"MODERATE", "content"=>Loc::getMessage('SEO_STATUS_MODERATE'), "default"=>true),
array("id"=>"PHRASES_MODERATE", "content"=>Loc::getMessage('SEO_STATUS_PHRASES_MODERATE'), "default"=>true),
array("id"=>"LAST_UPDATE", "content"=>Loc::getMessage('SEO_BANNER_LAST_UPDATE'), "sort"=>"LAST_UPDATE", "default"=>true),
);
if($request["mode"]!='excel')
{
$arHeaders[] = array("id"=>"UPDATE", "content"=>"", "default"=>true);
}
$adminList->AddHeaders($arHeaders);
$adminList->NavText($data->GetNavPrint(Loc::getMessage("PAGES")));
while($banner = $data->NavNext())
{
$editUrl = "seo_search_yandex_direct_banner_edit.php?lang=".LANGUAGE_ID."&campaign=".$campaign['ID']."&ID=".$banner["ID"];
$row = &$adminList->AddRow($banner["ID"], $banner, $editUrl, Loc::getMessage("SEO_BANNER_EDIT_TITLE", array(
"#ID#" => $banner["ID"],
"#XML_ID#" => $banner["XML_ID"],
)));
$row->AddViewField("ID", $banner['ID']);
$row->AddField("NAME", '<a href="'.Converter::getHtmlConverter()->encode($editUrl).'" title="'.Loc::getMessage("SEO_BANNER_EDIT_TITLE", array(
"#ID#" => $banner["ID"],
"#XML_ID#" => $banner["XML_ID"],
)).'">'.Converter::getHtmlConverter()->encode($banner['NAME']).'</a>');
示例15: array
}
}
$dbSites = Bitrix\Main\SiteTable::getList(array('order' => array('DEF' => 'DESC', 'NAME' => 'ASC'), 'select' => array('NAME', 'LID')));
$arSites = array();
while ($arRes = $dbSites->fetch(Converter::getHtmlConverter())) {
$arSites[$arRes['LID']] = $arRes;
}
$map = SitemapTable::getMap();
unset($map['SETTINGS']);
$sitemapList = SitemapTable::getList(array('order' => array($by => $order), "select" => array_keys($map)));
$data = new CAdminResult($sitemapList, $tableID);
$data->NavStart();
$arHeaders = array(array("id" => "ID", "content" => Loc::getMessage("SITEMAP_ID"), "sort" => "ID", "default" => true), array("id" => "TIMESTAMP_X", "content" => Loc::getMessage('SITEMAP_TIMESTAMP_X'), "sort" => "TIMESTAMP_X", "default" => true), array("id" => "NAME", "content" => Loc::getMessage('SITEMAP_NAME'), "sort" => "NAME", "default" => true), array("id" => "SITE_ID", "content" => Loc::getMessage('SITEMAP_SITE_ID'), "sort" => "SITE_ID", "default" => true), array("id" => "DATE_RUN", "content" => Loc::getMessage('SITEMAP_DATE_RUN'), "sort" => "DATE_RUN", "default" => true), array("id" => "RUN", "content" => "", "default" => true));
$adminList->AddHeaders($arHeaders);
$adminList->NavText($data->GetNavPrint(Loc::getMessage("PAGES")));
while ($sitemap = $data->NavNext()) {
$id = intval($sitemap['ID']);
$row =& $adminList->AddRow($sitemap["ID"], $sitemap, "seo_sitemap_pro_edit.php?ID=" . $sitemap["ID"] . "&lang=" . LANGUAGE_ID, Loc::getMessage("SITEMAP_EDIT_TITLE"));
$row->AddViewField("ID", $sitemap['ID']);
$row->AddViewField('TIMESTAMP_X', $sitemap['TIMESTAMP_X']);
$row->AddViewField('DATE_RUN', $sitemap['DATE_RUN'] ? $sitemap['DATE_RUN'] : Loc::getMessage('SITEMAP_DATE_RUN_NEVER'));
$row->AddViewField('SITE_ID', '<a href="site_edit.php?lang=' . LANGUAGE_ID . '&LID=' . $sitemap['SITE_ID'] . '">[' . $sitemap['SITE_ID'] . '] ' . $arSites[$sitemap['SITE_ID']]['NAME'] . '</a>');
$row->AddField("NAME", '<a href="seo_sitemap_pro_edit.php?ID=' . $sitemap["ID"] . '&lang=' . LANGUAGE_ID . '" title="' . Loc::getMessage("SITEMAP_EDIT_TITLE") . '">' . Converter::getHtmlConverter()->encode($sitemap['NAME']) . '</a>');
$row->AddField("RUN", '<input type="button" class="adm-btn-save" value="' . Converter::getHtmlConverter()->encode(Loc::getMessage('SITEMAP_RUN')) . '" onclick="generateSitemap(' . $sitemap['ID'] . ')" name="save" id="sitemap_run_button_' . $sitemap['ID'] . '" />');
//$row->AddInputField("NAME");
//$row->AddCheckField("ACTIVE");
$row->AddActions(array(array("ICON" => "edit", "TEXT" => Loc::getMessage("SITEMAP_EDIT"), "ACTION" => $adminList->ActionRedirect("seo_sitemap_pro_edit.php?ID=" . $sitemap["ID"] . "&lang=" . LANGUAGE_ID), "DEFAULT" => true), array("ICON" => "move", "TEXT" => Loc::getMessage("SITEMAP_RUN"), "ACTION" => 'generateSitemap(' . $sitemap['ID'] . ');'), array("ICON" => "delete", "TEXT" => Loc::getMessage("SITEMAP_DELETE"), "ACTION" => "if(confirm('" . \CUtil::JSEscape(Loc::getMessage('SITEMAP_DELETE_CONFIRM')) . "')) " . $adminList->ActionDoGroup($id, "delete"))));
}
$arDDMenu = array();
$arDDMenu[] = array("TEXT" => "<b>" . Loc::getMessage("SEO_ADD_SITEMAP_CHOOSE_SITE") . "</b>", "ACTION" => false);
foreach ($arSites as $arRes) {