PageRenderTime 55ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/bitrix_personal/templates/beta2.citrus.ua/components/bitrix/catalog/goods.citrus.ua/bitrix/catalog.element/.default/template.php

https://bitbucket.org/spivovartsev/citrus.ua
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

  1. <?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
  2. <?php
  3. $googIblockSection = 0;
  4. $sql = "SELECT bise.`IBLOCK_SECTION_ID`
  5. FROM `b_iblock_section_element` AS bise
  6. JOIN `b_iblock_section` AS bis ON bis.`ID` = bise.`IBLOCK_SECTION_ID` AND bis.`NAME` != 'Все товары'
  7. WHERE bise.`IBLOCK_ELEMENT_ID` = '{$arResult["ID"]}'
  8. LIMIT 1";
  9. $result = mysql_query($sql);
  10. if (mysql_num_rows($result) > 0) {
  11. $row = mysql_fetch_assoc($result);
  12. $arrRequestUri = explode('/', $_SERVER['REQUEST_URI']);
  13. $googIblockSection = $row['IBLOCK_SECTION_ID'];
  14. if ($row['IBLOCK_SECTION_ID'] != $arrRequestUri[4]) {
  15. $arrRequestUri = explode('/', $_SERVER['REQUEST_URI']);
  16. if ($_GET['acc']==1){$redirectUrl = '/' . $arrRequestUri[1] . '/' . $arrRequestUri[2] . '/' . $arrRequestUri[3] . '/'
  17. . $row['IBLOCK_SECTION_ID'] . '/' . $arResult["ID"]. '?acc=1';}
  18. else {$redirectUrl = '/' . $arrRequestUri[1] . '/' . $arrRequestUri[2] . '/' . $arrRequestUri[3] . '/'
  19. . $row['IBLOCK_SECTION_ID'] . '/' . $arResult["ID"];}
  20. /*$redirectUrl = '/' . $arrRequestUri[1] . '/' . $arrRequestUri[2] . '/' . $arrRequestUri[3] . '/'
  21. . $row['IBLOCK_SECTION_ID'] . '/' . $arResult["ID"];
  22. */
  23. header("HTTP/1.1 301 Moved Permamently");
  24. header("Location: http://" . $_SERVER['HTTP_HOST'] . $redirectUrl);
  25. die();
  26. }
  27. }
  28. mysql_free_result($result);
  29. require $_SERVER['DOCUMENT_ROOT'] . '/bitrix/templates/main-template/catalog-functions.php';
  30. $objImageGd = new Vi_Image_Gd();
  31. $arrIblockNames = getIblocksNames_forGoodsNames();
  32. $arrIblock = getIblocksNames_howItIsInDB();
  33. ?>
  34. <?php
  35. //-----------------------------------------------------------------------------------------------
  36. // получаем названия секций товаров
  37. $arrSectionsName = array();
  38. $iblockId = (int) $arResult["IBLOCK_ID"];
  39. $sql = "SELECT `ID`, `NAME`
  40. FROM `b_iblock_section`
  41. WHERE `IBLOCK_ID` = '{$iblockId}'";
  42. $result = mysql_query($sql);
  43. if (mysql_num_rows($result) > 0) {
  44. while ($row = mysql_fetch_assoc($result)) {
  45. $id = (int) $row['ID'];
  46. $arrSectionsName[$id] = stripslashes($row['NAME']);
  47. }
  48. }
  49. $sql = "SELECT `ID`
  50. FROM `b_iblock_section`
  51. WHERE `IBLOCK_ID` = '{$iblockId}'
  52. AND `NAME` = 'Все товары'";
  53. $result = mysql_query($sql);
  54. if (mysql_num_rows($result) > 0) {
  55. $row = mysql_fetch_assoc($result);
  56. $id2 = (int) $row['ID'];
  57. }
  58. mysql_free_result($result);
  59. $arrRequestUri = explode('/', $_SERVER['REQUEST_URI']);
  60. $pathToDescription = $_SERVER['DOCUMENT_ROOT'] . '/' . $arrRequestUri[1] . '/' . $arrRequestUri[2] . '/' . $arrRequestUri[3];
  61. global $pageTitle, $pageKeywords, $pageDescription;
  62. if (is_file($pathToDescription . '/.section.php')) {
  63. include $pathToDescription . '/.section.php';
  64. $pageH1 = $arrIblockNames[$arResult["IBLOCK_ID"]] . ' ' . $arResult["NAME"];
  65. $pageN = $arResult["NAME"];
  66. $APPLICATION->SetPageProperty("title", $pageH1.', купить в Одессе, Киеве, Украине - citrus.ua');
  67. $APPLICATION->SetPageProperty("description", "Только у нас Вы можете купить $pageH1 по разумной цене. Звоните прямо сейчас! (048)701-80-10");
  68. }
  69. // формируем хлебные крошки
  70. require $_SERVER['DOCUMENT_ROOT'] . '/bitrix/templates/main-template/breadcrumbs.php';
  71. $arrCrumbs = array();
  72. $arrCrumbs[] = array(
  73. 'link' => 'http://www.citrus.ua/',
  74. 'name' => 'Главная'
  75. );
  76. $arrCrumbs[] = array(
  77. 'link' => 'http://www.citrus.ua/shop/goods/' . $arrRequestUri[3] . '/' . $id2 . '/',
  78. 'name' => $catPrefixName
  79. );
  80. $arrCrumbs[] = array(
  81. 'link' => 'http://www.citrus.ua/shop/goods/' . $arrRequestUri[3] . '/' . $arrRequestUri[4] . '/',
  82. 'name' => $arrSectionsName[$arrRequestUri[4]]
  83. );
  84. $arrCrumbs[] = array(
  85. /*'link' => 'http://www.citrus.ua/shop/goods/' . $arrRequestUri[3] . '/' . $arrRequestUri[4] . '/' . $arResult["ID"],*/
  86. 'name' => $arResult["NAME"]
  87. );
  88. echo getBreadcrumbsXhtml($arrCrumbs);
  89. //-------------------------------------------------------------------------------------------------------------------------
  90. ?>
  91. <div class="catalog-element">
  92. <style type="text/css">
  93. .catalog-element {
  94. ___width: 960px;
  95. }
  96. .catalog-element {
  97. overflow: inherit;
  98. }
  99. .breadcrumbs {
  100. float: inherit;
  101. }
  102. </style>
  103. <?php
  104. echo "<div class=\"hreview-aggregate\"><div class='top_h1'><span class=\"fn\"><h1>" . $pageH1 . "</h1></span></div>";
  105. //----------------------------------новый шаблон----------------------------
  106. ?>
  107. <!-- <script src="http://code.jquery.com/jquery-1.6.3.min.js"></script> -->
  108. <script>
  109. $(document).ready(function() {
  110. // $(".tab_all").hide(); // Initially hide all content
  111. // $("#tabs li:first").attr("id","current"); // Activate first tab
  112. // $(".tab_all:first").fadeIn(); // Show first tab content
  113. $(".acc").attr("id","current"); // Activate first tab
  114. // $(".tab_all .acc").css("display", "block"); // Show first tab content
  115. $(".tab_all").css("display", "none");; // Show first tab content
  116. // $(".acc").css("display", "block"); // Show first tab content
  117. $(".acc1").fadeIn();; // Show first tab content
  118. $('#tabs a').click(function(e) {
  119. e.preventDefault();
  120. $(".tab_all").hide(); //Hide all content
  121. $("#tabs li a").attr("id",""); //Reset id's
  122. //$(this).parent().attr("id","current"); // Activate this
  123. $(this).attr("id","current"); // Activate this
  124. $('#' + $(this).attr('tabl')).fadeIn(); // Show content for current tab
  125. });
  126. $('a[rel=external]').attr('target','_blank');
  127. });
  128. </script>
  129. <ul id="tabs">
  130. <?
  131. if ($_GET['acc']==1){?><li><a href="#" id="tab1" tabl="tab1" title="Витрина">Витрина</a></li><?}
  132. else {?><li><a class="acc" href="#" id="tab1" tabl="tab1" title="Витрина">Витрина</a></li><?}
  133. ?>
  134. <!--<li><a href="#" id="tab1" tabl="tab1" title="Витрина">Витрина</a></li>-->
  135. <li><a href="#" id="tab2" tabl="tab2" title="Характеристики">Характеристики</a></li>
  136. <li><a href="#" id="tab3" tabl="tab3" title="Отзывы">Отзывы</a></li>
  137. <li><a href="#" id="tab4" tabl="tab4" title="Сравнить">Сравнить</a></li>
  138. <!--<li><a href="#" id="tab5" tabl="tab5" title="Похожие товары">Похожие товары</a></li>-->
  139. <?
  140. if ($_GET['acc']==1){?><li><a class="acc" href="#" id="tab5" tabl="tab5" title="Акессуары">Аксессуары</a></li><?}
  141. else {?><li><a href="#" id="tab5" tabl="tab5" title="Акессуары">Аксессуары</a></li><?}
  142. ?>
  143. <!--
  144. <li><a class="acc" href="#" id="tab6" tabl="tab6" title="Акессуары">Акессуары</a></li>
  145. -->
  146. </ul>
  147. <div id="content_m">
  148. <?
  149. if ($_GET['acc']==1){?><div class="tab_all" id="tab1"><?}
  150. else {?><div class="tab_all acc1" id="tab1"><?}
  151. ?>
  152. <!--
  153. <div class="tab_all" id="tab1">
  154. -->
  155. <!------------------------------------------------------------------------------------------------>
  156. <table class="content-top" width="100%" border="0">
  157. <tr>
  158. <td class="big-photo33">
  159. <?php
  160. //echo '<div class="big-photo">';
  161. $label = 0;
  162. /*if ($arResult["IBLOCK_ID"] == 22) {
  163. if (substr_count($arResult["NAME"], 'Sony') || substr_count($arResult["NAME"], 'SONY')) {
  164. $label = 3;
  165. }
  166. }*/
  167. foreach ($arResult['PROPERTIES']['STATE']['VALUE'] as $stateValue) {
  168. if ($stateValue == 'Новинка') {
  169. $label = 3000;
  170. echo '<span class="vm_new_b vm_sd_b"></span>';
  171. }
  172. if ($stateValue == 'Рапродажа') {
  173. $label = 1000;
  174. echo '<span class="vm_best_price_b vm_sd_b"></span>';
  175. }
  176. if ($stateValue == 'Скоро в продаже') {
  177. $label = 5000;
  178. echo '<span class="vm_soon_b vm_sd_b"></span>';
  179. }
  180. if ($stateValue == 'Специальное предложение') {
  181. $label = 4000;
  182. echo '<span class="vm_action_b vm_sd_b"></span>';
  183. }
  184. if ($stateValue == 'Top 10') {
  185. $label = 8000;
  186. echo '<span class="vm_hit_b vm_sd_b"></span>';
  187. }
  188. if ($stateValue == 'Акция Цитрус-Обмен') {
  189. $label = 9000;
  190. echo '<span class="vm_action_b vm_sd_b"></span>';
  191. }
  192. if ($stateValue == 'Две сим-карты') {
  193. $label = 10000;
  194. echo '<span class="vm_2sim_b vm_sd_b"></span>';
  195. }
  196. }
  197. // формируем строку Id для галереи
  198. //echo "<pre>";
  199. //print_r ($arResult["MORE_PHOTO"]);
  200. //echo "</pre>";
  201. foreach ($arResult["MORE_PHOTO"] as $PHOTO) {
  202. $i+=1;
  203. $id_str[$i] = $PHOTO["ID"];
  204. }
  205. $id_st = implode(",", $id_str);
  206. echo '<div class="big-photo">';
  207. if (count($arResult["MORE_PHOTO"]) > 0) {
  208. echo '<a rel="external" href="/gallery/index.php?id='.$id_st.'&current='.$arResult["MORE_PHOTO"]["0"]["ID"].'">';
  209. } else {
  210. echo '<a rel="external" href="/gallery/index.php?id&current='.$arResult["ID"].'">';
  211. }
  212. //echo '<a href="/gallery/index.php?id='.$id_st.'&current='.$arResult["MORE_PHOTO"]["0"]["ID"].'">';
  213. if ($arResult["ID"]==33495
  214. OR $arResult["ID"]==33499
  215. OR $arResult["ID"]==33497
  216. OR $arResult["ID"]==33501
  217. OR $arResult["ID"]==51844
  218. OR $arResult["ID"]==51840
  219. OR $arResult["ID"]==51838
  220. OR $arResult["ID"]==51842)
  221. {
  222. if (is_array($arResult["DETAIL_PICTURE"])) {
  223. // если надо ватемарк на фотографии, то поменять с нижней
  224. //echo '<img border="0" src="' . $objImageGd->getImage($arResult["DETAIL_PICTURE"]["SRC"], 200, 400, $label)
  225. //echo '<img width="200" border="0" src="' . $objImageGd->getImage($arResult["DETAIL_PICTURE"]["SRC"], 200, 400, 0)
  226. $el_photo=$objImageGd->getImage($arResult["DETAIL_PICTURE"]["SRC"], 480, 370, 0);
  227. echo '<img border="0" src="' . $objImageGd->getImage($arResult["DETAIL_PICTURE"]["SRC"], 480, 370, 0)
  228. . '" alt="' . $arrIblock[$arResult["IBLOCK_ID"]] . ' - ' . $arResult["NAME"]
  229. . '" title="' . $arResult["NAME"] . '" />';
  230. } elseif (is_array($arResult["PREVIEW_PICTURE"])) {
  231. $el_photo=$objImageGd->getImage($arResult["PREVIEW_PICTURE"]["SRC"], 480, 370, 0);
  232. // если надо ватемарк на фотографии, то поменять с нижней
  233. //echo '<img border="0" src="' . $objImageGd->getImage($arResult["PREVIEW_PICTURE"]["SRC"], 200, 400, $label)
  234. echo '<img width="200" border="0" src="' . $objImageGd->getImage($arResult["PREVIEW_PICTURE"]["SRC"], 480, 370, 0)
  235. . '" alt="' . $arrIblock[$arResult["IBLOCK_ID"]] . ' - ' . $arResult["NAME"]
  236. . '" title="' . $arResult["NAME"] . '" />';
  237. }
  238. }
  239. else {
  240. if (is_array($arResult["DETAIL_PICTURE"])) {
  241. // если надо ватемарк на фотографии, то поменять с нижней
  242. //echo '<img border="0" src="' . $objImageGd->getImage($arResult["DETAIL_PICTURE"]["SRC"], 200, 400, $label)
  243. //echo '<img width="200" border="0" src="' . $objImageGd->getImage($arResult["DETAIL_PICTURE"]["SRC"], 200, 400, 0)
  244. $el_photo=$objImageGd->getImage($arResult["DETAIL_PICTURE"]["SRC"], 200, 400, 0);
  245. echo '<img border="0" src="' . $objImageGd->getImage($arResult["DETAIL_PICTURE"]["SRC"], 200, 400, 0)
  246. . '" alt="' . $arrIblock[$arResult["IBLOCK_ID"]] . ' - ' . $arResult["NAME"]
  247. . '" title="' . $arResult["NAME"] . '" />';
  248. } elseif (is_array($arResult["PREVIEW_PICTURE"])) {
  249. $el_photo=$objImageGd->getImage($arResult["PREVIEW_PICTURE"]["SRC"], 200, 400, 0);
  250. // если надо ватемарк на фотографии, то поменять с нижней
  251. //echo '<img border="0" src="' . $objImageGd->getImage($arResult["PREVIEW_PICTURE"]["SRC"], 200, 400, $label)
  252. echo '<img width="200" border="0" src="' . $objImageGd->getImage($arResult["PREVIEW_PICTURE"]["SRC"], 200, 400, 0)
  253. . '" alt="' . $arrIblock[$arResult["IBLOCK_ID"]] . ' - ' . $arResult["NAME"]
  254. . '" title="' . $arResult["NAME"] . '" />';
  255. }
  256. }
  257. echo "</a>";
  258. //БАННЕР ПОД ФОТО
  259. ?>
  260. <div class="banner_bottom_photo"><center>
  261. <?php echo ($arResult['PROPERTIES']['LABEL5']['~VALUE']['TEXT']); ?>
  262. </center>
  263. </div>
  264. <?php
  265. echo '</div>';
  266. ?>
  267. </td>
  268. <td rowspan="5" style="height: 100%;" width="420px;">
  269. <!-- ------------------------------ таблица справа --->
  270. <table class="content-right" width="100%" border="0">
  271. <tr>
  272. <td valign="top" align="right">
  273. <!-- блок с ценами -->
  274. <?php
  275. $xHtml33 = '';
  276. $xHtml44 = '';
  277. $off_line= 0 ;
  278. $lending_line = 0 ;
  279. foreach ($arResult["PRICES"] as $code => $arPrice) {
  280. if($arPrice["VALUE"] < 1 OR $arPrice["VALUE"] > 2 ){
  281. if ($arResult['PROPERTIES']['OBMEN']['VALUE']=='') {
  282. //Вывод цены розницы
  283. if ($code == 'RETAIL') {
  284. $xHtml33 .= '&nbsp;&nbsp;&nbsp;';
  285. if ($arPrice["DISCOUNT_VALUE"] < $arPrice["VALUE"]) {
  286. $xHtml33 .= '<s>' . $arPrice["PRINT_VALUE"] . '</s>';
  287. $newphrase = str_replace("грн.", "<span class='price34'>грн</span>", $arPrice["PRINT_DISCOUNT_VALUE"]);
  288. $newphrase = str_replace(".00", "", $newphrase);
  289. $xHtml33 .= '<span class="catalog-price trrtr">' . $newphrase . '</span>';
  290. $price_credit = $arPrice["DISCOUNT_VALUE"];
  291. } else {
  292. $newphrase = str_replace("грн.", "<span class='price34'>грн</span>", $arPrice["PRINT_VALUE"]);
  293. $newphrase = str_replace(".00", "", $newphrase);
  294. $xHtml33 .= '<span class="catalog-price trrtr">' . $newphrase . '</span>';
  295. $price_credit = $arPrice["VALUE"];
  296. }
  297. }
  298. } else {
  299. //Вывод цены Акционного поля
  300. if ($code == 'STOCK') {
  301. $xHtml33 .= '&nbsp;&nbsp;&nbsp;';
  302. if ($arPrice["DISCOUNT_VALUE"] < $arPrice["VALUE"]) {
  303. $xHtml33 .= '<s>' . $arPrice["PRINT_VALUE"] . '</s>';
  304. $newphrase = str_replace("грн.", "<span class='price34'>грн</span>", $arPrice["PRINT_DISCOUNT_VALUE"]);
  305. $newphrase = str_replace(".00", "", $newphrase);
  306. $xHtml33 .= '<span class="catalog-price trrtr">' . $newphrase . '</span>';
  307. $price_credit = $arPrice["DISCOUNT_VALUE"];
  308. } else {
  309. $newphrase = str_replace("грн.", "<span class='price34'>грн</span>", $arPrice["PRINT_VALUE"]);
  310. $newphrase = str_replace(".00", "", $newphrase);
  311. $xHtml33 .= '<span class="catalog-price trrtr">' . $newphrase . '</span>';
  312. $price_credit = $arPrice["VALUE"];
  313. }
  314. }
  315. }
  316. $code_s = 'OFFLINE';
  317. if ($arResult['PROPERTIES']['OBMEN']['VALUE']=='' && $code == 'OFFLINE' ) {
  318. $code_s = 'OFFLINE';
  319. }elseif ($arResult['PROPERTIES']['OBMEN']['VALUE']<>'' && $code == 'OFFLINE'){
  320. $code_s = 'RETAIL';
  321. }elseif ($arResult['PROPERTIES']['OBMEN']['VALUE']<>'' && $code == 'RETAIL'){
  322. $code_s = 'RETAIL';
  323. }
  324. // echo $code . "=" . $code_s . "<br />";
  325. // if ($code == 'OFFLINE' && $arResult["PRICES"]['RETAIL']["VALUE"] < $arPrice["VALUE"] && $arResult["PRICES"]['LENDING']["VALUE"]=='') {
  326. if (($code == 'OFFLINE' AND $arResult['PROPERTIES']['OBMEN']['VALUE']=='') OR ($code == 'RETAIL' AND $arResult['PROPERTIES']['OBMEN']['VALUE']<>'')) {
  327. // echo "=======";
  328. $xHtml44 .= '&nbsp;&nbsp;&nbsp;';
  329. if ($arPrice["DISCOUNT_VALUE"] < $arPrice["VALUE"]) {
  330. $price_credit = $arResult["PRICES"][$code_s]["DISCOUNT_VALUE"];
  331. $newphrase = str_replace("грн.", "", $arResult["PRICES"][$code_s]["PRINT_DISCOUNT_VALUE"]);
  332. $newphrase = str_replace(".00", "", $newphrase);
  333. if ($arResult['PROPERTIES']['LENDING']['VALUE']<>'да' && $arResult['PROPERTIES']['OBMEN']['VALUE'] == '' ) {
  334. $xHtml44 .= '<span class="catalog-price-offline dss"><strike>' . $newphrase . '</strike></span>';
  335. } else {
  336. $xHtml44 .= '<span class="catalog-price-offline dss">' . $newphrase . '</span>';
  337. }
  338. } else {
  339. $price_credit =$arResult["PRICES"][$code_s]["VALUE"];
  340. $newphrase = str_replace("грн.", "", $arResult["PRICES"][$code_s]["PRINT_VALUE"]);
  341. $newphrase = str_replace(".00", "", $newphrase);
  342. if ($arResult['PROPERTIES']['LENDING']['VALUE']<>'да' && $arResult['PROPERTIES']['OBMEN']['VALUE'] == '') {
  343. //$xHtml44 .= '<span class="catalog-price-offline dss"><strike>' . $newphrase . '</strike></span>'; зачеркнутая цена
  344. } else {
  345. $xHtml_bez_nal .= '<tr> <td colspan="2" class="ttte45"><span class="text_1120">цена б/н</span>
  346. <span class="catalog-price-offline dss">' . $newphrase . '</span><span class="price34">грн</span>
  347. </td>
  348. <td>
  349. </td>
  350. </tr>';
  351. }
  352. }
  353. }
  354. }
  355. else{
  356. // $xHtml33 .= '<span class="catalog-price trrtr2">' . 'Уже скоро!' . '</span>';
  357. $xHtml33 .= '<style type="text/css"> .top44 {display: none;} </style>';
  358. //$xHtml33 .= '<style type="text/css"> .element-cart-btn {display: none;} </style>';
  359. }
  360. }
  361. ?>
  362. <table cellpadding="0" cellspacing="0" class="yyy" width="330" border="0">
  363. <tr>
  364. <td colspan="2" class="deliv_tab4" align="left">
  365. <?php
  366. if(($arPrice["VALUE"] < 1 OR $arPrice["VALUE"] > 2 )&&($arResult["CAN_BUY"])) {
  367. ?><img src="/img/vnalichii.png" /><span class="nalich">Есть в наличии</span><?
  368. } else {
  369. ?><img src="/img/netvnalichii.png" /><span class="nalichno">Нет в наличии</span><?
  370. }
  371. ?>
  372. </td>
  373. <td align="right" class="deliv_tab4">
  374. <?php
  375. echo "<span class='code_deliv'>Код товара : ".$arResult["ID"]."<span>";
  376. ?>
  377. </td>
  378. </tr>
  379. <tr>
  380. <!-- <td class="yyy1">
  381. <div class="top44">
  382. <span class="d44">цена</span>
  383. <?php
  384. echo '<span class="d45">';
  385. if ($arResult['PROPERTIES']['OBMEN']['VALUE'] <> '' && $arResult["PRICES"]['STOCK']["VALUE"]<> '' ) {
  386. // если стоит значение "Акционная цена" меняем местами надписи
  387. echo 'в нашем магазине';
  388. } else {
  389. if ($arResult["PRICES"]['OFFLINE']["VALUE"] <> '' && $arResult['PROPERTIES']['LENDING']['VALUE']=='да' ) {
  390. echo 'цена б/н, кредит';
  391. }
  392. if ($arResult["PRICES"]['OFFLINE']["VALUE"] <> '' && $arResult['PROPERTIES']['LENDING']['VALUE']<>'да' ) {
  393. echo 'в обычном магазине';
  394. }
  395. }
  396. echo '</span>';
  397. // нижняя строка
  398. //if ($arResult["PRICES"]['OFFLINE']["VALUE"] <> '' && $arResult['PROPERTIES']['OBMEN']['VALUE']<>'' ) {
  399. if ($arResult['PROPERTIES']['OBMEN']['VALUE']<>'' ) {
  400. echo '<strong>' . $arResult['PROPERTIES']['OBMEN']['VALUE'] . '</strong>';
  401. } else {
  402. echo '<span class="d46">в нашем магазине</span>';
  403. }
  404. // if ($arResult["PRICES"]['LENDING']["VALUE"]<>'') {
  405. // echo '<span class="d49">цена б/н, кредит</span>';
  406. // }
  407. ?>
  408. </div>
  409. </td>-->
  410. <td class="yyy2" colspan="2">
  411. <?php
  412. echo $xHtml44;
  413. echo $xHtml33;
  414. ?>
  415. </td>
  416. <td align="right" class="yyy2">
  417. <?php
  418. //------------------------------------------------------------------------------------------------------------------
  419. $arrMapsModelsnexus7 = array(39978);
  420. $arrMapsModelsnexus72 = array(41530);
  421. $arrMapsModels = array(36216);
  422. $arrMapsModelsHTCX = array(35464,35452);
  423. $arrMapsModelsGalaxyS3 = array(37321,37317);
  424. $arrMapsModelsHTCC = array(35470,35468);
  425. $arrMapsModelsdesirec = array(37557,37555,37550);
  426. $arrMapsModelsdesirev = array(40307);
  427. echo '<ul class="element-cart-btn">';
  428. if($arPrice["VALUE"] < 1 OR $arPrice["VALUE"] > 2 ){
  429. if ($arResult["CAN_BUY"]) {
  430. echo '<li><noindex><a href="' . $arResult["BUY_URL"] . '" class="link-by" rel="nofollow"><span>'
  431. . GetMessage("CATALOG_BUY") . '</span></a></noindex></li>';
  432. } else {
  433. if (in_array($arResult["ID"], $arrMapsModels)) {
  434. echo '<li><noindex><a href="http://www.citrus.ua/order_htc_one_v" class="link-order"><span>оставить предзаказ</span></a></noindex></li>';
  435. } elseif (in_array($arResult["ID"], $arrMapsModelsHTCX )) {
  436. echo '<li><noindex><a href="http://www.citrus.ua/order_htc_one_x" class="link-order"><span>оставить предзаказ</span></a></noindex></li>';
  437. } elseif (in_array($arResult["ID"], $arrMapsModelsGalaxyS3 )) {
  438. echo '<li><noindex><a href="http://www.citrus.ua/order_galaxy_s_3" class="link-order"><span>оставить предзаказ</span></a></noindex></li>';
  439. } elseif (in_array($arResult["ID"], $arrMapsModelsHTCC)) {
  440. echo '<li><noindex><a href="http://www.citrus.ua/madonna_order" class="link-order"><span>оставить предзаказ</span></a></noindex></li>';
  441. } elseif (in_array($arResult["ID"], $arrMapsModelsdesirec)) {
  442. echo '<li><noindex><a href="http://www.citrus.ua/order_desire_c" class="link-order"><span>оставить предзаказ</span></a></noindex></li>';
  443. } elseif (in_array($arResult["ID"], $arrMapsModelsdesirev)) {
  444. echo '<li><noindex><a href="http://www.citrus.ua/order_desire_v" class="link-order"><span>оставить предзаказ</span></a></noindex></li>';
  445. } elseif (in_array($arResult["ID"], $arrMapsModelsnexus7)) {
  446. echo '<li><noindex><a href="http://www.citrus.ua/nexus_7" class="link-order"><span>оставить предзаказ</span></a></noindex></li>';
  447. } elseif (in_array($arResult["ID"], $arrMapsModelsnexus72)) {
  448. echo '<li><noindex><a href="http://www.citrus.ua/nexus_7_16" class="link-order"><span>оставить предзаказ</span></a></noindex></li>';
  449. } else {
  450. echo '<li><noindex><a href="/preorder/?ID=' . $arResult["ID"]
  451. . '" class="link-order" rel="nofollow"><span>оставить предзаказ</span></a></noindex></li>';
  452. }
  453. }
  454. }
  455. else {
  456. if (in_array($arResult["ID"], $arrMapsModelsnexus7)) {
  457. echo '<li><noindex><a href="http://www.citrus.ua/nexus_7" class="link-order"><span>оставить предзаказ</span></a></noindex></li>';
  458. } elseif (in_array($arResult["ID"], $arrMapsModelsnexus7)) {
  459. echo '<li><noindex><a href="http://www.citrus.ua/nexus_7" class="link-order"><span>оставить предзаказ</span></a></noindex></li>';
  460. } else {
  461. echo '<li><noindex><a href="/preorder/?ID=' . $arResult["ID"]
  462. . '" class="link-know" rel="nofollow"><span>уведомить о наличии</span></a></noindex></li>';
  463. // . '" class="link-order iframe" rel="nofollow"><span>Заказать</span></a></noindex></li>';
  464. }
  465. }
  466. echo '</ul>';
  467. ?>
  468. <!-- конпка купить -->
  469. </td>
  470. </tr>
  471. <?
  472. $arGroups = CUser::GetUserGroup($USER->GetID());
  473. //print_r($arGroups);
  474. $flgr=0;
  475. $fprice=0;
  476. for ($i=0; $i < count($arGroups); $i++)
  477. {
  478. if ($arGroups[$i] == 1){$flgr=1;}
  479. //if ($arGroups[$i] == 12){$flgr=1;}
  480. if ($arGroups[$i] == 1){$flgr=1;}
  481. }
  482. //$flgr=1;
  483. include_once('geo.php');
  484. $o = array(); // опции. необзятательно.
  485. $geo = new Geo($o); // запускаем класс
  486. $geost = $geo->get_value('city', true);
  487. if ($geost=="Киев" OR $geost=="Одесса"){$flgr=1;}
  488. $db = mysql_connect('localhost', 'citrus_store', 'vSpYAxRujDfNtneX11a');
  489. mysql_select_db('citrus_store', $db);
  490. $sql="SELECT bie.ID, bcp.PRICE FROM b_iblock_element as bie,
  491. b_catalog_price as bcp
  492. WHERE (bie.ID=bcp.PRODUCT_ID
  493. AND bcp.CATALOG_GROUP_ID=1
  494. AND bie.ID=".$arResult["ID"].")";
  495. $result = mysql_query($sql, $db);
  496. while ($r = mysql_fetch_array($result))
  497. {
  498. $el_price=$r['PRICE'];
  499. if ($el_price>1){$fprice=1;}
  500. }
  501. if ($arResult["ID"]==33524
  502. OR $arResult["ID"]==33525
  503. OR $arResult["ID"]==33526
  504. OR $arResult["ID"]==33527
  505. OR $arResult["ID"]==33528
  506. OR $arResult["ID"]==33661)
  507. {
  508. $flgr=0;
  509. }
  510. if ($flgr==1 AND $fprice==1)
  511. {
  512. ?>
  513. <!-- конпка кредита -->
  514. <tr>
  515. <td class="yyy2">
  516. <span style="color:#FFF" class="text_credit">кредит</span>
  517. </td>
  518. <td class="yyy2">
  519. <script src="/js2/loan-math.js"></script>
  520. <script src="/js2/products.js"></script>
  521. <script type="text/javascript">
  522. function showLoanInfo2(L1) {
  523. var
  524. S =('<div class="text_credit_d">'+Number(Amount2Str(L1.payment)).toFixed(0)+'&nbsp;</div>');
  525. 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>');
  526. document.write(S);
  527. }
  528. var loan = new Loan("15333.001", <?=$price_credit?>, 0, 24);
  529. showLoanInfo2(loan);
  530. </script>
  531. <!--
  532. <script>
  533. try {
  534. document.write("<hr/>");
  535. // Расчитать кредит: Заказ 100 грн., Аванс 0 грн., срок 3 месяця -- обходим ограничение по меньшей сумме кредита
  536. var product = products["1502.001"];
  537. var prvMinAmount = product.minAmount;
  538. product.minAmount = 0.01;
  539. var L = new Loan(product, 100, 0, 3);
  540. product.minAmount = prvMinAmount;
  541. showLoanInfo( L );
  542. } catch ( e ) {
  543. // ecли параметры кредита не разрешают сделать расчет, то генерируется исключение
  544. document.write("<div style='color:red; font-weight: bold'>"+e.message+"</div>");
  545. }
  546. </script>-->
  547. </td>
  548. <td align="right" class="yyy2">
  549. <noindex>
  550. <a rel="nofollow" class="link-credit jqModal" href="#"><span>Кредит</span></a>
  551. </noindex>
  552. </td>
  553. </tr>
  554. <?
  555. }
  556. ?>
  557. <!-- кнопка кредита окончание блока -->
  558. <?php
  559. // цена безналичная
  560. echo $xHtml_bez_nal;
  561. ?>
  562. <tr>
  563. <td colspan="3" style="padding:0px 0 0 0" align="right">
  564. </td>
  565. </tr>
  566. <tr>
  567. </tr>
  568. </table>
  569. <!-- блок с ценами -->
  570. </td>
  571. </tr>
  572. <?
  573. //----------------------------------------------------------- новые кнопки
  574. $arGroups = CUser::GetUserGroup($USER->GetID());
  575. //print_r($arGroups);
  576. $flgr=0;
  577. for ($i=0; $i < count($arGroups); $i++)
  578. {
  579. if ($arGroups[$i] == 1){$flgr=1;}
  580. if ($arGroups[$i] == 12){$flgr=1;}
  581. }
  582. $flgr=1;
  583. if ($flgr==1)
  584. {
  585. ?>
  586. <style type="text/css">
  587. .dop_elh {
  588. text-decoration:none;
  589. font-family:Arial;
  590. font-size:14px;
  591. color:#484748;
  592. }
  593. .dop_el {
  594. text-decoration:none;
  595. font-family:Arial;
  596. font-size:12px;
  597. color:#484748;
  598. }
  599. </style>
  600. <?
  601. include_once $_SERVER['DOCUMENT_ROOT'] . '/shop/el_podrob_upp.php';
  602. }
  603. ?>
  604. <!--
  605. <tr>
  606. <td style="padding:0px 0;font-size: 12pt;">
  607. <?php
  608. //Вывод текста под ценой
  609. $dwkwa_out = $arResult['PROPERTIES']['under_pricing']['~VALUE']['TEXT'];
  610. $dwkwa_out = str_replace("&lt;","<",$dwkwa_out);
  611. $dwkwa_out = str_replace("&gt;",">",$dwkwa_out);
  612. print_r($dwkwa_out);
  613. ?>
  614. <br />
  615. </td>
  616. </tr>-->
  617. <tr>
  618. <td class="deliv_tab2">
  619. <!-- город -->
  620. <?php
  621. require_once $_SERVER['DOCUMENT_ROOT'] . '/geo_ip/select_s0.php';
  622. require_once $_SERVER['DOCUMENT_ROOT'] . '/geo_ip/select_s.php';
  623. ?>
  624. <!-- город конец -->
  625. </td>
  626. </tr>
  627. <tr>
  628. <td class="deliv_tab1">
  629. <!-- город -->
  630. <?php
  631. require_once $_SERVER['DOCUMENT_ROOT'] . '/geo_ip/geo_elem.php';
  632. ?>
  633. <!-- город конец -->
  634. </td>
  635. </tr>
  636. <tr>
  637. <td>
  638. <br />
  639. </td>
  640. </tr>
  641. <tr>
  642. <td class="deliv_tab3">
  643. <?php
  644. if ($arResult['PROPERTIES']['warranty']['VALUE']){
  645. echo '<div style="float: left;">';
  646. echo '<span class="deliv2">Гарантия&nbsp;</span><img src="/img/arrow_03.gif" />';
  647. echo '</div>';
  648. echo '<span class="ffreen435">'.$arResult['PROPERTIES']['warranty']['VALUE'].
  649. ' , обмен возврат товара в течении 14 дней</span>';
  650. }
  651. if ($arResult['PROPERTIES']['LOWCOST']['VALUE']=='yes') {
  652. echo '<br><span class="ffreen436">Самая низкая цена</span>';
  653. }
  654. ?>
  655. </td>
  656. </tr>
  657. <tr>
  658. <td>
  659. <div style="display:block;padding: 15px 0;">
  660. <script type="text/javascript" src="http://userapi.com/js/api/openapi.js?32"></script>
  661. <script type="text/javascript">
  662. VK.init({apiId: 2054133, onlyWidgets: true});
  663. </script>
  664. <div id="vk_like" style="float:left;"></div>
  665. <script type="text/javascript">
  666. VK.Widgets.Like("vk_like", {type: "button"});
  667. </script>
  668. <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>
  669. <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>
  670. </div>
  671. </td>
  672. </tr>
  673. <tr>
  674. <td style="height:40px">
  675. <!-- <div class="buttons_10">
  676. <?php
  677. //КРЕДИТ
  678. $exclude_iblock_id = array('54', '55'); //массив ID разделов, в которых не отображается блок
  679. $min_price = 200; //минимальная цена товара, при которой блок отображается
  680. //if (($arPrice["VALUE"]>$min_price)&&(!in_array($arResult["IBLOCK_ID"], $exclude_iblock_id, false))){
  681. if (($arResult["PRICES"]['RETAIL']["VALUE"]>$min_price)&&(!in_array($arResult["IBLOCK_ID"], $exclude_iblock_id, false))){?>
  682. <div class="element-button element-credit">
  683. <a href="/shop/credit?utm_source=product_page&utm_medium=button&utm_campaign=credit">
  684. <img alt="Покупай в кредит" title="Покупай в кредит" src="/img/btn_credit_new.png" />
  685. </a>
  686. </div>
  687. <?php
  688. }
  689. //ЦИТРУС ОБМЕН
  690. if ($arResult["IBLOCK_ID"] == 20) {?>
  691. <div class="element-button element-trade-in" style="border:none;background-color:#fff;">
  692. <a href="//obmen.citrus.ua/?utm_source=product_page&utm_medium=button&utm_campaign=obmen">
  693. <img alt="Цитрус.ua Обмен" src="/img/btn_citrus_obmen.png" border="0" />
  694. </a>
  695. </div>
  696. <?php
  697. }
  698. //МАСТЕР ЦИТРУС
  699. if ($arResult["IBLOCK_ID"] == 20) {?>
  700. <div class="element-button element-master-citrus" style="background-color:#fff;heigth:auto;overflow:hidden;">
  701. <a href="/discount/master_mobile/?utm_source=product_page&utm_medium=button&utm_campaign=master_mobile" rel="nofollow">
  702. <img border="0" src="/img/btn_master_citrus_tel.png" alt="Цитрус-Мастер" align="left" />
  703. </a>
  704. </div>
  705. <?php
  706. }
  707. if ($arResult["IBLOCK_ID"] == 22) {?>
  708. <div class="element-button element-master-citrus" style="background-color:#fff;heigth:auto;overflow:hidden;">
  709. <a href="/discount/master_notebook/?utm_source=product_page&utm_medium=button&utm_campaign=master_notebook" rel="nofollow">
  710. <img border="0" src="/img/btn_master_citrus_tel.png" alt="Цитрус-Мастер" align="left" />
  711. </a>
  712. </div>
  713. <?php
  714. }
  715. ?>
  716. </div> -->
  717. </td>
  718. </tr>
  719. </table>
  720. <!-- ------------------------------- таблица справа конец -------->
  721. </td>
  722. </tr>
  723. <tr>
  724. <td>
  725. <script type="text/javascript" src="/js2/big-photo.js"></script>
  726. <span id="coherent_id_403">
  727. <?php if (count($arResult["MORE_PHOTO"]) > 0) { ?>
  728. <a rel="external" href="/gallery/index.php?id=<?=$id_st?>&current=<?=$arResult["MORE_PHOTO"]["0"]["ID"]?>" class="iframe400">увеличить изображение&nbsp;</a>
  729. <?php } else { ?>
  730. <a rel="external" href="/gallery/index.php?id&current=<?=$arResult["ID"]?>" class="iframe400">увеличить изображение&nbsp;</a>
  731. <?php }
  732. ?>
  733. </span>
  734. </td>
  735. </tr>
  736. <tr>
  737. <td>
  738. </td>
  739. </tr>
  740. <tr>
  741. <td>
  742. <script type='text/javascript'>
  743. var id = '<?=$id_st?>' ;
  744. </script>
  745. <?php
  746. //echo "<pre>";
  747. //print_r ($arResult["MORE_PHOTO"]);
  748. //echo "</pre>";
  749. //------------------------
  750. if (count($arResult["MORE_PHOTO"]) > 0) { // когда выводить картинку в строке, было если нет "1", сейчас всегда
  751. echo '<div class="big-photo-preview-carousel">';
  752. echo '<div class="big-photo-preview">';
  753. echo '<ul>';
  754. foreach ($arResult["MORE_PHOTO"] as $PHOTO) {
  755. echo '<li>';
  756. echo '<a class="img34" id="'. $PHOTO["ID"] .'" href="' . $objImageGd->getImage($PHOTO["SRC"], 200, 400, 0) . '" rel="photothumbs">';
  757. // echo '<a class="zoom2" href="' . $PHOTO["SRC"] . '" rel="photothumbs">';
  758. // echo '<a class="zoom2" href="' . $PHOTO["SRC"] . '">';
  759. echo '<div class="img33">';
  760. echo '<img class="img35" border="0" src="' . $objImageGd->getImage($PHOTO["SRC"], 80, 80, 0) . '" alt="'
  761. . $PHOTO["ALT"] . '" title="' . $arResult["NAME"] . '" />';
  762. echo '</div>';
  763. echo '</a>';
  764. echo '</li>';
  765. }
  766. echo '</ul>';
  767. echo '</div>';
  768. // if (count($arResult["MORE_PHOTO"]) > 0) { // когда показывать стрелки
  769. // echo '<a href="#" class="btn_next"><span>Вперед</span></a>';
  770. // echo '<a href="#" class="btn_prev"><span>Назад</span></a>';
  771. // }
  772. echo '</div>';
  773. }
  774. ?>
  775. </td>
  776. </tr>
  777. <?php
  778. if (is_array($arResult['PROPERTIES']['YOUTUBE']['~VALUE'])) {
  779. foreach ($arResult['PROPERTIES']['YOUTUBE']['~VALUE'] as $video) {
  780. if (substr($video, 0, 7) == 'http://') {
  781. $partsVideoUri = parse_url($video);
  782. $arrVideoQueryString = array();
  783. if ($partsVideoUri['query']) {
  784. parse_str($partsVideoUri['query'], $arrVideoQueryString);
  785. }
  786. ?>
  787. <tr>
  788. <script type="text/javascript">
  789. $(document).ready(function() {
  790. $('a.iframe<?=$arrVideoQueryString['v']?>').fancybox({
  791. 'frameWidth' : 600,
  792. 'frameHeight' : 370,
  793. 'zoomSpeedIn':500,
  794. 'zoomSpeedOut':500,
  795. 'overlayColor':'#fff'
  796. });
  797. });
  798. </script>
  799. <td class="">
  800. <div class="youtube">
  801. <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']?>">видео-обзор&nbsp;(<?=$i0+=1?>)</a>
  802. </div>
  803. </td>
  804. </tr>
  805. <?php
  806. }
  807. }
  808. }
  809. ?>
  810. <tr>
  811. <td align="left">
  812. <table>
  813. <tr>
  814. <td width="250">
  815. <?php require $_SERVER['DOCUMENT_ROOT'] . '/raiting/_drawrating.php'; ?>
  816. <?php echo rating_bar($arResult["ID"],5); ?>
  817. </td>
  818. <td>
  819. <?
  820. //----------------------------------------------- UAUCRF ВСПЛЫВАЮЩЕЕ ОКНО
  821. if ($arResult["ID"]=="31477" OR
  822. $arResult["ID"]=="31475" OR
  823. $arResult["ID"]=="30456" OR
  824. $arResult["ID"]=="31468" OR
  825. $arResult["ID"]=="45014" OR
  826. $arResult["ID"]=="45042" OR
  827. $arResult["ID"]=="45029" OR
  828. $arResult["ID"]=="45026" OR
  829. $arResult["ID"]=="45035" OR
  830. $arResult["ID"]=="45033")
  831. {
  832. ?>
  833. <div class="crf1">
  834. <a class="iframe" href="/shop/apple/uaucrf.html">
  835. <img src="/images/UCRF_rus_sm.png" border="0" width="168" height="57" />
  836. </a>
  837. </div>
  838. <?}
  839. //----------------------------------------------- #UAUCRF ВСПЛЫВАЮЩЕЕ ОКНО
  840. ?>
  841. </td>
  842. </table>
  843. </td>
  844. </tr>
  845. </table>
  846. <?php if($arResult["PROPERTIES"]["banner_o"]["VALUE"]) { ?>
  847. <table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-color: #BBBBCC; border-style: dashed; border-width: 0 0 1px;">
  848. <tr>
  849. <td align="center" style="padding: 10px 0;">
  850. <?php
  851. echo '<img border="0" src="http://'.$_SERVER['HTTP_HOST'].CFile::GetPath($arResult["PROPERTIES"]["banner_o"]["VALUE"]).'"/>';
  852. //echo $_SERVER['HTTP_HOST'] . CFile::GetPath($arResult["PROPERTIES"]["banner_o"]["VALUE"]);
  853. ?>
  854. </td>
  855. </tr>
  856. </table>
  857. <?php } ?>
  858. <?
  859. //------------------------------------------------------------------------- HTC BUKOVEL
  860. //------------------------------------------------------------------------- #HTC BUKOVEL
  861. if ($arResult["ID"]==37550
  862. OR $arResult["ID"]==37557
  863. OR $arResult["ID"]==37555
  864. OR $arResult["ID"]==48431)
  865. {
  866. ?>
  867. <div style="width:100%; height:131px; text-align:center; padding-top:30px;">
  868. <link rel="stylesheet" type="text/css" media="screen, projection" href="/subscribe-upload/banner/slideview2.css" />
  869. <script src="/subscribe-upload/banner/slideView.js" type="text/javascript"></script>
  870. <script type="text/javascript">
  871. $(function() {
  872. $("#slideshow").slideView();
  873. });
  874. </script>
  875. <div id="slideshow">
  876. <div class="slides">
  877. <ul class="slideView">
  878. <li><a href="http://www.citrus.ua/discount/shares/51162/" title="МЕНЯЙ СТАРЫЙ ТЕЛЕФОН НА НОВЫЙ HTC И ОТПРАВЛЯЙСЯ В БУКОВЕЛЬ!">
  879. <img src="/subscribe-upload/banner/images/bukovel_htc_917.jpg" /></a></li>
  880. <li><img src="/subscribe-upload/banner/images/privat.jpg" alt="Privat" /></li>
  881. </ul>
  882. </div>
  883. </div>
  884. </div>
  885. <br />
  886. <img src="/images/hor_line_dot.jpg" />
  887. <?
  888. }
  889. elseif ($arResult["ID"]==35452
  890. OR $arResult["ID"]==35464
  891. OR $arResult["ID"]==40307
  892. OR $arResult["ID"]==45244
  893. OR $arResult["ID"]==45245
  894. OR $arResult["ID"]==45977
  895. OR $arResult["ID"]==45979
  896. OR $arResult["ID"]==45981
  897. OR $arResult["ID"]==45991
  898. OR $arResult["ID"]==45993)
  899. {
  900. ?>
  901. <div style="width:100%; height:131px; text-align:center; padding-top:30px;">
  902. <a href="http://www.citrus.ua/discount/shares/51162/" title="МЕНЯЙ СТАРЫЙ ТЕЛЕФОН НА НОВЫЙ HTC И ОТПРАВЛЯЙСЯ В БУКОВЕЛЬ!">
  903. <img src="/subscribe-upload/banner/images/bukovel_htc_917.jpg" /></a>
  904. </div>
  905. <br />
  906. <img src="/images/hor_line_dot.jpg" />
  907. <?
  908. }elseif ($arResult["ID"]==50203)
  909. {
  910. ?>
  911. <div style="width:100%; height:131px; text-align:center; padding-top:30px;">
  912. <link rel="stylesheet" type="text/css" media="screen, projection" href="/subscribe-upload/banner/slideview2.css" />
  913. <script src="/subscribe-upload/banner/slideView.js" type="text/javascript"></script>
  914. <script type="text/javascript">
  915. $(function() {
  916. $("#slideshow").slideView();
  917. });
  918. </script>
  919. <div id="slideshow">
  920. <div class="slides">
  921. <ul class="slideView">
  922. <li><img src="/subscribe-upload/banner/images/htcdesirex_b.jpg" /></li>
  923. <li><a href="http://www.citrus.ua/discount/shares/51162/" title="МЕНЯЙ СТАРЫЙ ТЕЛЕФОН НА НОВЫЙ HTC И ОТПРАВЛЯЙСЯ В БУКОВЕЛЬ!">
  924. <img src="/subscribe-upload/banner/images/bukovel_htc_917.jpg" /></a></li>
  925. </ul>
  926. </div>
  927. </div>
  928. </div>
  929. <br />
  930. <img src="/images/hor_line_dot.jpg" />
  931. <?
  932. }
  933. //------------------------------------------------------------------- НАБОР ПРИЛОЖЕНИЙ ДЛЯ IPAD
  934. if ($arResult["ID"]==29779
  935. OR $arResult["ID"]==34567
  936. OR $arResult["ID"]==33251
  937. OR $arResult["ID"]==35969
  938. OR $arResult["ID"]==35969
  939. OR $arResult["ID"]==35970
  940. OR $arResult["ID"]==35971
  941. OR $arResult["ID"]==35972
  942. OR $arResult["ID"]==35973
  943. OR $arResult["ID"]==35974)
  944. {
  945. //------------------------------------
  946. ?>
  947. <style type="text/css">
  948. .iprog{
  949. width:120px;
  950. display: block;
  951. height: auto;
  952. background-color: #FDFDFD;
  953. border-radius: 5px;
  954. border: 1px solid #D2D2D2;
  955. -moz-border-top-colors: none;
  956. -moz-border-right-colors: none;
  957. -moz-border-bottom-colors: none;
  958. -moz-border-left-colors: none;
  959. -moz-border-image: none;
  960. border-color: #EEE rgba(20, 20, 20, 0.2) #D2D2D2;
  961. -webkit-box-shadow: 0pt 1px 2px rgba(20, 20, 20, 0.5);
  962. -moz-box-shadow: 0pt 1px 2px rgba(20, 20, 20, 0.5);
  963. box-shadow: 0pt 1px 2px rgba(20, 20, 20, 0.5);
  964. padding: 2px;
  965. text-align: center;
  966. text-decoration: none;
  967. -webkit-border-radius: 5px;
  968. -moz-border-radius: 5px;
  969. background: -webkit-gradient(linear, 0 0, 0 bottom, from(#FDFDFD), to(#EDEDED));
  970. background: -webkit-linear-gradient(#FDFDFD, #EDEDED);
  971. ___background: -moz-linear-gradient(#FDFDFD, #EDEDED);
  972. background: -ms-linear-gradient(#FDFDFD, #EDEDED);
  973. background: -o-linear-gradient(#FDFDFD, #EDEDED);
  974. background: linear-gradient(#FDFDFD, #EDEDED);
  975. -pie-background: linear-gradient(#FDFDFD, #EDEDED);
  976. behavior: url(/PIE.htc);
  977. position: relative;
  978. }
  979. .i_m_name{
  980. font-family: Arial !important;
  981. color: #666;
  982. text-shadow: 1px 1px 0pt white;
  983. line-height: 1.6em;
  984. font-size: 16pt;
  985. }
  986. .i_pr1{
  987. color: #666;
  988. text-shadow: 1px 1px 0pt white;
  989. line-height: 1.6em;
  990. font-size: 12pt;
  991. font-weight: bold;
  992. }
  993. .i_pr2{
  994. color: #666;
  995. font-size: 10pt;
  996. }
  997. .i_more1{
  998. color:#6AA82B;
  999. font-size: 12px;
  1000. font-family: Arial !important;
  1001. line-height: 1.6em;
  1002. }
  1003. .i_more2{
  1004. color:#F27000;
  1005. font-size: 12px;
  1006. font-family: Arial !important;
  1007. line-height: 1.6em;
  1008. text-decoration: none;
  1009. border-bottom: 1px dashed #F27000;
  1010. }
  1011. .i_inf1{
  1012. font-size: 16pt;
  1013. color:#666;
  1014. }
  1015. .i_inf2{
  1016. font-size:12pt;
  1017. color:#666;
  1018. }
  1019. </style>
  1020. <br />
  1021. <table border="0">
  1022. <tr>
  1023. <td width="360" align="center">
  1024. <p><span class="i_inf1">
  1025. Выберите набор приложений
  1026. </span></p>
  1027. <p><span class="i_inf2">Нажмите на название, чтобы узнать больше</span></p>
  1028. <p><span class="i_inf2">
  1029. Устанавливается и настраивается<br />нашими тех. экспертами.
  1030. </span></p>
  1031. </td>
  1032. <td width="140" align="center">
  1033. <div class="iprog">
  1034. <span style="height: 96px;" class="model-spec">
  1035. <table width="100%" border="0">
  1036. <tr><td colspan="2" align="center"><a class="iframe" href="/shop/apple/musthave.html"><span class="i_m_name">Musthave</span></a></td></tr>
  1037. <tr><td align="center"><img src="/shop/apple/skype.png" width="43" height="44" alt="skype"></td>
  1038. <td align="left"><span class="i_pr1">199</span>&nbsp;<span class="i_pr2">грн.</span>
  1039. </td></tr>
  1040. <tr><td colspan="2" align="center"><a class="i_more1" href="?action=ADD2BASKET&id=33495">в корзину</a>
  1041. </td></tr>
  1042. </table>
  1043. </span>
  1044. </div>
  1045. </td>
  1046. <td width="140" align="center">
  1047. <div class="iprog">
  1048. <span style="height: 96px;" class="model-spec">
  1049. <table width="100%" border="0">
  1050. <tr><td colspan="2" align="center"><a class="iframe" href="/shop/apple/ifun.html"><span class="i_m_name">iFun</span></a></td></tr>
  1051. <tr><td align="center"><img src="/shop/apple/ptica.png" width="43" height="44" alt="skype"></td>
  1052. <td align="left"><span class="i_pr1">399</span>&nbsp;<span class="i_pr2">грн.</span>
  1053. </td></tr>
  1054. <tr><td colspan="2" align="center"><a class="i_more1" href="?action=ADD2BASKET&id=33497">в корзину</a>
  1055. </td></tr>
  1056. </table>
  1057. </span>
  1058. </div>
  1059. </td>
  1060. <td width="140" align="center">
  1061. <div class="iprog">
  1062. <span style="height: 96px;" class="model-spec">
  1063. <table width="100%" border="0">
  1064. <tr><td colspan="2" align="center"><a class="iframe" href="/shop/apple/ibusiness.html"><span class="i_m_name">iBusiness</span></a></td></tr>
  1065. <tr><td align="center"><img src="/shop/apple/bloknot.png" width="43" height="44" alt="skype"></td>
  1066. <td align="left"><span class="i_pr1">399</span>&nbsp;<span class="i_pr2">грн.</span>
  1067. </td></tr>
  1068. <tr><td colspan="2" align="center"><a class="i_more1" href="?action=ADD2BASKET&id=33499">в корзину</a>
  1069. </td></tr>
  1070. </table>
  1071. </span>
  1072. </div>
  1073. </td>
  1074. <td width="140" align="center">
  1075. <div class="iprog">
  1076. <span style="height: 96px;" class="model-spec">
  1077. <table width="100%" border="0">
  1078. <tr><td colspan="2" align="center"><a class="iframe" href="/shop/apple/ivip.html"><span class="i_m_name">iVIP</span></a></td></tr>
  1079. <tr><td align="center"><img src="/shop/apple/vip.png" width="43" height="44" alt="skype"></td>
  1080. <td align="left"><span class="i_pr1">799</span>&nbsp;<span class="i_pr2">грн.</span>
  1081. </td></tr>
  1082. <tr><td colspan="2" align="center"><a class="i_more1" href="?action=ADD2BASKET&id=33501">в корзину</a>
  1083. </td></tr>
  1084. </table>
  1085. </span>
  1086. </div>
  1087. </td>
  1088. </tr>
  1089. </table>
  1090. <br />
  1091. <?
  1092. echo "<img src=\"/images/hor_line_dot.jpg\" />";
  1093. //---------------------------------------------------------------------------------------------------------------------
  1094. }
  1095. //------------------------------------------------------------------- #НАБОР ПРИЛОЖЕНИЙ ДЛЯ IPAD
  1096. ?>
  1097. <?
  1098. //------------------------------------------------------------------ СЛАЙДЫ IPHONE 5
  1099. if ($arResult["ID"]==45042 OR
  1100. $arResult["ID"]==45014 OR
  1101. $arResult["ID"]==45029 OR
  1102. $arResult["ID"]==45026 OR
  1103. $arResult["ID"]==45035 OR
  1104. $arResult["ID"]==45033)
  1105. {
  1106. ?>
  1107. <link rel="stylesheet" type="text/css" media="screen, projection" href="/subscribe-upload/banner/slideview2.css" />
  1108. <script src="/subscribe-upload/banner/slideView.js" type="text/javascript"></script>
  1109. <script type="text/javascript">
  1110. $(function() {
  1111. $("#slideshow").slideView();
  1112. });
  1113. </script>
  1114. <div id="slideshow">
  1115. <div class="slides">
  1116. <ul class="slideView">
  1117. <li><img src="/subscribe-upload/banner/iphone5/iPhone 5_2.jpg" alt="iPhone 5" /></li>
  1118. <li><img src="/subscribe-upload/banner/iphone5/iPhone 5_3.jpg" alt="iPhone 5" /></li>
  1119. <li><img src="/subscribe-upload/banner/iphone5/iPhone 5_4.jpg" alt="iPhone 5" /></li>
  1120. <li><img src="/subscribe-upload/banner/iphone5/iPhone 5_5.jpg" alt="iPhone 5" /></li>
  1121. <li><img src="/subscribe-upload/banner/iphone5/iPhone 5_6.jpg" alt="iPhone 5" /></li>
  1122. <li><img src="/subscribe-upload/banner/iphone5/iPhone 5_7.jpg" alt="iPhone 5" /></li>
  1123. <!--<li><img src="/subscribe-upload/banner/iphone5/banner_privat.jpg" alt="iPhone 5" /></li>-->
  1124. </ul>
  1125. </div>
  1126. </div>
  1127. <?
  1128. echo "<img src=\"/images/hor_line_dot.jpg\" />";
  1129. }
  1130. //------------------------------------------------------------------ #СЛАЙДЫ IPHONE 5
  1131. ?>
  1132. <table width="100%" border="0" cellpadding="0" cellspacing="0" class="main_bord">
  1133. <? ob_start(); ?>
  1134. <?php
  1135. echo '<tr><td colspan="2" id="hhh4_1"><div id="top_y_1">Описание ' .$pageN . '</div></td></tr>';
  1136. ?>
  1137. <tr><td colspan="2" id="ffft">
  1138. <div class="description">
  1139. <?php echo $arResult['PREVIEW_TEXT'] ?>
  1140. <br>
  1141. <p>Купить <?php echo $arrIblockNames[$arResult["IBLOCK_ID"]] ?> <?php
  1142. echo $arResult["NAME"] ?> вы можете в Интернет-магазине &laquo;Цитрус&raquo;.</p>
  1143. <?php
  1144. //НАДПИСЬ ГОСКОМ
  1145. if ($arResult["IBLOCK_ID"] == 20 //добавляем надпись Госком только для Мобильных телефонов
  1146. && $googIblockSection != 258 //но без IPhone Apple
  1147. && $googIblockSection != 310 //и Blackberry
  1148. && $arResult["ID"] != 9653)
  1149. {
  1150. echo '<p class="description-subblock" style="border:none;background-color:#fff;">';
  1151. echo '<img alt="Сертифицированный товар" src="//img.citrus.com.ua/img/ua_ucrf.jpg" border="0" />';
  1152. echo '</p>';
  1153. }
  1154. if ($arResult["IBLOCK_SECTION_ID"] == 150) {
  1155. echo '<noindex><p class="description-subblock"><a href="http://www.ovi.com/" rel="nofollow">';
  1156. echo '<img border="0" src="//img.citrus.com.ua/img/ovi2.gif" alt="Nokia - магазин OVI" width="53" height="40" align="left" hspace="10" />';
  1157. echo '</a>';
  1158. echo 'Расширяйте возможности телефона Nokia с помощью сервисов Nokia на
  1159. <a href="http://www.ovi.com/" rel="nofollow">www.ovi.com</a>';
  1160. echo '</p></noindex>';
  1161. }
  1162. $arrMapsModels = array(3317, 3314, 3307, 656, 652, 5255, 5259, 2679, 692, 776, 7276, 736, 742, 740, 6575, 5242, 5238, 6562, 5246, 8260, 8308);
  1163. if (in_array($arResult["ID"], $arrMapsModels)) {
  1164. echo '<div class="description"><p><noindex><a
  1165. 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/"
  1166. rel="nofollow">Установите программу для использования бесплатной навигации по Украине и миру с официального сайта Nokia</a></noindex></p></div>';
  1167. }
  1168. ?>
  1169. <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>&nbsp;<?php
  1170. echo GetMessage("CATALOG_BACK") ?> <?php echo $arrIblock[$arResult["IBLOCK_ID"]] ?></a></p>
  1171. </div>
  1172. </td></tr>
  1173. <!--Функция прокрутки конец -->
  1174. <tr>
  1175. <td valign="top" class="small23">
  1176. </td>
  1177. </tr>
  1178. <!--Функция прокрутки начало -->
  1179. <!--Функция прокрутки-->
  1180. <script type="text/javascript">
  1181. //jQuery(function(){
  1182. //jQuery(".gallery").jCarouselLite({
  1183. // btnNext: ".right_btt",
  1184. // btnPrev: ".left_btt",
  1185. // mouseWheel: "true",
  1186. // visible:4,
  1187. // circular: false,
  1188. // scroll:1
  1189. // });});
  1190. </script>
  1191. <!--Функция прокрутки end-->
  1192. <?php
  1193. $arrAccessories = array();
  1194. if (is_array($arResult['PROPERTIES']['ACCESSORIES']['VALUE'])) {
  1195. foreach ($arResult['PROPERTIES']['ACCESSORIES']['VALUE'] as $item) {
  1196. $itemId = (int) $item;
  1197. if ($itemId > 0) {
  1198. $arrAccessories[] = $itemId;
  1199. }
  1200. }
  1201. }
  1202. $xHtml = '';
  1203. if (count($arrAccessories) > 0) {
  1204. $strAccessories = "'" . implode("', '", $arrAccessories) . "'";
  1205. $sql = "SELECT bie.`ID`, bie.`IBLOCK_SECTION_ID`, bie.`NAME`,
  1206. bi.`DETAIL_PAGE_URL`,
  1207. bf.`SUBDIR`, bf.`FILE_NAME`,
  1208. bcp.`PRICE`, bcp.`CURRENCY`,
  1209. bcpr.`QUANTITY`, bcpr.`QUANTITY_TRACE`
  1210. FROM `b_iblock_element` AS bie
  1211. JOIN `b_iblock` AS bi ON bi.`ID` = bie.`IBLOCK_ID`
  1212. AND bi.`ACTIVE` = 'Y'
  1213. JOIN `b_file` AS bf on bf.`ID` = bie.`PREVIEW_PICTURE`
  1214. 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