<?php require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/header.php"; if (empty($_GET['URL'])) { $Stocks = new Stocks(); $arFields = $Stocks->getInfo(intval($_GET['ID'])); $url = formUrl($arFields['ID'], $arFields['NAME']); header('HTTP/1.1 301 Moved Permanently'); header("Location: /club/stock/{$url}"); die; } $APPLICATION->IncludeComponent("mytb:club.stock", "", array("STOCK_ID" => intval($_GET["ID"])), false); require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/footer.php";
?> </span> <a href='/club/<?php echo formUrl($var["ID"], implode("-", $var['PROPERTY_TYPE_FACILITY_VALUE']) . " " . $var['NAME']); ?> '><?php echo html_entity_decode($var["NAME"]); ?> </a> </strong> <?if(intval($arResult["stocksCount"][$var["ID"]])>0):?> <div class="pull-right akcia_count"> <a href="/club/<?php echo formUrl($var["ID"], implode("-", $var['PROPERTY_TYPE_FACILITY_VALUE']) . " " . $var['NAME']); ?> /#stock"><?php echo $arResult["stocksCount"][$var["ID"]]; ?> <span><?php echo declOfNum($arResult["stocksCount"][$var["ID"]], array("акция", "акции", "акций")); ?> </span></a> </div> <?endif;?> <table class="club_info_shot"> <?if (!empty($var["PROPERTY_METRO_VALUE"])): ?> <tr> <th width="120px;"> Метро
<? require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/header.php"); ?> <? if (empty($_GET['URL'])) { $Article = new Article(intval($_GET['ARTICLE_ID'])); $article_contant=$Article->getItem(); $url = formUrl($article_contant[$_GET['ARTICLE_ID']]['ID'], $article_contant[$_GET['ARTICLE_ID']]['NAME']); header('HTTP/1.1 301 Moved Permanently'); header("Location: /article/{$article_contant[$_GET['ARTICLE_ID']]['SECTION']['CODE']}/{$url}/"); die(); } ?> <?$APPLICATION->IncludeComponent("mytb:article", "", array( "ARTICLE_ID" => $_GET['ARTICLE_ID'] ), false);?> <? require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/footer.php"); ?>
<? if (count($arResult['stockList']) > 0): ?> <div id="list"> <table class="table table-striped"> <?foreach ($arResult['stockList'] as $val => $var): ?> <? $club = $arResult['club'][$stock["PROPERTY_CLUB_ID_VALUE"]]; $arFile = CFile::GetFileArray($var["DETAIL_PICTURE"]); $partner = Kupon::getDataServise($var['TAGS']); $url = formUrl($var['ID'],$var['NAME']); ?> <tr> <td> <div class="pull-left" style="margin:0px 10px 10px 0px"> <img class="thumbnail" src="<?php echo imgurl($arFile["SRC"], array("w" => 300)); ?> "/> </div> <a href="/club/stock/<?php echo $url; ?> " itemprop="event" class="stock_title" title="<?php echo $partner['name']; ?> : <?php echo $var["NAME"]; ?>
» </h1> <br/> <a href="#" class="btn btn-danger pull-right btn-large" id="subs_ok" data-original-title="Вы сможете моментально узнавать о появлении акций проводимых в <b>«<?php echo str_replace('"', "", $arResult['club']['NAME']); ?> »</b>" data-auth="<?if ($USER->IsAuthorized()) { echo "yes"; } else { echo "no"; }?>">Подписаться на акции «<?php echo $arResult['club']['NAME']; ?> »</a> <a href="/club/<?php echo formUrl($arResult['club']["ID"], implode("-", $arResult['club']['PROPERTY_TYPE_FACILITY_VALUE']) . " " . $arResult['club']['NAME']); ?> ">На страницу «<?php echo $arResult['club']['NAME']; ?> »</a> <br/> <br/> <br/> <input type="hidden" id="time_now" value="<?php echo date("d F, Y, H:m:s"); ?> "> <input type="hidden" id="clubID" value="<?php echo $arResult['club']['ID']; ?>
<img src="<?php echo imgurl($arFile["SRC"], array("w" => 400, "h" => 270)); ?> " width="400px" height="270px"/> </a> </div><div style="display: inline-block;width:190px"> <div class="tr-back-shadow"> <h2>Скидка <?php echo $var["PROPERTY_DISCOUNT_VALUE"]; ?> %</h2> <?$url=formUrl($var["PROPERTY_CLUB_ID_VALUE"],implode("-",$arResult['clubList'][$var["PROPERTY_CLUB_ID_VALUE"]]['PROPERTY_TYPE_FACILITY_VALUE'])." ".$arResult['clubList'][$var["PROPERTY_CLUB_ID_VALUE"]]['NAME'])?> <a href="/club/<?php echo $url; ?> /" title="<?php echo $arResult['clubList'][$var["PROPERTY_CLUB_ID_VALUE"]]['NAME']; ?> ">«<?php echo $arResult['clubList'][$var["PROPERTY_CLUB_ID_VALUE"]]['NAME']; ?> »</a> <div class="time_stok"> <div> до конца акции:<br/> <span class="timer" data-active="<?php echo date("d F, Y, H:m:s", strtotime($var["ACTIVE_TO"]));
<?php require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/header.php"; if (intval($_GET['ID']) != 0) { if (empty($_GET['URL'])) { $club = new Club(intval($_GET['ID'])); $arFields = $club->getInfo(array("arSelect" => array("ID", "NAME", "PROPERTY_TYPE_FACILITY")), true); $url = formUrl($arFields['ID'], implode("-", $arFields['PROPERTY_TYPE_FACILITY_VALUE']) . " " . $arFields['NAME']); header('HTTP/1.1 301 Moved Permanently'); header("Location: /club/{$url}/"); die; } $APPLICATION->IncludeComponent("mytb:club", "detail", array("ID" => $_GET['ID'], "AUTH" => $USER->IsAuthorized(), "CACHE_TIME" => 600), false); } else { $APPLICATION->SetTitle("Список клубов, боров ресторанов"); $APPLICATION->IncludeComponent("mytb:club.list", "home", array("CACHE_TIME" => 600), false); } require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/footer.php";