本文整理汇总了PHP中CIBlockSection::GetTreeList方法的典型用法代码示例。如果您正苦于以下问题:PHP CIBlockSection::GetTreeList方法的具体用法?PHP CIBlockSection::GetTreeList怎么用?PHP CIBlockSection::GetTreeList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CIBlockSection
的用法示例。
在下文中一共展示了CIBlockSection::GetTreeList方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getPropertyFieldSections
public static function getPropertyFieldSections($linkIblockId)
{
$linkIblockId = (int) $linkIblockId;
if ($linkIblockId <= 0) {
return false;
}
$ttl = 10000;
$cache_id = 'catalog_store_sections';
$cache_dir = '/bx/catalog_store_sections';
$obCache = new CPHPCache();
if ($obCache->InitCache($ttl, $cache_id, $cache_dir)) {
$res = $obCache->GetVars();
} else {
$res = array();
}
if (!isset($res[$linkIblockId])) {
$res[$linkIblockId] = array();
$sections = \CIBlockSection::GetTreeList(array("IBLOCK_ID" => $linkIblockId));
while ($row = $sections->Fetch()) {
$res[$linkIblockId][] = $row;
}
if ($obCache->StartDataCache()) {
$obCache->EndDataCache($res);
}
}
return $res[$linkIblockId];
}
示例2: getMenu
function getMenu()
{
if (!is_array($this->arMenu)) {
$menu = array();
$arFilter = array("IBLOCK_ID" => (int) $GLOBALS['AQW_STORE']['IBLOCK_ID']);
$GetTreeList = CIBlockSection::GetTreeList($arFilter);
while ($item = $GetTreeList->GetNext()) {
$menu[$item['ID']] = $item;
}
$this->arMenu = $menu;
}
return $this->arMenu;
}
示例3: getSubsections
public function getSubsections($catalogId, $sectionId)
{
$arSubsections = array();
$resSection = CIBlockSection::GetList(array(), array('ID' => intval($sectionId)), false, array('ID', 'NAME', 'DEPTH_LEVEL', 'LEFT_MARGIN', 'RIGHT_MARGIN'));
if ($resSection) {
if ($arSection = $resSection->Fetch()) {
$resElement = CIBlockSection::GetTreeList(array('=IBLOCK_ID' => $catalogId, '=SECTION_ID' => $arSection['ID'], '=DEPTH_LEVEL' => 1 + $arSection['DEPTH_LEVEL'], 'CHECK_PERMISSIONS' => 'N'), array('ID', 'NAME', 'LEFT_MARGIN', 'RIGHT_MARGIN'));
while ($arElement = $resElement->Fetch()) {
$arSubsections[] = array('ID' => $arElement['ID'], 'NAME' => $arElement['NAME'], 'HAS_CHILDREN' => intval($arElement["RIGHT_MARGIN"]) - intval($arElement["LEFT_MARGIN"]) > 1 ? 'Y' : 'N', 'SELECTED' => 'N', 'CHILDREN' => array());
}
}
}
return $arSubsections;
}
示例4: ImportSectionArray
public function ImportSectionArray($arSectionName, $level = 0)
{
$sectionID = 0;
$level = intval($level);
if (is_array($arSectionName) && $this->iblockModuleIncluded) {
$nSections = count($arSectionName);
if ($nSections > 0 && $level < $nSections && $this->catalogID > 0) {
$curSectionName = trim(strval($arSectionName[$level]));
if ($curSectionName !== '') {
$curSectionHash = md5($curSectionName);
$parentSectionID = 0;
if ($level > 0) {
$parentSectionHash = md5(strval($arSectionName[$level - 1]));
if (is_array($this->sectionByNameCache[$level - 1]) && isset($this->sectionByNameCache[$level - 1][$parentSectionHash])) {
$parentSectionID = $this->sectionByNameCache[$level - 1][$parentSectionHash];
}
}
if ($parentSectionID > 0 || $level === 0) {
$curSectionID = 0;
if (is_array($this->sectionByNameCache[$level]) && isset($this->sectionByNameCache[$level][$curSectionHash])) {
$curSectionID = $this->sectionByNameCache[$level][$curSectionHash];
} else {
$dbRes = CIBlockSection::GetTreeList(array('=IBLOCK_ID' => $this->catalogID, '=SECTION_ID' => $parentSectionID, '=NAME' => $curSectionName, '=DEPTH_LEVEL' => $level + 1, 'CHECK_PERMISSIONS' => 'N'), array('ID', 'NAME', 'LEFT_MARGIN', 'RIGHT_MARGIN'));
if ($arRes = $dbRes->Fetch()) {
$curSectionID = $this->sectionByNameCache[$level][$curSectionHash] = intval($arRes['ID']);
}
unset($dbRes, $arRes);
}
if ($curSectionID === 0) {
$arSectionFields = array('CATALOG_ID' => $this->catalogID, 'SECTION_ID' => $parentSectionID, 'NAME' => $curSectionName);
$res = CCrmProductSection::Add($arSectionFields);
if ($res !== false) {
$curSectionID = $this->sectionByNameCache[$level][$curSectionHash] = intval($res);
}
}
if ($level === $nSections - 1) {
$sectionID = $curSectionID;
} else {
$sectionID = $this->ImportSectionArray($arSectionName, $level + 1);
}
}
}
}
}
return $sectionID;
}
示例5: getCrumbs
public function getCrumbs($catalogId, $sectionId, $urlTemplate)
{
$arCrumbs = array();
$arCrumb = array('ID' => 0, 'NAME' => GetMessage('CRM_PRODUCT_SECTION_ROOT_CRUMB_NAME'), 'LINK' => str_replace('#section_id#', '0', $urlTemplate), 'CHILDREN' => array());
$resRootElements = CIBlockSection::GetTreeList(array('=IBLOCK_ID' => $catalogId, '=DEPTH_LEVEL' => 1, 'CHECK_PERMISSIONS' => 'N'), array('ID', 'NAME'));
while ($arElement = $resRootElements->Fetch()) {
$arCrumb['CHILDREN'][] = array('ID' => $arElement['ID'], 'NAME' => $arElement['NAME'], 'LINK' => str_replace('#section_id#', $arElement['ID'], $urlTemplate), 'CHILDREN' => array());
}
$arCrumbs[] = $arCrumb;
$resElements = CIBlockSection::GetNavChain($catalogId, $sectionId, array('ID', 'NAME', 'DEPTH_LEVEL'));
while ($arElement = $resElements->Fetch()) {
$arCrumb = array('ID' => $arElement['ID'], 'NAME' => $arElement['NAME'], 'LINK' => str_replace('#section_id#', $arElement['ID'], $urlTemplate), 'CHILDREN' => array());
$resElement = CIBlockSection::GetTreeList(array('=IBLOCK_ID' => $catalogId, '=SECTION_ID' => $arElement['ID'], '=DEPTH_LEVEL' => 1 + $arElement['DEPTH_LEVEL'], 'CHECK_PERMISSIONS' => 'N'), array('ID', 'NAME'));
while ($arElement = $resElement->Fetch()) {
$arCrumb['CHILDREN'][] = array('ID' => $arElement['ID'], 'NAME' => $arElement['NAME'], 'LINK' => str_replace('#section_id#', $arElement['ID'], $urlTemplate), 'CHILDREN' => array());
}
$arCrumbs[] = $arCrumb;
}
return $arCrumbs;
}
示例6: _ShowGroupPropertyFieldList
function _ShowGroupPropertyFieldList($name, $property_fields, $values)
{
if (!is_array($values)) {
$values = array();
}
$res = "";
$result = "";
$bWas = false;
$sections = CIBlockSection::GetTreeList(array("IBLOCK_ID" => $property_fields["LINK_IBLOCK_ID"]));
while ($ar = $sections->GetNext()) {
$res .= '<option value="' . $ar["ID"] . '"';
if (in_array($ar["ID"], $values)) {
$bWas = true;
$res .= ' selected';
}
$res .= '>' . str_repeat(" . ", $ar["DEPTH_LEVEL"]) . $ar["NAME"] . '</option>';
}
$result .= '<select name="' . $name . '[]" size="' . ($property_fields["MULTIPLE"] == "Y" ? "5" : "1") . '" ' . ($property_fields["MULTIPLE"] == "Y" ? "multiple" : "") . '>';
$result .= '<option value=""' . (!$bWas ? ' selected' : '') . '>' . GetMessage("SPS_A_PROP_NOT_SET") . '</option>';
$result .= $res;
$result .= '</select>';
return $result;
}
示例7: htmlspecialcharsEx
$arResult["ELEMENT"]["DETAIL_TEXT"] = htmlspecialcharsEx($_REQUEST["DESCRIPTION"]);
$arResult["ELEMENT"]["TAGS"] = htmlspecialcharsEx($_REQUEST["TAGS"]);
$arResult["ELEMENT"]["IBLOCK_SECTION_ID"] = htmlspecialcharsEx($_REQUEST["TO_SECTION_ID"]);
$arResult["ELEMENT"]["DATE_CREATE"] = htmlspecialcharsEx($_REQUEST["DATE"]);
}
/********************************************************************
Sections list
********************************************************************/
$arResult["SECTION_LIST"] = array();
$arFilter = array("ACTIVE" => "Y", "IBLOCK_ID" => $arParams["IBLOCK_ID"], "IBLOCK_ACTIVE" => "Y");
if ($arParams["BEHAVIOUR"] == "USER") {
$arFilter["!ID"] = $arResult["GALLERY"]["ID"];
$arFilter["RIGHT_MARGIN"] = $arResult["GALLERY"]["RIGHT_MARGIN"];
$arFilter["LEFT_MARGIN"] = $arResult["GALLERY"]["LEFT_MARGIN"];
}
$rsIBlockSectionList = CIBlockSection::GetTreeList($arFilter);
while ($arSection = $rsIBlockSectionList->GetNext()) {
$len = $arSection["DEPTH_LEVEL"] - 1;
$arSection["NAME"] = ($len > 0 ? str_repeat(" . ", $len) : "") . $arSection["NAME"];
$arResult["SECTION_LIST"][$arSection["ID"]] = $arSection["NAME"];
}
$arResult["I"] = array("PERMISSION" => $arParams["PERMISSION"], "ABS_PERMISSION" => $arParams["ABS_PERMISSION"]);
/********************************************************************
/Data
********************************************************************/
$this->IncludeComponentTemplate();
/********************************************************************
Standart
********************************************************************/
/************** Title **********************************************/
if ($arParams["SET_TITLE"] == "Y") {
示例8: array
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
die;
}
CModule::IncludeModule('intranet');
$IBLOCK_ID = COption::GetOptionInt('intranet', 'iblock_structure', false);
$arSections = array(0 => '');
if ($IBLOCK_ID !== false) {
$dbRes = CIBlockSection::GetTreeList(array('IBLOCK_ID' => $IBLOCK_ID, 'ACTIVE' => 'Y'));
while ($arRes = $dbRes->Fetch()) {
$arSections[$arRes['ID']] = trim(str_repeat('. ', $arRes['DEPTH_LEVEL'] - 1) . ' ' . $arRes['NAME']);
}
}
$arComponentParameters = array('GROUPS' => array(), 'PARAMETERS' => array('AJAX_MODE' => array(), 'NUM_USERS' => array('TYPE' => 'STRING', 'MULTIPLE' => 'N', 'DEFAULT' => '10', 'NAME' => GetMessage('INTR_ISIN_PARAM_NUM_USERS'), 'PARENT' => 'BASE'), 'NAME_TEMPLATE' => array('TYPE' => 'LIST', 'NAME' => GetMessage('INTR_ISIN_PARAM_NAME_TEMPLATE'), 'VALUES' => CComponentUtil::GetDefaultNameTemplates(), 'MULTIPLE' => 'N', 'ADDITIONAL_VALUES' => 'Y', 'DEFAULT' => "", 'PARENT' => 'BASE'), "SHOW_LOGIN" => array("NAME" => GetMessage("INTR_ISIN_PARAM_SHOW_LOGIN"), "TYPE" => "CHECKBOX", "MULTIPLE" => "N", "VALUE" => "Y", "DEFAULT" => "Y", "PARENT" => "BASE"), "DEPARTMENT" => array("NAME" => GetMessage('INTR_PREDEF_DEPARTMENT'), "TYPE" => "LIST", 'VALUES' => $arSections, "DEFAULT" => ''), 'PM_URL' => array('TYPE' => 'STRING', 'DEFAULT' => '/company/personal/messages/chat/#USER_ID#/', 'NAME' => GetMessage('INTR_ISIN_PARAM_PM_URL'), 'PARENT' => 'BASE'), 'PATH_TO_CONPANY_DEPARTMENT' => array('TYPE' => 'STRING', 'DEFAULT' => '/company/structure.php?set_filter_structure=Y&structure_UF_DEPARTMENT=#ID#', 'NAME' => GetMessage('INTR_ISIN_PARAM_PATH_TO_CONPANY_DEPARTMENT'), 'PARENT' => 'BASE'), "DATE_FORMAT" => CComponentUtil::GetDateFormatField(GetMessage("INTR_ISIN_PARAM_DATE_FORMAT"), 'ADDITIONAL_SETTINGS'), "DATE_TIME_FORMAT" => CComponentUtil::GetDateTimeFormatField(GetMessage("INTR_ISIN_PARAM_DATE_TIME_FORMAT"), 'ADDITIONAL_SETTINGS'), 'SHOW_YEAR' => array('TYPE' => 'LIST', 'MULTIPLE' => 'N', 'DEFAULT' => 'Y', 'VALUES' => array('Y' => GetMessage('INTR_ISIN_PARAM_SHOW_YEAR_VALUE_Y'), 'M' => GetMessage('INTR_ISIN_PARAM_SHOW_YEAR_VALUE_M'), 'N' => GetMessage('INTR_ISIN_PARAM_SHOW_YEAR_VALUE_N')), 'NAME' => GetMessage('INTR_ISIN_PARAM_SHOW_YEAR')), "CACHE_TIME" => array("DEFAULT" => 3600)));
示例9: array
$lAdmin->AddHeaders($arHeader);
$arSelectedFields = $lAdmin->GetVisibleHeaderColumns();
$arSelectedProps = array();
foreach ($arProps as $i => $arProperty) {
$k = array_search("PROPERTY_" . $arProperty['ID'], $arSelectedFields);
if ($k !== false) {
$arSelectedProps[] = $arProperty;
if ($arProperty["PROPERTY_TYPE"] == "L") {
$arSelect[$arProperty['ID']] = array();
$rs = CIBlockProperty::GetPropertyEnum($arProperty['ID']);
while ($ar = $rs->GetNext()) {
$arSelect[$arProperty['ID']][$ar["ID"]] = $ar["VALUE"];
}
} elseif ($arProperty["PROPERTY_TYPE"] == "G") {
$arSelect[$arProperty['ID']] = array();
$rs = CIBlockSection::GetTreeList(array("IBLOCK_ID" => $arProperty["LINK_IBLOCK_ID"]));
while ($ar = $rs->GetNext()) {
$arSelect[$arProperty['ID']][$ar["ID"]] = str_repeat(" . ", $ar["DEPTH_LEVEL"]) . $ar["NAME"];
}
}
unset($arSelectedFields[$k]);
}
}
if (!in_array("ID", $arSelectedFields)) {
$arSelectedFields[] = "ID";
}
if (!in_array("CREATED_BY", $arSelectedFields)) {
$arSelectedFields[] = "CREATED_BY";
}
$arSelectedFields[] = "LANG_DIR";
$arSelectedFields[] = "LID";
示例10: array
for(var j=0;j<oSelect.length;j++)
{
if(oSelect[j].value==a[i])
{
oSelect[j].selected=true;
break;
}
}
}
change_selection(name_prefix, prop_id, a[i], i-1, id);
}
}
var sectionListsFor0 = {id:0,name:'',children:Array()};
<?
$rsItems = CIBlockSection::GetTreeList(Array("IBLOCK_ID"=>$IBLOCK_ID));
$depth = 0;
$max_depth = 0;
$arChain = array();
while($arItem = $rsItems->GetNext())
{
if($max_depth < $arItem["DEPTH_LEVEL"])
{
$max_depth = $arItem["DEPTH_LEVEL"];
}
if($depth < $arItem["DEPTH_LEVEL"])
{
$arChain[]=$arItem["ID"];
}
while($depth > $arItem["DEPTH_LEVEL"])
示例11: array
}
} else {
$data[$FIELD_ID]["n0"] = array("VALUE" => "", "DESCRIPTION" => "");
}
} else {
$data[$FIELD_ID] = array("n0" => array("VALUE" => $arField["DEFAULT_VALUE"], "DESCRIPTION" => ""));
if ($arField["MULTIPLE"] == "Y") {
if (is_array($arField["DEFAULT_VALUE"]) || strlen($arField["DEFAULT_VALUE"])) {
$data[$FIELD_ID]["n1"] = array("VALUE" => "", "DESCRIPTION" => "");
}
}
}
}
}
$arResult["LIST_SECTIONS"] = array("" => GetMessage("CC_BLEE_UPPER_LEVEL"));
$rsSections = CIBlockSection::GetTreeList(array("IBLOCK_ID" => $arResult["IBLOCK_ID"], "CHECK_PERMISSIONS" => "N"));
while ($arSection = $rsSections->Fetch()) {
$arResult["LIST_SECTIONS"][$arSection["ID"]] = str_repeat(" . ", $arSection["DEPTH_LEVEL"]) . $arSection["NAME"];
}
if ($arResult["IBLOCK"]["RIGHTS_MODE"] == 'E' && $arResult["CAN_EDIT_RIGHTS"]) {
$arResult["RIGHTS"] = array();
$arResult["SELECTED"] = array();
if (IsModuleInstalled('bitrix24') && defined('BX24_HOST_NAME')) {
if ($arParams["SOCNET_GROUP_ID"]) {
$arResult["HIGHLIGHT"] = array("socnetgroup" => array("group_id" => $arParams["SOCNET_GROUP_ID"]), "groups" => array("disabled" => true));
} else {
$arResult["HIGHLIGHT"] = array("groups" => array("disabled" => true));
}
} else {
if ($arParams["SOCNET_GROUP_ID"]) {
$arResult["HIGHLIGHT"] = array("socnetgroup" => array("group_id" => $arParams["SOCNET_GROUP_ID"]));
示例12: EmployeeDrawStructure
function EmployeeDrawStructure($arStructure, $arSections, $key, $win_id)
{
foreach ($arStructure[$key] as $ID) {
$arRes = $arSections[$ID];
echo '<div class="mts-section' . ($key == 0 ? '-first' : '') . '" style="padding-left: ' . ($arRes['DEPTH_LEVEL'] - 1) * 15 . 'px" onclick="document.getElementById(\'' . $win_id . '\').__object.LoadSection(\'' . $ID . '\')" id="mts_section_' . $ID . '">';
echo '<div class="mts-section-name mts-closed">' . $arRes['NAME'] . '</div>';
echo '</div>';
echo '<div style="display: none" id="bx_children_' . $arRes['ID'] . '">';
if (is_array($arStructure[$ID])) {
EmployeeDrawStructure($arStructure, $arSections, $ID, $win_id);
}
echo '<div class="mts-list" id="mts_elements_' . $ID . '" style="margin-left: ' . $arRes['DEPTH_LEVEL'] * 15 . 'px"><i>' . GetMessage('CT_BMTS_WAIT') . '</i></div>';
echo '</div>';
}
}
$dbRes = CIBlockSection::GetTreeList(array('IBLOCK_ID' => $arIBlock["ID"], 'CHECK_PERMISSIONS' => $arParams['CAN_EDIT'] ? 'N' : 'Y'));
$arStructure = array(0 => array());
$arSections = array();
while ($arRes = $dbRes->GetNext()) {
if (!$arRes['IBLOCK_SECTION_ID']) {
$arStructure[0][] = $arRes['ID'];
} elseif (!is_array($arStructure[$arRes['IBLOCK_SECTION_ID']])) {
$arStructure[$arRes['IBLOCK_SECTION_ID']] = array($arRes['ID']);
} else {
$arStructure[$arRes['IBLOCK_SECTION_ID']][] = $arRes['ID'];
}
$arSections[$arRes['ID']] = $arRes;
}
EmployeeDrawStructure($arStructure, $arSections, 0, $win_id);
echo '<div style="display:none" id="mts_section_0">';
echo '<div class="mts-section-name mts-closed"></div>';
示例13: array
$arTab1Fields[] = array("id" => "DEFAULT_VALUE[SCALE]", "name" => GetMessage("CT_BLFE_FIELD_PICTURE_SCALE"), "type" => "checkbox", "value" => isset($arResult["FORM_DATA"]["DEFAULT_VALUE"]["SCALE"]) ? $arResult["FORM_DATA"]["DEFAULT_VALUE"]["SCALE"] : '');
$arTab1Fields[] = array("id" => "DEFAULT_VALUE[WIDTH]", "name" => GetMessage("CT_BLFE_FIELD_PICTURE_WIDTH"), "params" => array("size" => 7), "value" => isset($arResult["FORM_DATA"]["DEFAULT_VALUE"]["WIDTH"]) ? $arResult["FORM_DATA"]["DEFAULT_VALUE"]["WIDTH"] : '');
$arTab1Fields[] = array("id" => "DEFAULT_VALUE[HEIGHT]", "name" => GetMessage("CT_BLFE_FIELD_PICTURE_HEIGHT"), "params" => array("size" => 7), "value" => isset($arResult["FORM_DATA"]["DEFAULT_VALUE"]["HEIGHT"]) ? $arResult["FORM_DATA"]["DEFAULT_VALUE"]["HEIGHT"] : '');
$arTab1Fields[] = array("id" => "DEFAULT_VALUE[IGNORE_ERRORS]", "name" => GetMessage("CT_BLFE_FIELD_PICTURE_IGNORE_ERRORS"), "type" => "checkbox", "value" => isset($arResult["FORM_DATA"]["DEFAULT_VALUE"]["IGNORE_ERRORS"]) ? $arResult["FORM_DATA"]["DEFAULT_VALUE"]["IGNORE_ERRORS"] : '');
} elseif (preg_match("/^(L|L:)/", $arResult["FORM_DATA"]["TYPE"])) {
//No default value input
} elseif (preg_match("/^(F|F:)/", $arResult["FORM_DATA"]["TYPE"])) {
//No default value input
} elseif (preg_match("/^(G|G:)/", $arResult["FORM_DATA"]["TYPE"])) {
$LINK = $arResult["FORM_DATA"]["LINK_IBLOCK_ID"];
if ($LINK <= 0) {
list($LINK, ) = each($arResult["LINK_IBLOCKS"]);
}
$items = array("" => GetMessage("CT_BLFE_NO_VALUE"));
if ($LINK > 0) {
$rsSections = CIBlockSection::GetTreeList(array("IBLOCK_ID" => $LINK));
while ($ar = $rsSections->Fetch()) {
$items[$ar["ID"]] = str_repeat(" . ", $ar["DEPTH_LEVEL"]) . $ar["NAME"];
}
}
$arTab1Fields[] = array("id" => "DEFAULT_VALUE", "name" => GetMessage("CT_BLFE_FIELD_DEFAULT_VALUE"), "type" => "list", "items" => $items);
} elseif (preg_match("/^(E|E:)/", $arResult["FORM_DATA"]["TYPE"])) {
//No default value input
} elseif (!is_array($arPropertyFields["HIDE"]) || !in_array("DEFAULT_VALUE", $arPropertyFields["HIDE"])) {
//Show default property value input if it was not cancelled by property
if (is_array($arUserType)) {
if (array_key_exists("GetPublicEditHTML", $arUserType)) {
$html = '';
if ($arResult["FORM_DATA"]["TYPE"] == "S:HTML") {
$params = array('width' => '100%', 'height' => '200px');
if (is_array($arResult["FORM_DATA"]["~DEFAULT_VALUE"])) {
示例14: GetMessage
<select name="filter_section">
<option value="">(<?php
echo GetMessage("SPS_ANY");
?>
)</option>
<option value="0"<?php
if ($filter_section == "0") {
echo " selected";
}
?>
><?php
echo GetMessage("SPS_TOP_LEVEL");
?>
</option>
<?php
$bsections = CIBlockSection::GetTreeList(array("IBLOCK_ID" => $IBLOCK_ID));
while ($bsections->ExtractFields("s_")) {
?>
<option value="<?php
echo $s_ID;
?>
"<?php
if ($s_ID == $filter_section) {
echo " selected";
}
?>
><?php
echo str_repeat(" . ", $s_DEPTH_LEVEL);
echo $s_NAME;
?>
</option><?php
示例15: getDepartmentListFromSystem
public static function getDepartmentListFromSystem($arFilter = array())
{
if (!IsModuleInstalled('intranet')) {
return false;
}
$l = false;
if (CModule::IncludeModule('iblock')) {
$iblockId = COption::GetOptionInt("intranet", "iblock_structure", false, false);
if ($iblockId) {
$arFilter["IBLOCK_ID"] = $iblockId;
$arFilter["CHECK_PERMISSIONS"] = "N";
$l = CIBlockSection::GetTreeList($arFilter);
}
}
return $l;
}