/bitrix_personal/templates/beta2.citrus.ua/components/bitrix/catalog/goods.citrus.ua/bitrix/catalog.element/.default/template.php
PHP | 2435 lines | 1779 code | 252 blank | 404 comment | 194 complexity | 06279264f518135bd802a53b88c1d79b MD5 | raw file
Possible License(s): BSD-3-Clause
Large files files are truncated, but you can click here to view the full file
- <?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
- <?php
- $googIblockSection = 0;
- $sql = "SELECT bise.`IBLOCK_SECTION_ID`
- FROM `b_iblock_section_element` AS bise
- JOIN `b_iblock_section` AS bis ON bis.`ID` = bise.`IBLOCK_SECTION_ID` AND bis.`NAME` != 'Все товары'
- WHERE bise.`IBLOCK_ELEMENT_ID` = '{$arResult["ID"]}'
- LIMIT 1";
- $result = mysql_query($sql);
- if (mysql_num_rows($result) > 0) {
- $row = mysql_fetch_assoc($result);
- $arrRequestUri = explode('/', $_SERVER['REQUEST_URI']);
- $googIblockSection = $row['IBLOCK_SECTION_ID'];
- if ($row['IBLOCK_SECTION_ID'] != $arrRequestUri[4]) {
- $arrRequestUri = explode('/', $_SERVER['REQUEST_URI']);
- if ($_GET['acc']==1){$redirectUrl = '/' . $arrRequestUri[1] . '/' . $arrRequestUri[2] . '/' . $arrRequestUri[3] . '/'
- . $row['IBLOCK_SECTION_ID'] . '/' . $arResult["ID"]. '?acc=1';}
- else {$redirectUrl = '/' . $arrRequestUri[1] . '/' . $arrRequestUri[2] . '/' . $arrRequestUri[3] . '/'
- . $row['IBLOCK_SECTION_ID'] . '/' . $arResult["ID"];}
- /*$redirectUrl = '/' . $arrRequestUri[1] . '/' . $arrRequestUri[2] . '/' . $arrRequestUri[3] . '/'
- . $row['IBLOCK_SECTION_ID'] . '/' . $arResult["ID"];
- */
- header("HTTP/1.1 301 Moved Permamently");
- header("Location: http://" . $_SERVER['HTTP_HOST'] . $redirectUrl);
- die();
- }
- }
- mysql_free_result($result);
- require $_SERVER['DOCUMENT_ROOT'] . '/bitrix/templates/main-template/catalog-functions.php';
- $objImageGd = new Vi_Image_Gd();
- $arrIblockNames = getIblocksNames_forGoodsNames();
- $arrIblock = getIblocksNames_howItIsInDB();
- ?>
- <?php
- //-----------------------------------------------------------------------------------------------
- // получаем названия секций товаров
- $arrSectionsName = array();
- $iblockId = (int) $arResult["IBLOCK_ID"];
- $sql = "SELECT `ID`, `NAME`
- FROM `b_iblock_section`
- WHERE `IBLOCK_ID` = '{$iblockId}'";
- $result = mysql_query($sql);
- if (mysql_num_rows($result) > 0) {
- while ($row = mysql_fetch_assoc($result)) {
- $id = (int) $row['ID'];
- $arrSectionsName[$id] = stripslashes($row['NAME']);
- }
- }
- $sql = "SELECT `ID`
- FROM `b_iblock_section`
- WHERE `IBLOCK_ID` = '{$iblockId}'
- AND `NAME` = 'Все товары'";
- $result = mysql_query($sql);
- if (mysql_num_rows($result) > 0) {
- $row = mysql_fetch_assoc($result);
- $id2 = (int) $row['ID'];
- }
- mysql_free_result($result);
- $arrRequestUri = explode('/', $_SERVER['REQUEST_URI']);
- $pathToDescription = $_SERVER['DOCUMENT_ROOT'] . '/' . $arrRequestUri[1] . '/' . $arrRequestUri[2] . '/' . $arrRequestUri[3];
- global $pageTitle, $pageKeywords, $pageDescription;
- if (is_file($pathToDescription . '/.section.php')) {
- include $pathToDescription . '/.section.php';
- $pageH1 = $arrIblockNames[$arResult["IBLOCK_ID"]] . ' ' . $arResult["NAME"];
- $pageN = $arResult["NAME"];
- $APPLICATION->SetPageProperty("title", $pageH1.', купить в Одессе, Киеве, Украине - citrus.ua');
- $APPLICATION->SetPageProperty("description", "Только у нас Вы можете купить $pageH1 по разумной цене. Звоните прямо сейчас! (048)701-80-10");
- }
- // формируем хлебные крошки
- require $_SERVER['DOCUMENT_ROOT'] . '/bitrix/templates/main-template/breadcrumbs.php';
- $arrCrumbs = array();
- $arrCrumbs[] = array(
- 'link' => 'http://www.citrus.ua/',
- 'name' => 'Главная'
- );
- $arrCrumbs[] = array(
- 'link' => 'http://www.citrus.ua/shop/goods/' . $arrRequestUri[3] . '/' . $id2 . '/',
- 'name' => $catPrefixName
- );
- $arrCrumbs[] = array(
- 'link' => 'http://www.citrus.ua/shop/goods/' . $arrRequestUri[3] . '/' . $arrRequestUri[4] . '/',
- 'name' => $arrSectionsName[$arrRequestUri[4]]
- );
- $arrCrumbs[] = array(
- /*'link' => 'http://www.citrus.ua/shop/goods/' . $arrRequestUri[3] . '/' . $arrRequestUri[4] . '/' . $arResult["ID"],*/
- 'name' => $arResult["NAME"]
- );
- echo getBreadcrumbsXhtml($arrCrumbs);
- //-------------------------------------------------------------------------------------------------------------------------
- ?>
- <div class="catalog-element">
- <style type="text/css">
- .catalog-element {
- ___width: 960px;
- }
- .catalog-element {
- overflow: inherit;
- }
- .breadcrumbs {
- float: inherit;
- }
- </style>
- <?php
- echo "<div class=\"hreview-aggregate\"><div class='top_h1'><span class=\"fn\"><h1>" . $pageH1 . "</h1></span></div>";
- //----------------------------------новый шаблон----------------------------
- ?>
- <!-- <script src="http://code.jquery.com/jquery-1.6.3.min.js"></script> -->
- <script>
- $(document).ready(function() {
- // $(".tab_all").hide(); // Initially hide all content
- // $("#tabs li:first").attr("id","current"); // Activate first tab
- // $(".tab_all:first").fadeIn(); // Show first tab content
- $(".acc").attr("id","current"); // Activate first tab
- // $(".tab_all .acc").css("display", "block"); // Show first tab content
- $(".tab_all").css("display", "none");; // Show first tab content
- // $(".acc").css("display", "block"); // Show first tab content
- $(".acc1").fadeIn();; // Show first tab content
- $('#tabs a').click(function(e) {
- e.preventDefault();
- $(".tab_all").hide(); //Hide all content
- $("#tabs li a").attr("id",""); //Reset id's
- //$(this).parent().attr("id","current"); // Activate this
- $(this).attr("id","current"); // Activate this
- $('#' + $(this).attr('tabl')).fadeIn(); // Show content for current tab
- });
- $('a[rel=external]').attr('target','_blank');
- });
- </script>
- <ul id="tabs">
- <?
- if ($_GET['acc']==1){?><li><a href="#" id="tab1" tabl="tab1" title="Витрина">Витрина</a></li><?}
- else {?><li><a class="acc" href="#" id="tab1" tabl="tab1" title="Витрина">Витрина</a></li><?}
- ?>
- <!--<li><a href="#" id="tab1" tabl="tab1" title="Витрина">Витрина</a></li>-->
- <li><a href="#" id="tab2" tabl="tab2" title="Характеристики">Характеристики</a></li>
- <li><a href="#" id="tab3" tabl="tab3" title="Отзывы">Отзывы</a></li>
- <li><a href="#" id="tab4" tabl="tab4" title="Сравнить">Сравнить</a></li>
- <!--<li><a href="#" id="tab5" tabl="tab5" title="Похожие товары">Похожие товары</a></li>-->
- <?
- if ($_GET['acc']==1){?><li><a class="acc" href="#" id="tab5" tabl="tab5" title="Акессуары">Аксессуары</a></li><?}
- else {?><li><a href="#" id="tab5" tabl="tab5" title="Акессуары">Аксессуары</a></li><?}
- ?>
- <!--
- <li><a class="acc" href="#" id="tab6" tabl="tab6" title="Акессуары">Акессуары</a></li>
- -->
- </ul>
- <div id="content_m">
- <?
- if ($_GET['acc']==1){?><div class="tab_all" id="tab1"><?}
- else {?><div class="tab_all acc1" id="tab1"><?}
- ?>
- <!--
- <div class="tab_all" id="tab1">
- -->
- <!------------------------------------------------------------------------------------------------>
- <table class="content-top" width="100%" border="0">
- <tr>
- <td class="big-photo33">
- <?php
- //echo '<div class="big-photo">';
- $label = 0;
- /*if ($arResult["IBLOCK_ID"] == 22) {
- if (substr_count($arResult["NAME"], 'Sony') || substr_count($arResult["NAME"], 'SONY')) {
- $label = 3;
- }
- }*/
- foreach ($arResult['PROPERTIES']['STATE']['VALUE'] as $stateValue) {
- if ($stateValue == 'Новинка') {
- $label = 3000;
- echo '<span class="vm_new_b vm_sd_b"></span>';
- }
- if ($stateValue == 'Рапродажа') {
- $label = 1000;
- echo '<span class="vm_best_price_b vm_sd_b"></span>';
- }
- if ($stateValue == 'Скоро в продаже') {
- $label = 5000;
- echo '<span class="vm_soon_b vm_sd_b"></span>';
- }
- if ($stateValue == 'Специальное предложение') {
- $label = 4000;
- echo '<span class="vm_action_b vm_sd_b"></span>';
- }
- if ($stateValue == 'Top 10') {
- $label = 8000;
- echo '<span class="vm_hit_b vm_sd_b"></span>';
- }
- if ($stateValue == 'Акция Цитрус-Обмен') {
- $label = 9000;
- echo '<span class="vm_action_b vm_sd_b"></span>';
- }
- if ($stateValue == 'Две сим-карты') {
- $label = 10000;
- echo '<span class="vm_2sim_b vm_sd_b"></span>';
- }
- }
- // формируем строку Id для галереи
- //echo "<pre>";
- //print_r ($arResult["MORE_PHOTO"]);
- //echo "</pre>";
- foreach ($arResult["MORE_PHOTO"] as $PHOTO) {
- $i+=1;
- $id_str[$i] = $PHOTO["ID"];
- }
- $id_st = implode(",", $id_str);
- echo '<div class="big-photo">';
- if (count($arResult["MORE_PHOTO"]) > 0) {
- echo '<a rel="external" href="/gallery/index.php?id='.$id_st.'¤t='.$arResult["MORE_PHOTO"]["0"]["ID"].'">';
- } else {
- echo '<a rel="external" href="/gallery/index.php?id¤t='.$arResult["ID"].'">';
- }
- //echo '<a href="/gallery/index.php?id='.$id_st.'¤t='.$arResult["MORE_PHOTO"]["0"]["ID"].'">';
- if ($arResult["ID"]==33495
- OR $arResult["ID"]==33499
- OR $arResult["ID"]==33497
- OR $arResult["ID"]==33501
- OR $arResult["ID"]==51844
- OR $arResult["ID"]==51840
- OR $arResult["ID"]==51838
- OR $arResult["ID"]==51842)
- {
- if (is_array($arResult["DETAIL_PICTURE"])) {
- // если надо ватемарк на фотографии, то поменять с нижней
- //echo '<img border="0" src="' . $objImageGd->getImage($arResult["DETAIL_PICTURE"]["SRC"], 200, 400, $label)
- //echo '<img width="200" border="0" src="' . $objImageGd->getImage($arResult["DETAIL_PICTURE"]["SRC"], 200, 400, 0)
- $el_photo=$objImageGd->getImage($arResult["DETAIL_PICTURE"]["SRC"], 480, 370, 0);
- echo '<img border="0" src="' . $objImageGd->getImage($arResult["DETAIL_PICTURE"]["SRC"], 480, 370, 0)
- . '" alt="' . $arrIblock[$arResult["IBLOCK_ID"]] . ' - ' . $arResult["NAME"]
- . '" title="' . $arResult["NAME"] . '" />';
- } elseif (is_array($arResult["PREVIEW_PICTURE"])) {
- $el_photo=$objImageGd->getImage($arResult["PREVIEW_PICTURE"]["SRC"], 480, 370, 0);
- // если надо ватемарк на фотографии, то поменять с нижней
- //echo '<img border="0" src="' . $objImageGd->getImage($arResult["PREVIEW_PICTURE"]["SRC"], 200, 400, $label)
- echo '<img width="200" border="0" src="' . $objImageGd->getImage($arResult["PREVIEW_PICTURE"]["SRC"], 480, 370, 0)
- . '" alt="' . $arrIblock[$arResult["IBLOCK_ID"]] . ' - ' . $arResult["NAME"]
- . '" title="' . $arResult["NAME"] . '" />';
- }
- }
- else {
- if (is_array($arResult["DETAIL_PICTURE"])) {
- // если надо ватемарк на фотографии, то поменять с нижней
- //echo '<img border="0" src="' . $objImageGd->getImage($arResult["DETAIL_PICTURE"]["SRC"], 200, 400, $label)
- //echo '<img width="200" border="0" src="' . $objImageGd->getImage($arResult["DETAIL_PICTURE"]["SRC"], 200, 400, 0)
- $el_photo=$objImageGd->getImage($arResult["DETAIL_PICTURE"]["SRC"], 200, 400, 0);
- echo '<img border="0" src="' . $objImageGd->getImage($arResult["DETAIL_PICTURE"]["SRC"], 200, 400, 0)
- . '" alt="' . $arrIblock[$arResult["IBLOCK_ID"]] . ' - ' . $arResult["NAME"]
- . '" title="' . $arResult["NAME"] . '" />';
- } elseif (is_array($arResult["PREVIEW_PICTURE"])) {
- $el_photo=$objImageGd->getImage($arResult["PREVIEW_PICTURE"]["SRC"], 200, 400, 0);
- // если надо ватемарк на фотографии, то поменять с нижней
- //echo '<img border="0" src="' . $objImageGd->getImage($arResult["PREVIEW_PICTURE"]["SRC"], 200, 400, $label)
- echo '<img width="200" border="0" src="' . $objImageGd->getImage($arResult["PREVIEW_PICTURE"]["SRC"], 200, 400, 0)
- . '" alt="' . $arrIblock[$arResult["IBLOCK_ID"]] . ' - ' . $arResult["NAME"]
- . '" title="' . $arResult["NAME"] . '" />';
- }
- }
- echo "</a>";
- //БАННЕР ПОД ФОТО
- ?>
- <div class="banner_bottom_photo"><center>
- <?php echo ($arResult['PROPERTIES']['LABEL5']['~VALUE']['TEXT']); ?>
- </center>
- </div>
- <?php
- echo '</div>';
- ?>
- </td>
- <td rowspan="5" style="height: 100%;" width="420px;">
- <!-- ------------------------------ таблица справа --->
- <table class="content-right" width="100%" border="0">
- <tr>
- <td valign="top" align="right">
- <!-- блок с ценами -->
- <?php
- $xHtml33 = '';
- $xHtml44 = '';
- $off_line= 0 ;
- $lending_line = 0 ;
- foreach ($arResult["PRICES"] as $code => $arPrice) {
- if($arPrice["VALUE"] < 1 OR $arPrice["VALUE"] > 2 ){
- if ($arResult['PROPERTIES']['OBMEN']['VALUE']=='') {
- //Вывод цены розницы
- if ($code == 'RETAIL') {
- $xHtml33 .= ' ';
- if ($arPrice["DISCOUNT_VALUE"] < $arPrice["VALUE"]) {
- $xHtml33 .= '<s>' . $arPrice["PRINT_VALUE"] . '</s>';
- $newphrase = str_replace("грн.", "<span class='price34'>грн</span>", $arPrice["PRINT_DISCOUNT_VALUE"]);
- $newphrase = str_replace(".00", "", $newphrase);
- $xHtml33 .= '<span class="catalog-price trrtr">' . $newphrase . '</span>';
- $price_credit = $arPrice["DISCOUNT_VALUE"];
- } else {
- $newphrase = str_replace("грн.", "<span class='price34'>грн</span>", $arPrice["PRINT_VALUE"]);
- $newphrase = str_replace(".00", "", $newphrase);
- $xHtml33 .= '<span class="catalog-price trrtr">' . $newphrase . '</span>';
- $price_credit = $arPrice["VALUE"];
- }
- }
- } else {
- //Вывод цены Акционного поля
- if ($code == 'STOCK') {
- $xHtml33 .= ' ';
- if ($arPrice["DISCOUNT_VALUE"] < $arPrice["VALUE"]) {
- $xHtml33 .= '<s>' . $arPrice["PRINT_VALUE"] . '</s>';
- $newphrase = str_replace("грн.", "<span class='price34'>грн</span>", $arPrice["PRINT_DISCOUNT_VALUE"]);
- $newphrase = str_replace(".00", "", $newphrase);
- $xHtml33 .= '<span class="catalog-price trrtr">' . $newphrase . '</span>';
- $price_credit = $arPrice["DISCOUNT_VALUE"];
- } else {
- $newphrase = str_replace("грн.", "<span class='price34'>грн</span>", $arPrice["PRINT_VALUE"]);
- $newphrase = str_replace(".00", "", $newphrase);
- $xHtml33 .= '<span class="catalog-price trrtr">' . $newphrase . '</span>';
- $price_credit = $arPrice["VALUE"];
- }
- }
- }
- $code_s = 'OFFLINE';
- if ($arResult['PROPERTIES']['OBMEN']['VALUE']=='' && $code == 'OFFLINE' ) {
- $code_s = 'OFFLINE';
- }elseif ($arResult['PROPERTIES']['OBMEN']['VALUE']<>'' && $code == 'OFFLINE'){
- $code_s = 'RETAIL';
- }elseif ($arResult['PROPERTIES']['OBMEN']['VALUE']<>'' && $code == 'RETAIL'){
- $code_s = 'RETAIL';
- }
- // echo $code . "=" . $code_s . "<br />";
- // if ($code == 'OFFLINE' && $arResult["PRICES"]['RETAIL']["VALUE"] < $arPrice["VALUE"] && $arResult["PRICES"]['LENDING']["VALUE"]=='') {
- if (($code == 'OFFLINE' AND $arResult['PROPERTIES']['OBMEN']['VALUE']=='') OR ($code == 'RETAIL' AND $arResult['PROPERTIES']['OBMEN']['VALUE']<>'')) {
- // echo "=======";
- $xHtml44 .= ' ';
- if ($arPrice["DISCOUNT_VALUE"] < $arPrice["VALUE"]) {
- $price_credit = $arResult["PRICES"][$code_s]["DISCOUNT_VALUE"];
- $newphrase = str_replace("грн.", "", $arResult["PRICES"][$code_s]["PRINT_DISCOUNT_VALUE"]);
- $newphrase = str_replace(".00", "", $newphrase);
- if ($arResult['PROPERTIES']['LENDING']['VALUE']<>'да' && $arResult['PROPERTIES']['OBMEN']['VALUE'] == '' ) {
- $xHtml44 .= '<span class="catalog-price-offline dss"><strike>' . $newphrase . '</strike></span>';
- } else {
- $xHtml44 .= '<span class="catalog-price-offline dss">' . $newphrase . '</span>';
- }
- } else {
- $price_credit =$arResult["PRICES"][$code_s]["VALUE"];
- $newphrase = str_replace("грн.", "", $arResult["PRICES"][$code_s]["PRINT_VALUE"]);
- $newphrase = str_replace(".00", "", $newphrase);
- if ($arResult['PROPERTIES']['LENDING']['VALUE']<>'да' && $arResult['PROPERTIES']['OBMEN']['VALUE'] == '') {
- //$xHtml44 .= '<span class="catalog-price-offline dss"><strike>' . $newphrase . '</strike></span>'; зачеркнутая цена
- } else {
- $xHtml_bez_nal .= '<tr> <td colspan="2" class="ttte45"><span class="text_1120">цена б/н</span>
- <span class="catalog-price-offline dss">' . $newphrase . '</span><span class="price34">грн</span>
- </td>
- <td>
- </td>
- </tr>';
- }
- }
- }
- }
- else{
- // $xHtml33 .= '<span class="catalog-price trrtr2">' . 'Уже скоро!' . '</span>';
- $xHtml33 .= '<style type="text/css"> .top44 {display: none;} </style>';
- //$xHtml33 .= '<style type="text/css"> .element-cart-btn {display: none;} </style>';
- }
- }
- ?>
- <table cellpadding="0" cellspacing="0" class="yyy" width="330" border="0">
- <tr>
- <td colspan="2" class="deliv_tab4" align="left">
- <?php
- if(($arPrice["VALUE"] < 1 OR $arPrice["VALUE"] > 2 )&&($arResult["CAN_BUY"])) {
- ?><img src="/img/vnalichii.png" /><span class="nalich">Есть в наличии</span><?
- } else {
- ?><img src="/img/netvnalichii.png" /><span class="nalichno">Нет в наличии</span><?
- }
- ?>
- </td>
- <td align="right" class="deliv_tab4">
- <?php
- echo "<span class='code_deliv'>Код товара : ".$arResult["ID"]."<span>";
- ?>
- </td>
- </tr>
- <tr>
- <!-- <td class="yyy1">
- <div class="top44">
- <span class="d44">цена</span>
- <?php
- echo '<span class="d45">';
- if ($arResult['PROPERTIES']['OBMEN']['VALUE'] <> '' && $arResult["PRICES"]['STOCK']["VALUE"]<> '' ) {
- // если стоит значение "Акционная цена" меняем местами надписи
- echo 'в нашем магазине';
- } else {
- if ($arResult["PRICES"]['OFFLINE']["VALUE"] <> '' && $arResult['PROPERTIES']['LENDING']['VALUE']=='да' ) {
- echo 'цена б/н, кредит';
- }
- if ($arResult["PRICES"]['OFFLINE']["VALUE"] <> '' && $arResult['PROPERTIES']['LENDING']['VALUE']<>'да' ) {
- echo 'в обычном магазине';
- }
- }
- echo '</span>';
- // нижняя строка
- //if ($arResult["PRICES"]['OFFLINE']["VALUE"] <> '' && $arResult['PROPERTIES']['OBMEN']['VALUE']<>'' ) {
- if ($arResult['PROPERTIES']['OBMEN']['VALUE']<>'' ) {
- echo '<strong>' . $arResult['PROPERTIES']['OBMEN']['VALUE'] . '</strong>';
- } else {
- echo '<span class="d46">в нашем магазине</span>';
- }
- // if ($arResult["PRICES"]['LENDING']["VALUE"]<>'') {
- // echo '<span class="d49">цена б/н, кредит</span>';
- // }
- ?>
- </div>
- </td>-->
- <td class="yyy2" colspan="2">
- <?php
- echo $xHtml44;
- echo $xHtml33;
- ?>
- </td>
- <td align="right" class="yyy2">
- <?php
- //------------------------------------------------------------------------------------------------------------------
- $arrMapsModelsnexus7 = array(39978);
- $arrMapsModelsnexus72 = array(41530);
- $arrMapsModels = array(36216);
- $arrMapsModelsHTCX = array(35464,35452);
- $arrMapsModelsGalaxyS3 = array(37321,37317);
- $arrMapsModelsHTCC = array(35470,35468);
- $arrMapsModelsdesirec = array(37557,37555,37550);
- $arrMapsModelsdesirev = array(40307);
- echo '<ul class="element-cart-btn">';
- if($arPrice["VALUE"] < 1 OR $arPrice["VALUE"] > 2 ){
- if ($arResult["CAN_BUY"]) {
- echo '<li><noindex><a href="' . $arResult["BUY_URL"] . '" class="link-by" rel="nofollow"><span>'
- . GetMessage("CATALOG_BUY") . '</span></a></noindex></li>';
- } else {
- if (in_array($arResult["ID"], $arrMapsModels)) {
- echo '<li><noindex><a href="http://www.citrus.ua/order_htc_one_v" class="link-order"><span>оставить предзаказ</span></a></noindex></li>';
- } elseif (in_array($arResult["ID"], $arrMapsModelsHTCX )) {
- echo '<li><noindex><a href="http://www.citrus.ua/order_htc_one_x" class="link-order"><span>оставить предзаказ</span></a></noindex></li>';
- } elseif (in_array($arResult["ID"], $arrMapsModelsGalaxyS3 )) {
- echo '<li><noindex><a href="http://www.citrus.ua/order_galaxy_s_3" class="link-order"><span>оставить предзаказ</span></a></noindex></li>';
- } elseif (in_array($arResult["ID"], $arrMapsModelsHTCC)) {
- echo '<li><noindex><a href="http://www.citrus.ua/madonna_order" class="link-order"><span>оставить предзаказ</span></a></noindex></li>';
- } elseif (in_array($arResult["ID"], $arrMapsModelsdesirec)) {
- echo '<li><noindex><a href="http://www.citrus.ua/order_desire_c" class="link-order"><span>оставить предзаказ</span></a></noindex></li>';
- } elseif (in_array($arResult["ID"], $arrMapsModelsdesirev)) {
- echo '<li><noindex><a href="http://www.citrus.ua/order_desire_v" class="link-order"><span>оставить предзаказ</span></a></noindex></li>';
- } elseif (in_array($arResult["ID"], $arrMapsModelsnexus7)) {
- echo '<li><noindex><a href="http://www.citrus.ua/nexus_7" class="link-order"><span>оставить предзаказ</span></a></noindex></li>';
- } elseif (in_array($arResult["ID"], $arrMapsModelsnexus72)) {
- echo '<li><noindex><a href="http://www.citrus.ua/nexus_7_16" class="link-order"><span>оставить предзаказ</span></a></noindex></li>';
- } else {
- echo '<li><noindex><a href="/preorder/?ID=' . $arResult["ID"]
- . '" class="link-order" rel="nofollow"><span>оставить предзаказ</span></a></noindex></li>';
- }
- }
- }
- else {
- if (in_array($arResult["ID"], $arrMapsModelsnexus7)) {
- echo '<li><noindex><a href="http://www.citrus.ua/nexus_7" class="link-order"><span>оставить предзаказ</span></a></noindex></li>';
- } elseif (in_array($arResult["ID"], $arrMapsModelsnexus7)) {
- echo '<li><noindex><a href="http://www.citrus.ua/nexus_7" class="link-order"><span>оставить предзаказ</span></a></noindex></li>';
- } else {
- echo '<li><noindex><a href="/preorder/?ID=' . $arResult["ID"]
- . '" class="link-know" rel="nofollow"><span>уведомить о наличии</span></a></noindex></li>';
- // . '" class="link-order iframe" rel="nofollow"><span>Заказать</span></a></noindex></li>';
- }
- }
- echo '</ul>';
- ?>
- <!-- конпка купить -->
- </td>
- </tr>
-
- <?
- $arGroups = CUser::GetUserGroup($USER->GetID());
- //print_r($arGroups);
- $flgr=0;
- $fprice=0;
- for ($i=0; $i < count($arGroups); $i++)
- {
- if ($arGroups[$i] == 1){$flgr=1;}
- //if ($arGroups[$i] == 12){$flgr=1;}
- if ($arGroups[$i] == 1){$flgr=1;}
- }
- //$flgr=1;
- include_once('geo.php');
- $o = array(); // опции. необзятательно.
- $geo = new Geo($o); // запускаем класс
- $geost = $geo->get_value('city', true);
- if ($geost=="Киев" OR $geost=="Одесса"){$flgr=1;}
- $db = mysql_connect('localhost', 'citrus_store', 'vSpYAxRujDfNtneX11a');
- mysql_select_db('citrus_store', $db);
- $sql="SELECT bie.ID, bcp.PRICE FROM b_iblock_element as bie,
- b_catalog_price as bcp
- WHERE (bie.ID=bcp.PRODUCT_ID
- AND bcp.CATALOG_GROUP_ID=1
- AND bie.ID=".$arResult["ID"].")";
- $result = mysql_query($sql, $db);
- while ($r = mysql_fetch_array($result))
- {
- $el_price=$r['PRICE'];
-
- if ($el_price>1){$fprice=1;}
- }
- if ($arResult["ID"]==33524
- OR $arResult["ID"]==33525
- OR $arResult["ID"]==33526
- OR $arResult["ID"]==33527
- OR $arResult["ID"]==33528
- OR $arResult["ID"]==33661)
- {
- $flgr=0;
- }
- if ($flgr==1 AND $fprice==1)
- {
- ?>
-
-
- <!-- конпка кредита -->
- <tr>
- <td class="yyy2">
- <span style="color:#FFF" class="text_credit">кредит</span>
- </td>
- <td class="yyy2">
- <script src="/js2/loan-math.js"></script>
- <script src="/js2/products.js"></script>
- <script type="text/javascript">
- function showLoanInfo2(L1) {
- var
- S =('<div class="text_credit_d">'+Number(Amount2Str(L1.payment)).toFixed(0)+' </div>');
- S +=('<div class="text_credit_ccccc"><table class="table_cccc"><tr><td class="table_cccc1">грн</td></tr><tr><td class="table_cccc2">мес</td></tr></table></div>');
- document.write(S);
- }
- var loan = new Loan("15333.001", <?=$price_credit?>, 0, 24);
- showLoanInfo2(loan);
- </script>
- <!--
- <script>
- try {
- document.write("<hr/>");
- // Расчитать кредит: Заказ 100 грн., Аванс 0 грн., срок 3 месяця -- обходим ограничение по меньшей сумме кредита
- var product = products["1502.001"];
- var prvMinAmount = product.minAmount;
- product.minAmount = 0.01;
- var L = new Loan(product, 100, 0, 3);
- product.minAmount = prvMinAmount;
- showLoanInfo( L );
- } catch ( e ) {
- // ecли параметры кредита не разрешают сделать расчет, то генерируется исключение
- document.write("<div style='color:red; font-weight: bold'>"+e.message+"</div>");
- }
- </script>-->
- </td>
- <td align="right" class="yyy2">
- <noindex>
- <a rel="nofollow" class="link-credit jqModal" href="#"><span>Кредит</span></a>
- </noindex>
- </td>
- </tr>
- <?
- }
- ?>
- <!-- кнопка кредита окончание блока -->
- <?php
- // цена безналичная
- echo $xHtml_bez_nal;
- ?>
-
-
- <tr>
- <td colspan="3" style="padding:0px 0 0 0" align="right">
- </td>
- </tr>
- <tr>
- </tr>
- </table>
- <!-- блок с ценами -->
- </td>
- </tr>
- <?
- //----------------------------------------------------------- новые кнопки
- $arGroups = CUser::GetUserGroup($USER->GetID());
- //print_r($arGroups);
- $flgr=0;
- for ($i=0; $i < count($arGroups); $i++)
- {
- if ($arGroups[$i] == 1){$flgr=1;}
- if ($arGroups[$i] == 12){$flgr=1;}
- }
- $flgr=1;
- if ($flgr==1)
- {
- ?>
- <style type="text/css">
- .dop_elh {
- text-decoration:none;
- font-family:Arial;
- font-size:14px;
- color:#484748;
- }
- .dop_el {
- text-decoration:none;
- font-family:Arial;
- font-size:12px;
- color:#484748;
- }
- </style>
- <?
- include_once $_SERVER['DOCUMENT_ROOT'] . '/shop/el_podrob_upp.php';
- }
- ?>
- <!--
- <tr>
- <td style="padding:0px 0;font-size: 12pt;">
- <?php
- //Вывод текста под ценой
- $dwkwa_out = $arResult['PROPERTIES']['under_pricing']['~VALUE']['TEXT'];
- $dwkwa_out = str_replace("<","<",$dwkwa_out);
- $dwkwa_out = str_replace(">",">",$dwkwa_out);
- print_r($dwkwa_out);
- ?>
- <br />
- </td>
- </tr>-->
- <tr>
- <td class="deliv_tab2">
- <!-- город -->
- <?php
- require_once $_SERVER['DOCUMENT_ROOT'] . '/geo_ip/select_s0.php';
- require_once $_SERVER['DOCUMENT_ROOT'] . '/geo_ip/select_s.php';
- ?>
- <!-- город конец -->
- </td>
- </tr>
- <tr>
- <td class="deliv_tab1">
- <!-- город -->
- <?php
- require_once $_SERVER['DOCUMENT_ROOT'] . '/geo_ip/geo_elem.php';
- ?>
- <!-- город конец -->
- </td>
- </tr>
- <tr>
- <td>
- <br />
- </td>
- </tr>
- <tr>
- <td class="deliv_tab3">
- <?php
- if ($arResult['PROPERTIES']['warranty']['VALUE']){
- echo '<div style="float: left;">';
- echo '<span class="deliv2">Гарантия </span><img src="/img/arrow_03.gif" />';
- echo '</div>';
- echo '<span class="ffreen435">'.$arResult['PROPERTIES']['warranty']['VALUE'].
- ' , обмен возврат товара в течении 14 дней</span>';
- }
- if ($arResult['PROPERTIES']['LOWCOST']['VALUE']=='yes') {
- echo '<br><span class="ffreen436">Самая низкая цена</span>';
- }
- ?>
- </td>
- </tr>
- <tr>
- <td>
- <div style="display:block;padding: 15px 0;">
- <script type="text/javascript" src="http://userapi.com/js/api/openapi.js?32"></script>
- <script type="text/javascript">
- VK.init({apiId: 2054133, onlyWidgets: true});
- </script>
- <div id="vk_like" style="float:left;"></div>
- <script type="text/javascript">
- VK.Widgets.Like("vk_like", {type: "button"});
- </script>
- <iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'] ?>&layout=button_count&show_faces=false&width=140&action=like&colorscheme=light&height=20" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:150px; float:right; height:22px;" allowTransparency="true"></iframe>
- <a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="CitrusDiscount" data-lang="ru">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
- </div>
- </td>
- </tr>
- <tr>
- <td style="height:40px">
- <!-- <div class="buttons_10">
- <?php
- //КРЕДИТ
- $exclude_iblock_id = array('54', '55'); //массив ID разделов, в которых не отображается блок
- $min_price = 200; //минимальная цена товара, при которой блок отображается
- //if (($arPrice["VALUE"]>$min_price)&&(!in_array($arResult["IBLOCK_ID"], $exclude_iblock_id, false))){
- if (($arResult["PRICES"]['RETAIL']["VALUE"]>$min_price)&&(!in_array($arResult["IBLOCK_ID"], $exclude_iblock_id, false))){?>
- <div class="element-button element-credit">
- <a href="/shop/credit?utm_source=product_page&utm_medium=button&utm_campaign=credit">
- <img alt="Покупай в кредит" title="Покупай в кредит" src="/img/btn_credit_new.png" />
- </a>
- </div>
- <?php
- }
- //ЦИТРУС ОБМЕН
- if ($arResult["IBLOCK_ID"] == 20) {?>
- <div class="element-button element-trade-in" style="border:none;background-color:#fff;">
- <a href="//obmen.citrus.ua/?utm_source=product_page&utm_medium=button&utm_campaign=obmen">
- <img alt="Цитрус.ua Обмен" src="/img/btn_citrus_obmen.png" border="0" />
- </a>
- </div>
- <?php
- }
- //МАСТЕР ЦИТРУС
- if ($arResult["IBLOCK_ID"] == 20) {?>
- <div class="element-button element-master-citrus" style="background-color:#fff;heigth:auto;overflow:hidden;">
- <a href="/discount/master_mobile/?utm_source=product_page&utm_medium=button&utm_campaign=master_mobile" rel="nofollow">
- <img border="0" src="/img/btn_master_citrus_tel.png" alt="Цитрус-Мастер" align="left" />
- </a>
- </div>
- <?php
- }
- if ($arResult["IBLOCK_ID"] == 22) {?>
- <div class="element-button element-master-citrus" style="background-color:#fff;heigth:auto;overflow:hidden;">
- <a href="/discount/master_notebook/?utm_source=product_page&utm_medium=button&utm_campaign=master_notebook" rel="nofollow">
- <img border="0" src="/img/btn_master_citrus_tel.png" alt="Цитрус-Мастер" align="left" />
- </a>
- </div>
- <?php
- }
- ?>
- </div> -->
- </td>
- </tr>
- </table>
- <!-- ------------------------------- таблица справа конец -------->
- </td>
- </tr>
- <tr>
- <td>
- <script type="text/javascript" src="/js2/big-photo.js"></script>
- <span id="coherent_id_403">
- <?php if (count($arResult["MORE_PHOTO"]) > 0) { ?>
- <a rel="external" href="/gallery/index.php?id=<?=$id_st?>¤t=<?=$arResult["MORE_PHOTO"]["0"]["ID"]?>" class="iframe400">увеличить изображение </a>
- <?php } else { ?>
- <a rel="external" href="/gallery/index.php?id¤t=<?=$arResult["ID"]?>" class="iframe400">увеличить изображение </a>
- <?php }
- ?>
- </span>
- </td>
- </tr>
- <tr>
- <td>
- </td>
- </tr>
- <tr>
- <td>
- <script type='text/javascript'>
- var id = '<?=$id_st?>' ;
- </script>
- <?php
- //echo "<pre>";
- //print_r ($arResult["MORE_PHOTO"]);
- //echo "</pre>";
- //------------------------
- if (count($arResult["MORE_PHOTO"]) > 0) { // когда выводить картинку в строке, было если нет "1", сейчас всегда
- echo '<div class="big-photo-preview-carousel">';
- echo '<div class="big-photo-preview">';
- echo '<ul>';
- foreach ($arResult["MORE_PHOTO"] as $PHOTO) {
- echo '<li>';
- echo '<a class="img34" id="'. $PHOTO["ID"] .'" href="' . $objImageGd->getImage($PHOTO["SRC"], 200, 400, 0) . '" rel="photothumbs">';
- // echo '<a class="zoom2" href="' . $PHOTO["SRC"] . '" rel="photothumbs">';
- // echo '<a class="zoom2" href="' . $PHOTO["SRC"] . '">';
- echo '<div class="img33">';
- echo '<img class="img35" border="0" src="' . $objImageGd->getImage($PHOTO["SRC"], 80, 80, 0) . '" alt="'
- . $PHOTO["ALT"] . '" title="' . $arResult["NAME"] . '" />';
- echo '</div>';
- echo '</a>';
- echo '</li>';
- }
- echo '</ul>';
- echo '</div>';
- // if (count($arResult["MORE_PHOTO"]) > 0) { // когда показывать стрелки
- // echo '<a href="#" class="btn_next"><span>Вперед</span></a>';
- // echo '<a href="#" class="btn_prev"><span>Назад</span></a>';
- // }
- echo '</div>';
- }
- ?>
- </td>
- </tr>
- <?php
- if (is_array($arResult['PROPERTIES']['YOUTUBE']['~VALUE'])) {
- foreach ($arResult['PROPERTIES']['YOUTUBE']['~VALUE'] as $video) {
- if (substr($video, 0, 7) == 'http://') {
- $partsVideoUri = parse_url($video);
- $arrVideoQueryString = array();
- if ($partsVideoUri['query']) {
- parse_str($partsVideoUri['query'], $arrVideoQueryString);
- }
- ?>
- <tr>
- <script type="text/javascript">
- $(document).ready(function() {
- $('a.iframe<?=$arrVideoQueryString['v']?>').fancybox({
- 'frameWidth' : 600,
- 'frameHeight' : 370,
- 'zoomSpeedIn':500,
- 'zoomSpeedOut':500,
- 'overlayColor':'#fff'
- });
- });
- </script>
- <td class="">
- <div class="youtube">
- <a href="/gallery/video.php?id=<?=$arrVideoQueryString['v']?>" style="padding: 0 0 0 30px;line-height: 23px;padding: 0 0 0 30px;" class="iframe<?=$arrVideoQueryString['v']?>">видео-обзор (<?=$i0+=1?>)</a>
- </div>
- </td>
- </tr>
- <?php
- }
- }
- }
- ?>
- <tr>
- <td align="left">
- <table>
- <tr>
- <td width="250">
- <?php require $_SERVER['DOCUMENT_ROOT'] . '/raiting/_drawrating.php'; ?>
- <?php echo rating_bar($arResult["ID"],5); ?>
- </td>
- <td>
- <?
- //----------------------------------------------- UAUCRF ВСПЛЫВАЮЩЕЕ ОКНО
- if ($arResult["ID"]=="31477" OR
- $arResult["ID"]=="31475" OR
- $arResult["ID"]=="30456" OR
- $arResult["ID"]=="31468" OR
- $arResult["ID"]=="45014" OR
- $arResult["ID"]=="45042" OR
- $arResult["ID"]=="45029" OR
- $arResult["ID"]=="45026" OR
- $arResult["ID"]=="45035" OR
- $arResult["ID"]=="45033")
- {
- ?>
- <div class="crf1">
- <a class="iframe" href="/shop/apple/uaucrf.html">
- <img src="/images/UCRF_rus_sm.png" border="0" width="168" height="57" />
- </a>
- </div>
- <?}
- //----------------------------------------------- #UAUCRF ВСПЛЫВАЮЩЕЕ ОКНО
- ?>
- </td>
- </table>
-
-
- </td>
- </tr>
- </table>
- <?php if($arResult["PROPERTIES"]["banner_o"]["VALUE"]) { ?>
- <table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-color: #BBBBCC; border-style: dashed; border-width: 0 0 1px;">
- <tr>
- <td align="center" style="padding: 10px 0;">
- <?php
- echo '<img border="0" src="http://'.$_SERVER['HTTP_HOST'].CFile::GetPath($arResult["PROPERTIES"]["banner_o"]["VALUE"]).'"/>';
- //echo $_SERVER['HTTP_HOST'] . CFile::GetPath($arResult["PROPERTIES"]["banner_o"]["VALUE"]);
- ?>
- </td>
- </tr>
- </table>
- <?php } ?>
- <?
- //------------------------------------------------------------------------- HTC BUKOVEL
- //------------------------------------------------------------------------- #HTC BUKOVEL
- if ($arResult["ID"]==37550
- OR $arResult["ID"]==37557
- OR $arResult["ID"]==37555
- OR $arResult["ID"]==48431)
- {
- ?>
- <div style="width:100%; height:131px; text-align:center; padding-top:30px;">
- <link rel="stylesheet" type="text/css" media="screen, projection" href="/subscribe-upload/banner/slideview2.css" />
- <script src="/subscribe-upload/banner/slideView.js" type="text/javascript"></script>
- <script type="text/javascript">
- $(function() {
- $("#slideshow").slideView();
- });
- </script>
- <div id="slideshow">
- <div class="slides">
- <ul class="slideView">
- <li><a href="http://www.citrus.ua/discount/shares/51162/" title="МЕНЯЙ СТАРЫЙ ТЕЛЕФОН НА НОВЫЙ HTC И ОТПРАВЛЯЙСЯ В БУКОВЕЛЬ!">
- <img src="/subscribe-upload/banner/images/bukovel_htc_917.jpg" /></a></li>
- <li><img src="/subscribe-upload/banner/images/privat.jpg" alt="Privat" /></li>
- </ul>
- </div>
- </div>
- </div>
- <br />
- <img src="/images/hor_line_dot.jpg" />
- <?
- }
- elseif ($arResult["ID"]==35452
- OR $arResult["ID"]==35464
- OR $arResult["ID"]==40307
- OR $arResult["ID"]==45244
- OR $arResult["ID"]==45245
- OR $arResult["ID"]==45977
- OR $arResult["ID"]==45979
- OR $arResult["ID"]==45981
- OR $arResult["ID"]==45991
- OR $arResult["ID"]==45993)
- {
- ?>
- <div style="width:100%; height:131px; text-align:center; padding-top:30px;">
- <a href="http://www.citrus.ua/discount/shares/51162/" title="МЕНЯЙ СТАРЫЙ ТЕЛЕФОН НА НОВЫЙ HTC И ОТПРАВЛЯЙСЯ В БУКОВЕЛЬ!">
- <img src="/subscribe-upload/banner/images/bukovel_htc_917.jpg" /></a>
- </div>
- <br />
- <img src="/images/hor_line_dot.jpg" />
- <?
- }elseif ($arResult["ID"]==50203)
- {
- ?>
- <div style="width:100%; height:131px; text-align:center; padding-top:30px;">
- <link rel="stylesheet" type="text/css" media="screen, projection" href="/subscribe-upload/banner/slideview2.css" />
- <script src="/subscribe-upload/banner/slideView.js" type="text/javascript"></script>
- <script type="text/javascript">
- $(function() {
- $("#slideshow").slideView();
- });
- </script>
- <div id="slideshow">
- <div class="slides">
- <ul class="slideView">
- <li><img src="/subscribe-upload/banner/images/htcdesirex_b.jpg" /></li>
- <li><a href="http://www.citrus.ua/discount/shares/51162/" title="МЕНЯЙ СТАРЫЙ ТЕЛЕФОН НА НОВЫЙ HTC И ОТПРАВЛЯЙСЯ В БУКОВЕЛЬ!">
- <img src="/subscribe-upload/banner/images/bukovel_htc_917.jpg" /></a></li>
- </ul>
- </div>
- </div>
- </div>
- <br />
- <img src="/images/hor_line_dot.jpg" />
- <?
- }
- //------------------------------------------------------------------- НАБОР ПРИЛОЖЕНИЙ ДЛЯ IPAD
- if ($arResult["ID"]==29779
- OR $arResult["ID"]==34567
- OR $arResult["ID"]==33251
- OR $arResult["ID"]==35969
- OR $arResult["ID"]==35969
- OR $arResult["ID"]==35970
- OR $arResult["ID"]==35971
- OR $arResult["ID"]==35972
- OR $arResult["ID"]==35973
- OR $arResult["ID"]==35974)
- {
- //------------------------------------
- ?>
- <style type="text/css">
- .iprog{
- width:120px;
- display: block;
- height: auto;
- background-color: #FDFDFD;
- border-radius: 5px;
- border: 1px solid #D2D2D2;
- -moz-border-top-colors: none;
- -moz-border-right-colors: none;
- -moz-border-bottom-colors: none;
- -moz-border-left-colors: none;
- -moz-border-image: none;
- border-color: #EEE rgba(20, 20, 20, 0.2) #D2D2D2;
- -webkit-box-shadow: 0pt 1px 2px rgba(20, 20, 20, 0.5);
- -moz-box-shadow: 0pt 1px 2px rgba(20, 20, 20, 0.5);
- box-shadow: 0pt 1px 2px rgba(20, 20, 20, 0.5);
- padding: 2px;
- text-align: center;
- text-decoration: none;
- -webkit-border-radius: 5px;
- -moz-border-radius: 5px;
- background: -webkit-gradient(linear, 0 0, 0 bottom, from(#FDFDFD), to(#EDEDED));
- background: -webkit-linear-gradient(#FDFDFD, #EDEDED);
- ___background: -moz-linear-gradient(#FDFDFD, #EDEDED);
- background: -ms-linear-gradient(#FDFDFD, #EDEDED);
- background: -o-linear-gradient(#FDFDFD, #EDEDED);
- background: linear-gradient(#FDFDFD, #EDEDED);
- -pie-background: linear-gradient(#FDFDFD, #EDEDED);
- behavior: url(/PIE.htc);
- position: relative;
- }
- .i_m_name{
- font-family: Arial !important;
- color: #666;
- text-shadow: 1px 1px 0pt white;
- line-height: 1.6em;
- font-size: 16pt;
- }
- .i_pr1{
- color: #666;
- text-shadow: 1px 1px 0pt white;
- line-height: 1.6em;
- font-size: 12pt;
- font-weight: bold;
- }
- .i_pr2{
- color: #666;
- font-size: 10pt;
- }
- .i_more1{
- color:#6AA82B;
- font-size: 12px;
- font-family: Arial !important;
- line-height: 1.6em;
- }
- .i_more2{
- color:#F27000;
- font-size: 12px;
- font-family: Arial !important;
- line-height: 1.6em;
- text-decoration: none;
- border-bottom: 1px dashed #F27000;
- }
- .i_inf1{
- font-size: 16pt;
- color:#666;
- }
- .i_inf2{
- font-size:12pt;
- color:#666;
- }
- </style>
- <br />
- <table border="0">
- <tr>
- <td width="360" align="center">
- <p><span class="i_inf1">
- Выберите набор приложений
- </span></p>
- <p><span class="i_inf2">Нажмите на название, чтобы узнать больше</span></p>
- <p><span class="i_inf2">
- Устанавливается и настраивается<br />нашими тех. экспертами.
- </span></p>
- </td>
- <td width="140" align="center">
- <div class="iprog">
- <span style="height: 96px;" class="model-spec">
- <table width="100%" border="0">
- <tr><td colspan="2" align="center"><a class="iframe" href="/shop/apple/musthave.html"><span class="i_m_name">Musthave</span></a></td></tr>
- <tr><td align="center"><img src="/shop/apple/skype.png" width="43" height="44" alt="skype"></td>
- <td align="left"><span class="i_pr1">199</span> <span class="i_pr2">грн.</span>
- </td></tr>
- <tr><td colspan="2" align="center"><a class="i_more1" href="?action=ADD2BASKET&id=33495">в корзину</a>
- </td></tr>
- </table>
- </span>
- </div>
- </td>
- <td width="140" align="center">
- <div class="iprog">
- <span style="height: 96px;" class="model-spec">
- <table width="100%" border="0">
- <tr><td colspan="2" align="center"><a class="iframe" href="/shop/apple/ifun.html"><span class="i_m_name">iFun</span></a></td></tr>
- <tr><td align="center"><img src="/shop/apple/ptica.png" width="43" height="44" alt="skype"></td>
- <td align="left"><span class="i_pr1">399</span> <span class="i_pr2">грн.</span>
- </td></tr>
- <tr><td colspan="2" align="center"><a class="i_more1" href="?action=ADD2BASKET&id=33497">в корзину</a>
- </td></tr>
- </table>
- </span>
- </div>
- </td>
- <td width="140" align="center">
- <div class="iprog">
- <span style="height: 96px;" class="model-spec">
- <table width="100%" border="0">
- <tr><td colspan="2" align="center"><a class="iframe" href="/shop/apple/ibusiness.html"><span class="i_m_name">iBusiness</span></a></td></tr>
- <tr><td align="center"><img src="/shop/apple/bloknot.png" width="43" height="44" alt="skype"></td>
- <td align="left"><span class="i_pr1">399</span> <span class="i_pr2">грн.</span>
- </td></tr>
- <tr><td colspan="2" align="center"><a class="i_more1" href="?action=ADD2BASKET&id=33499">в корзину</a>
- </td></tr>
- </table>
- </span>
- </div>
- </td>
- <td width="140" align="center">
- <div class="iprog">
- <span style="height: 96px;" class="model-spec">
- <table width="100%" border="0">
- <tr><td colspan="2" align="center"><a class="iframe" href="/shop/apple/ivip.html"><span class="i_m_name">iVIP</span></a></td></tr>
- <tr><td align="center"><img src="/shop/apple/vip.png" width="43" height="44" alt="skype"></td>
- <td align="left"><span class="i_pr1">799</span> <span class="i_pr2">грн.</span>
- </td></tr>
- <tr><td colspan="2" align="center"><a class="i_more1" href="?action=ADD2BASKET&id=33501">в корзину</a>
- </td></tr>
- </table>
- </span>
- </div>
- </td>
- </tr>
- </table>
- <br />
- <?
- echo "<img src=\"/images/hor_line_dot.jpg\" />";
- //---------------------------------------------------------------------------------------------------------------------
- }
- //------------------------------------------------------------------- #НАБОР ПРИЛОЖЕНИЙ ДЛЯ IPAD
- ?>
- <?
- //------------------------------------------------------------------ СЛАЙДЫ IPHONE 5
- if ($arResult["ID"]==45042 OR
- $arResult["ID"]==45014 OR
- $arResult["ID"]==45029 OR
- $arResult["ID"]==45026 OR
- $arResult["ID"]==45035 OR
- $arResult["ID"]==45033)
- {
- ?>
- <link rel="stylesheet" type="text/css" media="screen, projection" href="/subscribe-upload/banner/slideview2.css" />
- <script src="/subscribe-upload/banner/slideView.js" type="text/javascript"></script>
- <script type="text/javascript">
- $(function() {
- $("#slideshow").slideView();
- });
- </script>
- <div id="slideshow">
- <div class="slides">
- <ul class="slideView">
- <li><img src="/subscribe-upload/banner/iphone5/iPhone 5_2.jpg" alt="iPhone 5" /></li>
- <li><img src="/subscribe-upload/banner/iphone5/iPhone 5_3.jpg" alt="iPhone 5" /></li>
- <li><img src="/subscribe-upload/banner/iphone5/iPhone 5_4.jpg" alt="iPhone 5" /></li>
- <li><img src="/subscribe-upload/banner/iphone5/iPhone 5_5.jpg" alt="iPhone 5" /></li>
- <li><img src="/subscribe-upload/banner/iphone5/iPhone 5_6.jpg" alt="iPhone 5" /></li>
- <li><img src="/subscribe-upload/banner/iphone5/iPhone 5_7.jpg" alt="iPhone 5" /></li>
- <!--<li><img src="/subscribe-upload/banner/iphone5/banner_privat.jpg" alt="iPhone 5" /></li>-->
- </ul>
- </div>
- </div>
- <?
- echo "<img src=\"/images/hor_line_dot.jpg\" />";
- }
- //------------------------------------------------------------------ #СЛАЙДЫ IPHONE 5
- ?>
- <table width="100%" border="0" cellpadding="0" cellspacing="0" class="main_bord">
- <? ob_start(); ?>
- <?php
- echo '<tr><td colspan="2" id="hhh4_1"><div id="top_y_1">Описание ' .$pageN . '</div></td></tr>';
- ?>
- <tr><td colspan="2" id="ffft">
- <div class="description">
- <?php echo $arResult['PREVIEW_TEXT'] ?>
- <br>
- <p>Купить <?php echo $arrIblockNames[$arResult["IBLOCK_ID"]] ?> <?php
- echo $arResult["NAME"] ?> вы можете в Интернет-магазине «Цитрус».</p>
- <?php
- //НАДПИСЬ ГОСКОМ
- if ($arResult["IBLOCK_ID"] == 20 //добавляем надпись Госком только для Мобильных телефонов
- && $googIblockSection != 258 //но без IPhone Apple
- && $googIblockSection != 310 //и Blackberry
- && $arResult["ID"] != 9653)
- {
- echo '<p class="description-subblock" style="border:none;background-color:#fff;">';
- echo '<img alt="Сертифицированный товар" src="//img.citrus.com.ua/img/ua_ucrf.jpg" border="0" />';
- echo '</p>';
- }
- if ($arResult["IBLOCK_SECTION_ID"] == 150) {
- echo '<noindex><p class="description-subblock"><a href="http://www.ovi.com/" rel="nofollow">';
- echo '<img border="0" src="//img.citrus.com.ua/img/ovi2.gif" alt="Nokia - магазин OVI" width="53" height="40" align="left" hspace="10" />';
- echo '</a>';
- echo 'Расширяйте возможности телефона Nokia с помощью сервисов Nokia на
- <a href="http://www.ovi.com/" rel="nofollow">www.ovi.com</a>';
- echo '</p></noindex>';
- }
- $arrMapsModels = array(3317, 3314, 3307, 656, 652, 5255, 5259, 2679, 692, 776, 7276, 736, 742, 740, 6575, 5242, 5238, 6562, 5246, 8260, 8308);
- if (in_array($arResult["ID"], $arrMapsModels)) {
- echo '<div class="description"><p><noindex><a
- href="http://www.nokia.ru/explore-services/ovi-maps/downloads?t=navigation&ca=navq1&lid=navigation_navq1_displayad_ovimapsforfreehomepage_banner_228x96&lpos=row1_position1nokiaovimaps-fw-ilc-hero-con-na-nokiaua-ua-7-ovimapsforfreeservicespage_101#/default/"
- rel="nofollow">Установите программу для использования бесплатной навигации по Украине и миру с официального сайта Nokia</a></noindex></p></div>';
- }
- ?>
- <p class="link-back"><a href="<?php echo $arResult["SECTION"]["SECTION_PAGE_URL"] ?>"><span><img width="13" height="11" border="0" src="/img/nnn_08.png"></span> <?php
- echo GetMessage("CATALOG_BACK") ?> <?php echo $arrIblock[$arResult["IBLOCK_ID"]] ?></a></p>
- </div>
- </td></tr>
- <!--Функция прокрутки конец -->
- <tr>
- <td valign="top" class="small23">
- </td>
- </tr>
- <!--Функция прокрутки начало -->
- <!--Функция прокрутки-->
- <script type="text/javascript">
- //jQuery(function(){
- //jQuery(".gallery").jCarouselLite({
- // btnNext: ".right_btt",
- // btnPrev: ".left_btt",
- // mouseWheel: "true",
- // visible:4,
- // circular: false,
- // scroll:1
- // });});
- </script>
- <!--Функция прокрутки end-->
- <?php
- $arrAccessories = array();
- if (is_array($arResult['PROPERTIES']['ACCESSORIES']['VALUE'])) {
- foreach ($arResult['PROPERTIES']['ACCESSORIES']['VALUE'] as $item) {
- $itemId = (int) $item;
- if ($itemId > 0) {
- $arrAccessories[] = $itemId;
- }
- }
- }
- $xHtml = '';
- if (count($arrAccessories) > 0) {
- $strAccessories = "'" . implode("', '", $arrAccessories) . "'";
- $sql = "SELECT bie.`ID`, bie.`IBLOCK_SECTION_ID`, bie.`NAME`,
- bi.`DETAIL_PAGE_URL`,
- bf.`SUBDIR`, bf.`FILE_NAME`,
- bcp.`PRICE`, bcp.`CURRENCY`,
- bcpr.`QUANTITY`, bcpr.`QUANTITY_TRACE`
- FROM `b_iblock_element` AS bie
- JOIN `b_iblock` AS bi ON bi.`ID` = bie.`IBLOCK_ID`
- AND bi.`ACTIVE` = 'Y'
- JOIN `b_file` AS bf on bf.`ID` = bie.`PREVIEW_PICTURE`
- JOIN `b_catalog_price` AS bcp ON bcp.`PRODUCT_ID` = …
Large files files are truncated, but you can click here to view the full file