Hormold

VK Change (#1382440509)

Oct 22nd, 2013
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 33.18 KB | None | 0 0
  1. Файл - exchange.css (Старый размер - 12572 | Новый - 0):
  2. 0.  - #exchange_css {
  3. 1.  -   display: none;
  4. 2.  - }
  5. 3.  -
  6. 4.  - #ads_page.exchange_page {
  7. 5.  -   padding: 20px;
  8. 6.  - }
  9. 7.  - .exchange_not_found {
  10. 8.  -   margin: 20px 20px 15px;
  11. 9.  -   padding: 20px 0;
  12. 10.  -   line-height: 200%;
  13. 11.  -   text-align: center;
  14. 12.  -   color: #777;
  15. 13.  - }
  16. 14.  - .exchange_not_found.table {
  17. 15.  -   margin: 0px;
  18. 16.  -   background-color: #f7f7f7;
  19. 17.  - }
  20. 18.  -
  21. 19.  - .exchange_table {
  22. 20.  -   border-collapse: collapse;
  23. 21.  -   width: 100%;
  24. 22.  - }
  25. 23.  - .exchange_table th {
  26. 24.  -   padding: 9px 8px 11px 5px;
  27. 25.  -   background-color: #e9edf0;
  28. 26.  -   color: #587183;
  29. 27.  -   font-weight: bold;
  30. 28.  -   white-space: nowrap;
  31. 29.  - }
  32. 30.  - .exchange_table th:first-child {
  33. 31.  -   padding-left: 10px;
  34. 32.  - }
  35. 33.  - .exchange_table tr {
  36. 34.  -   border-left: 1px solid #e9edf0;
  37. 35.  -   border-right: 1px solid #e9edf0;
  38. 36.  - }
  39. 37.  - #exchange_comm_search_table.exchange_table tr {
  40. 38.  -   border-left: none;
  41. 39.  -   border-right: none;
  42. 40.  - }
  43. 41.  - .exchange_table tr.even {
  44. 42.  -   background-color: #f5f7f7;
  45. 43.  - }
  46. 44.  - .exchange_table tr:first-child {
  47. 45.  -   border-top: 1px solid #e9edf0;
  48. 46.  - }
  49. 47.  - .exchange_table tr:last-child {
  50. 48.  -   border-bottom: 1px solid #e9edf0;
  51. 49.  - }
  52. 50.  - #exchange_comm_search_table.exchange_table tr:first-child {
  53. 51.  -   border-top: none;
  54. 52.  - }
  55. 53.  - #exchange_comm_search_table.exchange_table tr:last-child {
  56. 54.  -   border-bottom: none;
  57. 55.  - }
  58. 56.  - .exchange_table td {
  59. 57.  -   padding: 10px 5px;
  60. 58.  -   text-align: left;
  61. 59.  -   vertical-align: top;
  62. 60.  -   line-height: 160%;
  63. 61.  - }
  64. 62.  - #exchange_requests_list_table.exchange_table td,
  65. 63.  - #exchange_info_requests_table.exchange_table td {
  66. 64.  -   padding: 6px 5px;
  67. 65.  - }
  68. 66.  - .exchange_table td:first-child {
  69. 67.  -   padding-left: 10px !important;
  70. 68.  - }
  71. 69.  - .exchange_table td:last-child {
  72. 70.  -   padding-right: 10px;
  73. 71.  - }
  74. 72.  - .exchange_table td.not_found {
  75. 73.  -   padding: 0px !important;
  76. 74.  - }
  77. 75.  - .exchange_table .grey {
  78. 76.  -   color: #666666;
  79. 77.  -   display: inline-block;
  80. 78.  -   min-width: 40px;
  81. 79.  -   margin-right: 5px;
  82. 80.  - }
  83. 81.  - .exchange_table .green {
  84. 82.  -   color: #37702a;
  85. 83.  - }
  86. 84.  - .exchange_table .red {
  87. 85.  -   color: #aa3333;
  88. 86.  - }
  89. 87.  - th.exchange_table_col_no_sorted {
  90. 88.  -   cursor: pointer;
  91. 89.  - }
  92. 90.  - .is_2x th.exchange_table_col_sort {
  93. 91.  -   background-image: url(/images/wide_dd_2x.png);
  94. 92.  - }
  95. 93.  - .button_blue button.exchange_btn_with_arr {
  96. 94.  -   padding-left: 8px;
  97. 95.  -   padding-right: 0;
  98. 96.  - }
  99. 97.  - .exchange_btn_with_arr span {
  100. 98.  -   padding-right: 20px;
  101. 99.  -   background: url(/images/backlink.gif) no-repeat 105% -126px;
  102. 100.  - }
  103. 101.  - #exchange_box_comment {
  104. 102.  -   width: 322px;
  105. 103.  -   margin-top: 10px;
  106. 104.  - }
  107. 105.  - .exchange_box_send_wrap {
  108. 106.  -   margin-top: 10px;
  109. 107.  - }
  110. 108.  -
  111. 109.  - #exchange_comm_search_wrap {
  112. 110.  -   background-color: #F7F7F7;
  113. 111.  - }
  114. 112.  - #exchange_comm_search {
  115. 113.  -   border-right: 1px solid #DAE1E8;
  116. 114.  -   position: relative;
  117. 115.  -   right: 180px;
  118. 116.  -   background-color: #FFF;
  119. 117.  - }
  120. 118.  - #exchange_comm_search_table {
  121. 119.  -   margin: 15px 10px;
  122. 120.  -   width: 588px;
  123. 121.  -   position: relative;
  124. 122.  -   left: 180px;
  125. 123.  - }
  126. 124.  - #exchange_comm_search_table td {
  127. 125.  -   line-height: 160%;
  128. 126.  - }
  129. 127.  - #exchange_comm_search_filters {
  130. 128.  -   padding: 0 10px 10px 10px;
  131. 129.  -   width: 160px;
  132. 130.  -   position: relative;
  133. 131.  -   left: 181px;
  134. 132.  - }
  135. 133.  - #exchange_comm_search_count {
  136. 134.  -   color: #9cabb8;
  137. 135.  - }
  138. 136.  -
  139. 137.  - .exchange_comm_thumb {
  140. 138.  -   width: 50px;
  141. 139.  - }
  142. 140.  - .exchange_comm_thumb img {
  143. 141.  -   width: 50px;
  144. 142.  -   height: 50px;
  145. 143.  -   display: block;
  146. 144.  -   -moz-border-radius: 3px;
  147. 145.  -   -webkit-border-radius: 3px;
  148. 146.  -   -khtml-border-radius: 3px;
  149. 147.  -   border-radius: 3px;
  150. 148.  - }
  151. 149.  - .exchange_comm_name {
  152. 150.  -   display: block;
  153. 151.  -   font-weight: bold;
  154. 152.  -   width: 104px;
  155. 153.  -   white-space: nowrap;
  156. 154.  -   overflow: hidden;
  157. 155.  -   text-overflow: ellipsis;
  158. 156.  -   text-align: left;
  159. 157.  - }
  160. 158.  - .exchange_club_info {
  161. 159.  -   background-color: #f7f7f7;
  162. 160.  -   padding: 20px 30px;
  163. 161.  - }
  164. 162.  - .exchange_comm_info {
  165. 163.  -   padding-left: 10px;
  166. 164.  - }
  167. 165.  - .exchange_comm_title {
  168. 166.  -   font-weight: bold;
  169. 167.  -   max-width: 280px;
  170. 168.  -   white-space: nowrap;
  171. 169.  -   overflow: hidden;
  172. 170.  -   text-overflow: ellipsis;
  173. 171.  - }
  174. 172.  - .exchange_comm_info_row {
  175. 173.  -   color: #666;
  176. 174.  -   padding-top: 5px;
  177. 175.  - }
  178. 176.  - .exchange_comm_info_row .label {
  179. 177.  -   width: 80px;
  180. 178.  - }
  181. 179.  - .exchange_comm_label {
  182. 180.  -   color: #777;
  183. 181.  - }
  184. 182.  - .exchange_filter_label {
  185. 183.  -   padding: 15px 0 7px 0;
  186. 184.  -   font-weight: bold;
  187. 185.  -   color: #777;
  188. 186.  - }
  189. 187.  - #exchange_comm_search_filters input {
  190. 188.  -   width: 142px;
  191. 189.  - }
  192. 190.  - #exchange_comm_search_filters input.text {
  193. 191.  -   padding: 7px 8px 8px !important;
  194. 192.  - }
  195. 193.  - #exchange_tasks_list,
  196. 194.  - #exchange_requests_list {
  197. 195.  -   padding-top: 4px;
  198. 196.  - }
  199. 197.  - #exchange_tasks_list_table {
  200. 198.  -   margin-top: 12px;
  201. 199.  - }
  202. 200.  - #exchange_requests_list_table {
  203. 201.  -   margin-top: 12px;
  204. 202.  - }
  205. 203.  - #exchange_tasks_list_table .title {
  206. 204.  -   width: 250px;
  207. 205.  -   overflow: hidden;
  208. 206.  -   text-overflow: ellipsis;
  209. 207.  - }
  210. 208.  - #exchange_tasks_list_table .actions {
  211. 209.  -   width: 130px;
  212. 210.  - }
  213. 211.  - .exchange_new_btn {
  214. 212.  -   margin-top: 2px;
  215. 213.  - }
  216. 214.  - .exchange_grey {
  217. 215.  -   color: #777;
  218. 216.  - }
  219. 217.  - .exchange_table_hint {
  220. 218.  -   color: #9cabb8;
  221. 219.  -   font-size: 0.91em;
  222. 220.  -   cursor: pointer;
  223. 221.  - }
  224. 222.  - .exchange_comm_info_row .exchange_table_hint {
  225. 223.  -   font-size: 1em;
  226. 224.  - }
  227. 225.  - .exchange_task_label .title {
  228. 226.  -   font-weight: bold;
  229. 227.  - }
  230. 228.  - .exchange_task_label a,
  231. 229.  - .exchange_task_actions a {
  232. 230.  -   color: #45688E;
  233. 231.  - }
  234. 232.  - .exchange_task_label .date,
  235. 233.  - .exchange_request_club .size {
  236. 234.  -   color: #777;
  237. 235.  -   padding: 7px 0px 0px;
  238. 236.  - }
  239. 237.  - .exchange_task_request {
  240. 238.  -   color: #555;
  241. 239.  - }
  242. 240.  - .exchange_task_actions .view {
  243. 241.  -   padding-top: 7px;
  244. 242.  - }
  245. 243.  - #exchange_post_requests .exchange_tabs  {
  246. 244.  -   padding-top: 3px;
  247. 245.  - }
  248. 246.  - .exchange_subtab1 {
  249. 247.  -   float: left;
  250. 248.  -   -moz-border-radius: 2px;
  251. 249.  -   border-radius: 2px;
  252. 250.  -   cursor: pointer;
  253. 251.  -   margin-right: 5px;
  254. 252.  -   color: #2B587A;
  255. 253.  - }
  256. 254.  - .exchange_subtab1.hidden {
  257. 255.  -   display: none;
  258. 256.  - }
  259. 257.  - .exchange_subtab1:hover {
  260. 258.  -   background-color: #E1E7ED;
  261. 259.  - }
  262. 260.  - .exchange_subtab1.active {
  263. 261.  -   background-color: #597DA3;
  264. 262.  -   color: white;
  265. 263.  -   cursor: default;
  266. 264.  - }
  267. 265.  - .exchange_subtab2 {
  268. 266.  -   padding: 3px 6px 4px;
  269. 267.  - }
  270. 268.  - .exchange_subtab_cnt {
  271. 269.  -   display: inline-block;
  272. 270.  -   padding-left: 3px;
  273. 271.  -   font-weight: bold;
  274. 272.  -   color: #6E859E;
  275. 273.  - }
  276. 274.  - .exchange_subtab1.active .exchange_subtab_cnt {
  277. 275.  -   color: #d5dde3;
  278. 276.  - }
  279. 277.  - .is_rtl1 .exchange_subtab_cnt {
  280. 278.  -   padding-left: 0px;
  281. 279.  -   padding-right: 3px;
  282. 280.  - }
  283. 281.  - #exchange_requests_list_table th.title,
  284. 282.  - #exchange_requests_list_table th.club {
  285. 283.  -   width: 180px;
  286. 284.  - }
  287. 285.  - #exchange_requests_list_table th.status {
  288. 286.  -   width: 90px;
  289. 287.  - }
  290. 288.  - .exchange_request_task .title,
  291. 289.  - .exchange_request_club .title {
  292. 290.  -   font-weight: bold;
  293. 291.  -   max-width: 190px;
  294. 292.  -   overflow: hidden;
  295. 293.  -   text-overflow: ellipsis;
  296. 294.  - }
  297. 295.  - .exchange_request_task a,
  298. 296.  - .exchange_request_club a {
  299. 297.  -   color: #45688E;
  300. 298.  - }
  301. 299.  - .exchange_request_status .extra_info {
  302. 300.  -   padding-top: 3px;
  303. 301.  - }
  304. 302.  - #exchange_info_requests_table .exchange_request_price {
  305. 303.  -   max-width: 400px;
  306. 304.  - }
  307. 305.  - .exchange_request_price .extra_info {
  308. 306.  -   padding-bottom: 3px;
  309. 307.  - }
  310. 308.  - .exchange_request_status span {
  311. 309.  -   display: inline-block;
  312. 310.  -   vertical-align: top;
  313. 311.  - }
  314. 312.  - .exchange_request_actions{
  315. 313.  -   white-space: nowrap;
  316. 314.  - }
  317. 315.  - #exchange_post_msg_wrap {
  318. 316.  -   width: 440px;
  319. 317.  - }
  320. 318.  - #exchange_post_msg {
  321. 319.  -   background-color: #edf1f5;
  322. 320.  -   padding: 6px 10px 10px;
  323. 321.  - }
  324. 322.  - #exchange_post_msg_wrap.short #exchange_post_msg {
  325. 323.  -   max-height: 150px;
  326. 324.  -   overflow: hidden;
  327. 325.  - }
  328. 326.  - #exchange_post_msg .wall_post_text,
  329. 327.  - #exchange_post_msg .wpe_buttons {
  330. 328.  -   width: 420px;
  331. 329.  - }
  332. 330.  - #exchange_post_msg #wpe_text {
  333. 331.  -   width: 412px;
  334. 332.  - }
  335. 333.  - #exchange_post_msg #wpe_cont {
  336. 334.  -   margin-top: 4px;
  337. 335.  - }
  338. 336.  - #exchange_post_msg .fw_post_author,
  339. 337.  - #exchange_post_msg .wpe_info {
  340. 338.  -   display: none;
  341. 339.  - }
  342. 340.  - .exchange_title_head {
  343. 341.  -   border-bottom: 1px solid #dee1e3;
  344. 342.  -   color: #45688E;
  345. 343.  -   margin: 1px 0 8px;
  346. 344.  -   padding: 0 0 4px;
  347. 345.  -   text-align: left;
  348. 346.  - }
  349. 347.  - .exchange_title_head .title {
  350. 348.  -   font-size: 1.09em;
  351. 349.  -   font-weight: bold;
  352. 350.  - }
  353. 351.  - #exchange_post_info_wrap {
  354. 352.  -   width: 290px;
  355. 353.  - }
  356. 354.  - .exchange_post_info_row {
  357. 355.  -   padding-bottom: 7px;
  358. 356.  - }
  359. 357.  - .exchange_post_info_row .label {
  360. 358.  -   width: 150px;
  361. 359.  -   color: #666666;
  362. 360.  - }
  363. 361.  - #exchange_post_wrap .exchange_post_info_row .label {
  364. 362.  -   width: 125px;
  365. 363.  - }
  366. 364.  - #ads_post_title_text {
  367. 365.  -   max-width: 165px;
  368. 366.  -   overflow: hidden;
  369. 367.  -   text-overflow: ellipsis;
  370. 368.  -   white-space: nowrap;
  371. 369.  -   position: relative;
  372. 370.  - }
  373. 371.  - .exchange_post_info_empty_row {
  374. 372.  -   padding-top: 10px;
  375. 373.  - }
  376. 374.  - .exchange_info_search {
  377. 375.  -   margin: 10px 0px;
  378. 376.  - }
  379. 377.  - #exchange_post_requests {
  380. 378.  -   padding-top: 20px;
  381. 379.  - }
  382. 380.  - #exchange_info_requests_table {
  383. 381.  -   margin-top: 12px;
  384. 382.  - }
  385. 383.  - #exchange_post_stats {
  386. 384.  -   padding-top: 20px;
  387. 385.  - }
  388. 386.  - #wrapper_ads_post_stats_graph {
  389. 387.  -   padding-top: 10px;
  390. 388.  - }
  391. 389.  - #ads_post_stats_graph .graph_menu_item {
  392. 390.  -   margin-top: -4px;
  393. 391.  - }
  394. 392.  - #exchange_box_error {
  395. 393.  -   margin-bottom: 10px;
  396. 394.  - }
  397. 395.  - #exchange_request_box_error {
  398. 396.  -   margin-bottom: 18px;
  399. 397.  -   display: none;
  400. 398.  - }
  401. 399.  - .exchange_request_title {
  402. 400.  -   color: #45688E;
  403. 401.  -   line-height: 1.27em;
  404. 402.  -   margin: 0px;
  405. 403.  -   padding: 26px 0px 9px;
  406. 404.  -   font-size: 1.09em;
  407. 405.  -   font-weight: bold;
  408. 406.  - }
  409. 407.  - .exchange_request_info {
  410. 408.  -   padding: 0 20px 22px 30px;
  411. 409.  - }
  412. 410.  - #exchange_request_time_from_d_datepicker_container,
  413. 411.  - #exchange_request_time_to_d_datepicker_container {
  414. 412.  -   display: none;
  415. 413.  - }
  416. 414.  - .exchange_date_sep {
  417. 415.  -   width: 30px;
  418. 416.  -   height: 20px;
  419. 417.  -   line-height: 20px;
  420. 418.  -   text-align: center;
  421. 419.  - }
  422. 420.  - #exchange_request_comment {
  423. 421.  -   width: 282px;
  424. 422.  - }
  425. 423.  - .exchange_comm_title a {
  426. 424.  -   color: #45688e;
  427. 425.  - }
  428. 426.  - .exchange_comm_thumb_box {
  429. 427.  -   width: 75px;
  430. 428.  - }
  431. 429.  - .exchange_comm_thumb_box img {
  432. 430.  -   width: 75px;
  433. 431.  -   height: 75px;
  434. 432.  -   display: block;
  435. 433.  -   -moz-border-radius: 3px;
  436. 434.  -   -webkit-border-radius: 3px;
  437. 435.  -   -khtml-border-radius: 3px;
  438. 436.  -   border-radius: 3px;
  439. 437.  - }
  440. 438.  - #exchange_post_msg_more {
  441. 439.  -   margin-top: -3px;
  442. 440.  -   display: none;
  443. 441.  -   overflow: hidden;
  444. 442.  - }
  445. 443.  - #exchange_post_msg_wrap.short #exchange_post_msg_more {
  446. 444.  -   display: block;
  447. 445.  - }
  448. 446.  - #exchange_post_msg_more a {
  449. 447.  -   display: block;
  450. 448.  -   text-align: center;
  451. 449.  -   color: #45688E;
  452. 450.  -   padding: 10px 0px 12px;
  453. 451.  -   background: #E7ECF1;
  454. 452.  - }
  455. 453.  - #exchange_post_msg_more a:hover {
  456. 454.  -   text-decoration: none;
  457. 455.  -   background: #E0E6EC;
  458. 456.  - }
  459. 457.  - #exchange_post_msg_more .more_sh {
  460. 458.  -   background: #C1C7CA;
  461. 459.  -   height: 3px;
  462. 460.  -   overflow: hidden;
  463. 461.  -   position: relative;
  464. 462.  -   z-index: 1550;
  465. 463.  -   opacity: 0.55;
  466. 464.  -   filter: alpha(opacity=55);
  467. 465.  - }
  468. 466.  - #exchange_info_archive.loading {
  469. 467.  -   background: url(/images/upload.gif) no-repeat 100% 50%;
  470. 468.  - }
  471. 469.  - #exchange_info_archive.loading a {
  472. 470.  -   visibility: hidden;
  473. 471.  - }
  474. 472.  - #exchange_info_in_archive {
  475. 473.  -   color: #909090;
  476. 474.  -   padding-top: 10px;
  477. 475.  - }
  478. 476.  - #exchange_tasks_info {
  479. 477.  -   padding: 2px 0 20px;
  480. 478.  - }
  481. 479.  - a.exchange_ad_post_stats,
  482. 480.  - a.exchange_ad_post_link {
  483. 481.  -   display: inline-block;
  484. 482.  -   margin: 3px 5px 0 0;
  485. 483.  -   padding: 0;
  486. 484.  -   width: 18px;
  487. 485.  -   height: 18px;
  488. 486.  -   background: #ebeff5 url(/images/icons/mono_iconset.gif) no-repeat 4px -204px;
  489. 487.  - }
  490. 488.  - a.exchange_ad_post_link {
  491. 489.  -   background-position: 4px -233px;
  492. 490.  - }
  493. 491.  - a.exchange_ad_post_stats:hover,
  494. 492.  - a.exchange_ad_post_link:hover {
  495. 493.  -   background-color: #dde4ed;
  496. 494.  - }
  497. 495.  - #ads_post_title_input,
  498. 496.  - #ads_post_title_link {
  499. 497.  -   position: relative;
  500. 498.  - }
  501. 499.  - #ads_post_title_text {
  502. 500.  -   border-bottom: 1px dashed #2B587A;
  503. 501.  -   text-decoration: none;
  504. 502.  -   display: block;
  505. 503.  -   position: absolute;
  506. 504.  - }
  507. 505.  - #ads_post_title {
  508. 506.  -   width: 160px;
  509. 507.  -   position: absolute;
  510. 508.  -   top: -4px;
  511. 509.  -   left: -4px;
  512. 510.  - }
  513. 511.  - .exchange_post_more {
  514. 512.  -   position: relative;
  515. 513.  -   top: 2px;
  516. 514.  -   font-weight: bold;
  517. 515.  -   color: #91A4B8;
  518. 516.  -   -webkit-transition: color 200ms linear;
  519. 517.  -   -moz-transition: color 200ms linear;
  520. 518.  -   -o-transition: color 200ms linear;
  521. 519.  -   transition: color 200ms linear;
  522. 520.  - }
  523. 521.  - .exchange_post_more:hover {
  524. 522.  -   color: #45688E;
  525. 523.  -   text-decoration: none;
  526. 524.  - }
  527. 525.  - .exchange_info_msg {
  528. 526.  -   background-color: #FFFFFF;
  529. 527.  -   border: 1px solid #BCC9D7;
  530. 528.  -   font-weight: normal;
  531. 529.  -   padding: 8px 11px;
  532. 530.  -   line-height: 160%;
  533. 531.  - }
  534. 532.  - .dark_box_cont.exchange {
  535. 533.  -   padding-top: 20px;
  536. 534.  - }
  537. 535.  - .dark_box_cont.exchange .dark_box_label {
  538. 536.  -   padding-top: 20px;
  539. 537.  - }
  540. 538.  - .wk_postbox_content.exchange #wk_content {
  541. 539.  -   width: 510px;
  542. 540.  - }
  543. 541.  - .wk_postbox_content.exchange #pb_title {
  544. 542.  -   padding: 5px 4px 6px !important;
  545. 543.  -   width: 448px;
  546. 544.  - }
  547. 545.  - .wk_postbox_content.exchange #pb_text {
  548. 546.  -   width: 446px;
  549. 547.  - }
  550. 548.  - .wk_postbox_content.exchange #pb_send_btn {
  551. 549.  -   margin-top: 0px;
  552. 550.  - }
  553. 551.  - .wk_postbox_content.exchange #pb_error {
  554. 552.  -   margin-top: 4px;
  555. 553.  -   margin-bottom: 14px;
  556. 554.  - }
  557. 555.  - .wk_postbox_content.exchange #wk_close_link {
  558. 556.  -   padding: 17px 26px 18px;
  559. 557.  - }
  560. 558.  -
  561. 559.  - #filter_city_row {
  562. 560.  -   padding-top: 7px;
  563. 561.  - }
  564. 562.  - #exchange_search_input {
  565. 563.  -   padding: 5px 20px;
  566. 564.  -   width: 563px;
  567. 565.  -   background: url(/images/magglass.png) no-repeat scroll 141px 7px white;
  568. 566.  -   height: 13px;
  569. 567.  -   outline: none;
  570. 568.  - }
  571. 569.  - #exchange_search_input::-ms-clear {
  572. 570.  -   display: none;
  573. 571.  - }
  574. 572.  - #exchange_search_progress {
  575. 573.  -   background: url("/images/upload.gif") no-repeat scroll center center transparent;
  576. 574.  -   display: none;
  577. 575.  -   height: 23px;
  578. 576.  -   margin-left: -41px;
  579. 577.  -   margin-top: 1px;
  580. 578.  -   position: relative;
  581. 579.  -   width: 32px;
  582. 580.  -   z-index: 95;
  583. 581.  - }
  584. 582.  - #exchange_search_wrap.loading #exchange_search_input {
  585. 583.  -   background-image: none;
  586. 584.  - }
  587. 585.  - #exchange_search_wrap.loading #exchange_search_progress {
  588. 586.  -   display: block;
  589. 587.  - }
  590. 588.  - #exchange_more_results td {
  591. 589.  -   padding: 0;
  592. 590.  -   border-bottom: none;
  593. 591.  - }
  594. 592.  - #exchange_more_results a {
  595. 593.  -   display: block;
  596. 594.  -   padding: 10px 0px;
  597. 595.  -   margin: 0;
  598. 596.  -   text-align: center;
  599. 597.  - }
  600. 598.  - #exchange_more_results a:hover {
  601. 599.  -   background: #E1E7ED;
  602. 600.  -   border-color: #DAE1E8;
  603. 601.  -   text-decoration: none;
  604. 602.  - }
  605. 603.  -
  606. 604.  - #exchange_button_send {
  607. 605.  -   display: block;
  608. 606.  -   padding-top: 15px;
  609. 607.  - }
  610. 608.  - #exchange_requests_terms {
  611. 609.  -   width: 290px;
  612. 610.  -   line-height: 160%;
  613. 611.  -   padding-top: 12px;
  614. 612.  - }
  615. 613.  - .exchange_hint_tt .tail_wrap {
  616. 614.  -   position: absolute;
  617. 615.  -   top: auto;
  618. 616.  -   bottom: -5px;
  619. 617.  -   left: 17px;
  620. 618.  -   z-index: 2001;
  621. 619.  - }
  622. 620.  - .exchange_hint_tt .tail {
  623. 621.  -   background: url(/images/ddtooltip.png) -3px -5px no-repeat;
  624. 622.  -   width: 11px;
  625. 623.  -   height: 8px;
  626. 624.  - }
  627. 625.  - .exchange_hint_tt .hint_wrap {
  628. 626.  -   width: 273px;
  629. 627.  -   padding: 8px 5px;
  630. 628.  -   line-height: 160%;
  631. 629.  -   color: #000000;
  632. 630.  - }
  633. 631.  - .exchange_new_union {
  634. 632.  -   padding-top: 10px;
  635. 633.  - }
  636. 634.  - .exchange_new_union_img {
  637. 635.  -   margin: 30px 0px;
  638. 636.  -   height: 160px;
  639. 637.  -   background: url(/images/join/ads_union.png) no-repeat 50% 0%;
  640. 638.  - }
  641. 639.  - .exchange_create_union {
  642. 640.  -   text-align: center;
  643. 641.  - }
  644. 642.  - #exchange_new_union_error {
  645. 643.  -   margin: 10px 0px;
  646. 644.  -   display: none;
  647. 645.  - }
  648. ------
  649. Файл - exchange.js (Старый размер - 13371 | Новый - 0):
  650. 0.  - var Exchange = {
  651. 1.  -   initOfficesMenu: function(event) {
  652. 2.  -     if (!window.DropdownMenu || !cur.mainNavigationOfficesItems) {
  653. 3.  -       return;
  654. 4.  -     }
  655. 5.  -
  656. 6.  -     if (cur.navigationOficesMenu) {
  657. 7.  -       return;
  658. 8.  -     }
  659. 9.  -
  660. 10.  -     ge('ads_navigation_offices_menu').removeAttribute('onmouseover');
  661. 11.  -
  662. 12.  -     function hideMenu() {
  663. 13.  -       cur.navigationOficesMenu.hide();
  664. 14.  -     }
  665. 15.  -
  666. 16.  -     var realLocation = '';
  667. 17.  -     if (location.hash.indexOf('#/') != -1 || location.hash.indexOf('#!') != -1) {
  668. 18.  -       realLocation = location.hash.replace('#/', '').replace('#!', '');
  669. 19.  -     } else {
  670. 20.  -       realLocation = location.pathname + location.search;
  671. 21.  -     }
  672. 22.  -
  673. 23.  -     var unionId;
  674. 24.  -     var unionIdReal;
  675. 25.  -     var unionIdParam = '';
  676. 26.  -     var curItems = [];
  677. 27.  -     for (var i in cur.mainNavigationOfficesItems) {
  678. 28.  -       curItems[i] = {};
  679. 29.  -       curItems[i].onClick = hideMenu;
  680. 30.  -       for (var j in cur.mainNavigationOfficesItems[i]) {
  681. 31.  -         curItems[i][j] = cur.mainNavigationOfficesItems[i][j];
  682. 32.  -       }
  683. 33.  -
  684. 34.  -       unionId = '';
  685. 35.  -       unionIdReal = intval(curItems[i].i);
  686. 36.  -       unionIdParam = '';
  687. 37.  -       if (curItems[i].i.indexOf('default') == -1) {
  688. 38.  -         unionId = unionIdReal;
  689. 39.  -         unionIdParam = "&union_id=" + unionIdReal;
  690. 40.  -       }
  691. 41.  -
  692. 42.  -       var link = "/exchange" + (unionIdParam ? '?' + unionIdParam : '');
  693. 43.  -       if (!unionIdReal) {
  694. 44.  -         link = "/exchange?act=no_office";
  695. 45.  -       } else if (cur.getOfficeLink) {
  696. 46.  -         link = cur.getOfficeLink(unionId);
  697. 47.  -       } else if (realLocation.match(/act=budget(&|$)/)) {
  698. 48.  -         link = "/exchange?act=budget" + unionIdParam;
  699. 49.  -       } else if (realLocation.match(/act=export_stats(&|$)/)) {
  700. 50.  -         link = "/exchange?act=export_stats" + unionIdParam;
  701. 51.  -       } else if (realLocation.match(/act=settings(&|$)/)) {
  702. 52.  -         link = "/exchange?act=settings" + unionIdParam;
  703. 53.  -       }
  704. 54.  -
  705. 55.  -       curItems[i].h = link;
  706. 56.  -     }
  707. 57.  -
  708. 58.  -     var options = {
  709. 59.  -       title: '<span id="ads_navigation_dd_menu_header_text">' + ge('ads_navigation_offices_menu_text').innerHTML + '</span>',
  710. 60.  -       containerClass: 'ads_navigation_dd_menu_header_wrap',
  711. 61.  -       target: ge('ads_navigation_offices_menu'),
  712. 62.  -       showHover: false,
  713. 63.  -       updateTarget: false,
  714. 64.  -       onSelect: function(e) {
  715. 65.  -       }
  716. 66.  -     };
  717. 67.  -     cur.navigationOficesMenu = new DropdownMenu(curItems, options);
  718. 68.  -     cur.destroy.push(function(){ cur.navigationOficesMenu.destroy(); });
  719. 69.  -   },
  720. 70.  -
  721. 71.  -   initScroll: function() {
  722. 72.  -     Exchange.scrollnode = browser.msie6 ? pageNode : window;
  723. 73.  -     Exchange.deinitScroll();
  724. 74.  -     window.scrollTop = bodyNode.scrollTop = pageNode.scrollTop = htmlNode.scrollTop = 0;
  725. 75.  -     addEvent(Exchange.scrollnode, 'scroll', Exchange.scrollCheck);
  726. 76.  -     addEvent(window, 'resize', Exchange.scrollCheck);
  727. 77.  -   },
  728. 78.  -   deinitScroll: function() {
  729. 79.  -     removeEvent(Exchange.scrollnode, 'scroll', Exchange.uScroll);
  730. 80.  -     removeEvent(window, 'resize', Exchange.uScroll);
  731. 81.  -   },
  732. 82.  -   scrollCheck: function() {
  733. 83.  -     if (browser.mobile || cur.isSearchLoading || cur.disableAutoMore) return;
  734. 84.  -
  735. 85.  -     var docEl = document.documentElement;
  736. 86.  -     var ch = window.innerHeight || docEl.clientHeight || bodyNode.clientHeight;
  737. 87.  -     var st = scrollGetY(), lnk = ge('exchange_more_results');
  738. 88.  -
  739. 89.  -     if (!isVisible(lnk)) return;
  740. 90.  -     if (st + ch + 300 > lnk.offsetTop) {
  741. 91.  -       if (lnk.nodeName != 'A') {
  742. 92.  -         lnk = geByTag1('a', lnk);
  743. 93.  -       }
  744. 94.  -       lnk.onclick();
  745. 95.  -     }
  746. 96.  -   },
  747. 97.  -
  748. 98.  -   initCommunitySearch: function() {
  749. 99.  -     Exchange.initScroll();
  750. 100.  -     cur.destroy.push(function(c) {
  751. 101.  -       if (c == cur) Exchange.deinitScroll();
  752. 102.  -     });
  753. 103.  -
  754. 104.  -     placeholderSetup('exchange_search_input', {back: true});
  755. 105.  -     each(['filter_cost_to', 'filter_reach', 'filter_size'], function (i, val) {
  756. 106.  -       placeholderSetup(val);
  757. 107.  -       addEvent(val, 'change', Exchange.updateCommunitySearch);
  758. 108.  -       addEvent(val, 'keydown', function(event) {
  759. 109.  -         if (event.keyCode == KEY.ENTER) Exchange.updateCommunitySearch();
  760. 110.  -       });
  761. 111.  -     });
  762. 112.  -   },
  763. 113.  -
  764. 114.  -   getSearchParams: function(obj) {
  765. 115.  -     var params = {
  766. 116.  -       q: trim(val(obj)), load: 1, cache: 1,
  767. 117.  -       offset: cur.searchOffset || 0,
  768. 118.  -       sort: cur.searchSortBy || '',
  769. 119.  -       cost_to: val('filter_cost_to'),
  770. 120.  -       reach: val('filter_reach'),
  771. 121.  -       size: val('filter_size'),
  772. 122.  -       category: cur.uiCategory.val(),
  773. 123.  -       country: cur.uiCountry.val(),
  774. 124.  -       city: cur.uiCity.val(),
  775. 125.  -       sex: cur.uiSex.val(),
  776. 126.  -       age: cur.uiAge.val(),
  777. 127.  -     };
  778. 128.  -     return params;
  779. 129.  -   },
  780. 130.  -   sameParams: function(params) {
  781. 131.  -     if (!cur.params) return false;
  782. 132.  -     for (var i in params) {
  783. 133.  -       if (params[i] != cur.params[i]) return false;
  784. 134.  -     }
  785. 135.  -     for (var i in cur.params) {
  786. 136.  -       if (params[i] != cur.params[i]) return false;
  787. 137.  -     }
  788. 138.  -     return true;
  789. 139.  -   },
  790. 140.  -
  791. 141.  -   updateCommunitySearch: function(obj, delay, sort, save_offset) {
  792. 142.  -     obj = obj || ge('exchange_search_input');
  793. 143.  -     delay = delay || 10;
  794. 144.  -     if (sort != undefined)  {
  795. 145.  -       cur.searchSortBy = sort;
  796. 146.  -     }
  797. 147.  -     if (!save_offset) {
  798. 148.  -       cur.searchOffset = 0;
  799. 149.  -     }
  800. 150.  -     clearTimeout(cur.searchTimeout);
  801. 151.  -     cur.searchTimeout = setTimeout((function() {
  802. 152.  -       var params = Exchange.getSearchParams(obj);
  803. 153.  -       if ((!Exchange.sameParams(params) || cur.ignoreEqual)) {
  804. 154.  -         delete cur.ignoreEqual;
  805. 155.  -         cur.params = params;
  806. 156.  -         cur.searchStr = params.q;
  807. 157.  -         Exchange.searchCommunity();
  808. 158.  -       }
  809. 159.  -       if (!params.offset) {
  810. 160.  -         scrollToTop();
  811. 161.  -       }
  812. 162.  -     }).bind(this), delay);
  813. 163.  -   },
  814. 164.  -   searchCommunity: function() {
  815. 165.  -     var query = cur.params || Exchange.getSearchParams(ge('exchange_search_input'));
  816. 166.  -
  817. 167.  -     ajax.post('/exchange?act=community_search&ad_id='+cur.post_id, query, {
  818. 168.  -       cache: 1,
  819. 169.  -       onDone: function(rows, showMore) {
  820. 170.  -         var more_lnk = ge('exchange_more_results');
  821. 171.  -         if (query['offset'] > 0) {
  822. 172.  -           var tbl = ge('exchange_comm_search_table').tBodies[0];
  823. 173.  -           if (rows) {
  824. 174.  -             if (!browser.msie) {
  825. 175.  -               tbl.insertAdjacentHTML('beforeEnd', rows);
  826. 176.  -             } else {
  827. 177.  -               var t = se('<table>'+rows+'</table>');
  828. 178.  -               var rows = geByTag('tr', t);
  829. 179.  -               for (i in rows) {
  830. 180.  -                 if (rows[i].nodeType == 1) tbl.appendChild(rows[i]);
  831. 181.  -               }
  832. 182.  -             }
  833. 183.  -             tbl.appendChild(more_lnk);
  834. 184.  -           }
  835. 185.  -         } else {
  836. 186.  -           ge('exchange_comm_search_table').innerHTML = rows;
  837. 187.  -           cur.searchOffset = 0;
  838. 188.  -         }
  839. 189.  -         if (showMore) {
  840. 190.  -           show('exchange_more_results');
  841. 191.  -         } else {
  842. 192.  -           hide('exchange_more_results');
  843. 193.  -         }
  844. 194.  -
  845. 195.  -         each(query, function(i, v) {
  846. 196.  -           if (v && v != 0 && i != 'load' && i != 'cache' && i != 'offset') {
  847. 197.  -             nav.objLoc[i] = v;
  848. 198.  -           } else {
  849. 199.  -             delete nav.objLoc[i];
  850. 200.  -           }
  851. 201.  -         });
  852. 202.  -         nav.setLoc(nav.objLoc);
  853. 203.  -       },
  854. 204.  -       showProgress: function() {
  855. 205.  -         addClass(ge('exchange_search_wrap'), 'loading');
  856. 206.  -         cur.isSearchLoading = true;
  857. 207.  -       },
  858. 208.  -       hideProgress: function() {
  859. 209.  -         removeClass(ge('exchange_search_wrap'), 'loading');
  860. 210.  -         cur.isSearchLoading = false;
  861. 211.  -       }
  862. 212.  -     });
  863. 213.  -   },
  864. 214.  -   clearCommunitySearch: function() {
  865. 215.  -     var field = ge('exchange_search_input');
  866. 216.  -     val(field, '');
  867. 217.  -     elfocus(field);
  868. 218.  -     Exchange.updateCommunitySearch(field);
  869. 219.  -   },
  870. 220.  -   searchCommunityShowMore: function() {
  871. 221.  -     var offset = cur.searchOffset || 0;
  872. 222.  -     offset += cur.searchPerPage;
  873. 223.  -     cur.searchOffset = offset;
  874. 224.  -     hide('exchange_more_results');
  875. 225.  -     Exchange.updateCommunitySearch(ge('exchange_search_input'), 10, undefined, true);
  876. 226.  -     return false;
  877. 227.  -   },
  878. 228.  -   switchSubTab: function(el, wrap, link, evt, params) {
  879. 229.  -     if (checkEvent(evt) || hasClass(el, 'active')) return false;
  880. 230.  -     each(geByClass('exchange_subtab1', ge(wrap)), function(i, v) {
  881. 231.  -       removeClass(v, 'active');
  882. 232.  -     });
  883. 233.  -     addClass(el, 'active');
  884. 234.  -     if (params.part) {
  885. 235.  -       var obj = nav.fromStr(link), url = obj[0];
  886. 236.  -       delete obj[0];
  887. 237.  -       ajax.post(url, extend(obj, {part: 1}), {
  888. 238.  -         onDone: params.onDone.pbind(obj)
  889. 239.  -       });
  890. 240.  -       return false;
  891. 241.  -     }
  892. 242.  -     return nav.go(link, evt);
  893. 243.  -   },
  894. 244.  -   getPage: function(offset, wrap) {
  895. 245.  -     var obj = clone(nav.objLoc), url = obj[0];
  896. 246.  -     delete obj[0];
  897. 247.  -     ajax.post(url, extend(obj, {offset: offset, part: 1}), {
  898. 248.  -       onDone: function(res) {
  899. 249.  -         ge(wrap || 'exchange_requests_table_wrap').innerHTML = res;
  900. 250.  -         nav.setLoc(extend(nav.objLoc, {offset: offset}));
  901. 251.  -       }
  902. 252.  -     });
  903. 253.  -     return false;
  904. 254.  -   },
  905. 255.  -   reArrangeRows: function(className) {
  906. 256.  -     var rows = geByClass(className), k = 0;
  907. 257.  -     if (!rows.length) {
  908. 258.  -       nav.reload();
  909. 259.  -     }
  910. 260.  -     for (var j in rows) {
  911. 261.  -       toggleClass(rows[j], 'even', k++ % 2 > 0)
  912. 262.  -     }
  913. 263.  -   },
  914. 264.  -   addRequest: function(gid, ad_id, from_office) {
  915. 265.  -     return !showBox('/exchange', {act: 'a_request_box', gid: gid, ad_id: ad_id, from_office: from_office}, { params: {width: '430px', dark: true, bodyStyle: 'padding: 0px;', hideButtons: true}});
  916. 266.  -   },
  917. 267.  -   deleteRequest: function(gid, ad_id, request_id, from_office, hash, show_comment) {
  918. 268.  -     var bodyStyle = 'line-height: 160%; padding: 16px 20px;';
  919. 269.  -     if (show_comment) {
  920. 270.  -       bodyStyle += ' background-color: #F7F7F7';
  921. 271.  -     }
  922. 272.  -     var boxWidth = show_comment ? 370 : 430;
  923. 273.  -     var doDeleteRequest = function() {
  924. 274.  -       ajax.post('/exchange', {act: 'a_delete_request', gid: gid, ad_id: ad_id, request_id: request_id, from_office: from_office, comment: ge('exchange_box_comment') && val('exchange_box_comment') || '', hash: hash}, {
  925. 275.  -         progress: curBox().progress,
  926. 276.  -         onDone: function() {
  927. 277.  -           curBox().hide();
  928. 278.  -           re('exchange_request' + request_id);
  929. 279.  -           Exchange.reArrangeRows('exchange_request_row');
  930. 280.  -         },
  931. 281.  -         onFail: function(text) {
  932. 282.  -           ge('exchange_box_error').innerHTML = text;
  933. 283.  -           show('exchange_box_error');
  934. 284.  -           return true;
  935. 285.  -         }
  936. 286.  -       });
  937. 287.  -     }
  938. 288.  -     cur.doDeleteRequest = doDeleteRequest;
  939. 289.  -     var box = showFastBox({title: getLang('ads_posts_sure_delete_title'), dark: true, width: boxWidth, bodyStyle: bodyStyle, hideButtons: show_comment}, '<div id="exchange_box_error" class="error" style="display: none;"></div><div>' + getLang('ads_posts_sure_delete_text') + '</div><div id="exchange_box_comment_wrap" class="clear_fix" style="display:none;"><textarea id="exchange_box_comment" placeholder="' + getLang('ads_posts_delete_placeholder') +'" onkeypress="onCtrlEnter(event, cur.doDeleteRequest)"></textarea><div class="exchange_box_send_wrap button_blue fl_r"><button id="exchange_box_send" onclick="cur.doDeleteRequest()">' + getLang('ads_posts_delete') + '</button></div></div>', getLang('ads_posts_delete'), doDeleteRequest, getLang('global_cancel'));
  940. 290.  -     if (show_comment) {
  941. 291.  -       show('exchange_box_comment_wrap');
  942. 292.  -       placeholderSetup('exchange_box_comment', {back: true});
  943. 293.  -       autosizeSetup('exchange_box_comment', {minHeight: 45, maxHeght: 200});
  944. 294.  -     }
  945. 295.  -     return false
  946. 296.  -   },
  947. 297.  -   sendRequest: function(gid, ad_id, price, hash, from_office, btn) {
  948. 298.  -     ajax.post('/exchange', {act: 'a_save_request', ad_id: ad_id, gid: gid, price: price, from_office: from_office, hash: hash, text: val('exchange_request_comment'), time_from: val('exchange_request_time_from_d'), time_to: val('exchange_request_time_to_d'), date_from: val('exchange_request_date_from'), date_to: val('exchange_request_date_to')}, {
  949. 299.  -       showProgress: lockButton.pbind(btn),
  950. 300.  -       hideProgress: unlockButton.pbind(btn),
  951. 301.  -       onFail: function(msg) {
  952. 302.  -         ge('exchange_request_box_error').innerHTML = msg;
  953. 303.  -         show('exchange_request_box_error');
  954. 304.  -         return true;
  955. 305.  -       }
  956. 306.  -     });
  957. 307.  -     return false;
  958. 308.  -   },
  959. 309.  -   editPost: function() {
  960. 310.  -     return wall.editPost(cur.postRaw, {from: 'exchange'}, false, Exchange.showFullPost);
  961. 311.  -   },
  962. 312.  -   showFullPost: function() {
  963. 313.  -     removeClass('exchange_post_msg_wrap', 'short');
  964. 314.  -     setStyle('exchange_post_msg', {maxHeight: 'none'});
  965. 315.  -   },
  966. 316.  -   slideFullPost: function() {
  967. 317.  -     if (!ge('exchange_post_msg_wrap') && !hasClass('exchange_post_msg_wrap', 'short')) {
  968. 318.  -       return;
  969. 319.  -     }
  970. 320.  -
  971. 321.  -     var realSize = getSize(ge('wpt' + cur.postRaw))[1];
  972. 322.  -     animate(ge('exchange_post_msg'), {maxHeight: realSize}, 200, Exchange.showFullPost);
  973. 323.  -     animate(ge('exchange_post_msg_more'), {height: 0}, 200);
  974. 324.  -   },
  975. 325.  -   archivePost: function(ad_id, status, hash, from) {
  976. 326.  -     var doArchivePost = function(ad_id, status, hash) {
  977. 327.  -       addClass('exchange_info_archive', 'loading');
  978. 328.  -       ajax.post('/exchange', {act: 'a_archive', ad_id: ad_id, status: status, from: from || '', hash: hash}, {
  979. 329.  -         onDone:function(link) {
  980. 330.  -           if (ge('exchange_info_archive')) {
  981. 331.  -             ge('exchange_info_archive').innerHTML = link;
  982. 332.  -           }
  983. 333.  -           toggle('exchange_info_actions', status != 2);
  984. 334.  -           toggle('exchange_info_in_archive', status == 2);
  985. 335.  -         },
  986. 336.  -         hideProgress: removeClass.pbind('exchange_info_archive', 'loading')
  987. 337.  -       });
  988. 338.  -     }
  989. 339.  -     if (status == 2) {
  990. 340.  -       var box = showFastBox({title: getLang('ads_posts_sure_archive_title'), dark: true, width: 430, bodyStyle: 'line-height: 160%; padding: 16px 20px;'}, getLang('ads_posts_sure_archive_text'), getLang('ads_posts_archive_btn'), function() {
  991. 341.  -         box.hide();
  992. 342.  -         doArchivePost(ad_id, status, hash, from);
  993. 343.  -       }, getLang('global_cancel'));
  994. 344.  -     } else {
  995. 345.  -       doArchivePost(ad_id, status, hash, from);
  996. 346.  -     }
  997. 347.  -     return false;
  998. 348.  -   },
  999. 349.  -   createUnion: function(btn) {
  1000. 350.  -     ajax.post('/exchange', {act: 'a_new_union'}, {
  1001. 351.  -       showProgress: lockButton.pbind(btn),
  1002. 352.  -       hideProgress: unlockButton.pbind(btn),
  1003. 353.  -       onFail: function(msg) {
  1004. 354.  -         ge('exchange_new_union_error').innerHTML = msg;
  1005. 355.  -         show('exchange_new_union_error');
  1006. 356.  -         return true;
  1007. 357.  -       }
  1008. 358.  -     })
  1009. 359.  -     return false;
  1010. 360.  -   }
  1011. 361.  - };
  1012. 362.  -
  1013. 363.  - try{stManager.done('exchange.js');}catch(e){}
  1014. ------
Advertisement
Add Comment
Please, Sign In to add comment