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


PHP CAdminList::AddVisibleHeaderColumn方法代码示例

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


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

示例1: CAdminSorting

</a>
	<?php 
    require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
    die;
}
$entity_id = "IBLOCK_" . $IBLOCK_ID . "_SECTION";
$sTableID = "tbl_" . (defined("CATALOG_PRODUCT") ? "catalog" : "iblock") . "_section_" . md5($type . "." . $IBLOCK_ID);
if ($_GET["tree"] == "Y") {
    $by = "left_margin";
    $order = "asc";
}
$oSort = new CAdminSorting($sTableID, "timestamp_x", "desc");
$arOrder = strtoupper($by) === "ID" ? array($by => $order) : array($by => $order, "ID" => "ASC");
$lAdmin = new CAdminList($sTableID, $oSort);
if ($_GET["tree"] == "Y") {
    $lAdmin->AddVisibleHeaderColumn("DEPTH_LEVEL");
}
$arFilterFields = array("find_section_id", "find_section_timestamp_1", "find_section_timestamp_2", "find_section_modified_by", "find_section_date_create_1", "find_section_date_create_2", "find_section_created_by", "find_section_name", "find_section_active", "find_section_section", "find_section_code", "find_section_external_id");
$USER_FIELD_MANAGER->AdminListAddFilterFields($entity_id, $arFilterFields);
//We have to handle current section in a special way
$section_id = strlen($find_section_section) > 0 ? intval($find_section_section) : "";
$lAdmin->InitFilter($arFilterFields);
$find_section_section = $section_id;
//This is all parameters needed for proper navigation
$sThisSectionUrl = '&type=' . urlencode($type) . '&lang=' . LANGUAGE_ID . '&IBLOCK_ID=' . $IBLOCK_ID . '&find_section_section=' . $find_section_section;
$arFilter = array("IBLOCK_ID" => $IBLOCK_ID, "?NAME" => $find_section_name, "SECTION_ID" => $find_section_section, "ID" => $find_section_id, ">=TIMESTAMP_X" => $find_section_timestamp_1, "MODIFIED_BY" => $find_section_modified_user_id ? $find_section_modified_user_id : $find_section_modified_by, ">=DATE_CREATE" => $find_section_date_create_1, "CREATED_BY" => $find_section_created_user_id ? $find_section_created_user_id : $find_section_created_by, "ACTIVE" => $find_section_active, "CODE" => $find_section_code, "EXTERNAL_ID" => $find_section_external_id);
if (!empty($find_section_timestamp_2)) {
    $arFilter["<=TIMESTAMP_X"] = CIBlock::isShortDate($find_section_timestamp_2) ? ConvertTimeStamp(AddTime(MakeTimeStamp($find_section_timestamp_2), 1, "D"), "FULL") : $find_section_timestamp_2;
}
if (!empty($find_section_date_create_2)) {
    $arFilter["<=DATE_CREATE"] = CIBlock::isShortDate($find_section_date_create_2) ? ConvertTimeStamp(AddTime(MakeTimeStamp($find_section_date_create_2), 1, "D"), "FULL") : $find_section_date_create_2;
开发者ID:spas-viktor,项目名称:books,代码行数:31,代码来源:iblock_section_admin.php

示例2: array

$db_DirContent->NavStart(array("sNavID" => "fileman_admin" . $path, "nPageSize" => 20));
// Init list params
$lAdmin->NavText($db_DirContent->GetNavPrint(GetMessage("FILEMAN_PAGES")));
// List header
if ($logical == 'Y') {
    $arHeaders = array(array("id" => "LOGIC_NAME", "content" => GetMessage("FILEMAN_FILE_NAME"), "default" => true), array("id" => "NAME", "content" => GetMessage("FILEMAN_REAL_FILE_NAME"), "sort" => "name_nat"), array("id" => "SIZE", "content" => GetMessage("FILEMAN_ADMIN_FILE_SIZE"), "sort" => "size", "default" => true), array("id" => "DATE", "content" => GetMessage('FILEMAN_ADMIN_FILE_TIMESTAMP'), "sort" => "timestamp", "default" => true), array("id" => "TYPE", "content" => GetMessage('FILEMAN_ADMIN_FILE_TYPE'), "sort" => "", "default" => true));
} else {
    $arHeaders = array(array("id" => "NAME", "content" => GetMessage("FILEMAN_FILE_NAME"), "sort" => "name_nat", "default" => true), array("id" => "SIZE", "content" => GetMessage("FILEMAN_ADMIN_FILE_SIZE"), "sort" => "size", "default" => true), array("id" => "DATE", "content" => GetMessage('FILEMAN_ADMIN_FILE_TIMESTAMP'), "sort" => "timestamp", "default" => true), array("id" => "TYPE", "content" => GetMessage('FILEMAN_ADMIN_FILE_TYPE'), "sort" => "", "default" => true));
}
if (!CFileMan::IsWindows()) {
    $arHeaders[] = array("id" => "PERMS", "content" => GetMessage('FILEMAN_ADMIN_ACCESS_PERMS'), "sort" => "", "default" => true);
}
$arHeaders[] = array("id" => "PERMS_B", "content" => GetMessage('FILEMAN_ADMIN_ACCESS_PERMS_B'), "sort" => "", "default" => true);
$lAdmin->AddHeaders($arHeaders);
if (IntVal($show_perms_for) > 0) {
    $lAdmin->AddVisibleHeaderColumn("PERMS_B");
}
$arVisibleColumns = $lAdmin->GetVisibleHeaderColumns();
if (!$bSearch && strlen($path) > 0 && ($logical != "Y" || rtrim($arSite["DIR"], "/") != rtrim($arParsedPath["FULL"], "/"))) {
    $row =& $lAdmin->AddRow(".", array("NAME" => GetMessage("FILEMAN_UP")));
    $dbSitesList = CSite::GetList($b = "lendir", $o = "desc");
    while ($arSite = $dbSitesList->GetNext()) {
        if ($arSite['DOC_ROOT'] == CSite::GetSiteDocRoot($site) || $arSite['DOC_ROOT'] == '') {
            $resSites[] = array('ID' => $arSite['ID'], 'DIR' => $arSite['DIR'], 'DOC_ROOT' => $arSite['DOC_ROOT']);
        }
    }
    $cnt_resSites = count($resSites);
    for ($i = 0; $i < $cnt_resSites; $i++) {
        $dir = trim($resSites[$i]["DIR"], "/");
        if (substr(trim($arParsedPath["PREV"], "/"), 0, strlen($dir)) == $dir) {
            $site = $resSites[$i]["ID"];
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:fileman_admin.php

示例3: while

    $db_extras = CExtra::GetList(array("NAME" => "ASC"));
    while ($extras = $db_extras->Fetch()) {
        $arCatExtra[] = $extras;
    }
}
if ($bBizproc) {
    $arWorkflowTemplates = CBPDocument::GetWorkflowTemplatesForDocumentType(array(MODULE_ID, ENTITY, DOCUMENT_TYPE));
    foreach ($arWorkflowTemplates as $arTemplate) {
        $arHeader[] = array("id" => "WF_" . $arTemplate["ID"], "content" => $arTemplate["NAME"]);
    }
    $arHeader[] = array("id" => "BIZPROC", "content" => GetMessage("IBLIST_A_BP_H"));
    $arHeader[] = array("id" => "LOCK_STATUS", "content" => GetMessage("IBLIST_A_LOCK_STATUS"), "default" => true);
    $arHeader[] = array("id" => "BP_PUBLISHED", "content" => GetMessage("IBLOCK_FIELD_BP_PUBLISHED"), "sort" => "status", "default" => true);
}
$lAdmin->AddHeaders($arHeader);
$lAdmin->AddVisibleHeaderColumn('ID');
$arSelectedFields = $lAdmin->GetVisibleHeaderColumns();
$arSelectedProps = array();
$arSelect = 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();
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:iblock_list_admin.php


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