2if(!defined(
"B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==
true)
die();
5if($this->bPostNavigation)
13$showWait =
"BX.addClass(this,'adm-nav-page-active');setTimeout(BX.delegate(function(){BX.addClass(this,'adm-nav-page-loading');this.innerHTML='';},this),500);";
15if($this->NavRecordCount>0)
18<div
class=
"adm-navigation">
19 <div
class=
"adm-nav-pages-block">
21 if($this->NavPageNomer > 1)
24 <a
class=
"adm-nav-page adm-nav-page-prev" href=
"javascript:void(0)" onclick=
"<?echo $this->table_id?>.<?=$nav_func_name?>('<?echo $sJSUrlPath.'?PAGEN_'.$this->NavNum.'='.($this->NavPageNomer-1).'&SIZEN_'.$this->NavNum.'='.$this->NavPageSize.$sQueryString;?>');<?=$showWait?>"></a>
30 <span
class=
"adm-nav-page adm-nav-page-prev"></span>
36 while($NavRecordGroup <= $this->NavPageCount)
38 if($NavRecordGroup == $this->NavPageNomer)
41 <span
class=
"adm-nav-page-active adm-nav-page"><?=$NavRecordGroup?></span>
47 <a href=
"javascript:void(0)" onclick=
"<?=$this->table_id?>.<?=$nav_func_name?>('<?=$sJSUrlPath.'?PAGEN_'.$this->NavNum.'='.$NavRecordGroup.'&SIZEN_'.$this->NavNum.'='.$this->NavPageSize.$sQueryString?>');<?=$showWait?>" class=
"adm-nav-page"><?=$NavRecordGroup?></a>
51 if($NavRecordGroup == 2 && $this->nStartPage > 3)
53 if($this->nStartPage - $NavRecordGroup > 1)
55 $middlePage = ceil(($this->nStartPage + $NavRecordGroup)/2);
57 <a href=
"javascript:void(0)" onclick=
"<?=$this->table_id?>.<?=$nav_func_name?>('<?=$sJSUrlPath.'?PAGEN_'.$this->NavNum.'='.$middlePage.'&SIZEN_'.$this->NavNum.'='.$this->NavPageSize.$sQueryString?>');<?=$showWait?>" class=
"adm-nav-page-separator"><?=$middlePage?></a>
60 $NavRecordGroup = $this->nStartPage;
62 elseif($NavRecordGroup == $this->nEndPage && $this->nEndPage < $this->NavPageCount - 2)
64 if( $this->NavPageCount-1 - $NavRecordGroup > 1)
66 $middlePage = floor(($this->NavPageCount + $this->nEndPage - 1)/2);
68 <a href=
"javascript:void(0)" onclick=
"<?=$this->table_id?>.<?=$nav_func_name?>('<?=$sJSUrlPath.'?PAGEN_'.$this->NavNum.'='.$middlePage.'&SIZEN_'.$this->NavNum.'='.$this->NavPageSize.$sQueryString?>');<?=$showWait?>" class=
"adm-nav-page-separator"><?=$middlePage?></a>
72 $NavRecordGroup = $this->NavPageCount-1;
81 if($this->NavPageNomer < $this->NavPageCount)
84 <a
class=
"adm-nav-page adm-nav-page-next" href=
"javascript:void(0)" onclick=
"<?echo $this->table_id?>.<?=$nav_func_name?>('<?echo $sJSUrlPath.'?PAGEN_'.$this->NavNum.'='.($this->NavPageNomer+1).'&SIZEN_'.$this->NavNum.'='.$this->NavPageSize.$sQueryString;?>');<?=$showWait?>"></a>
90 <span
class=
"adm-nav-page adm-nav-page-next"></span>
95 <div
class=
"adm-nav-pages-total-block"><?
96 echo
$title.
" ".(($this->NavPageNomer-1)*$this->NavPageSize+1).
" – ";
97 if($this->NavPageNomer <> $this->NavPageCount)
98 echo($this->NavPageNomer * $this->NavPageSize);
100 echo($this->NavRecordCount);
101 echo
" ".GetMessage(
"navigation_records_of").
" ".$this->NavRecordCount;
103 <div
class=
"adm-nav-pages-number-block"><span
class=
"adm-nav-pages-number">
104 <?
if(!$this->NavRecordCountChangeDisable)
106 ?><span
class=
"adm-nav-pages-number-text"><?echo
GetMessage(
"navigation_records")?></span><span
class=
"adm-select-wrap"><
select name=
"" class=
"adm-select" onchange=
"if(this[selectedIndex].value=='0'){<?echo $this->table_id?>.<?=$nav_func_name?>('<?echo $sJSUrlPath."?PAGEN_
".$this->NavNum."=1&SHOWALL_
".$this->NavNum."=1
".CUtil::addslashes($strNavQueryString);?>');}else{<?echo $this->table_id?>.<?=$nav_func_name?>('<?echo $sJSUrlPath."?PAGEN_
".$this->NavNum."=1&SHOWALL_
".$this->NavNum."=0
"."&SIZEN_
".$this->NavNum."=
"?>'+this[selectedIndex].value+'<?echo CUtil::addslashes($strNavQueryString);?>');}">
109 if($this->nInitialSize > 0 && !in_array($this->nInitialSize,
$aSizes))
110 array_unshift(
$aSizes, $this->nInitialSize);
111 $reqSize = (int)(
$_REQUEST[
"SIZEN_".$this->NavNum] ?? 0);
112 if($reqSize > 0 && !in_array($reqSize,
$aSizes))
113 array_unshift(
$aSizes, $reqSize);
117 <option value=
"<?echo $size?>"<?
if($this->NavPageSize == $size)echo
' selected="selected"'?>><?echo $size?></option>
124 <option value=
"0"<?
if($this->NavShowAll) echo
' selected="selected"'?>><?echo
GetMessage(
"navigation_records_all")?></option>
128 </
select><?}?></span></span></div>
137 var topWindow = (window.BX||window.parent.BX).PageObject.getRootWindow();
138 var parentWindow = (window.BX||window.parent.BX).PageObject.getParentWindowOfCurrentHost(window);
139 topWindow.BX.adminHistory.put(
'<?=CUtil::JSEscape($sUrlPath.'?PAGEN_
'.$this->NavNum.'=
'.$this->NavPageNomer.'&SIZEN_
'.$this->NavNum.'=
'.$this->NavPageSize.$strNavQueryString)?>', topWindow.BX.proxy((topWindow.<?=$this->table_id?>)?parentWindow.<?=$this->table_id?>.<?=
$nav_func_name?>:<?=$this->table_id?>.<?=
$nav_func_name?>, window.<?=$this->table_id?>), [
'mode',
'table_id']);</script>
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
htmlspecialcharsbx($string, $flags=ENT_COMPAT, $doubleEncode=true)
IncludeModuleLangFile($filepath, $lang=false, $bReturnArray=false)
GetMessage($name, $aReplace=null)
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
foreach( $this->aHeaders as $header) if($this->sort && $bNeedSort $aSizes)