Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <? if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die(); ?>
- <?
- $this->setFrameMode(true);
- CJSCore::init("sidepanel");
- ?>
- <section class="locations_block">
- <div>
- <ul>
- <? foreach($arResult["ITEMS"] as $arItem): ?>
- <?
- $this->AddEditAction(
- $arItem['ID'],
- $arItem['EDIT_LINK'],
- CIBlock::GetArrayByID(1, "ELEMENT_EDIT"),
- array("SECTION_BUTTONS" => false, "SESSID" => false)
- );
- $this->AddDeleteAction(
- $arItem['ID'],
- $arItem['DELETE_LINK'],
- CIBlock::GetArrayByID(1, "ELEMENT_DELETE"),
- array("CONFIRM" => GetMessage('CT_BNL_ELEMENT_DELETE_CONFIRM'))
- );
- ?>
- <li class="locations_block_item" id="<?=$this->GetEditAreaId($arItem['ID']);?>">
- <a href="<?=$arItem["DETAIL_PAGE_URL"]?>"><?=$arItem["CITY_NAME"]?></a>
- </li>
- <? endforeach; ?>
- </ul>
- </div>
- <div>
- <?$APPLICATION->IncludeComponent(
- "bitrix:main.pagenavigation",
- "modern",
- array(
- "NAV_OBJECT" => $arResult["NAVIGATION"],
- "SEF_MODE" => "N",
- ),
- false
- );?>
- </div>
- </section>
Advertisement
Add Comment
Please, Sign In to add comment