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


PHP CAdminList类代码示例

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


在下文中一共展示了CAdminList类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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:admin@freetrixsoft.com                #
##############################################
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"] . "&nbsp;");
开发者ID:sharapudinov,项目名称:lovestore.top,代码行数:31,代码来源:perfmon_php.php

示例13: Copyright

<?php

/*
#########################################
# Bitrix: SiteManager			#
# Copyright (c) 2004 - 2006 Bitrix	#
# http://www.bitrix.ru		       	#
# mailto:admin@bitrix.ru		#
#########################################
*/
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


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