本文整理汇总了PHP中CAdminList类的典型用法代码示例。如果您正苦于以下问题:PHP CAdminList类的具体用法?PHP CAdminList怎么用?PHP CAdminList使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CAdminList类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: GetAdminFilterHTML
function GetAdminFilterHTML($arProperty, $strHTMLControlName)
{
$from_name = $strHTMLControlName["VALUE"] . '_from';
$to_name = $strHTMLControlName["VALUE"] . '_to';
$lAdmin = new CAdminList($strHTMLControlName["TABLE_ID"]);
$lAdmin->InitFilter(array($from_name, $to_name));
$from = isset($GLOBALS[$from_name]) ? $GLOBALS[$from_name] : "";
$to = isset($GLOBALS[$to_name]) ? $GLOBALS[$to_name] : "";
return CAdminCalendar::CalendarPeriod($from_name, $to_name, $from, $to);
}
开发者ID:spas-viktor,项目名称:books,代码行数:10,代码来源:prop_datetime.php
示例2: OnAdminListDisplayHandler
public static function OnAdminListDisplayHandler(&$list) {
$strCurPage = $GLOBALS['APPLICATION']->GetCurPage();
$bElemPage = ($strCurPage=='/bitrix/admin/iblock_element_admin.php' ||
$strCurPage=='/bitrix/admin/cat_product_admin.php'
);
$bSectPage = ($strCurPage=='/bitrix/admin/iblock_section_admin.php' ||
$strCurPage=='/bitrix/admin/cat_section_admin.php'
);
$bMixPage = ($strCurPage=='/bitrix/admin/iblock_list_admin.php');
$bRightPage = ($bElemPage || $bSectPage || $bMixPage);
if ($bRightPage && \CModule::IncludeModule('iblock')) {
$lAdmin = new \CAdminList($list->table_id, $list->sort);
$IBLOCK_ID = intval($_REQUEST['IBLOCK_ID']);
$find_section = intval($_REQUEST['find_section_section']);
if ($find_section < 0)
$find_section = 0;
if ($bSectPage) {
//if ($boolSectionCopy) {
foreach ($list->aRows as $id => $v) {
$arnewActions = array();
foreach ($v->aActions as $i => $act) {
$arnewActions[] = $act;
if ($act['ICON'] == 'edit') {
$arnewActions[] = array('ICON' => 'copy',
'TEXT' => "Парсинг",
'ACTION' => $lAdmin->ActionDoGroup($v->id, 'parsing_in_list',
'&type='.urlencode($_REQUEST['type']).'&lang='.LANGUAGE_ID.'&IBLOCK_ID='.$IBLOCK_ID.'&find_section_section='.$find_section),
);
}
}
$v->aActions = $arnewActions;
}
//}
}
}
}
开发者ID:ASDAFF,项目名称:bitrix_parser,代码行数:39,代码来源:parser_interface.php
示例3: IncludeModuleLangFile
<?php
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/bizproc/include.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/bizproc/prolog.php";
IncludeModuleLangFile(__FILE__);
$fatalErrorMessage = "";
$actionErrorMessage = '';
$sTableID = "tbl_bizproc_task_list";
$oSort = new CAdminSorting($sTableID, "ID", "DESC");
$lAdmin = new CAdminList($sTableID, $oSort);
$allowAdminAccess = $USER->IsAdmin();
$arFilterFields = array("filter_modified_1", "filter_modified_2", "filter_name", 'filter_descr', 'filter_status', 'filter_workflow_template_id');
if ($allowAdminAccess) {
$arFilterFields[] = "filter_user_id";
}
$lAdmin->InitFilter($arFilterFields);
$arFilter = array('USER_STATUS' => CBPTaskUserStatus::Waiting);
if (!$allowAdminAccess) {
$arFilter["USER_ID"] = $USER->GetID();
} elseif (strlen($filter_user_id) > 0) {
$arFilter["USER_ID"] = $filter_user_id;
}
if (strlen($filter_modified_1) > 0) {
$arFilter[">=MODIFIED"] = $filter_modified_1;
}
if (strlen($filter_modified_2) > 0) {
$arFilter["<=MODIFIED"] = $filter_modified_2;
}
if (strlen($filter_name) > 0) {
$arFilter["~NAME"] = "%" . $filter_name . "%";
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:task_list.php
示例4: preg_replace
if (isset($_REQUEST['JSFUNC']))
{
$JSFUNC = preg_replace("/[^a-z0-9_\\[\\]:]/i", "", $_REQUEST['JSFUNC']);
}
else
{
$JSFUNC = '';
}
$sTableID = "tbl_user_popup";
$oSort = new CAdminSorting($sTableID, "ID", "asc");
$lAdmin = new CAdminList($sTableID, $oSort);
$arFilterFields = Array(
"find",
"find_type",
"find_id",
"find_timestamp_1",
"find_timestamp_2",
"find_last_login_1",
"find_last_login_2",
"find_active",
"find_login",
"find_name",
"find_email",
"find_keywords",
开发者ID:ASDAFF,项目名称:open_bx,代码行数:30,代码来源:user_search.php
示例5: ShowTable
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++;
}
$lAdmin->Display();
echo '
<script>
'.$sTableID.'.InitTable();
</script>
';
}
开发者ID:ASDAFF,项目名称:open_bx,代码行数:32,代码来源:admin_lib.php
示例6: dirname
*/
require_once dirname(__FILE__) . "/../include/prolog_admin_before.php";
require_once $_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/main/prolog.php";
define("HELP_FILE", "settings/mail_events/message_admin.php");
if (!$USER->CanDoOperation('edit_other_settings') && !$USER->CanDoOperation('view_other_settings')) {
$APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
$isAdmin = $USER->CanDoOperation('edit_other_settings');
IncludeModuleLangFile(__FILE__);
$err_mess = "File: " . __FILE__ . "<br>Line: ";
// variable with ID of table
$sTableID = "tbl_main_message";
// sorting
$oSort = new CAdminSorting($sTableID, "TIMESTAMP_X", "desc");
// list
$lAdmin = new CAdminList($sTableID, $oSort);
$arFilterFields = array("find", "find_id", "find_type", "find_type_id", "find_timestamp_1", "find_timestamp_2", "find_lid", "find_active", "find_from", "find_to", "find_bcc", "find_subject", "find_body_type", "find_body");
$lAdmin->InitFilter($arFilterFields);
/***************************************************************************
Functions
***************************************************************************/
function CheckFilter($arFilterFields)
{
global $lAdmin;
$FilterArr = $arFilterFields;
reset($FilterArr);
foreach ($FilterArr as $f) {
global ${$f};
}
$str = "";
if (strlen(trim($find_timestamp_1)) > 0 || strlen(trim($find_timestamp_2)) > 0) {
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:message_admin.php
示例7: require_once
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/classes/general/backup.php");
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/fileman/fileman.php");
$bMcrypt = function_exists('mcrypt_encrypt');
if (function_exists('mb_internal_encoding'))
mb_internal_encoding('ISO-8859-1');
define('DOCUMENT_ROOT', rtrim(str_replace('\\','/',$_SERVER['DOCUMENT_ROOT']),'/'));
$com_marker = "--";
$filr_id = "";
$sTableID = "tbl_dump";
$oSort = new CAdminSorting($sTableID, "timestamp", "desc");
$lAdmin = new CAdminList($sTableID, $oSort);
$path = BX_ROOT."/backup";
// define('DUMP_DEBUG_MODE', true);
// xdebug_start_trace();
if($_REQUEST['process'] == "Y")
{
if (!check_bitrix_sessid())
die(GetMessage("DUMP_MAIN_SESISON_ERROR"));
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_js.php");
if($_REQUEST['action'] == 'start')
{
$NS = Array();
开发者ID:nProfessor,项目名称:Mytb,代码行数:30,代码来源:dump.php
示例8: foreach
}
if (is_array($_SESSION["BX_IBLOCK_CONV"]["arNumber"])) {
foreach ($_SESSION["BX_IBLOCK_CONV"]["arNumber"] as $id) {
$id = intval($id);
$ar["arNumber"][$id] = $id;
}
}
$_SESSION["BX_IBLOCK_CONV"] = $ar;
} else {
$_SESSION["BX_IBLOCK_CONV"] = false;
}
$arErrors = array();
$arMessages = array();
$APPLICATION->SetTitle(GetMessage("IBCONV_TITLE"));
$sTableID = "tbl_iblock_convert";
$lAdmin = new CAdminList($sTableID);
$lAdmin->BeginCustomContent();
if (!CIBlockRights::UserHasRightTo($IBLOCK_ID, $IBLOCK_ID, "iblock_edit") || !check_bitrix_sessid() && $STEP > 0) {
$arErrors[] = GetMessage("IBCONV_PERMISSION");
} else {
$rsIBlock = CIBlock::GetList(array(), array("ID" => $IBLOCK_ID, "CHECK_PERMISSIONS" => "N"));
if ($arIBlock = $rsIBlock->Fetch()) {
if ($arIBlock["VERSION"] == 1) {
if ($STEP != 0 && $WAY != 12) {
$arErrors[] = GetMessage("IBCONV_WRONG_CONVERSION");
} elseif ($STEP == 1) {
$STEP = 2;
} elseif ($STEP == 2) {
$STEP = FirstStep12($arIBlock);
} elseif ($STEP == 3) {
$STEP = NextStep12($arIBlock);
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:iblock_convert.php
示例9: Copyright
# Freetrix Site Manager #
# Copyright (c) 2002-2007 Freetrix #
# http://www.freetrixsoft.com #
# mailto:[email protected] #
##############################################
require_once $_SERVER["DOCUMENT_ROOT"] . "/freetrix/modules/main/include/prolog_admin_before.php";
require_once $_SERVER["DOCUMENT_ROOT"] . FX_ROOT . "/modules/main/prolog.php";
define("HELP_FILE", "utilities/agent_list.php");
if (!$USER->CanDoOperation('view_other_settings')) {
$APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
$isAdmin = $USER->CanDoOperation('edit_php');
IncludeModuleLangFile(__FILE__);
$sTableID = "tbl_agent_list";
$oSort = new CAdminSorting($sTableID, "SORT", "asc");
$lAdmin = new CAdminList($sTableID, $oSort);
$arFilterFields = array("find", "find_type", "find_id", "find_active", "find_module_id", "find_is_period", "find_user_id", "find_name", "find_last_exec", "find_next_exec", "find_is_period");
function CheckFilter($FilterArr)
{
foreach ($FilterArr as $f) {
global ${$f};
}
$str = "";
if (strlen(trim($find_last_exec)) > 0) {
$date_1_ok = false;
$date1_stm = MkDateTime(FmtDate($find_last_exec, "D.M.Y"), "d.m.Y");
if (!$date1_stm && strlen(trim($find_last_exec)) > 0) {
$str .= GetMessage("MAIN_AGENT_WRONG_LAST_EXEC") . "<br>";
} else {
$date_1_ok = true;
}
开发者ID:ASDAFF,项目名称:open_bx,代码行数:31,代码来源:agent_list.php
示例10: array
$arSKUProps = array();
while($arProp = $dbrFProps->GetNext())
{
if ('Y' == $arProp['FILTRABLE'] && 'F' != $arProp['PROPERTY_TYPE'] && $arCatalog['SKU_PROPERTY_ID'] != $arProp['ID'])
{
$arProp["PROPERTY_USER_TYPE"] = ('' != $arProp["USER_TYPE"] ? CIBlockProperty::GetUserType($arProp["USER_TYPE"]) : array());
$boolSKUFiltrable = true;
$arSKUProps[] = $arProp;
}
}
}
$sTableID = (defined("CATALOG_PRODUCT")? "tbl_product_list_": "tbl_iblock_list_").md5($type.".".$IBLOCK_ID);
$oSort = new CAdminSorting($sTableID, "timestamp_x", "desc");
$arOrder = (strtoupper($by) === "ID"? array($by => $order): array($by => $order, "ID" => "ASC"));
$lAdmin = new CAdminList($sTableID, $oSort);
$lAdmin->bMultipart = true;
$arFilterFields = Array(
"find_name",
"find_section_section",
"find_id_1", "find_id_2",
"find_timestamp_1", "find_timestamp_2",
"find_code",
"find_external_id",
"find_modified_by", "find_modified_user_id",
"find_created_from", "find_created_to",
"find_created_by", "find_created_user_id",
"find_date_active_from_from", "find_date_active_from_to",
"find_date_active_to_from", "find_date_active_to_to",
"find_active",
"find_intext",
开发者ID:nycmic,项目名称:bittest,代码行数:31,代码来源:iblock_list_admin.php
示例11: IncludeModuleLangFile
if (!($USER->CanDoOperation('catalog_read') || $USER->CanDoOperation('catalog_price'))) {
$APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
$bReadOnly = !$USER->CanDoOperation('catalog_price');
IncludeModuleLangFile(__FILE__);
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/catalog/prolog.php";
if ($ex = $APPLICATION->GetException()) {
require $DOCUMENT_ROOT . "/bitrix/modules/main/include/prolog_admin_after.php";
$strError = $ex->GetString();
ShowError($strError);
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
die;
}
$sTableID = "tbl_catalog_extra";
$oSort = new CAdminSorting($sTableID, "ID", "asc");
$lAdmin = new CAdminList($sTableID, $oSort);
$arFilterFields = array('find_id_start', 'find_id_end', 'find_name', 'find_perc_start', 'find_perc_end');
$lAdmin->InitFilter($arFilterFields);
$arFilter = array();
if (!empty($find_id_start)) {
$arFilter['>=ID'] = $find_id_start;
}
if (!empty($find_id_end)) {
$arFilter['<=ID'] = $find_id_end;
}
if (!empty($find_name)) {
$arFilter["~NAME"] = $find_name;
}
if (!empty($find_perc_start)) {
$arFilter['>=PERCENTAGE'] = $find_perc_start;
}
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:cat_extra.php
示例12: foreach
}
}
if ($workingAccel === null) {
foreach ($allAccelerators as $accel) {
$arRecommendations = $accel->GetRecommendations();
foreach ($arRecommendations as $i => $ar) {
$data["tuning"]["ITEMS"][] = $ar;
}
}
}
}
$sTableID = "tbl_perfmon_panel";
$APPLICATION->SetTitle(GetMessage("PERFMON_PHP_TITLE"));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
foreach ($data as $i => $arTable) {
$lAdmin = new CAdminList($sTableID . $i);
$lAdmin->BeginPrologContent();
if (array_key_exists("TITLE", $arTable)) {
echo "<h4>" . $arTable["TITLE"] . "</h4>\n";
}
$lAdmin->EndPrologContent();
$lAdmin->AddHeaders($arTable["HEADERS"]);
$rsData = new CDBResult();
$rsData->InitFromArray($arTable["ITEMS"]);
$rsData = new CAdminResult($rsData, $sTableID . $i);
$j = 0;
while ($arRes = $rsData->NavNext(true, "f_")) {
$row =& $lAdmin->AddRow($j++, $arRes);
$row->AddViewField("PARAMETER", $arRes["PARAMETER"]);
if ($arRes["IS_OK"]) {
$row->AddViewField("VALUE", $arRes["VALUE"] . " ");
开发者ID:sharapudinov,项目名称:lovestore.top,代码行数:31,代码来源:perfmon_php.php
示例13: Copyright
<?php
/*
#########################################
# Bitrix: SiteManager #
# Copyright (c) 2004 - 2006 Bitrix #
# http://www.bitrix.ru #
# mailto:[email protected] #
#########################################
*/
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
$sTableID = "tbl_form_list";
$oSort = new CAdminSorting($sTableID, "ID", "asc");
$lAdmin = new CAdminList($sTableID, $oSort);
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/form/prolog.php";
ClearVars();
$FORM_RIGHT = $APPLICATION->GetGroupRight("form");
if ($FORM_RIGHT <= "D") {
$APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
CModule::IncludeModule("form");
$bSimple = COption::GetOptionString("form", "SIMPLE", "Y") == "Y" ? true : false;
//require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/form/include.php");
IncludeModuleLangFile(__FILE__);
$err_mess = "File: " . __FILE__ . "<br>Line: ";
$arFilterFields = array("find_id", "find_id_exact_match", "find_name", "find_name_exact_match", "find_sid", "find_sid_exact_match", "find_description", "find_description_exact_match", "find_site");
$lAdmin->InitFilter($arFilterFields);
$old_module_version = CForm::IsOldVersion();
/***************************************************************************
GET | POST processing
****************************************************************************/
开发者ID:spas-viktor,项目名称:books,代码行数:31,代码来源:form_list.php
示例14: intval
if ($find_mailing_id > 0) {
$MAILING_ID = $find_mailing_id;
}
$find_mailing_chain_id = intval($_REQUEST['find_mailing_chain_id']);
if ($find_mailing_chain_id > 0) {
$ID = $find_mailing_chain_id;
}
CJSCore::RegisterExt('sender_stat', array('js' => array('/bitrix/js/main/amcharts/3.3/amcharts.js', '/bitrix/js/main/amcharts/3.3/funnel.js', '/bitrix/js/main/amcharts/3.3/serial.js', '/bitrix/js/main/amcharts/3.3/themes/light.js'), 'rel' => array('ajax', "date")));
CJSCore::Init(array("sender_stat"));
$POST_RIGHT = $APPLICATION->GetGroupRight("sender");
if ($POST_RIGHT == "D") {
$APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
$sTableID = "tbl_sender_statistics";
$oSort = new CAdminSorting($sTableID, "ID", "desc");
$lAdmin = new CAdminList($sTableID, $oSort);
function CheckFilter()
{
global $FilterArr, $lAdmin;
foreach ($FilterArr as $f) {
global ${$f};
}
return count($lAdmin->arFilterErrors) == 0;
}
if ($lAdmin->IsDefaultFilter()) {
}
$FilterArr = array("find_mailing_id", "find_mailing_chain_id");
$lAdmin->InitFilter($FilterArr);
if (CheckFilter()) {
$arFilter = array("=POSTING.MAILING_CHAIN.ID" => $find_mailing_chain_id);
if ($find_mailing_id > 0) {
开发者ID:Hawkart,项目名称:megatv,代码行数:31,代码来源:statistics.php
示例15: IncludeModuleLangFile
use Bitrix\Main\Loader, Bitrix\Main, Bitrix\Iblock;
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
Loader::includeModule('iblock');
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/iblock/prolog.php";
IncludeModuleLangFile(__FILE__);
$arIBlock = CIBlock::GetArrayByID($_GET["IBLOCK_ID"]);
if (!is_array($arIBlock)) {
$APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
if (!CIBlockRights::UserHasRightTo($arIBlock["ID"], $arIBlock["ID"], "iblock_edit")) {
$APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
$simpleTypeList = array(Iblock\PropertyTable::TYPE_STRING => true, Iblock\PropertyTable::TYPE_NUMBER => true, Iblock\PropertyTable::TYPE_LIST => true, Iblock\PropertyTable::TYPE_FILE => true, Iblock\PropertyTable::TYPE_SECTION => true, Iblock\PropertyTable::TYPE_ELEMENT => true);
$sTableID = "tbl_iblock_property_admin_" . $arIBlock["ID"];
$oSort = new CAdminSorting($sTableID, 'SORT', 'ASC');
$lAdmin = new CAdminList($sTableID, $oSort);
$arFilterFields = array("find_name", "find_code", "find_active", "find_searchable", "find_filtrable", "find_is_required", "find_multiple", "find_xml_id", "find_property_type");
$lAdmin->InitFilter($arFilterFields);
$arFilter = array("=IBLOCK_ID" => $arIBlock["ID"], "?NAME" => $find_name, "?CODE" => $find_code, "=ACTIVE" => $find_active, "=SEARCHABLE" => $find_searchable, "=FILTRABLE" => $find_filtrable, "=XML_ID" => $find_xml_id, "=PROPERTY_TYPE" => $find_property_type, "=IS_REQUIRED" => $find_is_required, "=MULTIPLE" => $find_multiple);
foreach ($arFilter as $key => $value) {
if (!strlen(trim($value))) {
unset($arFilter[$key]);
}
}
if (isset($arFilter['=PROPERTY_TYPE'])) {
if (!isset($simpleTypeList[$arFilter['=PROPERTY_TYPE']])) {
list($arFilter['=PROPERTY_TYPE'], $arFilter['=USER_TYPE']) = explode(':', $arFilter['=PROPERTY_TYPE'], 2);
} else {
$arFilter['=USER_TYPE'] = null;
}
}
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:iblock_property_admin.php
示例16: ShowError
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
$saleModulePermissions = $APPLICATION->GetGroupRight("sale");
if ($saleModulePermissions == "D") {
$APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/sale/include.php";
if (!CBXFeatures::IsFeatureEnabled('SaleCCards')) {
require $DOCUMENT_ROOT . "/bitrix/modules/main/include/prolog_admin_after.php";
ShowError(GetMessage("SALE_FEATURE_NOT_ALLOW"));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
die;
}
IncludeModuleLangFile(__FILE__);
$sTableID = "tbl_sale_ccards";
$oSort = new CAdminSorting($sTableID, "ID", "asc");
$lAdmin = new CAdminList($sTableID, $oSort);
$arFilterFields = array("filter_user_id", "filter_login", "filter_user", "filter_active");
$lAdmin->InitFilter($arFilterFields);
$arFilter = array();
if (IntVal($filter_user_id) > 0) {
$arFilter["USER_ID"] = IntVal($filter_user_id);
}
if (strlen($filter_login) > 0) {
$arFilter["USER_LOGIN"] = $filter_login;
}
if (strlen($filter_user) > 0) {
$arFilter["%USER_USER"] = $filter_user;
}
if (strlen($filter_active) > 0) {
$arFilter["ACTIVE"] = $filter_active;
}
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:ccards_admin.php
示例17: __IncludeLang
<?php
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/currency/include.php";
$CURRENCY_RIGHT = $APPLICATION->GetGroupRight("currency");
if ($CURRENCY_RIGHT == "D") {
$APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
__IncludeLang(GetLangFileName($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/currency/lang/", "/currencies.php"));
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/currency/prolog.php";
$sTableID = "t_currencies";
$oSort = new CAdminSorting($sTableID, "sort", "asc");
$lAdmin = new CAdminList($sTableID, $oSort);
if ($lAdmin->EditAction() && $CURRENCY_RIGHT == "W") {
foreach ($FIELDS as $ID => $arFields) {
$ID = substr($ID, 0, 3);
if (!$lAdmin->IsUpdated($ID)) {
continue;
}
if (!CCurrency::Update($ID, $arFields)) {
if ($ex = $APPLICATION->GetException()) {
$lAdmin->AddUpdateError(GetMessage("CURRENCY_SAVE_ERR", array("#ID#" => $ID, "#ERROR_TEXT#" => $ex->GetString())), $ID);
} else {
$lAdmin->AddUpdateError(GetMessage("CURRENCY_SAVE_ERR2", array("#ID#" => $ID)), $ID);
}
}
}
}
if ($CURRENCY_RIGHT == "W" && ($arID = $lAdmin->GroupAction())) {
if ($_REQUEST['action_target'] == 'selected') {
$rsData = CCurrency::GetList($by, $order);
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:currencies.php
示例18: IncludeModuleLangFile
<?php
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
if (!$USER->IsAdmin()) {
$APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
if (!CModule::IncludeModule("xdimport")) {
return false;
}
IncludeModuleLangFile(__FILE__);
$sTableID = "tbl_xdi_lf_scheme_list";
$oSort = new CAdminSorting($sTableID, "ID", "ASC");
$lAdmin = new CAdminList($sTableID, $oSort);
if ($lAdmin->EditAction()) {
foreach ($FIELDS as $ID => $arFields) {
if (!$lAdmin->IsUpdated($ID)) {
continue;
}
$DB->StartTransaction();
$ID = IntVal($ID);
$cData = new CXDILFScheme();
if (($rsData = $cData->GetByID($ID)) && ($arData = $rsData->Fetch())) {
foreach ($arFields as $key => $value) {
$arData[$key] = $value;
}
if (!$cData->Update($ID, $arData)) {
$lAdmin->AddGroupError(GetMessage("LFP_SCHEME_LIST_SAVE_ERROR") . " " . $cData->LAST_ERROR, $ID);
$DB->Rollback();
}
} else {
$lAdmin->AddGroupError(GetMessage("LFP_SCHEME_LIST_SAVE_ERROR") . " " . GetMessage("LFP_SCHEME_LIST_NO_RECORD"), $ID);
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:lf_scheme_list.php
示例19: unset
if ('' != $strTempo) {
$IBLOCK_TYPE_ID = $strTempo;
}
unset($strTempo);
}
if ('' !== $IBLOCK_TYPE_ID) {
$arIBlockType = CIBlockType::GetByIDLang($IBLOCK_TYPE_ID, LANGUAGE_ID);
if (!$arIBlockType) {
$IBLOCK_TYPE_ID = '';
$APPLICATION->AuthForm(GetMessage("BX_MOD_CATALOG_ADMIN_CIS_BAD_IBLOCK_TYPE_ID"));
}
}
$APPLICATION->SetTitle(GetMessage("BX_MOD_CATALOG_ADMIN_CIS_TITLE"));
$arFilterFields = array('filter_iblock_type_id');
$oSort = new CAdminSorting($sTableID, "NAME", "asc");
$lAdmin = new CAdminList($sTableID, $oSort);
$lAdmin->InitFilter($arFilterFields);
$arFilter = array("IBLOCK_TYPE_ID" => $IBLOCK_TYPE_ID, "CHECK_PERMISSIONS" => "Y", "MIN_PERMISSION" => "R");
$arHeader = array();
$arHeader[] = array("id" => "ID", "content" => GetMessage("BX_MOD_CATALOG_ADMIN_CIS_HEAD_ID"), "sort" => "ID", "align" => "right", "default" => true);
$arHeader[] = array("id" => "IBLOCK_TYPE_ID", "content" => GetMessage("BX_MOD_CATALOG_ADMIN_CIS_HEAD_IBLOCK_TYPE_ID"), "sort" => "IBLOCK_TYPE_ID", "default" => true);
$arHeader[] = array("id" => "NAME", "content" => GetMessage("BX_MOD_CATALOG_ADMIN_CIS_HEAD_NAME"), "sort" => "NAME", "default" => true);
$arHeader[] = array("id" => "ACTIVE", "content" => GetMessage("BX_MOD_CATALOG_ADMIN_CIS_HEAD_ACTIVE"), "sort" => "ACTIVE");
$arHeader[] = array("id" => "XML_ID", "content" => GetMessage("BX_MOD_CATALOG_ADMIN_CIS_HEAD_XML_ID"), "sort" => "XML_ID");
$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()) {
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:cat_iblock_search.php
示例20: IncludeModuleLangFile
// second system's prolog
if (IsModuleInstalled('learning') && defined('LEARNING_FAILED_TO_LOAD_REASON')) {
echo LEARNING_FAILED_TO_LOAD_REASON;
} else {
CAdminMessage::ShowMessage(GetMessage('LEARNING_MODULE_NOT_FOUND'));
}
require $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/epilog_admin.php';
// system's epilog
exit;
}
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/learning/prolog.php";
IncludeModuleLangFile(__FILE__);
$sTableID = "t_learning_group_admin";
$oSort = new CAdminSorting($sTableID, "ID", "desc");
// sort initializing
$lAdmin = new CAdminList($sTableID, $oSort);
// list initializing
$filter = new CAdminFilter($sTableID . "_filter", array(GetMessage('LEARNING_ADMIN_GROUPS_TITLE'), 'ID', GetMessage('LEARNING_ADMIN_GROUPS_ACTIVE'), GetMessage('LEARNING_ADMIN_GROUPS_CODE'), GetMessage('LEARNING_ADMIN_GROUPS_COURSE_TITLE'), GetMessage('LEARNING_ADMIN_GROUPS_COURSE_LESSON_ID'), GetMessage('LEARNING_ADMIN_GROUPS_SORT'), GetMessage('LEARNING_ADMIN_GROUPS_ACTIVE_FROM'), GetMessage('LEARNING_ADMIN_GROUPS_ACTIVE_TO')));
$arFilterFields = array("filter_title", "filter_id", "filter_active", "filter_code", "filter_course_title", "filter_course_lesson_id", "filter_sort", "filter_active_from_from", "filter_active_from_to", "filter_active_to_from", "filter_active_to_to");
$lAdmin->InitFilter($arFilterFields);
// filter initializing
$arFilter = array('ID' => $filter_id, 'ACTIVE' => $filter_active, 'TITLE' => $filter_title, 'CODE' => $filter_code, 'SORT' => $filter_sort, '>=ACTIVE_FROM' => $filter_active_from_from, '<=ACTIVE_FROM' => $filter_active_from_to, '>=ACTIVE_TO' => $filter_active_to_from, '<=ACTIVE_TO' => $filter_active_to_to, 'COURSE_TITLE' => $filter_course_title, 'COURSE_LESSON_ID' => $filter_course_lesson_id);
if ($lAdmin->EditAction()) {
foreach ($FIELDS as $ID => $arFields) {
if (!$lAdmin->IsUpdated($ID)) {
continue;
}
if (!CLearningGroup::update((int) $ID, $arFields)) {
if ($e = $APPLICATION->GetException()) {
$lAdmin->AddUpdateError(GetMessage("SAVE_ERROR") . $ID . ": " . $e->GetString(), $ID);
}
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:learn_group_admin.php
注:本文中的CAdminList类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论