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


PHP CDBResult::GetNavPrint方法代码示例

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


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

示例1: GetNavPrint

	function GetNavPrint($title, $show_allways=true, $StyleText="", $template_path=false, $arDeleteParam=false)
	{
		if($template_path === false)
			$template_path = $_SERVER["DOCUMENT_ROOT"]."/freetrix/modules/main/interface/navigation.php";
		return parent::GetNavPrint($title, $show_allways, $StyleText, $template_path, array('action', 'sessid'));
	}
开发者ID:ASDAFF,项目名称:open_bx,代码行数:6,代码来源:admin_lib.php

示例2: GetNavPrint

 function GetNavPrint($title, $show_allways = true, $StyleText = "", $template_path = false, $arDeleteParam = false)
 {
     if ($this->table_id && $template_path === false) {
         $template_path = $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/interface/navigation.php";
     }
     return parent::GetNavPrint($title, $show_allways, $StyleText, $template_path, $arDeleteParam);
 }
开发者ID:spas-viktor,项目名称:books,代码行数:7,代码来源:iblockresult.php

示例3: krsort

                $key = $regs[1];
            }
            $key .= '_' . $i;
            $arFiles[$key] = $ar;
        }
    }
}
if ($order == 'desc') {
    krsort($arFiles);
} else {
    ksort($arFiles);
}
$rsDirContent = new CDBResult();
$rsDirContent->InitFromArray($arFiles);
$rsDirContent->NavStart(20);
$lAdmin->NavText($rsDirContent->GetNavPrint(GetMessage("MAIN_DUMP_FILE_PAGES")));
$lAdmin->AddHeaders(array(array("id" => "NAME", "content" => GetMessage("MAIN_DUMP_FILE_NAME"), "sort" => "name", "default" => true), array("id" => "SIZE", "content" => GetMessage("MAIN_DUMP_FILE_SIZE1"), "sort" => "size", "default" => true), array("id" => "PLACE", "content" => GetMessage("MAIN_DUMP_LOCATION"), "sort" => "location", "default" => true), array("id" => "DATE", "content" => GetMessage('MAIN_DUMP_FILE_TIMESTAMP'), "sort" => "timestamp", "default" => true)));
$arWriteBucket = CBackup::GetBucketList($arFilter = array('READ_ONLY' => 'N'));
while ($f = $rsDirContent->NavNext(true, "f_")) {
    $BUCKET_ID = intval($f['BUCKET_ID']);
    $row =& $lAdmin->AddRow($BUCKET_ID . '_' . $f['NAME'], $f);
    $c = $arParts[$BUCKET_ID . $f['NAME']];
    if ($c > 1) {
        $parts = ' (' . GetMessage("MAIN_DUMP_PARTS") . $c . ')';
        $size = $arSize[$BUCKET_ID . $f['NAME']];
    } else {
        $parts = '';
        $size = $f['SIZE'];
    }
    $row->AddField("NAME", $f['NAME'] . $parts);
    $row->AddField("SIZE", CFile::FormatSize($size));
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:dump_list.php

示例4: CDBResult

     $arResult["arRID"][] = $arR["ID"];
     // array of IDs of all results
     if (!$arParams["can_delete_some"]) {
         if ($arParams["F_RIGHT"] >= 20 || $arParams["F_RIGHT"] >= 15 && $arParams["USER_ID"] == $arR["USER_ID"]) {
             $arrRESULT_PERMISSION = CFormResult::GetPermissions($arR["ID"], $v);
             if (in_array("DELETE", $arrRESULT_PERMISSION)) {
                 $arParams["can_delete_some"] = true;
             }
         }
     }
 }
 $rsResults = new CDBResult();
 $rsResults->InitFromArray($arResults);
 $page_split = intval(COption::GetOptionString("form", "RESULTS_PAGEN"));
 $rsResults->NavStart($page_split);
 $arResult["pager"] = $rsResults->GetNavPrint(GetMessage("FORM_PAGES"), false, 'text', false, array('formresult', 'RESULT_ID'));
 if (!$rsResults->NavShowAll) {
     $pagen_from = (intval($rsResults->NavPageNomer) - 1) * intval($rsResults->NavPageSize);
     $arRID_tmp = array();
     if (is_array($arResult["arRID"]) && count($arResult["arRID"]) > 0) {
         $i = 0;
         foreach ($arResult["arRID"] as $rid) {
             if ($i >= $pagen_from && $i < $pagen_from + $page_split) {
                 $arRID_tmp[] = $rid;
                 // array of IDs of results for the page
             }
             $i++;
         }
     }
     $arResult["arRID"] = $arRID_tmp;
 }
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:component.php


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