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


PHP CModule::GetDropDownList方法代码示例

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


在下文中一共展示了CModule::GetDropDownList方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

     } else {
         //		COption::RemoveOption("perfmon", "total_mark_value");
         //		COption::RemoveOption("perfmon", "total_mark_duration");
     }
     COption::SetOptionString("perfmon", "mark_php_page_rate", "measure");
     COption::SetOptionString("perfmon", "mark_php_page_time", "measure");
     $_SESSION["PERFMON_TIMES"] = array();
     $_SESSION["PERFMON_SESSION_START"] = array();
     LocalRedirect("perfmon_panel.php?lang=" . LANGUAGE_ID);
 }
 $bComponentCache = COption::GetOptionString("main", "component_cache_on", "Y") == "Y";
 $bHTMLCache = CHTMLPagesCache::IsOn();
 $bExtraModule = false;
 $arModulesInstalled = array();
 $arModules = array("main", "iblock", "search", "fileman", "compression", "perfmon", "seo");
 $rsModules = CModule::GetDropDownList();
 while ($arModule = $rsModules->Fetch()) {
     if (!in_array($arModule["REFERENCE_ID"], $arModules)) {
         $bExtraModule = true;
     }
     $arModulesInstalled[] = $arModule["REFERENCE_ID"];
 }
 $statistic_path = IsModuleInstalled('statistic') && COption::GetOptionString("statistic", "SAVE_PATH_DATA") == "Y";
 $search_is_ok = IsModuleInstalled('search') && COption::GetOptionString("search", "use_stemming") == "Y" && COption::GetOptionString("search", "use_tf_cache") == "Y";
 if (CModule::IncludeModule('advertising') && COption::GetOptionString('advertising', 'DONT_FIX_BANNER_SHOWS') !== "Y") {
     $rsBanners = CAdvBanner::GetList($by, $order, array("FIX_SHOW" => "Y"), $is_filtered, "N");
     if ($rsBanners->Fetch()) {
         $adv_banners_fix_shows = true;
     } else {
         $adv_banners_fix_shows = false;
     }
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:perfmon_panel.php

示例2: htmlspecialcharsbx

</td>
	<td><input type="text" name="find_user_id" size="40" value="<?php 
    echo htmlspecialcharsbx($find_user_id);
    ?>
"><?php 
    echo ShowFilterLogicHelp();
    ?>
</td>
</tr>
<tr>
	<td><?php 
    echo GetMessage("fav_list_flt_mod1");
    ?>
</td>
	<td><?php 
    $a = CModule::GetDropDownList();
    while ($ar = $a->Fetch()) {
        $ref_id[] = $ar["REFERENCE_ID"];
        $ref[] = $ar["REFERENCE"];
    }
    $arr = array("reference" => $ref, "reference_id" => $ref_id);
    echo SelectBoxFromArray("find_module_id", $arr, $find_module_id, GetMessage("MAIN_ALL"));
    ?>
</td>
</tr>
<?php 
}
$oFilter->Buttons(array("table_id" => $sTableID, "url" => $APPLICATION->GetCurPage(), "form" => "form1"));
$oFilter->End();
?>
</form>
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:favorite_list.php

示例3: CreateNewIndex


//.........这里部分代码省略.........
					"CACHE_TYPE"	=>	"A",
					"CACHE_TIME"	=>	"3600",
					"CACHE_FILTER"	=>	"N",
					"PREVIEW_TRUNCATE_LEN"	=>	"0",
					"ACTIVE_DATE_FORMAT"	=>	"M j, Y, H:m",
					"DISPLAY_PANEL"	=>	"N",
					"SET_TITLE"	=>	"N",
					"INCLUDE_IBLOCK_INTO_CHAIN"	=>	"Y",
					"ADD_SECTIONS_CHAIN"	=>	"Y",
					"HIDE_LINK_WHEN_NO_DETAIL"	=>	"N",
					"PARENT_SECTION"	=>	"",
					"DISPLAY_TOP_PAGER"	=>	"N",
					"DISPLAY_BOTTOM_PAGER"	=>	"N",
					"PAGER_TITLE"	=>	"' . GetMessage("INDEX_ARTICLES_TITLE") . '",
					"PAGER_SHOW_ALWAYS"	=>	"N",
					"PAGER_TEMPLATE"	=>	"",
					"PAGER_DESC_NUMBERING"	=>	"N",
					"PAGER_DESC_NUMBERING_CACHE_TIME"	=>	"36000",
					"PAGER_SHOW_ALL" => "N",
					"DISPLAY_DATE"	=>	"Y",
					"DISPLAY_NAME"	=>	"Y",
					"DISPLAY_PICTURE"	=>	"N",
					"DISPLAY_PREVIEW_TEXT"	=>	"Y"
					)
					);?>
				';
            }
            $newsReplace = "";
            if ($newsID) {
                $newsReplace = '
					<?$APPLICATION->IncludeComponent(
						"bitrix:news.list",
						"",
						Array(
							"DISPLAY_DATE" => "Y",
							"DISPLAY_NAME" => "Y",
							"DISPLAY_PICTURE" => "N",
							"DISPLAY_PREVIEW_TEXT" => "Y",
							"IBLOCK_TYPE" => "news",
							"IBLOCK_ID" => "' . $newsID . '",
							"NEWS_COUNT" => "5",
							"SORT_BY1" => "ACTIVE_FROM",
							"SORT_ORDER1" => "DESC",
							"SORT_BY2" => "SORT",
							"SORT_ORDER2" => "ASC",
							"FILTER_NAME" => "",
							"FIELD_CODE" => Array("",""),
							"PROPERTY_CODE" => Array("",""),
							"DETAIL_URL" => "/content/news/#SECTION_ID#/#ELEMENT_ID#/",
							"PREVIEW_TRUNCATE_LEN" => "0",
							"ACTIVE_DATE_FORMAT" => "d.m.Y",
							"DISPLAY_PANEL" => "N",
							"SET_TITLE" => "N",
							"INCLUDE_IBLOCK_INTO_CHAIN" => "Y",
							"CACHE_TIME" => "3600",
							"CACHE_FILTER" => "N",
							"DISPLAY_TOP_PAGER" => "N",
							"DISPLAY_BOTTOM_PAGER" => "N",
							"PAGER_TITLE" => "' . GetMessage("INDEX_NEWS_TITLE") . '",
							"PAGER_SHOW_ALWAYS" => "N",
							"PAGER_TEMPLATE" => "",
							"PAGER_DESC_NUMBERING" => "N",
							"PAGER_SHOW_ALL" => "N",
						)
					);?>
				';
                if ($articlesID) {
                    $newsReplace = "<h1>" . GetMessage("INDEX_NEWS_TITLE") . "</h1>" . $newsReplace;
                } else {
                    $title = GetMessage("INDEX_NEWS_TITLE");
                }
            }
            $arReplace["TITLE"] = $title;
            $arReplace["ARTICLES"] = "-->" . $articleReplace . "<!--";
            $arReplace["NEWS"] = "-->" . $newsReplace . "<!--";
            $index = "web20";
        } else {
            $arReplace = false;
            $index = "static_page";
        }
        //Copy index page
        CopyDirFiles($_SERVER["DOCUMENT_ROOT"] . $wizard->GetPath() . "/indexes/" . LANGUAGE_ID . "/" . $index, $_SERVER["DOCUMENT_ROOT"], $rewrite = true, $recursive = true);
        CWizardUtil::ReplaceMacros($_SERVER["DOCUMENT_ROOT"] . "/index.php", $arReplace);
        //For "start" enable HTML caching
        $bExtraModule = false;
        $arModulesInstalled = array();
        $arStartModules = array("main", "iblock", "search", "fileman", "compression", "perfmon", "seo");
        $rsModules = CModule::GetDropDownList();
        while ($arModule = $rsModules->Fetch()) {
            if (!in_array($arModule["REFERENCE_ID"], $arStartModules)) {
                $bExtraModule = true;
            }
            $arModulesInstalled[] = $arModule["REFERENCE_ID"];
        }
        if (!$bExtraModule) {
            CHTMLPagesCache::SetEnabled(true);
        }
        //Let's pretend we just optimized all the tables
        COption::SetOptionInt("main", "LAST_DB_OPTIMIZATION_TIME", time());
    }
开发者ID:Satariall,项目名称:izurit,代码行数:101,代码来源:finish.php


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