Пример #1
0
                $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) {
$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";
 /**
  * Подготавливает массив с настройками футера таблицы 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
0
            $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
0
		$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
0
            }
            $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
0
		$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.'&amp;set_filter=Y&amp;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.'&amp;set_filter=Y&amp;find_component_id='.$f_ID.'&amp;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.'&amp;set_filter=Y&amp;find_component_id='.$f_ID.'&amp;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.'&amp;set_filter=Y&amp;find_component_id='.$f_ID.'&amp;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
0
                $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;
$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 
 /**
  * Подготавливает массив с настройками футера таблицы 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
0
        $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
0
		"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
0
            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
0
        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';
Пример #15
0
			$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")
Пример #16
0
    } 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();
?>
Пример #17
0
			if (0 < $row->arRes['MODIFIED_BY'] && isset($arUserList[$row->arRes['MODIFIED_BY']]))
			{
				$strModifiedBy = $arUserList[$row->arRes['MODIFIED_BY']];
			}
			$row->AddViewField("MODIFIED_BY", $strModifiedBy);
		}
	}
	if (isset($row))
		unset($row);
}

$lAdmin->AddFooter(
	array(
		array(
			"title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"),
			"value" => $dbResultList->SelectedRowsCount()
		),
		array(
			"counter" => true,
			"title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"),
			"value" => "0"
		),
	)
);

if (!$bReadOnly)
{
	$lAdmin->AddGroupActionTable(
		array(
			"delete" => GetMessage("MAIN_ADMIN_LIST_DELETE"),
			"activate" => GetMessage("MAIN_ADMIN_LIST_ACTIVATE"),
Пример #18
0
// построение списка
while ($arResult = $dbResultList->NavNext(true, "f_")) {
    $row =& $lAdmin->AddRow($f_CONDITION, $arResult, "urlrewrite_edit.php?CONDITION=" . UrlEncode($arResult["CONDITION"]) . "&lang=" . LANG . "&site_id=" . UrlEncode($filter_site_id), GetMessage("MURL_EDIT"));
    $row->AddField("CONDITION", $f_CONDITION);
    $row->AddField("ID", $f_ID);
    $row->AddField("PATH", $f_PATH);
    $row->AddField("RULE", $f_RULE);
    $arActions = array();
    $arActions[] = array("ICON" => "edit", "TEXT" => GetMessage("MURL_EDIT"), "ACTION" => $lAdmin->ActionRedirect("urlrewrite_edit.php?CONDITION=" . UrlEncode($arResult["CONDITION"]) . "&lang=" . LANG . "&site_id=" . UrlEncode($filter_site_id)), "DEFAULT" => true);
    if ($isAdmin) {
        $arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("MURL_DELETE"), "ACTION" => "if(confirm('" . GetMessage("MURL_DELETE_CONF") . "')) " . $lAdmin->ActionDoGroup(UrlEncode($arResult["CONDITION"]), "delete"));
    }
    $row->AddActions($arActions);
}
// "подвал" списка
$arFooterArray = array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $dbResultList->SelectedRowsCount()), array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0"));
$lAdmin->AddFooter($arFooterArray);
// показ формы с кнопками добавления, ...
$lAdmin->AddGroupActionTable(array("delete" => GetMessage("MAIN_ADMIN_LIST_DELETE")));
$arDDMenu = array();
$dbRes = CLang::GetList($b = "sort", $o = "asc");
while ($arRes = $dbRes->Fetch()) {
    $arDDMenu[] = array("TEXT" => htmlspecialcharsbx("[" . $arRes["LID"] . "] " . $arRes["NAME"]), "ACTION" => "window.location = 'urlrewrite_edit.php?lang=" . urlencode(LANG) . "&site_id=" . urlencode($arRes["LID"]) . "';");
}
$aContext = array(array("TEXT" => GetMessage("MURL_NEW"), "TITLE" => GetMessage("MURL_NEW_TITLE"), "ICON" => "btn_new", "MENU" => $arDDMenu), array("TEXT" => GetMessage("MURL_REINDEX"), "TITLE" => GetMessage("MURL_REINDEX_TITLE"), "LINK" => "urlrewrite_reindex.php?lang=" . LANG . ""));
$lAdmin->AddAdminContextMenu($aContext);
// проверка на вывод только списка (в случае списка, скрипт дальше выполняться не будет)
$lAdmin->CheckListMode();
$APPLICATION->SetTitle(GetMessage("MURL_TITLE"));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
?>
Пример #19
0
        $row->AddField("GROUPS_ID", $strUserGroup);
    }
    if (in_array("LID", $arVisibleColumns)) {
        $row->AddField("LID", $arSites[$arBuyers["LID"]]["NAME"]);
    }
    /*BUYER*/
    $fieldBuyer = GetFormatedUserName($arBuyers["USER_ID"], false);
    $row->AddField("BUYER", $fieldBuyer);
    $arActions = array();
    $arActions[] = array("ICON" => "view", "TEXT" => GetMessage("BUYER_SUB_ACTION_PROFILE"), "ACTION" => $lAdmin->ActionRedirect("sale_buyers_profile.php?USER_ID=" . $arBuyers["USER_ID"] . "&lang=" . LANGUAGE_ID), "DEFAULT" => true);
    foreach ($arSitesShop as $val) {
        $arActions[] = array("ICON" => "view", "TEXT" => GetMessage("BUYER_SUB_ACTION_ORDER") . " [" . $val["ID"] . "]", "ACTION" => $lAdmin->ActionRedirect("sale_order_new.php?user_id=" . $arBuyers["USER_ID"] . "&LID=" . $val["ID"] . "&lang=" . LANGUAGE_ID));
    }
    $row->AddActions($arActions);
}
$arFooterArray = array(array("title" => GetMessage('MAIN_ADMIN_LIST_SELECTED'), "value" => $dbUsersList->SelectedRowsCount()));
$lAdmin->AddFooter($arFooterArray);
$aContext = array();
$lAdmin->AddAdminContextMenu($aContext);
$lAdmin->CheckListMode();
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/sale/prolog.php";
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 . "_filters", array("filter_universal" => GetMessage("BUYER_ROW_BUYER"), "filter_ID" => GetMessage("BUYER_F_ID"), "filter_login" => GetMessage("BUYER_F_LOGIN"), "filter_mail" => GetMessage("BUYER_F_MAIL"), "filter_phone" => GetMessage("BUYER_F_PHONE"), "find_last_login_1" => GetMessage("BUYER_F_DATE_AUTH"), "filter_price_all" => GetMessage("BUYER_F_PRICE_ALL"), "filter_quantity_all" => GetMessage("BUYER_F_QUANTITY_ALL"), "find_last_order_date" => GetMessage("BUYER_F_LAST_ORDER_DATE"), "filter_register_date" => GetMessage("BUYER_ROW_DATE_REGISTER"), "filter_group" => GetMessage("BUYER_F_GROUP"), "filter_currency" => GetMessage("BUYER_F_CURRENCY"), "filter_lid" => GetMessage("BUYER_ORDERS_LID")));
$oFilter->AddPreset(array("ID" => "find_best", "NAME" => GetMessage("BUYER_F_BEST"), "FIELDS" => array("filter_universal" => ""), "SORT_FIELD" => array("ORDER_SUM" => "DESC")));
Пример #20
0
		{
			$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(
Пример #21
0
			{
				$userName = $userList[$row->arRes['USER_ID']];
			}
			$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'),
	)
Пример #22
0
        $row->AddViewField("FILE_SIZE", CFile::FormatSize((double) $arRes["SIZE"]));
        $total_size += $arRes["SIZE"];
        $total_count++;
    }
    $arActions = array();
    if ($USER->CanDoOperation("clouds_upload")) {
        $arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("CLO_STORAGE_FILE_DELETE"), "ACTION" => "if(confirm('" . GetMessage("CLO_STORAGE_FILE_DELETE_CONF") . "')) " . $lAdmin->ActionDoGroup($arRes["ID"], "delete", 'bucket=' . urlencode($obBucket->ID) . '&path=' . urlencode($path)));
    }
    if (!empty($arActions)) {
        $row->AddActions($arActions);
    }
}
if ($_GET["size"] === "y" && is_array($arFiles) && (round($total_size / 1024) != round($obBucket->FILE_SIZE / 1024) || $total_count != $obBucket->FILE_COUNT)) {
    $obBucket->SetFileCounter($total_size, $total_count);
}
$arFooter = array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $path === "/" ? $rsData->SelectedRowsCount() : $rsData->SelectedRowsCount() - 1), array("title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => 0, "counter" => true));
if ($total_size > 0) {
    $arFooter[] = array("title" => GetMessage("CLO_STORAGE_FILE_SIZE") . ":", "value" => CFile::FormatSize($total_size));
}
$lAdmin->AddFooter($arFooter);
$arGroupActions = array();
if ($USER->CanDoOperation("clouds_upload")) {
    $arGroupActions["delete"] = GetMessage("MAIN_ADMIN_LIST_DELETE");
}
$lAdmin->AddGroupActionTable($arGroupActions);
$chain = $lAdmin->CreateChain();
$arPath = explode("/", $path);
$curPath = "/";
foreach ($arPath as $dir) {
    if ($dir != "") {
        $curPath .= $dir . "/";
$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 
Пример #24
0
        $res = \Bitrix\Sale\Delivery\Services\Table::getById($f_PARENT_ID);
        if ($group = $res->fetch()) {
            $groupNameHtml = '<a href="sale_delivery_service_edit.php?lang=' . LANG . '&PARENT_ID=' . $group["PARENT_ID"] . '&ID=' . $group["ID"] . "&back_url=" . $backUrl . '">' . htmlspecialcharsbx($group["NAME"]) . '</a>';
        }
    }
    $row->AddField("GROUP_NAME", $groupNameHtml);
    $arActions = array();
    $arActions[] = array("ICON" => "copy", "TEXT" => Loc::getMessage("SALE_SDL_COPY_DESCR"), "ACTION" => 'BX.Sale.Delivery.showGroupsDialog("sale_delivery_service_edit.php?lang=' . LANG . '&ID=' . $f_ID . '&action=copy","' . $f_PARENT_ID . "&back_url=" . $backUrl . '");', "DEFAULT" => true);
    $arActions[] = array("ICON" => "edit", "TEXT" => Loc::getMessage("SALE_SDL_EDIT_DESCR"), "ACTION" => $lAdmin->ActionRedirect("sale_delivery_service_edit.php?lang=" . LANG . "&PARENT_ID=" . $f_PARENT_ID . "&ID=" . $f_ID . "&back_url=" . $backUrl), "DEFAULT" => true);
    if ($saleModulePermissions >= "W") {
        $arActions[] = array("SEPARATOR" => true);
        $arActions[] = array("ICON" => "delete", "TEXT" => Loc::getMessage("SALE_SDL_DELETE_DESCR"), "ACTION" => "if(confirm('" . Loc::getMessage('SALE_SDL_CONFIRM_DEL_MESSAGE') . "')) " . $lAdmin->ActionDoGroup($f_ID, "delete", "PARENT_ID=" . $f_PARENT_ID));
    }
    $row->AddActions($arActions);
}
$lAdmin->AddFooter(array(array("title" => Loc::getMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $dbResultList->SelectedRowsCount()), array("counter" => true, "title" => Loc::getMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0")));
$lAdmin->AddGroupActionTable(array("delete" => Loc::getMessage("MAIN_ADMIN_LIST_DELETE"), "activate" => Loc::getMessage("MAIN_ADMIN_LIST_ACTIVATE"), "deactivate" => Loc::getMessage("MAIN_ADMIN_LIST_DEACTIVATE")));
if ($saleModulePermissions == "W") {
    $aContext = array();
    $aContext[] = array("TEXT" => Loc::getMessage("SALE_SDL_ADD_NEW"), "TITLE" => Loc::getMessage("SALE_SDL_ADD_NEW_ALT"), "LINK" => "sale_delivery_service_edit.php?lang=" . LANG . "&PARENT_ID=" . (intval($filter["=PARENT_ID"]) > 0 ? $filter["=PARENT_ID"] : 0) . (isset($filter["=CLASS_NAME"]) ? "&CLASS_NAME=" . urlencode($filter["=CLASS_NAME"]) : "") . "&back_url=" . $backUrl, "ICON" => "btn_new");
    /*
    		array(
    			"TEXT" => Loc::getMessage("SALE_SDL_ADD_NEW_GROUP"),
    			"LINK" => "sale_delivery_service_edit.php?lang=".LANG."&PARENT_ID=".$filter_group."&CLASS_NAME=".urlencode('\Bitrix\Sale\Delivery\Services\Group'),
    			"TITLE" => Loc::getMessage("SALE_SDL_ADD_NEW_GROUP_ALT")
    		),
    */
    if (isset($filter["=CLASS_NAME"]) && $filter["=CLASS_NAME"] == '\\Bitrix\\Sale\\Delivery\\Services\\Group') {
        $aContext[] = array("TEXT" => Loc::getMessage("SALE_SDL_TO_LIST"), "LINK" => isset($_GET["back_url"]) ? $_GET["back_url"] : "/bitrix/admin/sale_delivery_service_list.php?lang=" . LANGUAGE_ID . (!empty($filter_group) ? "&filter_group=" . intval($filter_group) : ""), "TITLE" => Loc::getMessage("SALE_SDL_TO_LIST_ALT"));
    } else {
        $aContext[] = array("TEXT" => Loc::getMessage("SALE_SDL_MANAGE_GROUP"), "LINK" => $APPLICATION->GetCurPageParam("filter_class_name=" . urlencode('\\Bitrix\\Sale\\Delivery\\Services\\Group') . "&backurl=" . urlencode($APPLICATION->GetCurPageParam()), array("filter_class_name", "filter_group")), "TITLE" => Loc::getMessage("SALE_SDL_MANAGE_GROUP_ALT"));
Пример #25
0
			$arActions[] = array(
				"ICON" => "delete",
				"TEXT" => GetMessage("MAIN_DUMP_DELETE"),
				"ACTION" => "if(confirm('".GetMessage('MAIN_DUMP_ALERT_DELETE')."')) ".$lAdmin->ActionDoGroup($BUCKET_ID.'_'.$f_NAME, "delete")
			);
		}
	}
	$row->AddActions($arActions);
}

// "подвал" списка
$lAdmin->AddFooter(
	array(
		array(
			"title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"),
			"value" => $rsDirContent->SelectedRowsCount()
		),
		array(
			"counter" => true,
			"title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"),
			"value" => "0"
		),
	)
);

$lAdmin->AddGroupActionTable(
	array(
		"delete" => GetMessage("MAIN_ADMIN_LIST_DELETE")
	)
);
Пример #26
0
            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";
Пример #27
0
while ($arRes = $rsData->NavNext(true, "f_")) {
    $row =& $lAdmin->AddRow($f_ID, $arRes, "/bitrix/admin/currency_rate_edit.php?ID=" . $f_ID . "&lang=" . LANGUAGE_ID . GetFilterParams("filter_"), GetMessage('CURRENCY_RATES_A_EDIT'));
    $row->AddViewField('ID', '<a href="/bitrix/admin/currency_rate_edit.php?ID=' . $f_ID . '&lang=' . LANGUAGE_ID . GetFilterParams("filter_") . '" title="' . GetMessage('CURRENCY_RATES_A_EDIT_TITLE') . '">' . $f_ID . '</a>');
    $row->AddViewField('CURRENCY', '<a href="/bitrix/admin/currency_edit.php?ID=' . $f_CURRENCY . '&lang=' . LANGUAGE_ID . '" title="' . GetMessage('CURRENCY_A_EDIT_TITLE') . '">' . $f_CURRENCY . '</a>');
    $row->AddCalendarField('DATE_RATE');
    $row->AddInputField("RATE_CNT", array("size" => "5"));
    $row->AddInputField("RATE", array("size" => "8"));
    $arActions = array();
    $arActions[] = array("ICON" => "edit", "TEXT" => GetMessage("MAIN_ADMIN_MENU_EDIT"), "DEFAULT" => "Y", "ACTION" => $lAdmin->ActionRedirect("/bitrix/admin/currency_rate_edit.php?ID=" . $f_ID . "&lang=" . LANGUAGE_ID . GetFilterParams("filter_")));
    if ($CURRENCY_RIGHT == "W") {
        $arActions[] = array("SEPARATOR" => true);
        $arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("MAIN_ADMIN_MENU_DELETE"), "ACTION" => "if(confirm('" . GetMessage('CONFIRM_DEL_MESSAGE') . "')) " . $lAdmin->ActionDoGroup($f_ID, "delete"));
    }
    $row->AddActions($arActions);
}
$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("ICON" => "btn_new", "TEXT" => GetMessage("CURRENCY_NEW_TITLE"), "LINK" => "/bitrix/admin/currency_rate_edit.php?lang=" . LANGUAGE_ID . GetFilterParams("filter_"), "TITLE" => GetMessage("CURRENCY_NEW_TITLE")));
$lAdmin->AddAdminContextMenu($aContext);
$lAdmin->CheckListMode();
$APPLICATION->SetTitle(GetMessage("CURRENCY_TITLE"));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
?>
<form method="get" action="<?php 
echo $APPLICATION->GetCurPage();
?>
" name="find_form">
<?php 
$filter->Begin();
Пример #28
0
$arFilterFields = array("find_searcher_id", "find_date1", "find_date2");
$lAdmin->InitFilter($arFilterFields);
AdminListCheckDate($lAdmin, array("find_date1" => $find_date1, "find_date2" => $find_date2));
$arFilter = array("DATE1" => $find_date1, "DATE2" => $find_date2);
$rsData = CSearcher::GetDynamicList($find_searcher_id, $by, $order, $arMaxMin, $arFilter);
$rsData = new CAdminResult($rsData, $sTableID);
$rsData->NavStart();
$lAdmin->NavText($rsData->GetNavPrint(GetMessage("STAT_SEARCHER_PAGES")));
$lAdmin->AddHeaders(array(array("id" => "DATE_STAT", "content" => GetMessage("STAT_DATE"), "sort" => "s_date", "default" => true), array("id" => "HITS", "content" => GetMessage("STAT_HITS"), "align" => "right", "default" => true)));
$sumDays = 0;
while ($arRes = $rsData->NavNext(true, "f_")) {
    $row =& $lAdmin->AddRow($f_ID, $arRes);
    $row->AddViewField("HITS", "<a title=\"" . GetMessage("STAT_HITS_LIST_OPEN") . "\" href=\"hit_searcher_list.php?lang=" . LANGUAGE_ID . "&find_searcher_id={$find_searcher_id}&find_date1={$f_DATE_STAT}&find_date2={$f_DATE_STAT}&set_filter=Y\">" . intval($f_TOTAL_HITS) . "</a>");
    $sumDays += $f_TOTAL_HITS;
}
$lAdmin->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $rsData->SelectedRowsCount()), array("title" => GetMessage("STAT_TOTAL_HITS"), "value" => $sumDays)));
$aMenu = array();
$aMenu[] = array("TEXT" => GetMessage("STAT_LIST"), "TITLE" => GetMessage("STAT_LIST_TITLE"), "LINK" => "searcher_list.php?lang=" . LANG, "ICON" => "btn_list");
$aMenu[] = array("SEPARATOR" => true);
$aMenu[] = array("TEXT" => GetMessage("STAT_GRAPH"), "TITLE" => GetMessage("STAT_GRAPH_TITLE"), "LINK" => "searcher_graph_list.php?lang=" . LANGUAGE_ID . "&find_searchers[]={$find_searcher_id}&find_date1={$arFilter['DATE1']}&find_date2={$arFilter['DATE2']}&set_filter=Y");
$lAdmin->AddAdminContextMenu($aMenu);
$lAdmin->CheckListMode();
$APPLICATION->SetTitle(GetMessage("STAT_RECORDS_LIST", array("#STATISTIC_DAYS#" => $STORED_DAYS)));
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
/***************************************************************************
				HTML form
***************************************************************************/
?>
<a name="tb"></a>
<form name="form1" method="GET" action="<?php 
echo $APPLICATION->GetCurPage();