PageRenderTime 50ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/bitrix_personal/templates/beta2.citrus.ua/header-menu22.php

https://bitbucket.org/spivovartsev/citrus.ua
PHP | 1093 lines | 929 code | 115 blank | 49 comment | 52 complexity | 0446e1ddd5317bd7226257f66acc5179 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. <?php
  2. require $_SERVER['DOCUMENT_ROOT'] . '/../application/config/application.php';
  3. mysql_connect($dbHost, $dbUser, $dbPass);
  4. mysql_select_db($dbName);
  5. mysql_query("SET NAMES cp1251");
  6. mysql_query("set character_set_results='cp1251'");
  7. mysql_query("set collation_connection='cp1251_general_ci'");
  8. $ico_home_path = "//img.citrus.com.ua/img/menu/icons/";
  9. //include_once $_SERVER['DOCUMENT_ROOT'] . '/../library/Vi/Image/Gd.php';
  10. //include_once $_SERVER['DOCUMENT_ROOT'] . '/../library/May/iblock_names.php';
  11. //include_once $_SERVER['DOCUMENT_ROOT'] . '/bitrix/templates/main-template/catalog-functions.php';
  12. // ffrrds2 - ширина 1000 на 4 колонки
  13. // ffrrds5 - ширина 500 на 2 колонки
  14. ?>
  15. <div id="myslidemenu3" class="jqueryslidemenu3">
  16. <ul id="main-nav3">
  17. <li id="navshop3"><a href="#"><span class="tw">телефоны и смартфоны</span></a>
  18. <ul id="r55">
  19. <div class="catalog-top2-element_x borders3">
  20. <div>
  21. <div>
  22. <div>
  23. <div>
  24. <div>
  25. <div>
  26. <div>
  27. <div id="otsst_x">
  28. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  29. <tr><td>
  30. <table cellpadding="0" cellspacing="0" id="ffrrds5" border="0">
  31. <tr>
  32. <td valign="top" width="180px">
  33. <li id="fr4"><a class="b40 a150" style="color:#676767; font-size:16px;" href="/shop/goods/mobile/189/">Все смартфоны</a></li>
  34. <li id="fr4"><a class="b40 a150" href="/shop/goods/mobile/258/">&nbsp;&nbsp;Apple iPhone</a></li>
  35. <li id="fr4"><a class="b40 a150" href="/shop/goods/mobile/239/">&nbsp;&nbsp;HTC</a></li>
  36. <li id="fr4"><a class="b40 a150" href="/shop/goods/mobile/149/">&nbsp;&nbsp;Samsung</a></li>
  37. <li id="fr4"><a class="a150" href="/shop/goods/mobile/566/">&nbsp;&nbsp;Sony</a></li>
  38. <li id="fr4"><a class="a150" href="/shop/goods/mobile/150/">&nbsp;&nbsp;Nokia</a></li>
  39. <li id="fr4"><a class="a150" href="/shop/goods/mobile/151/">&nbsp;&nbsp;LG</a></li>
  40. <li id="fr4"><a class="a150" href="/shop/goods/mobile/626/">&nbsp;&nbsp;Huawei</a></li>
  41. <li id="fr5"></li>
  42. </td>
  43. <td width="3px"><img src="/bitrix_personal/templates/beta2.citrus.ua/v_dot_200.gif" /></td>
  44. <td valign="top" width="240px">
  45. <li id="fr4"><a class="b40 a200" style="color:#676767; font-size:16px;" href="">Самые популярные</a></li>
  46. <?
  47. $db = mysql_connect('localhost', 'citrus_store', 'vSpYAxRujDfNtneX11a');
  48. mysql_select_db('citrus_store', $db);
  49. mysql_query ("set character_set_client='cp1251'");
  50. mysql_query ("set character_set_results='cp1251'");
  51. mysql_query ("set collation_connection='cp1251_general_ci'");
  52. //$sql="Select * FROM b_iblock_element WHERE (ID=37650)";
  53. $cc=1;
  54. $sql="Select bie.ID, bie.NAME, bipe.VALUE
  55. FROM b_iblock_element as bie,
  56. b_iblock_element_property as biep,
  57. b_iblock_property as bip,
  58. b_iblock_property_enum as bipe
  59. WHERE (bie.ID=biep.IBLOCK_ELEMENT_ID
  60. AND biep.IBLOCK_PROPERTY_ID=bip.ID
  61. AND biep.VALUE_ENUM=bipe.ID
  62. AND bip.CODE='top_menu_fl'
  63. AND bipe.VALUE='да'
  64. AND bie.ACTIVE='Y'
  65. AND bie.WF_PARENT_ELEMENT_ID IS NULL
  66. AND bie.IBLOCK_ID=20)";
  67. $result = mysql_query($sql, $db);
  68. while ($r = mysql_fetch_array($result))
  69. {
  70. $sql2="Select bie.ID, biep.VALUE
  71. FROM b_iblock_element as bie,
  72. b_iblock_element_property as biep,
  73. b_iblock_property as bip
  74. WHERE (bie.ID=biep.IBLOCK_ELEMENT_ID
  75. AND biep.IBLOCK_PROPERTY_ID=bip.ID
  76. AND bip.CODE='top_menu_name'
  77. AND bie.ACTIVE='Y'
  78. AND bie.WF_PARENT_ELEMENT_ID IS NULL
  79. AND bie.ID=".$r['ID'].")";
  80. $result2 = mysql_query($sql2, $db);
  81. while ($r2 = mysql_fetch_array($result2))
  82. {
  83. if ($cc<=3){echo "<li id=\"fr4\"><a class=\"b40 a200\" href=\"/shop/goods/mobile/189/".$r['ID']."\">&nbsp;&nbsp;".$r2['VALUE']."</a></li>";}
  84. else {echo "<li id=\"fr4\"><a class=\"a200\" href=\"/shop/goods/mobile/189/".$r['ID']."\">&nbsp;&nbsp;".$r2['VALUE']."</a></li>";}
  85. $cc++;
  86. }
  87. }
  88. ?>
  89. <li id="fr5"></li>
  90. </td>
  91. <td width="3px"><img src="/bitrix_personal/templates/beta2.citrus.ua/v_dot_200.gif" /></td>
  92. <td valign="top" width="160px">
  93. <li id="fr4"><a class="b40 a130" style="color:#676767; font-size:16px;" href="#">По цене</a></li>
  94. <li id="fr4"><a class="a130" href="/shop/goods/mobile/189/index.php?price1=1&price2=1000">&nbsp;&nbsp;1..1000</a></li>
  95. <li id="fr4"><a class="a130" href="/shop/goods/mobile/189/index.php?price1=1001&price2=2000">&nbsp;&nbsp;1001..2000</a></li>
  96. <li id="fr4"><a class="a130" href="/shop/goods/mobile/189/index.php?price1=2001&price2=3000">&nbsp;&nbsp;2001..3000</a></li>
  97. <li id="fr4"><a class="a130" href="/shop/goods/mobile/189/index.php?price1=3001&price2=4500">&nbsp;&nbsp;3001..4500</a></li>
  98. <li id="fr4"><a class="a130" href="/shop/goods/mobile/189/index.php?price1=4501&price2=6000">&nbsp;&nbsp;4501..6000</a></li>
  99. <li id="fr4"><a class="a130" href="/shop/goods/mobile/189/index.php?price1=6001&price2=8000">&nbsp;&nbsp;6001..8000</a></li>
  100. <li id="fr4"><a class="a130" href="/shop/goods/mobile/189/index.php?price1=8001&price2=100000">&nbsp;&nbsp;8001..</a></li>
  101. <li id="fr5"></li>
  102. </td>
  103. <td width="3px"><img src="/bitrix_personal/templates/beta2.citrus.ua/v_dot_200.gif" /></td>
  104. <td valign="top" width="240px">
  105. <li id="fr4"><a class="b40 a200" style="color:#676767; font-size:16px;" href="">Аксессуары</a></li>
  106. <li id="fr4"><a class="b40 a200" style="color:#676767;" href="/shop/goods/display_labels/249/">&nbsp;&nbsp;защитные пленки</a></li>
  107. <li id="fr4"><a class="b40 a200" style="color:#676767;" href="/shop/goods/chargers/191/">&nbsp;&nbsp;зарядные устройства</a></li>
  108. <li id="fr4"><a class="b40 a200" style="color:#676767;" href="/shop/goods/mobile_handbags/247/">&nbsp;&nbsp;чехлы</a></li>
  109. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/bluetooth/196/">&nbsp;&nbsp;bluetooth гарнитуры</a></li>
  110. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/soundphones/194/">&nbsp;&nbsp;наушники</a></li>
  111. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/wiredheadsets/197/">&nbsp;&nbsp;проводные гарнитуры</a></li>
  112. <!--Беспроводные наушники-->
  113. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/memorycards/192/">&nbsp;&nbsp;карты памяти</a></li>
  114. <!--Мобильные зарядные устройства-->
  115. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/speakers/244/">&nbsp;&nbsp;акустика</a></li>
  116. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/clock/608/">&nbsp;&nbsp;Часы</a></li>
  117. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/data_cables/270/">&nbsp;&nbsp;дата-кабели</a></li>
  118. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/adapters/326/">&nbsp;&nbsp;переходники</a></li>
  119. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/stylus/561/">&nbsp;&nbsp;Стилусы</a></li>
  120. <li id="fr5"></li>
  121. </td>
  122. </tr>
  123. </table>
  124. </td></tr>
  125. </table>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. </div>
  131. </div>
  132. </div>
  133. </div>
  134. </div>
  135. </ul>
  136. </li>
  137. <!-- Вторая секция меню Ноутбуки -->
  138. <li id="navshop3"><img style="float: left;" src="/img/separ_07.png" width="3" height="39" /><a href="#"><span>ноутбуки</span></a>
  139. <ul id="r55" style="margin-left: -130px !important;">
  140. <div class="catalog-top2-element_x borders3">
  141. <div>
  142. <div>
  143. <div>
  144. <div>
  145. <div>
  146. <div>
  147. <div>
  148. <div id="otsst_x">
  149. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  150. <tr><td>
  151. <table width="100%" cellpadding="0" cellspacing="0" id="ffrrds2" border="0">
  152. <tr>
  153. <td valign="top" width="180">
  154. <li id="fr4"><a class="b40 a150" style="color:#676767; font-size:16px;" href="/shop/goods/notebooks/188/">Все ноутбуки</a></li>
  155. <li id="fr4"><a class="b40 a150" href="/shop/goods/notebooks/153/">&nbsp;&nbsp;Acer</a></li>
  156. <li id="fr4"><a class="b40 a150" href="/shop/goods/notebooks/154/">&nbsp;&nbsp;Apple</a></li>
  157. <li id="fr4"><a class="b40 a150" href="/shop/goods/notebooks/155/">&nbsp;&nbsp;Asus</a></li>
  158. <li id="fr4"><a class="a150" href="/shop/goods/notebooks/515/">&nbsp;&nbsp;Dell</a></li>
  159. <li id="fr4"><a class="a150" href="/shop/goods/notebooks/158/">&nbsp;&nbsp;HP</a></li>
  160. <li id="fr4"><a class="a150" href="/shop/goods/notebooks/220/">&nbsp;&nbsp;Lenovo</a></li>
  161. <li id="fr4"><a class="a150" href="/shop/goods/notebooks/159/">&nbsp;&nbsp;Samsung</a></li>
  162. <li id="fr4"><a class="a150" href="/shop/goods/notebooks/219/">&nbsp;&nbsp;Sony</a></li>
  163. <li id="fr5"></li>
  164. </td>
  165. <td width="3px"><img src="/bitrix_personal/templates/beta2.citrus.ua/v_dot_200.gif" /></td>
  166. <td valign="top" width="240">
  167. <li id="fr4"><a class="b40 a200" style="color:#676767; font-size:16px;" href="">Самые популярные</a></li>
  168. <?
  169. $cc=1;
  170. $sql="Select bie.ID, bie.NAME, bipe.VALUE
  171. FROM b_iblock_element as bie,
  172. b_iblock_element_property as biep,
  173. b_iblock_property as bip,
  174. b_iblock_property_enum as bipe
  175. WHERE (bie.ID=biep.IBLOCK_ELEMENT_ID
  176. AND biep.IBLOCK_PROPERTY_ID=bip.ID
  177. AND biep.VALUE_ENUM=bipe.ID
  178. AND bip.CODE='top_menu_fl'
  179. AND bipe.VALUE='да'
  180. AND bie.ACTIVE='Y'
  181. AND bie.WF_PARENT_ELEMENT_ID IS NULL
  182. AND bie.IBLOCK_ID=22)";
  183. $result = mysql_query($sql, $db);
  184. while ($r = mysql_fetch_array($result))
  185. {
  186. $sql2="Select bie.ID, biep.VALUE
  187. FROM b_iblock_element as bie,
  188. b_iblock_element_property as biep,
  189. b_iblock_property as bip
  190. WHERE (bie.ID=biep.IBLOCK_ELEMENT_ID
  191. AND biep.IBLOCK_PROPERTY_ID=bip.ID
  192. AND bip.CODE='top_menu_name'
  193. AND bie.ACTIVE='Y'
  194. AND bie.WF_PARENT_ELEMENT_ID IS NULL
  195. AND bie.ID=".$r['ID'].")";
  196. $result2 = mysql_query($sql2, $db);
  197. while ($r2 = mysql_fetch_array($result2))
  198. {
  199. if ($cc<=3){echo "<li id=\"fr4\"><a class=\"b40 a200\" href=\"/shop/goods/mobile/189/".$r['ID']."\">&nbsp;&nbsp;".$r2['VALUE']."</a></li>";}
  200. else {echo "<li id=\"fr4\"><a class=\"a200\" href=\"/shop/goods/mobile/189/".$r['ID']."\">&nbsp;&nbsp;".$r2['VALUE']."</a></li>";}
  201. $cc++;
  202. }
  203. }
  204. mysql_close($db);
  205. ?>
  206. </td>
  207. <td width="3px"><img src="/bitrix_personal/templates/beta2.citrus.ua/v_dot_200.gif" /></td>
  208. <td valign="top" width="160">
  209. <li id="fr4"><a class="b40 a130" style="color:#676767; font-size:16px;" href="#">По цене</a></li>
  210. <li id="fr4"><a class="a130" href="/shop/goods/notebooks/188/index.php?price1=1001&price2=2000">&nbsp;&nbsp;1001..2000</a></li>
  211. <li id="fr4"><a class="a130" href="/shop/goods/notebooks/188/index.php?price1=2001&price2=3000">&nbsp;&nbsp;2001..3000</a></li>
  212. <li id="fr4"><a class="a130" href="/shop/goods/notebooks/188/index.php?price1=3001&price2=4500">&nbsp;&nbsp;3001..4500</a></li>
  213. <li id="fr4"><a class="a130" href="/shop/goods/notebooks/188/index.php?price1=4501&price2=6000">&nbsp;&nbsp;4501..6000</a></li>
  214. <li id="fr4"><a class="a130" href="/shop/goods/notebooks/188/index.php?price1=6001&price2=8000">&nbsp;&nbsp;6001..8000</a></li>
  215. <li id="fr4"><a class="a130" href="/shop/goods/notebooks/188/index.php?price1=8001&price2=100000">&nbsp;&nbsp;8001..</a></li>
  216. <li id="fr5"></li>
  217. </td>
  218. <td width="3px"><img src="/bitrix_personal/templates/beta2.citrus.ua/v_dot_200.gif" /></td>
  219. <td valign="top" width="240">
  220. <li id="fr4"><a class="b40 a200" style="color:#676767; font-size:16px;" href="">Аксессуары</a></li>
  221. <li id="fr4"><a class="b40 a200" style="color:#676767;" href="/shop/goods/laptop_bags/248/">&nbsp;&nbsp;сумки для ноутбуков</a></li>
  222. <li id="fr4"><a class="b40 a200" style="color:#676767;" href="/shop/goods/flashdrives/193/">&nbsp;&nbsp;флешки</a></li>
  223. <li id="fr4"><a class="b40 a200" style="color:#676767;" href="/shop/goods/mouse/242/">&nbsp;&nbsp;мыши</a></li>
  224. <li id="fr4"><a class="b40 a200" style="color:#676767;" href="/shop/goods/soundphones/194/">&nbsp;&nbsp;наушники</a></li>
  225. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/bluetooth/196/">&nbsp;&nbsp;bluetooth гарнитуры</a></li>
  226. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/speakers/244/">&nbsp;&nbsp;акустика</a></li>
  227. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/network_equipment/243/">&nbsp;&nbsp;сетевое оборудование</a></li>
  228. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/hdd/241/">&nbsp;&nbsp;Внешние жесткие диски</a></li>
  229. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/labels/378/">&nbsp;&nbsp;Декоративные наклейки</a></li>
  230. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/laptop_stands/360/">&nbsp;&nbsp;Подставки</a></li>
  231. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/chargers/191/">&nbsp;&nbsp;Зарядные устройства</a></li>
  232. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/cleaners/328/">&nbsp;&nbsp;Чистящие средства</a></li>
  233. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/clock/608/">&nbsp;&nbsp;Часы</a></li>
  234. <li id="fr5"></li>
  235. </td>
  236. </tr>
  237. </table>
  238. </td></tr>
  239. </table>
  240. </div>
  241. </div>
  242. </div>
  243. </div>
  244. </div>
  245. </div>
  246. </div>
  247. </div>
  248. </div>
  249. </ul>
  250. </li>
  251. <!-- ------------------------------------------------- -->
  252. <li id="navshop3"><img style="float: left;" src="/img/separ_07.png" width="3" height="39" /><a href="#"><span>планшеты</span></a>
  253. <ul id="r55" style="margin-left: -260px !important;">
  254. <div class="catalog-top2-element_x borders3">
  255. <div>
  256. <div>
  257. <div>
  258. <div>
  259. <div>
  260. <div>
  261. <div>
  262. <div id="otsst_x">
  263. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  264. <tr><td>
  265. <table width="100%" cellpadding="0" cellspacing="0" id="ffrrds5" border="0">
  266. <tr>
  267. <td valign="top" width="180">
  268. <li id="fr4"><a class="b40 a150" style="color:#676767; font-size:16px;" href="/shop/goods/tabletpc/262/">Все планшеты</a></li>
  269. <li id="fr4"><a class="b40 a150" href="/shop/goods/tabletpc/263/">&nbsp;&nbsp;Apple</a></li>
  270. <li id="fr4"><a class="b40 a150" href="/shop/goods/tabletpc/448/">&nbsp;&nbsp;Acer</a></li>
  271. <li id="fr4"><a class="b40 a150" href="/shop/goods/tabletpc/552/">&nbsp;&nbsp;Amazon Kindle</a></li>
  272. <li id="fr4"><a class="a150" href="/shop/goods/tabletpc/318/">&nbsp;&nbsp;Samsung</a></li>
  273. <li id="fr4"><a class="a150" href="/shop/goods/tabletpc/467/">&nbsp;&nbsp;Asus</a></li>
  274. <li id="fr4"><a class="a150" href="/shop/goods/tabletpc/513/">&nbsp;&nbsp;PocketBook</a></li>
  275. <li id="fr4"><a class="a150" href="/shop/goods/tabletpc/615/">&nbsp;&nbsp;Prestigio</a></li>
  276. <li id="fr5"></li>
  277. </td>
  278. <td width="3px"><img src="/bitrix_personal/templates/beta2.citrus.ua/v_dot_200.gif" /></td>
  279. <td valign="top" width="240">
  280. <li id="fr4"><a class="b40 a200" style="color:#676767; font-size:16px;" href="">Самые популярные</a></li>
  281. <?
  282. $cc=1;
  283. $sql="Select bie.ID, bie.NAME, bipe.VALUE
  284. FROM b_iblock_element as bie,
  285. b_iblock_element_property as biep,
  286. b_iblock_property as bip,
  287. b_iblock_property_enum as bipe
  288. WHERE (bie.ID=biep.IBLOCK_ELEMENT_ID
  289. AND biep.IBLOCK_PROPERTY_ID=bip.ID
  290. AND biep.VALUE_ENUM=bipe.ID
  291. AND bip.CODE='top_menu_fl'
  292. AND bipe.VALUE='да'
  293. AND bie.ACTIVE='Y'
  294. AND bie.WF_PARENT_ELEMENT_ID IS NULL
  295. AND bie.IBLOCK_ID=43)";
  296. $result = mysql_query($sql, $db);
  297. while ($r = mysql_fetch_array($result))
  298. {
  299. $sql2="Select bie.ID, biep.VALUE
  300. FROM b_iblock_element as bie,
  301. b_iblock_element_property as biep,
  302. b_iblock_property as bip
  303. WHERE (bie.ID=biep.IBLOCK_ELEMENT_ID
  304. AND biep.IBLOCK_PROPERTY_ID=bip.ID
  305. AND bip.CODE='top_menu_name'
  306. AND bie.ACTIVE='Y'
  307. AND bie.WF_PARENT_ELEMENT_ID IS NULL
  308. AND bie.ID=".$r['ID'].")";
  309. $result2 = mysql_query($sql2, $db);
  310. while ($r2 = mysql_fetch_array($result2))
  311. {
  312. if ($cc<=3){echo "<li id=\"fr4\"><a class=\"b40 a200\" href=\"/shop/goods/tabletpc/262/".$r['ID']."\">&nbsp;&nbsp;".$r2['VALUE']."</a></li>";}
  313. else {echo "<li id=\"fr4\"><a class=\"a200\" href=\"/shop/goods/tabletpc/262/".$r['ID']."\">&nbsp;&nbsp;".$r2['VALUE']."</a></li>";}
  314. $cc++;
  315. }
  316. }
  317. ?>
  318. </td>
  319. <td width="3px"><img src="/bitrix_personal/templates/beta2.citrus.ua/v_dot_200.gif" /></td>
  320. <td valign="top" width="160">
  321. <li id="fr4"><a class="b40 a130" style="color:#676767; font-size:16px;" href="#">По цене</a></li>
  322. <li id="fr4"><a class="a130" href="/shop/goods/tabletpc/262/index.php?price1=1&price2=1000">&nbsp;&nbsp;1..1000</a></li>
  323. <li id="fr4"><a class="a130" href="/shop/goods/tabletpc/262/index.php?price1=1001&price2=2000">&nbsp;&nbsp;1001..2000</a></li>
  324. <li id="fr4"><a class="a130" href="/shop/goods/tabletpc/262/index.php?price1=2001&price2=3000">&nbsp;&nbsp;2001..3000</a></li>
  325. <li id="fr4"><a class="a130" href="/shop/goods/tabletpc/262/index.php?price1=3001&price2=4500">&nbsp;&nbsp;3001..4500</a></li>
  326. <li id="fr4"><a class="a130" href="/shop/goods/tabletpc/262/index.php?price1=4501&price2=6000">&nbsp;&nbsp;4501..6000</a></li>
  327. <li id="fr4"><a class="a130" href="/shop/goods/tabletpc/262/index.php?price1=6001&price2=8000">&nbsp;&nbsp;6001..8000</a></li>
  328. <li id="fr4"><a class="a130" href="/shop/goods/tabletpc/262/index.php?price1=8001&price2=100000">&nbsp;&nbsp;8001..</a></li>
  329. <li id="fr5"></li>
  330. </td>
  331. <td width="3px"><img src="/bitrix_personal/templates/beta2.citrus.ua/v_dot_200.gif" /></td>
  332. <td valign="top" width="240">
  333. <li id="fr4"><a class="b40 a200" style="color:#676767; font-size:16px;" href="">Аксессуары</a></li>
  334. <li id="fr4"><a class="b40 a200" style="color:#676767;" href="/shop/goods/display_labels/249/">&nbsp;&nbsp;Защитные пленки</a></li>
  335. <li id="fr4"><a class="b40 a200" style="color:#676767;" href="/shop/goods/chargers/191/">&nbsp;&nbsp;Зарядные устройства</a></li>
  336. <!--<li id="fr4"><a class="b40 a200" style="color:#676767;" href="/shop/goods///">&nbsp;&nbsp;Чехлы для планшетов</a></li> -->
  337. <li id="fr4"><a class="b40 a200" style="color:#676767;" href="/shop/goods/bluetooth/196/">&nbsp;&nbsp;Bluetooth гарнитуры</a></li>
  338. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/soundphones/194/">&nbsp;&nbsp;Наушники</a></li>
  339. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/memorycards/192/">&nbsp;&nbsp;Карты памяти</a></li>
  340. <!--<li id="fr4"><a class="b40 a200" style="color:#676767;" href="/shop/goods///">&nbsp;&nbsp;Мобильные зарядные устройства</a></li> -->
  341. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/speakers/244/">&nbsp;&nbsp;Акустика</a></li>
  342. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/clock/608/">&nbsp;&nbsp;Часы</a></li>
  343. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/data_cables/270/">&nbsp;&nbsp;Кабели</a></li>
  344. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/adapters/326/">&nbsp;&nbsp;Переходники</a></li>
  345. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/stylus/561/">&nbsp;&nbsp;Стилусы</a></li>
  346. <li id="fr5"></li>
  347. </td>
  348. </tr></table>
  349. </td></tr>
  350. </table>
  351. </div>
  352. </div>
  353. </div>
  354. </div>
  355. </div>
  356. </div>
  357. </div>
  358. </div>
  359. </div>
  360. </ul>
  361. </li>
  362. <!-- ------------------------------------------------------------------ -->
  363. <li id="navshop3"><img style="float: left;" src="/img/separ_07.png" width="3" height="39" /><a href="#"><span class="tw">электронные книги</span></a>
  364. <ul id="r55" style="margin-left: -390px !important;">
  365. <div class="catalog-top2-element_x borders3">
  366. <div>
  367. <div>
  368. <div>
  369. <div>
  370. <div>
  371. <div>
  372. <div>
  373. <div id="otsst_x">
  374. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  375. <tr><td>
  376. <table width="100%" cellpadding="0" cellspacing="0" id="ffrrds5" border="0">
  377. <tr>
  378. <td valign="top" width="180">
  379. <li id="fr4"><a class="b40 a150" style="color:#676767; font-size:16px;" href="/shop/goods/ebook/284/">Все эл. книги</a></li>
  380. <li id="fr4"><a class="b40 a150" href="/shop/goods/ebook/526/">&nbsp;&nbsp;Amazon</a></li>
  381. <li id="fr4"><a class="b40 a150" href="/shop/goods/ebook/625/">&nbsp;&nbsp;Barnes&Noble</a></li>
  382. <li id="fr4"><a class="b40 a150" href="/shop/goods/ebook/290/">&nbsp;&nbsp;PocketBook</a></li>
  383. <li id="fr4"><a class="a150" href="/shop/goods/ebook/587/">&nbsp;&nbsp;Фонарики</a></li>
  384. <li id="fr5"></li>
  385. </td>
  386. <td width="3px"><img src="/bitrix_personal/templates/beta2.citrus.ua/v_dot_200.gif" /></td>
  387. <td valign="top" width="240">
  388. <li id="fr4"><a class="b40 a200" style="color:#676767; font-size:16px;" href="">Самые популярные</a></li>
  389. <?
  390. $cc=1;
  391. $sql="Select bie.ID, bie.NAME, bipe.VALUE
  392. FROM b_iblock_element as bie,
  393. b_iblock_element_property as biep,
  394. b_iblock_property as bip,
  395. b_iblock_property_enum as bipe
  396. WHERE (bie.ID=biep.IBLOCK_ELEMENT_ID
  397. AND biep.IBLOCK_PROPERTY_ID=bip.ID
  398. AND biep.VALUE_ENUM=bipe.ID
  399. AND bip.CODE='top_menu_fl'
  400. AND bipe.VALUE='да'
  401. AND bie.ACTIVE='Y'
  402. AND bie.WF_PARENT_ELEMENT_ID IS NULL
  403. AND bie.IBLOCK_ID=34)";
  404. $result = mysql_query($sql, $db);
  405. while ($r = mysql_fetch_array($result))
  406. {
  407. $sql2="Select bie.ID, biep.VALUE
  408. FROM b_iblock_element as bie,
  409. b_iblock_element_property as biep,
  410. b_iblock_property as bip
  411. WHERE (bie.ID=biep.IBLOCK_ELEMENT_ID
  412. AND biep.IBLOCK_PROPERTY_ID=bip.ID
  413. AND bip.CODE='top_menu_name'
  414. AND bie.ACTIVE='Y'
  415. AND bie.WF_PARENT_ELEMENT_ID IS NULL
  416. AND bie.ID=".$r['ID'].")";
  417. $result2 = mysql_query($sql2, $db);
  418. while ($r2 = mysql_fetch_array($result2))
  419. {
  420. if ($cc<=3){echo "<li id=\"fr4\"><a class=\"b40 a200\" href=\"/shop/goods/ebook/284/".$r['ID']."\">&nbsp;&nbsp;".$r2['VALUE']."</a></li>";}
  421. else {echo "<li id=\"fr4\"><a class=\"a200\" href=\"/shop/goods/ebook/284/".$r['ID']."\">&nbsp;&nbsp;".$r2['VALUE']."</a></li>";}
  422. $cc++;
  423. }
  424. }
  425. ?>
  426. </td>
  427. <td width="3px"><img src="/bitrix_personal/templates/beta2.citrus.ua/v_dot_200.gif" /></td>
  428. <td valign="top" width="160">
  429. <li id="fr4"><a class="b40 a130" style="color:#676767; font-size:16px;" href="#">По цене</a></li>
  430. <li id="fr4"><a class="a130" href="/shop/goods/ebook/284/index.php?price1=1&price2=1000">&nbsp;&nbsp;1..1000</a></li>
  431. <li id="fr4"><a class="a130" href="/shop/goods/ebook/284/index.php?price1=1001&price2=2000">&nbsp;&nbsp;1001..2000</a></li>
  432. <li id="fr4"><a class="a130" href="/shop/goods/ebook/284/index.php?price1=2001&price2=3000">&nbsp;&nbsp;2001..3000</a></li>
  433. <li id="fr4"><a class="a130" href="/shop/goods/ebook/284/index.php?price1=3001&price2=4500">&nbsp;&nbsp;3001..4500</a></li>
  434. <li id="fr4"><a class="a130" href="/shop/goods/ebook/284/index.php?price1=4501&price2=6000">&nbsp;&nbsp;4501..6000</a></li>
  435. <li id="fr4"><a class="a130" href="/shop/goods/ebook/284/index.php?price1=6001&price2=8000">&nbsp;&nbsp;6001..8000</a></li>
  436. <li id="fr4"><a class="a130" href="/shop/goods/ebook/284/index.php?price1=8001&price2=100000">&nbsp;&nbsp;8001..</a></li>
  437. <li id="fr5"></li>
  438. </td>
  439. <td width="3px"><img src="/bitrix_personal/templates/beta2.citrus.ua/v_dot_200.gif" /></td>
  440. <td valign="top" width="240">
  441. <li id="fr4"><a class="b40 a200" style="color:#676767; font-size:16px;" href="">Аксессуары</a></li>
  442. <li id="fr4"><a class="b40 a200" style="color:#676767;" href="/shop/goods/display_labels/249/">&nbsp;&nbsp;Защитные пленки</a></li>
  443. <li id="fr4"><a class="b40 a200" style="color:#676767;" href="/shop/goods/chargers/191/">&nbsp;&nbsp;Зарядные устройства</a></li>
  444. <!--<li id="fr4"><a class="b40 a200" style="color:#676767;" href="/shop/goods///">&nbsp;&nbsp;Чехлы для эл.книг</a></li> -->
  445. <!--<li id="fr4"><a class="b40 a200" style="color:#676767;" href="/shop/goods///">&nbsp;&nbsp;Мобильные зарядные устройства</a></li> -->
  446. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/memorycards/192/">&nbsp;&nbsp;Карты памяти</a></li>
  447. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/soundphones/194/">&nbsp;&nbsp;Наушники</a></li>
  448. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/clock/608/">&nbsp;&nbsp;Часы</a></li>
  449. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/data_cables/270/">&nbsp;&nbsp;Кабели</a></li>
  450. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/adapters/326/">&nbsp;&nbsp;Переходники</a></li>
  451. <li id="fr5"></li>
  452. </td>
  453. </tr></table>
  454. </td></tr>
  455. </table>
  456. </div>
  457. </div>
  458. </div>
  459. </div>
  460. </div>
  461. </div>
  462. </div>
  463. </div>
  464. </div>
  465. </ul>
  466. </li>
  467. <!-- ------------------------------------------------------------------------ -->
  468. <li id="navshop3"><img style="float: left;" src="/img/separ_07.png" width="3" height="39" /><a href="#"><span>техника Apple</span></a>
  469. <ul id="r55" style="margin-left: -520px !important;">
  470. <div class="catalog-top2-element_x borders3">
  471. <!--
  472. <ul>
  473. <div class="catalog-top2-element_x borders3">
  474. -->
  475. <div>
  476. <div>
  477. <div>
  478. <div>
  479. <div>
  480. <div>
  481. <div>
  482. <div id="otsst_x">
  483. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  484. <tr><td>
  485. <table width="100%" cellpadding="0" cellspacing="0" id="ffrrds5" border="0">
  486. <tr>
  487. <td valign="top" width="180">
  488. <li id="fr4"><a class="b40 a216" href="/shop/goods/tabletpc/263/">iPad</a></li>
  489. <li id="fr4"><a class="b40 a216" href="/shop/goods/mobile/258/?model=4">iPhone 4/4s</a></li>
  490. <li id="fr4"><a class="b40 a216" href="/shop/goods/mobile/258/?model=5">iPhone 5</a></li>
  491. <li id="fr4"><a class="a216" href="/color_iphone/">iPhone color edition</a></li>
  492. <li id="fr4"><a class="a216" href="/shop/goods/mp3/152/">iPod</a></li>
  493. <li id="fr4"><a class="a216" href="/shop/goods/notebooks/154/">MacBook</a></li>
  494. <li id="fr4"><a class="a216" href="/shop/goods/notebooks/154/">iMac</a></li>
  495. <li id="fr4"><a class="a216" href="/iphone_luxury/">iPhone luvury edition</a></li>
  496. <li id="fr5"></li>
  497. </td>
  498. <td width="3px"><img src="/bitrix_personal/templates/beta2.citrus.ua/v_dot_200.gif" /></td>
  499. <td valign="top" width="240">
  500. <li id="fr4"><a class="b40 a200" style="color:#676767; font-size:16px;" href="">Самые популярные</a></li>
  501. <?
  502. $cc=1;
  503. //----------------------------------- iPhone
  504. $sql="Select bie.ID, bie.NAME, bipe.VALUE
  505. FROM b_iblock_element as bie,
  506. b_iblock_element_property as biep,
  507. b_iblock_property as bip,
  508. b_iblock_property_enum as bipe
  509. WHERE (bie.ID=biep.IBLOCK_ELEMENT_ID
  510. AND biep.IBLOCK_PROPERTY_ID=bip.ID
  511. AND biep.VALUE_ENUM=bipe.ID
  512. AND bip.CODE='top_menu_fl'
  513. AND bipe.VALUE='да'
  514. AND bie.ACTIVE='Y'
  515. AND bie.WF_PARENT_ELEMENT_ID IS NULL
  516. AND bie.IBLOCK_ID=20)";
  517. $result = mysql_query($sql, $db);
  518. while ($r = mysql_fetch_array($result))
  519. {
  520. $devel=0;
  521. $sql2="Select bie.ID, bipe.VALUE
  522. FROM b_iblock_element as bie,
  523. b_iblock_element_property as biep,
  524. b_iblock_property as bip,
  525. b_iblock_property_enum as bipe
  526. WHERE (bie.ID=biep.IBLOCK_ELEMENT_ID
  527. AND biep.IBLOCK_PROPERTY_ID=bip.ID
  528. AND biep.VALUE_ENUM=bipe.ID
  529. AND bip.CODE='developer'
  530. AND bipe.VALUE='Apple'
  531. AND bie.ACTIVE='Y'
  532. AND bie.WF_PARENT_ELEMENT_ID IS NULL
  533. AND bie.IBLOCK_ID=20
  534. AND bie.ID=".$r['ID'].")";
  535. $result2 = mysql_query($sql2, $db);
  536. while ($r2 = mysql_fetch_array($result2))
  537. {
  538. $devel=1;
  539. }
  540. if ($devel==1){
  541. $sql2="Select bie.ID, biep.VALUE
  542. FROM b_iblock_element as bie,
  543. b_iblock_element_property as biep,
  544. b_iblock_property as bip
  545. WHERE (bie.ID=biep.IBLOCK_ELEMENT_ID
  546. AND biep.IBLOCK_PROPERTY_ID=bip.ID
  547. AND bip.CODE='top_menu_name'
  548. AND bie.ACTIVE='Y'
  549. AND bie.WF_PARENT_ELEMENT_ID IS NULL
  550. AND bie.ID=".$r['ID'].")";
  551. $result2 = mysql_query($sql2, $db);
  552. while ($r2 = mysql_fetch_array($result2))
  553. {
  554. if ($cc<=3){echo "<li id=\"fr4\"><a class=\"b40 a200\" href=\"/shop/goods/mobile/258/".$r['ID']."\">&nbsp;&nbsp;".$r2['VALUE']."</a></li>";}
  555. else {echo "<li id=\"fr4\"><a class=\"a200\" href=\"/shop/goods/mobile/258/".$r['ID']."\">&nbsp;&nbsp;".$r2['VALUE']."</a></li>";}
  556. $cc++;
  557. }
  558. }
  559. }
  560. //--------------------------------- MacBook
  561. $sql="Select bie.ID, bie.NAME, bipe.VALUE
  562. FROM b_iblock_element as bie,
  563. b_iblock_element_property as biep,
  564. b_iblock_property as bip,
  565. b_iblock_property_enum as bipe
  566. WHERE (bie.ID=biep.IBLOCK_ELEMENT_ID
  567. AND biep.IBLOCK_PROPERTY_ID=bip.ID
  568. AND biep.VALUE_ENUM=bipe.ID
  569. AND bip.CODE='top_menu_fl'
  570. AND bipe.VALUE='да'
  571. AND bie.ACTIVE='Y'
  572. AND bie.WF_PARENT_ELEMENT_ID IS NULL
  573. AND bie.IBLOCK_ID=22)";
  574. $result = mysql_query($sql, $db);
  575. while ($r = mysql_fetch_array($result))
  576. {
  577. $devel=0;
  578. $sql2="Select bie.ID, bipe.VALUE
  579. FROM b_iblock_element as bie,
  580. b_iblock_element_property as biep,
  581. b_iblock_property as bip,
  582. b_iblock_property_enum as bipe
  583. WHERE (bie.ID=biep.IBLOCK_ELEMENT_ID
  584. AND biep.IBLOCK_PROPERTY_ID=bip.ID
  585. AND biep.VALUE_ENUM=bipe.ID
  586. AND bip.CODE='developer'
  587. AND bipe.VALUE='Apple'
  588. AND bie.ACTIVE='Y'
  589. AND bie.WF_PARENT_ELEMENT_ID IS NULL
  590. AND bie.IBLOCK_ID=22
  591. AND bie.ID=".$r['ID'].")";
  592. $result2 = mysql_query($sql2, $db);
  593. while ($r2 = mysql_fetch_array($result2))
  594. {
  595. $devel=1;
  596. }
  597. if ($devel==1){
  598. $sql2="Select bie.ID, biep.VALUE
  599. FROM b_iblock_element as bie,
  600. b_iblock_element_property as biep,
  601. b_iblock_property as bip
  602. WHERE (bie.ID=biep.IBLOCK_ELEMENT_ID
  603. AND biep.IBLOCK_PROPERTY_ID=bip.ID
  604. AND bip.CODE='top_menu_name'
  605. AND bie.ACTIVE='Y'
  606. AND bie.WF_PARENT_ELEMENT_ID IS NULL
  607. AND bie.ID=".$r['ID'].")";
  608. $result2 = mysql_query($sql2, $db);
  609. while ($r2 = mysql_fetch_array($result2))
  610. {
  611. if ($cc<=3){echo "<li id=\"fr4\"><a class=\"b40 a200\" href=\"/shop/goods/notebooks/154/".$r['ID']."\">&nbsp;&nbsp;".$r2['VALUE']."</a></li>";}
  612. else {echo "<li id=\"fr4\"><a class=\"a200\" href=\"/shop/goods/notebooks/154/".$r['ID']."\">&nbsp;&nbsp;".$r2['VALUE']."</a></li>";}
  613. $cc++;
  614. }
  615. }
  616. }
  617. //------------------------------------ ipad
  618. $sql="Select bie.ID, bie.NAME, bipe.VALUE
  619. FROM b_iblock_element as bie,
  620. b_iblock_element_property as biep,
  621. b_iblock_property as bip,
  622. b_iblock_property_enum as bipe
  623. WHERE (bie.ID=biep.IBLOCK_ELEMENT_ID
  624. AND biep.IBLOCK_PROPERTY_ID=bip.ID
  625. AND biep.VALUE_ENUM=bipe.ID
  626. AND bip.CODE='top_menu_fl'
  627. AND bipe.VALUE='да'
  628. AND bie.ACTIVE='Y'
  629. AND bie.WF_PARENT_ELEMENT_ID IS NULL
  630. AND bie.IBLOCK_ID=43)";
  631. $result = mysql_query($sql, $db);
  632. while ($r = mysql_fetch_array($result))
  633. {
  634. $devel=0;
  635. $sql2="Select bie.ID, bipe.VALUE
  636. FROM b_iblock_element as bie,
  637. b_iblock_element_property as biep,
  638. b_iblock_property as bip,
  639. b_iblock_property_enum as bipe
  640. WHERE (bie.ID=biep.IBLOCK_ELEMENT_ID
  641. AND biep.IBLOCK_PROPERTY_ID=bip.ID
  642. AND biep.VALUE_ENUM=bipe.ID
  643. AND bip.CODE='developer'
  644. AND bipe.VALUE='Apple'
  645. AND bie.ACTIVE='Y'
  646. AND bie.WF_PARENT_ELEMENT_ID IS NULL
  647. AND bie.IBLOCK_ID=43
  648. AND bie.ID=".$r['ID'].")";
  649. $result2 = mysql_query($sql2, $db);
  650. while ($r2 = mysql_fetch_array($result2))
  651. {
  652. $devel=1;
  653. }
  654. if ($devel==1){
  655. $sql2="Select bie.ID, biep.VALUE
  656. FROM b_iblock_element as bie,
  657. b_iblock_element_property as biep,
  658. b_iblock_property as bip
  659. WHERE (bie.ID=biep.IBLOCK_ELEMENT_ID
  660. AND biep.IBLOCK_PROPERTY_ID=bip.ID
  661. AND bip.CODE='top_menu_name'
  662. AND bie.ACTIVE='Y'
  663. AND bie.WF_PARENT_ELEMENT_ID IS NULL
  664. AND bie.ID=".$r['ID'].")";
  665. $result2 = mysql_query($sql2, $db);
  666. while ($r2 = mysql_fetch_array($result2))
  667. {
  668. if ($cc<=3){echo "<li id=\"fr4\"><a class=\"b40 a200\" href=\"/shop/goods/tabletpc/263/".$r['ID']."\">&nbsp;&nbsp;".$r2['VALUE']."</a></li>";}
  669. else {echo "<li id=\"fr4\"><a class=\"a200\" href=\"/shop/goods/tabletpc/263/".$r['ID']."\">&nbsp;&nbsp;".$r2['VALUE']."</a></li>";}
  670. $cc++;
  671. }
  672. }
  673. }
  674. //----------------------------------------------------- ipod
  675. $sql="Select bie.ID, bie.NAME, bipe.VALUE
  676. FROM b_iblock_element as bie,
  677. b_iblock_element_property as biep,
  678. b_iblock_property as bip,
  679. b_iblock_property_enum as bipe
  680. WHERE (bie.ID=biep.IBLOCK_ELEMENT_ID
  681. AND biep.IBLOCK_PROPERTY_ID=bip.ID
  682. AND biep.VALUE_ENUM=bipe.ID
  683. AND bip.CODE='top_menu_fl'
  684. AND bipe.VALUE='да'
  685. AND bie.ACTIVE='Y'
  686. AND bie.WF_PARENT_ELEMENT_ID IS NULL
  687. AND bie.IBLOCK_ID=23)";
  688. $result = mysql_query($sql, $db);
  689. while ($r = mysql_fetch_array($result))
  690. {
  691. $devel=0;
  692. $sql2="Select bie.ID, bipe.VALUE
  693. FROM b_iblock_element as bie,
  694. b_iblock_element_property as biep,
  695. b_iblock_property as bip,
  696. b_iblock_property_enum as bipe
  697. WHERE (bie.ID=biep.IBLOCK_ELEMENT_ID
  698. AND biep.IBLOCK_PROPERTY_ID=bip.ID
  699. AND biep.VALUE_ENUM=bipe.ID
  700. AND bip.CODE='developer'
  701. AND bipe.VALUE='Apple'
  702. AND bie.ACTIVE='Y'
  703. AND bie.WF_PARENT_ELEMENT_ID IS NULL
  704. AND bie.IBLOCK_ID=23
  705. AND bie.ID=".$r['ID'].")";
  706. $result2 = mysql_query($sql2, $db);
  707. while ($r2 = mysql_fetch_array($result2))
  708. {
  709. $devel=1;
  710. }
  711. if ($devel==1){
  712. $sql2="Select bie.ID, biep.VALUE
  713. FROM b_iblock_element as bie,
  714. b_iblock_element_property as biep,
  715. b_iblock_property as bip
  716. WHERE (bie.ID=biep.IBLOCK_ELEMENT_ID
  717. AND biep.IBLOCK_PROPERTY_ID=bip.ID
  718. AND bip.CODE='top_menu_name'
  719. AND bie.ACTIVE='Y'
  720. AND bie.WF_PARENT_ELEMENT_ID IS NULL
  721. AND bie.ID=".$r['ID'].")";
  722. $result2 = mysql_query($sql2, $db);
  723. while ($r2 = mysql_fetch_array($result2))
  724. {
  725. if ($cc<=3){echo "<li id=\"fr4\"><a class=\"b40 a200\" href=\"/shop/goods/mp3/152/".$r['ID']."\">&nbsp;&nbsp;".$r2['VALUE']."</a></li>";}
  726. else {echo "<li id=\"fr4\"><a class=\"a200\" href=\"/shop/goods/mp3/152/".$r['ID']."\">&nbsp;&nbsp;".$r2['VALUE']."</a></li>";}
  727. $cc++;
  728. }
  729. }
  730. }
  731. ?>
  732. <li id="fr5"></li>
  733. </td>
  734. <td width="3px"><img src="/bitrix_personal/templates/beta2.citrus.ua/v_dot_200.gif" /></td>
  735. <td valign="top" width="240">
  736. <li id="fr4"><a class="b40 a200" style="color:#676767; font-size:16px;" href="">Аксессуары</a></li>
  737. <li id="fr4"><a class="b40 a200" style="color:#676767;" href="/shop/goods/chargers/191/">&nbsp;&nbsp;Зарядные устройства</a></li>
  738. <li id="fr4"><a class="b40 a200" style="color:#676767;" href="/shop/goods/apple_products/533/">&nbsp;&nbsp;Акустические док станции</a></li>
  739. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/wiredheadsets/197/">&nbsp;&nbsp;проводные гарнитуры</a></li>
  740. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/soundphones/194/">&nbsp;&nbsp;Наушники</a></li>
  741. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/autocomp/525/">&nbsp;&nbsp;Автокомплекты</a></li>
  742. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/display_labels/249/">&nbsp;&nbsp;пленки на дисплей</a></li>
  743. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/mobile_handbags/247/">&nbsp;&nbsp;чехлы</a></li>
  744. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/apple_products/338/">&nbsp;&nbsp;Аксессуары Mac</a></li>
  745. <li id="fr4"><a class="a200" style="color:#676767;" href="/shop/goods/apple_products/558/">&nbsp;&nbsp;Аксессуары Air/Macbook</a></li>
  746. <li id="fr5"></li>
  747. </td>
  748. </tr>
  749. </table>
  750. </td></tr>
  751. </table>
  752. </div>
  753. </div>
  754. </div>
  755. </div>
  756. </div>
  757. </div>
  758. </div>
  759. </div>
  760. </div>
  761. </ul>
  762. </li>
  763. <!--
  764. <div id="yahaa">
  765. <a title="Yahoo doo - more content" href="http://yahoo.com">Link to yahoo</a>
  766. <a title="Yahoo doo2 - wohooo" href="http://yahoo.com">Link to yahoo1</a>
  767. <a title="Yahoo doo3" href="http://yahoo.com">Link to yahoo2</a>
  768. <a title="Yahoo doo4 - buga!" href="http://yahoo.com">Link to yahoo3</a>
  769. </div>
  770. -->
  771. <li id="navshop3"><img style="float: left;" src="/img/separ_07.png" width="3" height="39" /><div id="yahaa"><a title="кликните мышкой" href="http://www.citrus.ua/shop/accessories/"><span>аксессуары</span></div></a>
  772. <!-- <ul>
  773. <li id="up-menu"></li> -->
  774. <?php
  775. // Меню с выпадающими подменю
  776. //echo getMenuXhtml('sim.png', 'start_packages', 'Стартовые пакеты', 31);
  777. //echo getMenuXhtml('adapters.png', 'adapters', 'Переходники', 50); // Меню с выпадающими подменю со стрелкой
  778. //echo getMenuXhtml('zar.png', 'chargers', 'Зарядные устройства', 23);
  779. //echo getMenuXhtml('bat.png', 'batteries', 'Элементы питания', 27);
  780. ?>
  781. <!-- <li id="down-menu"></li>
  782. </ul> -->
  783. </li>
  784. </li><img id="ggghhh" style="float:left;" src="/img/end_07.jpg" width="3" height="39" />
  785. </ul>
  786. </div>
  787. <?php
  788. // -----------------------------------------------------------------------------------------------
  789. function getSubMenuXhtml22($iblockId, $baseUri, $ulClass, $addItemArr = null)
  790. {
  791. $xHtml = '';
  792. $ulStyle = '';
  793. // вытаскиваем секции, которые входят в иблок с ID = $iblockId
  794. $sql = "SELECT `ID`, `NAME`
  795. FROM `b_iblock_section`
  796. WHERE `IBLOCK_ID` = '{$iblockId}'
  797. AND `IBLOCK_SECTION_ID` IS NULL
  798. AND `ACTIVE` = 'Y'
  799. ORDER BY `SORT`, `NAME`";
  800. $result = mysql_query($sql);
  801. //var_dump($addItemArr);
  802. if (mysql_num_rows($result) > 0) {
  803. while ($row = mysql_fetch_assoc($result)) {
  804. $id = intval($row['ID']);
  805. $name = stripslashes($row['NAME']);
  806. $link = $baseUri . '/' . $id . '/';
  807. $xHtml .= '<li id="fr4"><a href="' . $link . '">&nbsp;' . $name . '</a></li>';
  808. }
  809. }
  810. return $xHtml;
  811. }
  812. /**
  813. * @param $ico_name - название файла картинки
  814. * @param $dir_name - название директории раздела на сайте
  815. * @param $caption - текст в меню
  816. * @param $iblock_id - идентификатор раздела на сайте
  817. */
  818. function getMenuXhtml3($ico_name, $dir_name, $caption, $iblock_id, $addItemArr = null, $specialStyle='')
  819. {
  820. $sql = "SELECT `ID`
  821. FROM `b_iblock_section`
  822. WHERE `IBLOCK_ID` = '{$iblock_id}'
  823. AND `IBLOCK_SECTION_ID` IS NULL
  824. AND `NAME` LIKE 'Все товары'
  825. AND `ACTIVE` = 'Y'
  826. LIMIT 1";
  827. $allGoodsIdSection = '';
  828. $result = mysql_query($sql);
  829. if (mysql_num_rows($result) > 0) {
  830. $row = mysql_fetch_assoc($result);
  831. $allGoodsIdSection = intval($row['ID']);
  832. }
  833. $ico_home_path = "//img.citrus.com.ua/img/menu/icons/";
  834. $dir_home_path = "/shop/goods/";
  835. $xhtml = '<li id="fr4">';
  836. //$xhtml .= '<img src="'.$ico_home_path.$ico_name.'" style="position:absolute;" />';
  837. //$xhtml .= '<a class="last_t" style="'.$specialStyle.'" href="'.$dir_home_path.$dir_name.'/'.$allGoodsIdSection.'/" name="shop-'.$dir_name.'">';
  838. $xhtml .= '<a style="'.$specialStyle.'" class="last_t" href="'.$dir_home_path.$dir_name.'/'.$allGoodsIdSection.'/">';
  839. $xhtml .= '<strong>' . $caption;
  840. $xhtml .= '</strong></a>';
  841. $xhtml .= "</li>";
  842. $xhtml .= getSubMenuXhtml22($iblock_id, $dir_home_path.$dir_name, 'shop-'.$dir_name, $addItemArr);
  843. return $xhtml;
  844. }
  845. // -----------------------------------------------------------------------------------------------
  846. function getMenuXhtmlX($ico_name, $dir_name, $caption, $iblock_id, $addItemArr = null, $specialStyle='')
  847. {
  848. $sql = "SELECT `ID`
  849. FROM `b_iblock_section`
  850. WHERE `IBLOCK_ID` = '{$iblock_id}'
  851. AND `IBLOCK_SECTION_ID` IS NULL
  852. AND `NAME` LIKE 'Все товары'
  853. AND `ACTIVE` = 'Y'
  854. LIMIT 1";
  855. $allGoodsIdSection = '';
  856. $result = mysql_query($sql);
  857. if (mysql_num_rows($result) > 0) {
  858. $row = mysql_fetch_assoc($result);
  859. $allGoodsIdSection = intval($row['ID']);
  860. }
  861. $ico_home_path = "//img.citrus.com.ua/img/menu/icons/";
  862. $dir_home_path = "/shop/goods/";
  863. $xhtml = '<li>';
  864. //$xhtml .= '<img src="'.$ico_home_path.$ico_name.'" style="position:absolute;" />';
  865. $xhtml .= '<a class="menu-h2 menu-main" style=" padding-left:33px;'.$specialStyle.'" href="'.$dir_home_path.$dir_name.'/'.$allGoodsIdSection.'/" name="shop-'.$dir_name.'">';
  866. $xhtml .= '<strong>'.$caption.'</strong>';
  867. $xhtml .= '</a>';
  868. $xhtml .= getSubMenuXhtml($iblock_id, $dir_home_path.$dir_name, 'shop-'.$dir_name, $addItemArr);
  869. $xhtml .= "</li>";
  870. return $xhtml;
  871. }
  872. // -----------------------------------------------------------------------------------------------
  873. /**
  874. * @param $ico_name - название файла картинки
  875. * @param $dir_name - название директории раздела на сайте
  876. * @param $caption - текст в меню
  877. * @param $iblock_id - идентификатор раздела на сайте
  878. */
  879. function getMenuXhtml2($ico_name, $dir_name, $caption, $iblock_id, $addItemArr = null, $specialStyle='')
  880. {
  881. $sql = "SELECT `ID`
  882. FROM `b_iblock_section`
  883. WHERE `IBLOCK_ID` = '{$iblock_id}'
  884. AND `IBLOCK_SECTION_ID` IS NULL
  885. AND `NAME` LIKE 'Все товары'
  886. AND `ACTIVE` = 'Y'
  887. LIMIT 1";
  888. $allGoodsIdSection = '';
  889. $result = mysql_query($sql);
  890. if (mysql_num_rows($result) > 0) {
  891. $row = mysql_fetch_assoc($result);
  892. $allGoodsIdSection = intval($row['ID']);
  893. }
  894. $ico_home_path = "//img.citrus.com.ua/img/menu/icons/";
  895. $dir_home_path = "/shop/goods/";
  896. $xhtml = '<li id="fr4">';
  897. //$xhtml .= '<img src="'.$ico_home_path.$ico_name.'" style="position:absolute;" />';
  898. $xhtml .= '<a class="menu-h2 menu-main" style="'.$specialStyle.'" href="'.$dir_home_path.$dir_name.'/'.$allGoodsIdSection.'/" name="shop-'.$dir_name.'">';
  899. $xhtml .= $caption;
  900. $xhtml .= '</a>';
  901. $xhtml .= getSubMenuXhtml($iblock_id, $dir_home_path.$dir_name, 'shop-'.$dir_name, $addItemArr);
  902. $xhtml .= "</li>";
  903. return $xhtml;
  904. }
  905. // -----------------------------------------------------------------------------------------------
  906. /**
  907. * @param $ico_name - название файла картинки
  908. * @param $dir_name - название директории раздела на сайте
  909. * @param $caption - текст в меню
  910. * @param $iblock_id - идентификатор раздела на сайте
  911. */
  912. function getMenuXhtml($ico_name, $dir_name, $caption, $iblock_id, $addItemArr = null, $specialStyle='')
  913. {
  914. $sql = "SELECT `ID`
  915. FROM `b_iblock_section`
  916. WHERE `IBLOCK_ID` = '{$iblock_id}'
  917. AND `IBLOCK_SECTION_ID` IS NULL
  918. AND `NAME` LIKE 'Все товары'
  919. AND `ACTIVE` = 'Y'
  920. LIMIT 1";
  921. $allGoodsIdSection = '';
  922. $result = mysql_query($sql);
  923. if (mysql_num_rows($result) > 0) {
  924. $row = mysql_fetch_assoc($result);
  925. $allGoodsIdSection = intval($row['ID']);
  926. }
  927. $ico_home_path = "//img.citrus.com.ua/img/menu/icons/";
  928. $dir_home_path = "/shop/goods/";
  929. $xhtml = '<li>';
  930. //$xhtml .= '<img src="'.$ico_home_path.$ico_name.'" style="position:absolute;" />';
  931. $xhtml .= '<a class="menu-h2 menu-main" style="'.$specialStyle.'" href="'.$dir_home_path.$dir_name.'/'.$allGoodsIdSection.'/" name="shop-'.$dir_name.'">';
  932. //$xhtml .= '<strong>'.$caption.'</strong>';
  933. $xhtml .= $caption;
  934. $xhtml .= '</a>';
  935. $xhtml .= getSubMenuXhtml($iblock_id, $dir_home_path.$dir_name, 'shop-'.$dir_name, $addItemArr);
  936. $xhtml .= "</li>";
  937. return $xhtml;
  938. }
  939. // -------------------------------------------------------------------------------------------
  940. function getSubMenuXhtml($iblockId, $baseUri, $ulClass, $addItemArr = null)
  941. {
  942. $xHtml = '';
  943. $ulStyle = '';
  944. // вытаскиваем секции, которые входят в иблок с ID = $iblockId
  945. $sql = "SELECT `ID`, `NAME`
  946. FROM `b_iblock_section`
  947. WHERE `IBLOCK_ID` = '{$iblockId}'
  948. AND `IBLOCK_SECTION_ID` IS NULL
  949. AND `ACTIVE` = 'Y'
  950. ORDER BY `SORT`, `NAME`";
  951. $result = mysql_query($sql);
  952. //var_dump($addItemArr);
  953. if (mysql_num_rows($result) > 0) {
  954. while ($row = mysql_fetch_assoc($result)) {
  955. $id = intval($row['ID']);
  956. $name = stripslashes($row['NAME']);
  957. $link = $baseUri . '/' . $id . '/';
  958. $xHtml .= '<li class="menu-item" ><a href="' . $link . '"><span id="last_p">' . $name . '</span></a></li>';
  959. if(!is_null($addItemArr) && !is_null($addItemArr[$id])){
  960. $ins_link = $addItemArr[$id]['link'];
  961. $ins_caption = $addItemArr[$id]['caption'];
  962. $ins_class = $addItemArr[$id]['class'];
  963. $xHtml .= '<li class="menu-item '.$ins_class.'" ><a href="'.$ins_link.'"><span>'.$ins_caption.'</span></a></li>';
  964. }
  965. }
  966. }
  967. if (substr_count($_SERVER['REQUEST_URI'], str_replace('http://www.citrus.ua', '', $baseUri))) {
  968. $ulStyle .= ' style="display: block;"';
  969. }
  970. if (strlen($xHtml) > 0) {
  971. $xHtml = '<ul class="submenu ' . $ulClass . '"' . $ulStyle . '><li id="up-menu"></li>'
  972. . $xHtml .
  973. '<li id="down-menu"></li></ul>';
  974. }
  975. return $xHtml;
  976. }
  977. // -------------------------------------------------------------------------------------------
  978. ?>