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


PHP CIBlock::GetElementCount方法代码示例

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


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

示例1: GetMessage

hram/raspisanie/" role="button"><?php 
echo GetMessage("BTN_SHEDULE_SERVICE");
?>
</a>
                        </div>
                    </div>
                    <div class="line-bottom"></div>
                    <div class="row">
                        <div class="col-xs-12">
                            <?php 
if (CModule::IncludeModule("iblock")) {
    $arSelect = array("NAME", "DETAIL_TEXT", "DETAIL_PICTURE");
    $arFilter = array("IBLOCK_ID" => 3, "ACTIVE" => "Y");
    $arOrder = array("SORT" => "ASC");
    $res = CIBlockElement::GetList($arOrder, $arFilter, false, false, $arSelect);
    $count = CIBlock::GetElementCount(3);
    $num = 1;
    while ($arFields = $res->GetNext()) {
        $foto = CFile::GetFileArray($arFields["DETAIL_PICTURE"]);
        ?>
                                    <div class="media duhovenstvo">
                                        <a class="media-left" href="#">
                                            <img src="<?php 
        echo $foto["SRC"];
        ?>
" alt="<?php 
        echo $foto["DESCRIPTION"];
        ?>
">
                                        </a>
                                        <div class="media-body">
开发者ID:egoshin,项目名称:i-hram,代码行数:31,代码来源:index.php

示例2: ShowError

if ($arParams["PERMISSION"] < "W") {
    ShowError(GetMessage("P_DENIED_ACCESS"));
    return false;
} elseif ($arParams["IBLOCK_ID"] <= 0) {
    ShowError(GetMessage("P_BAD_IBLOCK_ID"));
    return false;
}
$arGalleries = unserialize(COption::GetOptionString("photogallery", "UF_GALLERY_SIZE"));
$arGalleries = is_array($arGalleries) ? $arGalleries : array();
$arGallery = $arGalleries[$arParams["IBLOCK_ID"]];
if ($_REQUEST["AJAX"] == "Y" && check_bitrix_sessid()) {
    $result = array();
    $iCount = 300;
    $arFilter = array("IBLOCK_ID" => $arParams["IBLOCK_ID"]);
    if ($arGallery["status"] != "inprogress" || $_REQUEST["ID"] . "" != $arGallery["id"] . "") {
        $arGallery = array("status" => "done", "step" => 0, "elements_cnt" => CIBlock::GetElementCount($arParams["IBLOCK_ID"]), "element_number" => 0, "element_id" => 0, "id" => $_REQUEST["ID"], "date" => ConvertTimeStamp());
    } else {
        $arFilter[">ID"] = $arGallery["element_id"];
    }
    $db_res = CIBlockElement::GetList(array("ID" => "ASC"), $arFilter, false, array("nTopCount" => $iCount), array("ID", "IBLOCK_ID", "IBLOCK_SECTION_ID"));
    $iCnt = 0;
    $bBreaked = false;
    while ($res = $db_res->Fetch()) {
        $iCnt++;
        CPhotogalleryElement::OnRecalcGalleries($res["ID"], $arGallery["id"]);
        $arGallery["element_id"] = $res["ID"];
        $arGallery["element_number"]++;
        if (getmicrotime() - $time > 10) {
            $bBreaked = true;
            break;
        }
开发者ID:sharapudinov,项目名称:tovarov.top,代码行数:31,代码来源:galleries_recalc.php

示例3: htmlspecialcharsbx

         $row->AddCheckField("WORKFLOW");
     }
 } else {
     if ($arIBTYPE["SECTIONS"] == "Y") {
         $row->AddViewField("NAME", '<a href="' . htmlspecialcharsbx(CIBlock::GetAdminSectionListLink($f_ID, array('find_section_section' => 0))) . '" title="' . GetMessage("IBLOCK_ADM_TO_SECTLIST") . '">' . $f_NAME . '</a>');
     } else {
         $row->AddViewField("NAME", '<a href="' . htmlspecialcharsbx(CIBlock::GetAdminElementListLink($f_ID, array('find_section_section' => -1))) . '" title="' . GetMessage("IBLOCK_ADM_TO_EL_LIST") . '">' . $f_NAME . '</a>');
     }
     $row->AddCheckField("ACTIVE", false);
     $row->AddCheckField("INDEX_ELEMENT", false);
     if ($bWorkflow) {
         $row->AddCheckField("WORKFLOW", false);
     }
 }
 if (in_array("ELEMENT_CNT", $lAdmin->GetVisibleHeaderColumns())) {
     $f_ELEMENT_CNT = CIBlock::GetElementCount($f_ID);
     $row->AddViewField("ELEMENT_CNT", '<a href="' . htmlspecialcharsbx(CIBlock::GetAdminElementListLink($f_ID, array('find_section_section' => -1))) . '" title="' . GetMessage("IBLOCK_ADM_TO_ELLIST") . '">' . $f_ELEMENT_CNT . '</a>');
 }
 if ($arIBTYPE["SECTIONS"] == "Y" && in_array("SECTION_CNT", $lAdmin->GetVisibleHeaderColumns())) {
     $row->AddViewField("SECTION_CNT", '<a href="' . htmlspecialcharsbx(CIBlock::GetAdminSectionListLink($f_ID, array())) . '" title="' . GetMessage("IBLOCK_ADM_TO_SECTLIST") . '">' . IntVal(CIBlockSection::GetCount(array("IBLOCK_ID" => $f_ID))) . '</a>');
 }
 if ($bBizproc && $dbrs["BIZPROC"] == "Y" && in_array("WORKFLOW_TEMPLATES", $lAdmin->GetVisibleHeaderColumns()) && IsModuleInstalled("bizprocdesigner")) {
     $cnt = CBPDocument::GetNumberOfWorkflowTemplatesForDocumentType(array("iblock", "CIBlockDocument", "iblock_" . $f_ID));
     $row->AddViewField("WORKFLOW_TEMPLATES", '<a href="/bitrix/admin/iblock_bizproc_workflow_admin.php?document_type=iblock_' . $f_ID . '&lang=' . LANGUAGE_ID . '&back_url_list=' . urlencode($APPLICATION->GetCurPageParam("", array())) . '">' . $cnt . '</a>');
 }
 $arActions = array();
 if ($_REQUEST["admin"] == "Y" && CIBlockRights::UserHasRightTo($f_ID, $f_ID, "iblock_edit")) {
     $arActions[] = array("ICON" => "edit", "TEXT" => GetMessage("MAIN_ADMIN_MENU_EDIT"), "DEFAULT" => $_REQUEST["admin"] == "Y", "ACTION" => $lAdmin->ActionRedirect("iblock_edit.php?ID=" . $f_ID . "&type=" . urlencode($type) . "&lang=" . LANGUAGE_ID . "&admin=" . ($_REQUEST["admin"] == "Y" ? "Y" : "N")));
     $arActions[] = array("ICON" => "list", "TEXT" => GetMessage("IBLOCK_ADM_MENU_PROPERTIES"), "ACTION" => $lAdmin->ActionRedirect("iblock_property_admin.php?IBLOCK_ID=" . $f_ID . "&lang=" . LANGUAGE_ID . ($_REQUEST["admin"] == "Y" ? "&admin=Y" : "&admin=N")));
 }
 if ($bBizproc && $dbrs["BIZPROC"] == "Y" && CIBlockRights::UserHasRightTo($f_ID, $f_ID, "iblock_edit") && IsModuleInstalled("bizprocdesigner")) {
开发者ID:spas-viktor,项目名称:books,代码行数:31,代码来源:iblock_admin.php


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