PageRenderTime 67ms CodeModel.GetById 25ms 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
  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` = bie.`ID`
  1215. AND bcp.`CATALOG_GROUP_ID` = '3'
  1216. AND bcp.`EXTRA_ID` IS NULL
  1217. LEFT JOIN `b_catalog_product` AS bcpr ON bcpr.`ID` = bie.`ID`
  1218. WHERE bie.`ID` IN ({$strAccessories})
  1219. AND bie.`ACTIVE` = 'Y'
  1220. AND bie.`WF_PARENT_ELEMENT_ID` IS NULL
  1221. ORDER BY bie.`NAME`
  1222. ";
  1223. $result = mysql_query($sql);
  1224. //print_r ($arrAccessories);
  1225. // Сортировка по тому, как расположены аксессуары в админке
  1226. $i=0;
  1227. if (mysql_num_rows($result) > 0) {
  1228. while ($row = mysql_fetch_assoc($result)) {
  1229. $row21[$i]['ID'] = $row['ID'];
  1230. $row21[$i]['IBLOCK_SECTION_ID'] = $row['IBLOCK_SECTION_ID'];
  1231. $row21[$i]['NAME'] = $row['NAME'];
  1232. $row21[$i]['DETAIL_PAGE_URL'] = $row['DETAIL_PAGE_URL'];
  1233. $row21[$i]['SUBDIR'] = $row['SUBDIR'];
  1234. $row21[$i]['FILE_NAME'] = $row['FILE_NAME'];
  1235. $row21[$i]['PRICE'] = $row['PRICE'];
  1236. $row21[$i]['CURRENCY'] = $row['CURRENCY'];
  1237. $row21[$i]['QUANTITY'] = $row['QUANTITY'];
  1238. $row21[$i]['QUANTITY_TRACE'] = $row['QUANTITY_TRACE'];
  1239. $i++;
  1240. }
  1241. }
  1242. $i2=0;
  1243. if (count($arrAccessories) > 0 ) {
  1244. foreach ($arrAccessories as $id5 ) {
  1245. for ($row5 = 0; $row5 < count($row21); $row5++ ) {
  1246. if ($id5 == $row21[$row5]['ID']) {
  1247. $row3[$i2] = $row21[$row5];
  1248. $i2++;
  1249. }
  1250. }
  1251. }
  1252. }
  1253. // Конец сортировки
  1254. // echo "<pre>";
  1255. // print_r ($row3);
  1256. // echo "</pre>";
  1257. if (count($row3) > 0) {
  1258. //$xHtml .= '<div style="overflow: hidden;" class="scroll_menu"><ul class="alternative-models-list scroll_menu">';
  1259. $xHtml .= '<div class="main_access">
  1260. <ul class="alternative-models-list">';
  1261. foreach ($row3 as $row5) {
  1262. $id = $row5['ID'];
  1263. $name = stripslashes($row5['NAME']);
  1264. $url = str_replace('#SITE_DIR#', '', $row5['DETAIL_PAGE_URL']);
  1265. $url = str_replace('#SECTION_ID#', $row5['IBLOCK_SECTION_ID'], $url);
  1266. $url = str_replace('#ID#', $row5['ID'], $url);
  1267. $img = '/upload/' . $row5['SUBDIR'] . '/' . $row5['FILE_NAME'];
  1268. $price = $row5['PRICE'];
  1269. $currency = $row5['CURRENCY'];
  1270. if ($currency == 'UAH') {
  1271. $price = $price . '<span>&nbsp;грн.</span>';
  1272. } elseif ($currency == 'USD') {
  1273. $price = '$' . $price;
  1274. }
  1275. $xHtml .= '<li style="float: left;">';
  1276. $xHtml .= '<div class="borders2_1" id="rrrt"><div><div><div><div><div><div><div><div id="otsst" class="f555">';
  1277. // получаем названия секций товаров
  1278. $sql = "SELECT IBLOCK_ID,NAME
  1279. FROM b_iblock_section
  1280. WHERE ID = '".$row5['IBLOCK_SECTION_ID']."'";
  1281. $result1 = mysql_query($sql);
  1282. //if (mysql_num_rows($result) > 0) {
  1283. //while (
  1284. $row2 = mysql_fetch_array($result1);
  1285. //) {
  1286. $id2 = (int) $row2['IBLOCK_ID'];
  1287. //echo $id2;
  1288. //$arrSectionsName[$id] = stripslashes($row['NAME']);
  1289. //}
  1290. //}
  1291. //mysql_free_result($result);
  1292. $xHtml .= '<a href="' . $url . '"><div class="fon_img"><img border="0" src="' . $objImageGd->getImage($img, 130, 130, 0)
  1293. . '" alt="" title="' . $name . '" /></div></a>';
  1294. $xHtml .= '<h3><a href="' . $url . '"><span style="color: #666;">' . $arrIblockNames[$id2] . '</span><br />' . $name . '</a></h3>';
  1295. if ($price != 1.00 ) {
  1296. $price = str_replace(".00", "", $price);
  1297. $xHtml .= '<p class="price">' . $price . '</p>';
  1298. $xHtml .= '<a class="link-tocart derty dert2" href="'. $url .'"><span>Подробнее</span></a>';
  1299. if ($row5['QUANTITY_TRACE'] == 'Y') {
  1300. if ($row5['QUANTITY'] > 0) {
  1301. $xHtml .= '<p class="price236"><a class="link-by dert2" href="' . $url . '?action=BUY&id=' . $id . '"><strong>Купить</strong></a></p>';
  1302. } else {
  1303. // $xHtml .= '<p class="price235"><a>Нет в наличии</a></p>';
  1304. $xHtml .= '<p class="price236"><a href="/preorder/?ID='.$id.'" class="link-order iframe derty dert2" rel="nofollow">
  1305. <span><strong>Заказать</strong></span></a></p>';
  1306. }
  1307. } else {
  1308. $xHtml .= '<p class="price236"><a class="link-by dert2" href="' . $url . '?action=BUY&id=' . $id . '"><strong>Купить</strong></a></p>';
  1309. }
  1310. } else {
  1311. $xHtml .= '<a class="link-tocart derty dert2" href="'. $url .'"><span>Подробнее</span></a>';
  1312. $xHtml .= '<p class="price236"><a href="/preorder/?ID='.$id.'" class="link-order iframe derty dert2" rel="nofollow">
  1313. <span><strong>Заказать</strong></span></a></p>';
  1314. }
  1315. $xHtml .= '</div></div></div></div></div></div></div></div></div>';
  1316. $xHtml .= '</li>';
  1317. }
  1318. // Дополнительная секция в слайдере
  1319. $xHtml .= '<li>';
  1320. $xHtml .= '</li>';
  1321. $xHtml .= '</ul>
  1322. </div>';
  1323. //$xHtml .= '</ul>';
  1324. //$xHtml .= '</div>';
  1325. }
  1326. mysql_free_result($result);
  1327. }
  1328. if (strlen($xHtml) > 0) {
  1329. $echoFlag = true;
  1330. echo '<tr><td colspan="2" id="hhh4_1"><div id="top_y_1">Аксессуары</div></td></tr>';
  1331. }
  1332. echo '<tr><td colspan="2">' . $xHtml . '</td></tr>';
  1333. ?>
  1334. <?
  1335. $sContent = ob_get_contents();
  1336. //ob_end_flush();
  1337. ob_end_clean();
  1338. $sFileName = "/new_cache/{$arResult['ID']}.tmp";
  1339. if(time() - filemtime($_SERVER['DOCUMENT_ROOT'].$sFileName) > 60)
  1340. {
  1341. file_put_contents($_SERVER['DOCUMENT_ROOT'].$sFileName, iconv('windows-1251', 'utf-8', $sContent));
  1342. }
  1343. ?>
  1344. </table>
  1345. <script>
  1346. jQuery(function(){
  1347. $('.main_bord').load('<?=$sFileName?>');
  1348. })
  1349. </script>
  1350. <!-------------------------------- Вторая вкладка ----------------------------------------------------------------->
  1351. </div>
  1352. <div class="tab_all" id="tab2">
  1353. <?php
  1354. if ($arResult["DETAIL_TEXT"]) {
  1355. //echo '<h2 style="color:#000 !important">Характеристики ' . $arResult["NAME"] . '</h2><br />';
  1356. //echo $arResult["DETAIL_TEXT"];
  1357. //---------- Делит на две части характеристики ------------------------
  1358. $input = $arResult["DETAIL_TEXT"];
  1359. $pieces = explode("<h2>", $input);
  1360. foreach ($pieces as $key => $val) {
  1361. $pieces[$key] = $pieces[$key] . "<h2>";
  1362. }
  1363. array_push($pieces, "</h2>");
  1364. $result = count($pieces);
  1365. $resul2 = $result / 2;
  1366. $resul2 = round($resul2,0);
  1367. $resul3 = $result - $resul2;
  1368. echo '<table width="100%" border="0" class="ggg5"><tr><td valign="top" class="ggg6">';
  1369. for ($row22 =0; $row22 < $resul2; $row22++ ) {
  1370. echo $pieces[$row22];
  1371. }
  1372. echo '</td><td valign="top" class="ggg4"><h2>';
  1373. for ($row23 = $row22; $row23 < $result; $row23++ ) {
  1374. echo $pieces[$row23];
  1375. }
  1376. echo '</td></tr></table>';
  1377. echo '<br />';
  1378. echo '<center><strong>Производитель оставляет за собой право изменять комплектацию без уведомления.</strong></center>';
  1379. //-----------------------------------
  1380. } else {
  1381. echo '<p class="note">Ой, характеристик пока нет, но в ближайшее время они обязательно появятся.</p>';
  1382. }
  1383. //8ce274e98f1e527fad6e7d384df66bdf - новый
  1384. //bbc99bfcbeeef4eb14ac86b25c5c559f - старый
  1385. ?>
  1386. </div>
  1387. <div class="tab_all" id="tab3">
  1388. <script type='text/javascript'>
  1389. var idcomments_acct = 'bbc99bfcbeeef4eb14ac86b25c5c559f';
  1390. var idcomments_post_id = <?= $arResult['ID'] ?>;
  1391. var idcomments_post_url = window.location;
  1392. </script>
  1393. <span id="IDCommentsPostTitle" style="display:none"></span>
  1394. <script type='text/javascript' src='http://www.intensedebate.com/js/genericCommentWrapperV2.js'></script>
  1395. </div>
  1396. <div class="tab_all" id="tab4">
  1397. <?php
  1398. require_once $_SERVER['DOCUMENT_ROOT'] . '/compare/compare.php';
  1399. ?>
  1400. </div>
  1401. <!--
  1402. <div class="tab_all" id="tab5">
  1403. <table>
  1404. <?php
  1405. /* $arrAlternativeProducts = array();
  1406. $arrAccessories = array();
  1407. $echoFlag = false;
  1408. if (is_array($arResult['PROPERTIES']['ALTERNATIVE_PRODUCTS']['VALUE'])) {
  1409. foreach ($arResult['PROPERTIES']['ALTERNATIVE_PRODUCTS']['VALUE'] as $item) {
  1410. $itemId = (int) $item;
  1411. if ($itemId > 0) {
  1412. $arrAlternativeProducts[] = $itemId;
  1413. }
  1414. }
  1415. }
  1416. if (is_array($arResult['PROPERTIES']['ACCESSORIES']['VALUE'])) {
  1417. foreach ($arResult['PROPERTIES']['ACCESSORIES']['VALUE'] as $item) {
  1418. $itemId = (int) $item;
  1419. if ($itemId > 0) {
  1420. $arrAccessories[] = $itemId;
  1421. }
  1422. }
  1423. }
  1424. $xHtml = '';
  1425. if (count($arrAlternativeProducts) > 0) {
  1426. $strAlternativeProducts = "'" . implode("', '", $arrAlternativeProducts) . "'";
  1427. $sql = "SELECT bie.`ID`, bie.`IBLOCK_SECTION_ID`, bie.`NAME`,
  1428. bi.`DETAIL_PAGE_URL`,
  1429. bf.`SUBDIR`, bf.`FILE_NAME`,
  1430. bcp.`PRICE`, bcp.`CURRENCY`,
  1431. bcpr.`QUANTITY`, bcpr.`QUANTITY_TRACE`
  1432. FROM `b_iblock_element` AS bie
  1433. JOIN `b_iblock` AS bi ON bi.`ID` = bie.`IBLOCK_ID`
  1434. AND bi.`ACTIVE` = 'Y'
  1435. JOIN `b_file` AS bf on bf.`ID` = bie.`PREVIEW_PICTURE`
  1436. JOIN `b_catalog_price` AS bcp ON bcp.`PRODUCT_ID` = bie.`ID`
  1437. AND bcp.`CATALOG_GROUP_ID` = '3'
  1438. AND bcp.`EXTRA_ID` IS NULL
  1439. LEFT JOIN `b_catalog_product` AS bcpr ON bcpr.`ID` = bie.`ID`
  1440. WHERE bie.`ID` IN ({$strAlternativeProducts})
  1441. AND bie.`ACTIVE` = 'Y'
  1442. AND bie.`WF_PARENT_ELEMENT_ID` IS NULL
  1443. ORDER BY bie.`NAME`
  1444. ";
  1445. $result = mysql_query($sql);
  1446. if (mysql_num_rows($result) > 0) {
  1447. $xHtml .= '<ul class="alternative-models-list">';
  1448. while ($row = mysql_fetch_assoc($result)) {
  1449. $id = $row['ID'];
  1450. $name = stripslashes($row['NAME']);
  1451. $url = str_replace('#SITE_DIR#', '', $row['DETAIL_PAGE_URL']);
  1452. $url = str_replace('#SECTION_ID#', $row['IBLOCK_SECTION_ID'], $url);
  1453. $url = str_replace('#ID#', $row['ID'], $url);
  1454. $img = '/upload/' . $row['SUBDIR'] . '/' . $row['FILE_NAME'];
  1455. $price = $row['PRICE'];
  1456. $currency = $row['CURRENCY'];
  1457. if ($currency == 'UAH') {
  1458. $price = $price . '<span>&nbsp;грн.</span>';
  1459. } elseif ($currency == 'USD') {
  1460. $price = '$' . $price;
  1461. }
  1462. $xHtml .= '<li style="float: left;">';
  1463. $xHtml .= '<div class="borders2_1" id="rrrt"><div><div><div><div><div><div><div><div id="otsst" class="f556">';
  1464. $xHtml .= '<a href="' . $url . '"><div class="fon_img"><img border="0" src="' . $objImageGd->getImage($img, 130, 130, 0)
  1465. . '" alt="" title="' . $name . '" /></div></a>';
  1466. $xHtml .= '<h3><a href="' . $url . '">' . $name . '</a></h3>';
  1467. if ($price != 1.00 ) {
  1468. $price = str_replace(".00", "", $price);
  1469. $xHtml .= '<p class="price">' . $price . '</p>';
  1470. $xHtml .= '<a class="link-tocart derty dert2" href="'. $url .'"><span>Подробнее</span></a>';
  1471. if ($row['QUANTITY_TRACE'] == 'Y') {
  1472. if ($row['QUANTITY'] > 0 ) {
  1473. $xHtml .= '<a class="link-by dert2" href="' . $url . '?action=BUY&id=' . $id . '"><strong>Купить</strong></a></p>';
  1474. } else {
  1475. // $xHtml .= '<p><a>Нет в наличии</a></p>';
  1476. $xHtml .= '<a href="/preorder/?ID='.$id.'" class="link-order iframe derty dert2" rel="nofollow">
  1477. <span><strong>Заказать</strong></span></a>';
  1478. }
  1479. } else {
  1480. $xHtml .= '<a class="link-by" href="' . $url . '?action=BUY&id=' . $id . '"><strong>Купить</strong></a>';
  1481. }
  1482. } else {
  1483. $xHtml .= '<a class="link-tocart derty" href="'. $url .'"><span>Подробнее</span></a>';
  1484. $xHtml .= '<a href="/preorder/?ID='.$id.'" class="link-order iframe derty dert2" rel="nofollow">
  1485. <span><strong>Заказать</strong></span></a>';
  1486. }
  1487. $xHtml .= '</div></div></div></div></div></div></div></div></div>';
  1488. $xHtml .= '</li>';
  1489. }
  1490. $xHtml .= '</ul>';
  1491. }
  1492. mysql_free_result($result);
  1493. if (strlen($xHtml) > 0) {
  1494. $echoFlag = true;
  1495. echo '<tr><td colspan="2" id="hhh4_1" class="text-tov12"><div id="top_y_1">Похожие товары </div></td></tr>';
  1496. //$xHtml = '<h2 class="clear">Похожие модели</h2>' . $xHtml;
  1497. echo '<tr><td colspan="2">' . $xHtml . '</td></tr>';
  1498. //echo $xHtml;
  1499. }
  1500. }
  1501. if (!$echoFlag) {
  1502. echo '<p class="note">Похожие модели к сожалению не найдены.</p>';
  1503. }
  1504. //echo '<tr><td colspan="2">' . $xHtml . '</td></tr>';
  1505. */
  1506. ?>
  1507. </table>
  1508. </div>
  1509. -->
  1510. <?
  1511. if ($_GET['acc']==1){?><div class="tab_all acc1" id="tab5"><?}
  1512. else {?><div class="tab_all" id="tab5"><?}
  1513. ?>
  1514. <!--
  1515. <div class="tab_all acc" id="tab5">
  1516. -->
  1517. <?
  1518. //-----------------------------------------------------------------------------------------------------------------------
  1519. if (strpos($_SERVER['REQUEST_URI'], "/mobile/")){$e_id2=str_replace( '/shop/goods/mobile/', '', $_SERVER['REQUEST_URI'] );}
  1520. if (strpos($_SERVER['REQUEST_URI'], "/tabletpc/")){$e_id2=str_replace( '/shop/goods/tabletpc/', '', $_SERVER['REQUEST_URI'] );}
  1521. if (strpos($_SERVER['REQUEST_URI'], "/notebooks/")){$e_id2=str_replace( '/shop/goods/notebooks/', '', $_SERVER['REQUEST_URI'] );}
  1522. if (strpos($_SERVER['REQUEST_URI'], "/ebook/")){$e_id2=str_replace( '/shop/goods/ebook/', '', $_SERVER['REQUEST_URI'] );}
  1523. //$e_id2=str_replace( '/shop/goods/notebooks/', '', $_SERVER['REQUEST_URI'] );
  1524. $p1=strpos($e_id2, "/");
  1525. $p2=strpos($e_id2, "?");
  1526. $st=$p1+1;
  1527. $len=$p2-$p1-1;
  1528. if ($p2 > 0){$e_id2=substr($e_id2, $st, $len);}
  1529. else {$e_id2=substr($e_id2, $st);}
  1530. //-------------------------------------------------------- TOP АКСЕССУАРОВ ДЛЯ ТОВАРА
  1531. $kol_el=0;
  1532. $e_prev=0;
  1533. $kol_item=1;
  1534. mysql_query("Delete from `el_top_acc1`");
  1535. mysql_query("Delete from `el_top_acc2`");
  1536. mysql_query("Delete from `el_top_acc3`");
  1537. $sql="INSERT INTO `el_top_acc1` SELECT bie.ID, bie.NAME from
  1538. b_iblock_element as bie,
  1539. b_iblock_element_property as biep,
  1540. b_iblock_property as bip
  1541. WHERE (biep.VALUE=".$e_id2."
  1542. AND bie.ID=biep.IBLOCK_ELEMENT_ID
  1543. AND bip.ID=biep.IBLOCK_PROPERTY_ID
  1544. AND bip.CODE='linked_dev'
  1545. AND bie.WF_PARENT_ELEMENT_ID IS NULL
  1546. AND bie.ACTIVE='Y')";
  1547. mysql_query($sql);
  1548. $sql="INSERT INTO `el_top_acc2` SELECT bie.ID, bie.NAME from
  1549. b_iblock_element as bie,
  1550. b_iblock_element_property as biep,
  1551. b_iblock_property as bip,
  1552. b_iblock_property_enum as bipe
  1553. WHERE (bipe.VALUE='да'
  1554. AND bie.ID=biep.IBLOCK_ELEMENT_ID
  1555. AND bip.ID=biep.IBLOCK_PROPERTY_ID
  1556. AND bipe.ID=biep.VALUE
  1557. AND bip.CODE='main_top'
  1558. AND bie.WF_PARENT_ELEMENT_ID IS NULL
  1559. AND bie.ACTIVE='Y')";
  1560. mysql_query($sql);
  1561. mysql_query("Insert into `el_top_acc3` SELECT ID, el_top_acc1.NAME FROM `el_top_acc1` INNER JOIN `el_top_acc2` using(ID)");
  1562. $sql="SELECT * from el_top_acc3";
  1563. $result = mysql_query($sql);
  1564. $num_rows = mysql_num_rows($result);
  1565. if ($num_rows>0)
  1566. {
  1567. echo "<div style=\"overflow:hidden; width:760px; margin-top:0px; margin-left:10px; display:block;\"><h3>Лидеры продаж</h3>";
  1568. $sql="SELECT * from el_top_acc3";
  1569. $result = mysql_query($sql);
  1570. while ($r = mysql_fetch_array($result))
  1571. {
  1572. if ($kol_item < 4)
  1573. {
  1574. $sql2="SELECT * from b_iblock_element WHERE (ACTIVE='Y'
  1575. AND WF_PARENT_ELEMENT_ID IS NULL
  1576. AND ID=".$r['ID'].")";
  1577. $result2 = mysql_query($sql2);
  1578. while ($r2 = mysql_fetch_array($result2))
  1579. {
  1580. $sql3="SELECT ID, LIST_PAGE_URL, NAME from b_iblock WHERE (ID=".$r2['IBLOCK_ID'].")";
  1581. $result3 = mysql_query($sql3);
  1582. while ($r3 = mysql_fetch_array($result3))
  1583. {
  1584. $b_url=$r3['LIST_PAGE_URL'];
  1585. $b_name=$r3['NAME'];
  1586. }
  1587. $b_url.="/".$r2['IBLOCK_SECTION_ID']."/";
  1588. $pos2=strpos($b_url,"/shop/");
  1589. $b_url=substr($b_url,$pos2);
  1590. $arFile = CFile::MakeFileArray($r2['PREVIEW_PICTURE']);
  1591. $picsa=$arFile["tmp_name"];
  1592. $pos1=strpos($picsa, '/upload/');
  1593. $pic_url=substr($picsa, $pos1);
  1594. $pic_size = getimagesize ($arFile["tmp_name"]);
  1595. $ow=$pic_size[0];
  1596. $oh=$pic_size[1];
  1597. if ($oh>130){
  1598. $nh=130;
  1599. $nw=(130*$ow)/$oh;
  1600. if($nw>160) {
  1601. $nw1=160;
  1602. $nh1=(160*$nh)/$nw;
  1603. }else{
  1604. $nh1=$nh;
  1605. $nw1=$nw;
  1606. }
  1607. }
  1608. if
  1609. ($ow>160)
  1610. {
  1611. $nw=160;
  1612. $nh=(160*$oh)/$ow;
  1613. if($nh>130)
  1614. {
  1615. $nh1=130;
  1616. $nw1=(130*$nw)/$nh;
  1617. }
  1618. else
  1619. {
  1620. $nh1=$nh;
  1621. $nw1=$nw;
  1622. }
  1623. }
  1624. $go_url=$b_url;
  1625. $go_url.=$r2['ID'];
  1626. $go_buy=$go_url."?action=BUY&id=".$r2["ID"];
  1627. ?>
  1628. <div style="width:190px; text-align:center; float:left; display:block;">
  1629. <div style="width:182px; height:154px; background: url('/shop/accessories/ramka1.gif'); margin:0 auto;">
  1630. <table><tr><td align="center" width="182" height="154" valign="middle">
  1631. <a href="<?=$go_url?>" title="<?=$r2['NAME']?>"><img src="<?=$pic_url?>" width="<?=$nw1?>" height="<?=$nh1?>" alt="<?=$r2['NAME']?>"></a>
  1632. </td></tr></table>
  1633. </div>
  1634. <div style="margin-top:5px; height:60px;"><b><?=$r2['NAME']?></b></div>
  1635. <?
  1636. $PRICE_TYPE_ID=3;
  1637. $db_res = CPrice::GetList(array(), array("PRODUCT_ID" => $r2['ID'], "CATALOG_GROUP_ID" => $PRICE_TYPE_ID));
  1638. if ($ar_res = $db_res->Fetch())
  1639. {
  1640. echo "<div style=\"margin-top:5px; margin-bottom:10px;\">".CurrencyFormat($ar_res["PRICE"], $ar_res["CURRENCY"])."</div>";
  1641. }
  1642. ?>
  1643. <div style="width:162px; height:23px; margin:0 auto;">
  1644. <div style="float:left; display:inline; width:87px; height:23px;"><a href="<?=$go_url?>"><img src="/shop/accessories/podrobnee.gif" /></a></div>
  1645. <div style="margin-left:-6px; float:left; display:inline; width:81px; height:23px;"><a href="<?=$go_buy?>"><img src="/shop/accessories/kupit.gif" /></a></div>
  1646. </div>
  1647. &nbsp;<br />
  1648. </div>
  1649. <?
  1650. $kol_item++;
  1651. }
  1652. }
  1653. }
  1654. echo "<br />&nbsp;</div>";
  1655. }
  1656. //-------------------------------------------------------- #TOP АКСЕССУАРОВ ДЛЯ ТОВАРА
  1657. //---------------------------------------------------------------------------------------------
  1658. function get_acc($i_bl, $i_sect, $e_id2, $item)
  1659. {
  1660. $kol_el=0;
  1661. $e_prev=0;
  1662. $kol_item=1;
  1663. $sql="SELECT COUNT(bie.ID) from
  1664. b_iblock_element as bie,
  1665. b_iblock_element_property as biep,
  1666. b_iblock_property as bip
  1667. WHERE (biep.VALUE=".$e_id2."
  1668. AND bie.ID=biep.IBLOCK_ELEMENT_ID
  1669. AND bip.ID=biep.IBLOCK_PROPERTY_ID
  1670. AND bip.CODE='linked_dev'
  1671. AND bie.WF_PARENT_ELEMENT_ID IS NULL
  1672. AND bie.ACTIVE='Y'
  1673. AND bie.IBLOCK_ID=".$i_bl.")";
  1674. $result = mysql_query($sql);
  1675. $row = mysql_fetch_array($result);
  1676. $kol_el=$row[0];
  1677. if ($kol_el>0)
  1678. {
  1679. $sql="SELECT ID, LIST_PAGE_URL, NAME from b_iblock WHERE (ID=".$i_bl.")";
  1680. $result = mysql_query($sql);
  1681. while ($r = mysql_fetch_array($result))
  1682. {
  1683. $b_url=$r['LIST_PAGE_URL'];
  1684. $b_name=$r['NAME'];
  1685. }
  1686. $b_url.="/".$i_sect."/";
  1687. $pos2=strpos($b_url,"/shop/");
  1688. $b_url=substr($b_url,$pos2);
  1689. echo "<div style=\"overflow:hidden; width:760px; margin-top:10px; margin-left:10px; display:block;\"><h3>".$b_name."</h3>";
  1690. $sql="SELECT bie.ID, bie.NAME, bie.PREVIEW_PICTURE, biep.VALUE, bip.CODE from
  1691. b_iblock_element as bie,
  1692. b_iblock_element_property as biep,
  1693. b_iblock_property as bip
  1694. WHERE (biep.VALUE=".$e_id2."
  1695. AND bie.ID=biep.IBLOCK_ELEMENT_ID
  1696. AND bip.ID=biep.IBLOCK_PROPERTY_ID
  1697. AND bip.CODE='linked_dev'
  1698. AND bie.WF_PARENT_ELEMENT_ID IS NULL
  1699. AND bie.ACTIVE='Y'
  1700. AND bie.IBLOCK_ID=".$i_bl.")";
  1701. $result = mysql_query($sql);
  1702. while ($r = mysql_fetch_array($result))
  1703. {
  1704. if ($kol_item < 4)
  1705. {
  1706. $arFile = CFile::MakeFileArray($r['PREVIEW_PICTURE']);
  1707. $picsa=$arFile["tmp_name"];
  1708. $pos1=strpos($picsa, '/upload/');
  1709. $pic_url=substr($picsa, $pos1);
  1710. $pic_size = getimagesize ($arFile["tmp_name"]);
  1711. $ow=$pic_size[0];
  1712. $oh=$pic_size[1];
  1713. if ($oh>130){
  1714. $nh=130;
  1715. $nw=(130*$ow)/$oh;
  1716. if($nw>160) {
  1717. $nw1=160;
  1718. $nh1=(160*$nh)/$nw;
  1719. }else{
  1720. $nh1=$nh;
  1721. $nw1=$nw;
  1722. }
  1723. }
  1724. if
  1725. ($ow>160)
  1726. {
  1727. $nw=160;
  1728. $nh=(160*$oh)/$ow;
  1729. if($nh>130)
  1730. {
  1731. $nh1=130;
  1732. $nw1=(130*$nw)/$nh;
  1733. }
  1734. else
  1735. {
  1736. $nh1=$nh;
  1737. $nw1=$nw;
  1738. }
  1739. }
  1740. $go_url=$b_url;
  1741. $go_url.=$r['ID'];
  1742. $go_buy=$go_url."?action=BUY&id=".$r['ID'];
  1743. ?>
  1744. <div style="width:190px; text-align:center; float:left; display:block;">
  1745. <div style="width:182px; height:154px; background: url('/shop/accessories/ramka1.gif'); margin:0 auto;">
  1746. <table><tr><td align="center" width="182" height="154" valign="middle">
  1747. <a href="<?=$go_url?>" title="<?=$r['NAME']?>"><img src="<?=$pic_url?>" width="<?=$nw1?>" height="<?=$nh1?>" alt="<?=$r['NAME']?>"></a>
  1748. </td></tr></table>
  1749. </div>
  1750. <div style="margin-top:5px; height:80px;"><?=$item?><br /><b><?=$r['NAME']?></b></div>
  1751. <?
  1752. $PRICE_TYPE_ID=3;
  1753. $db_res = CPrice::GetList(array(), array("PRODUCT_ID" => $r['ID'], "CATALOG_GROUP_ID" => $PRICE_TYPE_ID));
  1754. if ($ar_res = $db_res->Fetch())
  1755. {
  1756. echo "<div style=\"margin-top:5px; margin-bottom:10px;\">".CurrencyFormat($ar_res["PRICE"], $ar_res["CURRENCY"])."</div>";
  1757. }
  1758. ?>
  1759. <div style="width:162px; height:23px; margin:0 auto;">
  1760. <div style="float:left; display:inline; width:87px; height:23px;"><a href="<?=$go_url?>"><img src="/shop/accessories/podrobnee.gif" /></a></div>
  1761. <div style="margin-left:-6px; float:left; display:inline; width:81px; height:23px;"><a href="<?=$go_buy?>"><img src="/shop/accessories/kupit.gif" /></a></div>
  1762. </div>
  1763. &nbsp;<br />
  1764. </div>
  1765. <?
  1766. $kol_item++;
  1767. }
  1768. }
  1769. echo "<br />&nbsp;</div>";
  1770. }
  1771. //---
  1772. }
  1773. //-------------------------------------------------------------- END FUNCTION
  1774. //-----------------------------------------------------------------------------------------------
  1775. //---------------------------------------------------------------- НОУТБУКИ
  1776. //-----------------------------------------------------------------------------------------------
  1777. if (strpos($_SERVER['REQUEST_URI'], "/notebooks/") > 0)
  1778. {
  1779. //---------------------------------------------------------- Сумки и чехлы для ноутбуков
  1780. //$i_bl=;
  1781. //$i_sect=;
  1782. //$item="Сумка";
  1783. //get_acc($i_bl, $i_sect, $e_id2, $item);
  1784. //---------------------------------------------------------- #Сумки и чехлы для ноутбуков
  1785. //---------------------------------------------------------- ФЛЕШКИ
  1786. $i_bl=25; //--------
  1787. $i_sect=193; //------ Раздел ВСЕ
  1788. $item="Флешка";
  1789. get_acc($i_bl, $i_sect, $e_id2, $item);
  1790. //---------------------------------------------------------- #ФЛЕШКИ
  1791. //---------------------------------------------------------- Мыши
  1792. $i_bl=35;
  1793. $i_sect=242;
  1794. $item="Мышь";
  1795. get_acc($i_bl, $i_sect, $e_id2, $item);
  1796. //---------------------------------------------------------- #Мыши
  1797. //---------------------------------------------------------- Наушники и гарнитуры
  1798. $i_bl=26;
  1799. $i_sect=194;
  1800. $item="Гарнитура";
  1801. get_acc($i_bl, $i_sect, $e_id2, $item);
  1802. //---------------------------------------------------------- #Наушники и гарнитуры
  1803. //---------------------------------------------------------- Акустика
  1804. $i_bl=39;
  1805. $i_sect=244;
  1806. $item="Акустика";
  1807. get_acc($i_bl, $i_sect, $e_id2, $item);
  1808. //---------------------------------------------------------- #Акустика
  1809. //---------------------------------------------------------- Роутеры
  1810. $i_bl=38;
  1811. $i_sect=243;
  1812. $item="Роутер";
  1813. get_acc($i_bl, $i_sect, $e_id2, $item);
  1814. //---------------------------------------------------------- #Роутеры
  1815. //---------------------------------------------------------- Гаджеты
  1816. //$i_bl=;
  1817. //$i_sect=;
  1818. //$item="Гаджет";
  1819. //get_acc($i_bl, $i_sect, $e_id2, $item);
  1820. //---------------------------------------------------------- #Гаджеты
  1821. //---------------------------------------------------------- Внешние жесткие диски
  1822. $i_bl=37;
  1823. $i_sect=241;
  1824. $item="Жесткий диск";
  1825. get_acc($i_bl, $i_sect, $e_id2, $item);
  1826. //---------------------------------------------------------- #Внешние жесткие диски
  1827. //---------------------------------------------------------- Декоративные наклейки
  1828. $i_bl=58;
  1829. $i_sect=378;
  1830. $item="Наклейка";
  1831. get_acc($i_bl, $i_sect, $e_id2, $item);
  1832. //---------------------------------------------------------- #Декоративные наклейки
  1833. //---------------------------------------------------------- Подставки
  1834. $i_bl=56;
  1835. $i_sect=360;
  1836. $item="Подставка";
  1837. get_acc($i_bl, $i_sect, $e_id2, $item);
  1838. //---------------------------------------------------------- #Подставки
  1839. //---------------------------------------------------------- Карты памяти
  1840. $i_bl=24;
  1841. $i_sect=192;
  1842. $item="Карта памяти";
  1843. get_acc($i_bl, $i_sect, $e_id2, $item);
  1844. //---------------------------------------------------------- #Карты памяти
  1845. //---------------------------------------------------------- Зарядные устройства к ноутбукам
  1846. //$i_bl=;
  1847. //$i_sect=;
  1848. //$item="Зарядка";
  1849. //get_acc($i_bl, $i_sect, $e_id2, $item);
  1850. //---------------------------------------------------------- #Зарядные устройства к ноутбукам
  1851. //---------------------------------------------------------- Чистящие наборы
  1852. $i_bl=51;
  1853. $i_sect=328;
  1854. $item="Чистящий набор";
  1855. get_acc($i_bl, $i_sect, $e_id2, $item);
  1856. //---------------------------------------------------------- #Чистящие наборы
  1857. //---------------------------------------------------------- Часы
  1858. $i_bl=68;
  1859. $i_sect=608;
  1860. $item="Часы";
  1861. get_acc($i_bl, $i_sect, $e_id2, $item);
  1862. //---------------------------------------------------------- #Часы
  1863. }
  1864. //---------------------------------------------------------------------------------------------------------
  1865. //---------------------------------------------------------------- #НОУТБУКИ
  1866. //-----------------------------------------------------------------------------------------------
  1867. //---------------------------------------------------------------- МОБИЛКИ
  1868. //-----------------------------------------------------------------------------------------------
  1869. if (strpos($_SERVER['REQUEST_URI'], "/mobile/") > 0)
  1870. {
  1871. //---------------------------------------------------------- Защитные пленки
  1872. $i_bl=42;
  1873. $i_sect=249;
  1874. $item="Пленка";
  1875. get_acc($i_bl, $i_sect, $e_id2, $item);
  1876. //---------------------------------------------------------- #Защитные пленки
  1877. //---------------------------------------------------------- Зарядные устройства
  1878. $i_bl=42;
  1879. $i_sect=191;
  1880. $item="Зарядник";
  1881. get_acc($i_bl, $i_sect, $e_id2, $item);
  1882. //---------------------------------------------------------- #Зарядные устройства
  1883. //---------------------------------------------------------- Чехлы для мобильных телефонов
  1884. $i_bl=40;
  1885. $i_sect=247;
  1886. $item="Чехол";
  1887. get_acc($i_bl, $i_sect, $e_id2, $item);
  1888. //---------------------------------------------------------- #Чехлы для мобильных телефонов
  1889. //---------------------------------------------------------- Блютуз гарнитуры
  1890. $i_bl=28;
  1891. $i_sect=196;
  1892. $item="Bluetooth гарнитура";
  1893. get_acc($i_bl, $i_sect, $e_id2, $item);
  1894. //---------------------------------------------------------- #Блютуз гарнитуры
  1895. //---------------------------------------------------------- Наушники и гарнитуры
  1896. $i_bl=26;
  1897. $i_sect=194;
  1898. $item="Гарниртура";
  1899. get_acc($i_bl, $i_sect, $e_id2, $item);
  1900. //---------------------------------------------------------- #Наушники и гарнитуры
  1901. //---------------------------------------------------------- Карты памяти
  1902. $i_bl=24;
  1903. $i_sect=192;
  1904. $item="Карта памяти";
  1905. get_acc($i_bl, $i_sect, $e_id2, $item);
  1906. //---------------------------------------------------------- #Карты памяти
  1907. //---------------------------------------------------------- Мобильные зарядные устройства
  1908. //$i_bl=;
  1909. //$i_sect=;
  1910. //$item="Зарядка";
  1911. //get_acc($i_bl, $i_sect, $e_id2, $item);
  1912. //---------------------------------------------------------- #Мобильные зарядные устройства
  1913. //---------------------------------------------------------- Акустика
  1914. $i_bl=39;
  1915. $i_sect=244;
  1916. $item="Акустика";
  1917. get_acc($i_bl, $i_sect, $e_id2, $item);
  1918. //---------------------------------------------------------- #Акустика
  1919. //---------------------------------------------------------- Гаджеты
  1920. //$i_bl=;
  1921. //$i_sect=;
  1922. //$item="Гаджет";
  1923. //get_acc($i_bl, $i_sect, $e_id2, $item);
  1924. //---------------------------------------------------------- #Гаджеты
  1925. //---------------------------------------------------------- Часы
  1926. $i_bl=68;
  1927. $i_sect=608;
  1928. $item="Часы";
  1929. get_acc($i_bl, $i_sect, $e_id2, $item);
  1930. //---------------------------------------------------------- #Часы
  1931. //---------------------------------------------------------- Кабеля и переходники
  1932. $i_bl=50;
  1933. $i_sect=326;
  1934. $item="Кабель";
  1935. get_acc($i_bl, $i_sect, $e_id2, $item);
  1936. //---------------------------------------------------------- #Кабеля и переходники
  1937. //---------------------------------------------------------- Стилусы
  1938. $i_bl=67;
  1939. $i_sect=561;
  1940. $item="Стилус";
  1941. get_acc($i_bl, $i_sect, $e_id2, $item);
  1942. //---------------------------------------------------------- #Стилусы
  1943. }
  1944. //---------------------------------------------------------------------------------------------------------
  1945. //----------------------------------------------------------------- #МОБИЛКИ
  1946. //-----------------------------------------------------------------------------------------------
  1947. //-----------------------------------------------------------------------------------------------
  1948. if (strpos($_SERVER['REQUEST_URI'], "/tabletpc/") > 0)
  1949. {
  1950. //---------------------------------------------------------- Защитные пленки
  1951. $i_bl=42;
  1952. $i_sect=249;
  1953. $item="Пленка";
  1954. get_acc($i_bl, $i_sect, $e_id2, $item);
  1955. //---------------------------------------------------------- #Защитные пленки
  1956. //---------------------------------------------------------- Зарядные устройства
  1957. $i_bl=42;
  1958. $i_sect=191;
  1959. $item="Зарядник";
  1960. get_acc($i_bl, $i_sect, $e_id2, $item);
  1961. //---------------------------------------------------------- #Зарядные устройства
  1962. //---------------------------------------------------------- ЧЕХЛЫ ДЛЯ ПЛАНШЕТОВ
  1963. //$i_bl=;
  1964. //$i_sect=;
  1965. //$item="Чехол";
  1966. //get_acc($i_bl, $i_sect, $e_id2, $item);
  1967. //---------------------------------------------------------- #ЧЕХЛЫ ДЛЯ ПЛАНШЕТОВ
  1968. //---------------------------------------------------------- Блютуз гарнитуры
  1969. $i_bl=28;
  1970. $i_sect=196;
  1971. $item="Bluetooth гарнитура";
  1972. get_acc($i_bl, $i_sect, $e_id2, $item);
  1973. //---------------------------------------------------------- #Блютуз гарнитуры
  1974. //---------------------------------------------------------- Наушники и гарнитуры
  1975. $i_bl=26;
  1976. $i_sect=194;
  1977. $item="Гарниртура";
  1978. get_acc($i_bl, $i_sect, $e_id2, $item);
  1979. //---------------------------------------------------------- #Наушники и гарнитуры
  1980. //---------------------------------------------------------- Карты памяти
  1981. $i_bl=24;
  1982. $i_sect=192;
  1983. $item="Карта памяти";
  1984. get_acc($i_bl, $i_sect, $e_id2, $item);
  1985. //---------------------------------------------------------- #Карты памяти
  1986. //---------------------------------------------------------- Мобильные зарядные устройства
  1987. //$i_bl=;
  1988. //$i_sect=;
  1989. //$item="Зарядка";
  1990. //get_acc($i_bl, $i_sect, $e_id2, $item);
  1991. //---------------------------------------------------------- #Мобильные зарядные устройства
  1992. //---------------------------------------------------------- Акустика
  1993. $i_bl=39;
  1994. $i_sect=244;
  1995. $item="Акустика";
  1996. get_acc($i_bl, $i_sect, $e_id2, $item);
  1997. //---------------------------------------------------------- #Акустика
  1998. //---------------------------------------------------------- Гаджеты
  1999. //$i_bl=;
  2000. //$i_sect=;
  2001. //$item="Гаджет";
  2002. //get_acc($i_bl, $i_sect, $e_id2, $item);
  2003. //---------------------------------------------------------- #Гаджеты
  2004. //---------------------------------------------------------- Часы
  2005. $i_bl=68;
  2006. $i_sect=608;
  2007. $item="Часы";
  2008. get_acc($i_bl, $i_sect, $e_id2, $item);
  2009. //---------------------------------------------------------- #Часы
  2010. //---------------------------------------------------------- Кабеля и переходники
  2011. $i_bl=50;
  2012. $i_sect=326;
  2013. $item="Кабель";
  2014. get_acc($i_bl, $i_sect, $e_id2, $item);
  2015. //---------------------------------------------------------- #Кабеля и переходники
  2016. //---------------------------------------------------------- Стилусы
  2017. $i_bl=67;
  2018. $i_sect=561;
  2019. $item="Стилус";
  2020. get_acc($i_bl, $i_sect, $e_id2, $item);
  2021. //---------------------------------------------------------- #Стилусы
  2022. }
  2023. //---------------------------------------------------------------------------------------------------------
  2024. //-----------------------------------------------------------------------------------------------
  2025. //-----------------------------------------------------------------------------------------------
  2026. if (strpos($_SERVER['REQUEST_URI'], "/ebook/") > 0)
  2027. {
  2028. //---------------------------------------------------------- Защитные пленки
  2029. $i_bl=42;
  2030. $i_sect=249;
  2031. $item="Пленка";
  2032. get_acc($i_bl, $i_sect, $e_id2, $item);
  2033. //---------------------------------------------------------- #Защитные пленки
  2034. //---------------------------------------------------------- Зарядные устройства
  2035. $i_bl=42;
  2036. $i_sect=191;
  2037. $item="Зарядник";
  2038. get_acc($i_bl, $i_sect, $e_id2, $item);
  2039. //---------------------------------------------------------- #Зарядные устройства
  2040. //---------------------------------------------------------- ЧЕХЛЫ ДЛЯ ЭЛ КНИГ
  2041. //$i_bl=;
  2042. //$i_sect=;
  2043. //$item="Чехол";
  2044. //get_acc($i_bl, $i_sect, $e_id2, $item);
  2045. //---------------------------------------------------------- #ЧЕХЛЫ ДЛЯ ЭЛ КНИГ
  2046. //---------------------------------------------------------- Карты памяти
  2047. $i_bl=24;
  2048. $i_sect=192;
  2049. $item="Карта памяти";
  2050. get_acc($i_bl, $i_sect, $e_id2, $item);
  2051. //---------------------------------------------------------- #Карты памяти
  2052. //---------------------------------------------------------- Наушники и гарнитуры
  2053. $i_bl=26;
  2054. $i_sect=194;
  2055. $item="Гарниртура";
  2056. get_acc($i_bl, $i_sect, $e_id2, $item);
  2057. //---------------------------------------------------------- #Наушники и гарнитуры
  2058. //---------------------------------------------------------- Гаджеты
  2059. //$i_bl=;
  2060. //$i_sect=;
  2061. //$item="Гаджет";
  2062. //get_acc($i_bl, $i_sect, $e_id2, $item);
  2063. //---------------------------------------------------------- #Гаджеты
  2064. //---------------------------------------------------------- Часы
  2065. $i_bl=68;
  2066. $i_sect=608;
  2067. $item="Часы";
  2068. get_acc($i_bl, $i_sect, $e_id2, $item);
  2069. //---------------------------------------------------------- #Часы
  2070. //---------------------------------------------------------- Кабеля и переходники
  2071. $i_bl=50;
  2072. $i_sect=326;
  2073. $item="Кабель";
  2074. get_acc($i_bl, $i_sect, $e_id2, $item);
  2075. //---------------------------------------------------------- #Кабеля и переходники
  2076. }
  2077. //---------------------------------------------------------------------------------------------------------
  2078. ?>
  2079. </div>
  2080. </div>
  2081. <?
  2082. /*
  2083. echo "<pre>";
  2084. print_r ($arResult);
  2085. echo "</pre>";
  2086. */
  2087. ?>
  2088. <!-- блок кредитного окна -->
  2089. <script src="/js2/jqModal.js" type="text/javascript"></script>
  2090. <script src="/js2/jqDnR.js" type="text/javascript"></script>
  2091. <script type="text/javascript">
  2092. $().ready(function() {
  2093. $('#dialog').jqm();
  2094. });
  2095. </script>
  2096. <noindex>
  2097. <div class="jqmWindow" id="dialog">
  2098. <!--------------------------------------------->
  2099. <table width="100%" cellspacing="0" cellpadding="0" class="popup_table">
  2100. <tbody><tr><td class="td11">&nbsp;</td><td class="td12">&nbsp;</td><td class="td13">&nbsp;</td></tr>
  2101. <tr><td class="td21">&nbsp;</td><td class="td22">
  2102. <div class="popup_title">
  2103. <a href="#" class="jqmClose">Закрыть</a>
  2104. <?
  2105. /*echo "<pre>";
  2106. print_r ($arResult);
  2107. echo "</pre>"; */?>
  2108. <span>Оплатить частями <?=$pageH1?></span></div><div class="" style=""><div class="popupCredit">
  2109. <p><strong>Нулевой первоначальный взнос! Бери сегодня - плати потом! </strong></p>
  2110. <p>
  2111. При доставке товара, вы подписываете кредитный договор с АО «Дельта Банк»,
  2112. ксерокопию Вашего паспорта и идентификационного кода.
  2113. Оплату можно сделать, начиная со следующего месяца в любом отделении банка или Укрпочты,
  2114. согласно Вашего графика погашения.</p>
  2115. <p>Суммы платежей, указанные ниже, окончательные.</p>
  2116. <p>Услуга доступна в г.Киеве и г.Одесса</p>
  2117. <p><strong>Онлайн-кредит оформляется на&nbsp;безналичную стоимость
  2118. товара&nbsp;&mdash; <span class="bigText"><?=$price_credit?>&nbsp;</span>грн.</strong></p>
  2119. <div class="credit-tariff">
  2120. <h3>Варианты Онлайн-кредита:</h3>
  2121. <table width="100%">
  2122. <tbody><tr>
  2123. <?foreach ($arResult['PROPERTIES_FOR_USER'] as $key=>$SALE_PROPERTY):?>
  2124. <?foreach($SALE_PROPERTY['VALUES'] as $PropValue):?>
  2125. <td>
  2126. <p class="creditTitle"><?=$SALE_PROPERTY['NAME'];?><br> <?=$PropValue?> мес.</p>
  2127. <p class="number_of_payments"><b><?=$PropValue?></b>&nbsp;
  2128. <? if ($PropValue == "24") echo "платежа";
  2129. else echo"платежей"; ?>
  2130. &nbsp;по</p>
  2131. <script type="text/javascript">
  2132. function showLoanInfo(L1) {
  2133. var
  2134. S =('<div class="new_price price">'+Amount2Str(L1.payment)+'&nbsp;<span>грн.</span></div>');
  2135. S+=('<p class="total-cost">Итоговая&nbsp;стоимость:<br><strong><span class="bigText">'+Amount2Str(L1.total)+'&nbsp;</span>грн.</strong></p>');
  2136. document.write(S);
  2137. }
  2138. var loan = new Loan("15333.001", <?=$price_credit?>, 0, <?=$PropValue?>);
  2139. showLoanInfo(loan);
  2140. </script>
  2141. <div name="catalog_item">
  2142. <form action="" method="POST">
  2143. <input type=hidden value='<?=$SALE_PROPERTY['NAME']?>' name='<?=$key."_NAME"?>'>
  2144. <input type=hidden name="<?=$key?>" value='<?=$PropValue?>'>
  2145. <input type=hidden value='<?=$arResult['ID']?>' name='<?=$arParams["PRODUCT_ID_VARIABLE"]?>'>
  2146. <input type=hidden value='BUY' name='action'>
  2147. <input class="but_cred" type=submit name=buy value='<?=GetMessage("CATALOG_BUY")?>'>
  2148. </form>
  2149. </div>
  2150. </td>
  2151. <?endforeach;?>
  2152. <?endforeach;?>
  2153. </tr>
  2154. </tbody></table>
  2155. </div>
  2156. <p class="last">
  2157. Для оформления Онлайн-кредита необходимо нажать на кнопку «Купить» и перейти к оформлению Вашего заказа.
  2158. </p>
  2159. </div></div></td><td class="td23">&nbsp;</td></tr>
  2160. <tr><td class="td31">&nbsp;</td><td class="td32">&nbsp;</td><td class="td33">&nbsp;</td></tr></tbody></table>
  2161. </div>
  2162. </noindex>
  2163. <!-- блок кредитного окна -->
  2164. <?//--------------------------------------------------------------------------------------------?>
  2165. </div>
  2166. </div>