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

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

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