Guest User

Untitled

a guest
Feb 17th, 2021
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.23 KB | None | 0 0
  1. <? if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die(); ?>
  2.  
  3. <?
  4. $this->setFrameMode(true);
  5. CJSCore::init("sidepanel");
  6.  
  7. ?>
  8.  
  9. <section class="locations_block">
  10.     <div>
  11.         <ul>
  12.         <? foreach($arResult["ITEMS"] as $arItem): ?>
  13.             <?
  14.             $this->AddEditAction(
  15.                 $arItem['ID'],
  16.                 $arItem['EDIT_LINK'],
  17.                 CIBlock::GetArrayByID(1, "ELEMENT_EDIT"),
  18.                 array("SECTION_BUTTONS" => false, "SESSID" => false)
  19.             );
  20.             $this->AddDeleteAction(
  21.                 $arItem['ID'],
  22.                 $arItem['DELETE_LINK'],
  23.                 CIBlock::GetArrayByID(1, "ELEMENT_DELETE"),
  24.                 array("CONFIRM" => GetMessage('CT_BNL_ELEMENT_DELETE_CONFIRM'))
  25.             );
  26.             ?>
  27.             <li class="locations_block_item" id="<?=$this->GetEditAreaId($arItem['ID']);?>">
  28.                 <a href="<?=$arItem["DETAIL_PAGE_URL"]?>"><?=$arItem["CITY_NAME"]?></a>
  29.             </li>
  30.         <? endforeach; ?>
  31.         </ul>
  32.     </div>
  33.     <div>
  34.     <?$APPLICATION->IncludeComponent(
  35.        "bitrix:main.pagenavigation",
  36.        "modern",
  37.        array(
  38.           "NAV_OBJECT" => $arResult["NAVIGATION"],
  39.           "SEF_MODE" => "N",
  40.        ),
  41.        false
  42.     );?>
  43.     </div>
  44.    
  45. </section>
Advertisement
Add Comment
Please, Sign In to add comment