Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Файл - ads.css (Старый размер - 26964 | Новый - 0):
- 0. - #ads_css { display: none; }
- 1. -
- 2. - /* ------- */
- 3. - /* General */
- 4. - /* ------- */
- 5. -
- 6. - ul.ads_listing {
- 7. - padding: 0 0 0 30px;
- 8. - margin: 0 0 15px 0;
- 9. - }
- 10. - ul.ads_listing li {
- 11. - list-style: square;
- 12. - color: #758EAC;
- 13. - line-height: 160%;
- 14. - }
- 15. - ul.ads_listing li span {
- 16. - color: #000000;
- 17. - }
- 18. -
- 19. - a .ads_sub_link:hover {
- 20. - text-decoration: underline;
- 21. - }
- 22. -
- 23. - .ads_h2_add {
- 24. - font-weight: normal;
- 25. - font-size: 11px;
- 26. - padding-top: 0.185em;
- 27. - }
- 28. - .font_medium .ads_h2_add {
- 29. - font-size: 12px;
- 30. - padding-top: 0.14em;
- 31. - }
- 32. -
- 33. - .ads_gradient_progress_wrap {
- 34. - height: 18px;
- 35. - margin: 0 auto;
- 36. - background: #FFFFFF;
- 37. - border: 1px solid #CCCCCC;
- 38. - }
- 39. -
- 40. - .ads_gradient_progress {
- 41. - height: 18px;
- 42. - background: #597DA3 url(/images/progress_grad.gif) repeat;
- 43. - border: 1px solid #45688E;
- 44. - margin: -1px;
- 45. - }
- 46. -
- 47. - /* ---- */
- 48. - /* Page */
- 49. - /* ---- */
- 50. -
- 51. - #ads_page_wrap2 {
- 52. - border: 1px solid #EBF0F4;
- 53. - border-top: 0;
- 54. - width: 791px;
- 55. - float: right;
- 56. - }
- 57. -
- 58. - #ads_page_wrap1 {
- 59. - border: 1px solid #DAE1E8;
- 60. - border-top: 0;
- 61. - width: 789px;
- 62. - overflow: hidden;
- 63. - }
- 64. -
- 65. - #ads_page {
- 66. - padding: 20px;
- 67. - }
- 68. - #ads_page.ads_page_no_padding {
- 69. - padding: 0;
- 70. - }
- 71. -
- 72. - #ads_page_top {
- 73. - padding-top: 10px;
- 74. - }
- 75. -
- 76. - .ads_page_extra_wide #ads_page_wrap2,
- 77. - .ads_page_extra_wide #ads_page_wrap1 {
- 78. - width: auto;
- 79. - }
- 80. -
- 81. - .ads_page_extra_wide #ads_page_wrap2 {
- 82. - float: none;
- 83. - }
- 84. -
- 85. - #ads_page_bottom_info {
- 86. - border-top: 1px solid #C3CAD2;
- 87. - background-color: #F7F7F7;
- 88. - text-align: center;
- 89. - padding: 6px 20px;
- 90. - color: #444444;
- 91. - }
- 92. -
- 93. - .ads_page_small {
- 94. - padding: 0 60px;
- 95. - }
- 96. -
- 97. - /* ----- */
- 98. - /* Title */
- 99. - /* ----- */
- 100. -
- 101. - #ads_page_title {
- 102. - background-color: #E9EDF1;
- 103. - padding: 7px 10px;
- 104. - margin: 0;
- 105. - font-weight: bold;
- 106. - color: #607387;
- 107. - line-height: 140%;
- 108. - }
- 109. -
- 110. - #ads_page_title h1 {
- 111. - font-size: 1em;
- 112. - overflow: hidden;
- 113. - padding: 0;
- 114. - margin: 0;
- 115. - }
- 116. -
- 117. - #ads_page_title h1 a {
- 118. - color: #2B587A;
- 119. - }
- 120. -
- 121. - #ads_page_title b {
- 122. - color: #AAB7C5;
- 123. - float: right;
- 124. - }
- 125. -
- 126. - /* --------------- */
- 127. - /* Main navigation */
- 128. - /* --------------- */
- 129. -
- 130. - .ads_page_extra_wide #ads_navigation {
- 131. - display: none;
- 132. - }
- 133. -
- 134. - #ads_navigation {
- 135. - width: 150px;
- 136. - padding: 12px 0 12px 0;
- 137. - word-wrap: break-word;
- 138. - }
- 139. -
- 140. - #ads_navigation .edit_button_wrap {
- 141. - padding-bottom: 10px;
- 142. - }
- 143. -
- 144. - #ads_navigation.ads_nav .nav {
- 145. - max-width: 128px;
- 146. - }
- 147. -
- 148. - #ads_navigation a:hover {
- 149. - text-decoration: none;
- 150. - }
- 151. -
- 152. - /* ------------------------------ */
- 153. - /* Main navigation - offices menu */
- 154. - /* ------------------------------ */
- 155. -
- 156. - #ads_navigation.ads_nav #ads_navigation_offices_menu.nav {
- 157. - padding-right: 1px;
- 158. - width: 137px;
- 159. - max-width: 137px;
- 160. - }
- 161. -
- 162. - #ads_navigation.ads_nav #ads_navigation_offices_menu.nav .dd_link {
- 163. - display: block;
- 164. - }
- 165. -
- 166. - #ads_navigation.ads_nav #ads_navigation_offices_menu.nav .dd_link #ads_navigation_offices_menu_text_wrap {
- 167. - display: block;
- 168. - overflow: hidden;
- 169. - white-space: nowrap;
- 170. - font-size: 0; /* Remove extra margin from inline-block */
- 171. - }
- 172. -
- 173. - #ads_navigation.ads_nav #ads_navigation_offices_menu.nav .dd_link #ads_navigation_offices_menu_text {
- 174. - display: inline-block;
- 175. - overflow: hidden;
- 176. - white-space: nowrap;
- 177. - font-size: 11px; /* Remove extra margin from inline-block */
- 178. - }
- 179. - .font_medium #ads_navigation.ads_nav #ads_navigation_offices_menu.nav .dd_link #ads_navigation_offices_menu_text {
- 180. - font-size: 12px;
- 181. - }
- 182. -
- 183. - .dd_menu.ads_navigation_dd_menu_header_wrap {
- 184. - margin: 4px 0 0 7px;
- 185. - }
- 186. -
- 187. - .dd_menu.ads_navigation_dd_menu_header_wrap .dd_menu_header {
- 188. - width: 148px;
- 189. - }
- 190. -
- 191. - .dd_menu.ads_navigation_dd_menu_header_wrap .dd_menu_header div {
- 192. - background-position: right -14px;
- 193. - *background-position: right -13px;
- 194. - }
- 195. -
- 196. - .dd_menu.ads_navigation_dd_menu_header_wrap .dd_menu_header div #ads_navigation_dd_menu_header_text {
- 197. - padding: 1px 0 1px 4px;
- 198. - display: block;
- 199. - overflow: hidden;
- 200. - white-space: nowrap;
- 201. - }
- 202. -
- 203. - .dd_menu.ads_navigation_dd_menu_header_wrap .dd_menu_body .ads_office_name_wrap {
- 204. - display: inline-block;
- 205. - overflow: hidden;
- 206. - max-width: 300px;
- 207. - }
- 208. -
- 209. - /* ---------------------- */
- 210. - /* Main navigation - news */
- 211. - /* ---------------------- */
- 212. -
- 213. - .ads_naviagation_news {
- 214. - padding: 20px 0 5px 11px;
- 215. - }
- 216. -
- 217. - .ads_naviagation_news .news_title {
- 218. - font-weight: bold;
- 219. - color: #2B587A;
- 220. - padding-bottom: 10px;
- 221. - }
- 222. -
- 223. - .ads_naviagation_news ul {
- 224. - padding: 0;
- 225. - margin: 0;
- 226. - list-style-type: none;
- 227. - color: #758EAC;
- 228. - }
- 229. -
- 230. - .ads_naviagation_news li {
- 231. - padding-bottom: 10px;
- 232. - }
- 233. -
- 234. - .ads_naviagation_news span {
- 235. - color: #666666;
- 236. - font-size: 0.91em;
- 237. - }
- 238. -
- 239. - #ads_navigation .ads_naviagation_news a:hover {
- 240. - text-decoration: underline;
- 241. - }
- 242. -
- 243. - /* ---------- */
- 244. - /* Navigation */
- 245. - /* ---------- */
- 246. -
- 247. - .ads_nav .nav {
- 248. - padding: 4px 10px;
- 249. - display: block;
- 250. - overflow: hidden;
- 251. - }
- 252. -
- 253. - .ads_nav .nav {
- 254. - border: 1px solid white;
- 255. - background-color: white;
- 256. - }
- 257. -
- 258. - .ads_nav .nav:hover {
- 259. - background-color: #E1E7ED;
- 260. - border-color: #E1E7ED;
- 261. - text-decoration: none;
- 262. - }
- 263. -
- 264. - .ads_nav .nav_selected,
- 265. - .ads_nav .nav_selected:hover {
- 266. - border-color: #517295;
- 267. - background-color: #5e82a8;
- 268. - color: white;
- 269. - }
- 270. -
- 271. - .ads_nav .nav_separator {
- 272. - border-bottom: 1px solid #D3DBE1;
- 273. - height: 1px;
- 274. - overflow: hidden;
- 275. - margin: 7px 0px 8px 0;
- 276. - }
- 277. -
- 278. - /* ---- */
- 279. - /* Tabs */
- 280. - /* ---- */
- 281. -
- 282. - .ads_tabs_filters {
- 283. - background-color: #F7F7F7;
- 284. - border-bottom: 1px solid #DAE1E8;
- 285. - padding: 10px 10px 5px 10px;
- 286. - }
- 287. - .ads_tabs_filters.separate {
- 288. - border-top: 1px solid #DAE1E8;
- 289. - }
- 290. - .ads_round_tab_wrap {
- 291. - padding: 0 5px 5px 0;
- 292. - text-align: center;
- 293. - }
- 294. - .ads_round_tab_wrap .round_tab.disabled:hover,
- 295. - .ads_round_tab_wrap .round_tab.label:hover {
- 296. - background-color: transparent;
- 297. - cursor: default;
- 298. - }
- 299. - .ads_round_tab_wrap .round_tab.label {
- 300. - color: #555555;
- 301. - }
- 302. - .ads_round_tabs_period_day .round_tab {
- 303. - width: 100px;
- 304. - }
- 305. - .ads_round_tabs_period_week .round_tab {
- 306. - width: 180px;
- 307. - }
- 308. - .ads_round_tabs_period_month .round_tab {
- 309. - width: 100px;
- 310. - }
- 311. -
- 312. - /* Other */
- 313. -
- 314. - /* --- */
- 315. - /* OLD */
- 316. - /* --- */
- 317. -
- 318. - /* From rustyle.css */
- 319. -
- 320. - /* Uses in paginated_table.js */
- 321. - .ads_lite_cb {
- 322. - background: transparent url(/images/icons/check_lt.gif) 0px 0px no-repeat;
- 323. - line-height: 0.81em;
- 324. - vertical-align: baseline;
- 325. - padding: 0px 0px 1px 20px;
- 326. - cursor: pointer;
- 327. - }
- 328. - .ads_lite_cb:hover {
- 329. - background-position: 0px -32px;
- 330. - text-decoration: none;
- 331. - }
- 332. - .ads_lite_cb.on {
- 333. - background-position: 0px -16px;
- 334. - }
- 335. - .ads_lite_cb.on:hover {
- 336. - background-position: 0px -48px;
- 337. - }
- 338. -
- 339. - .ads_mass_act_container {
- 340. - text-align: right;
- 341. - }
- 342. - .ads_mass_act_container div {
- 343. - margin-right: 8px;
- 344. - margin-bottom: 5px;
- 345. - }
- 346. - .ads_mass_act_container button {
- 347. - height: 21px;
- 348. - line-height: 0.9em;
- 349. - padding: 4px 10px 4px;
- 350. - }
- 351. - .ads_search_cell {
- 352. - width: 140px;
- 353. - }
- 354. - .ads_search_cell div.pt_search_container {
- 355. - margin: 0px -3px 5px -3px;
- 356. - }
- 357. -
- 358. - div.ads_selecting_subclasses {
- 359. - margin-bottom: 4px;
- 360. - }
- 361. -
- 362. - .dd_menu_header.ads_dd_wide.ads_dd_header_popup div {
- 363. - background: url(/images/flydead.gif) no-repeat right 6px #FFFFFF;
- 364. - padding-right: 17px;
- 365. - border: 1px solid #FFFFFF;
- 366. - color: #2B587A;
- 367. - font-weight: normal;
- 368. - text-decoration: none;
- 369. - }
- 370. -
- 371. - .dd_menu_header.ads_dd_wide div {
- 372. - background: #5e82a8 url(/images/flydead.gif) no-repeat right -12px;
- 373. - width: 106px;
- 374. - }
- 375. -
- 376. - .dd_menu_body.ads_dd_wide .dd_menu_rows a {
- 377. - height: 20px;
- 378. - }
- 379. - .dd_menu_body.ads_dd_wide .dd_menu_rows a .ads_status_image_span {
- 380. - margin: 4px 5px -2px -1px;
- 381. - }
- 382. -
- 383. - .dd_menu_header.ads_dd_wide div .ads_status_image_span {
- 384. - margin: 4px 5px -1px -1px;
- 385. - }
- 386. - .dd_menu_header.ads_dd_wide div {
- 387. - line-height: 1.45em;
- 388. - }
- 389. -
- 390. - td.paginated_table_cell.column_status_view {
- 391. - padding-left: 10px;
- 392. - }
- 393. -
- 394. - .ads_status_selector_box {
- 395. - display: block;
- 396. - margin: 0px auto;
- 397. - width: 20px;
- 398. - height: 20px;
- 399. - }
- 400. -
- 401. - .ads_status_selector_box.pnt {
- 402. - cursor: pointer;
- 403. - }
- 404. -
- 405. - .ads_status_selector_box.pnt:hover {
- 406. - background-color: #E1E7ED;
- 407. - border-radius: 3px;
- 408. - -moz-border-radius: 3px;
- 409. - }
- 410. -
- 411. - #ads_unions_content .table_label {
- 412. - min-width: 150px;
- 413. - max-width: 180px;
- 414. - color: rgb(102, 102, 102);
- 415. - padding: 0 10px 4px 0;
- 416. - vertical-align: top;
- 417. - word-wrap: break-word;
- 418. - }
- 419. - #ads_unions_content .table_value {
- 420. - padding: 0 0 4px 0;
- 421. - vertical-align: top;
- 422. - word-wrap: break-word;
- 423. - }
- 424. -
- 425. - #ads_unions_content.ad_help {
- 426. - padding: 0;
- 427. - }
- 428. -
- 429. - #ads_unions_content {
- 430. - vertical-align: top;
- 431. - }
- 432. -
- 433. - #ads_union_children,
- 434. - #ads_unions_budget {
- 435. - padding-top: 20px;
- 436. - }
- 437. -
- 438. - #ads_union_children_graph {
- 439. - padding: 30px 0 15px 0;
- 440. - }
- 441. -
- 442. - .ads_unions_box td.label {
- 443. - color: #777;
- 444. - padding: 5px 10px 5px 0px;
- 445. - text-align: right;
- 446. - }
- 447. - .ads_unions_box td.labeled {
- 448. - padding: 2px 0;
- 449. - }
- 450. - .ads_unions_box td.labeled_info {
- 451. - padding: 2px 0 2px 5px;
- 452. - }
- 453. -
- 454. - .ads_unions_box input {
- 455. - width: 150px;
- 456. - }
- 457. -
- 458. - .ads_unions_list table {
- 459. - border-collapse: collapse;
- 460. - border-left: 1px solid;
- 461. - border-right: 1px solid;
- 462. - width: 100%;
- 463. - }
- 464. -
- 465. - .ads_unions_list th,
- 466. - .ads_unions_list td {
- 467. - height: 32px;
- 468. - vertical-align: middle;
- 469. - }
- 470. -
- 471. - .ads_unions_list .checkbox_container td {
- 472. - height: 20px;
- 473. - }
- 474. -
- 475. - .ads_unions_list th {
- 476. - text-align: right;
- 477. - background-color: rgb(227, 233, 238);
- 478. - border: 1px solid;
- 479. - padding: 0;
- 480. - }
- 481. - .ads_table_header th th,
- 482. - .ads_table_header th th * {
- 483. - background-color: transparent !important;
- 484. - }
- 485. -
- 486. - .ads_unions_list th,
- 487. - .ads_unions_list th * {
- 488. - color: rgb(81, 103, 122);
- 489. - }
- 490. -
- 491. - .ads_unions_list td {
- 492. - text-align: right;
- 493. - }
- 494. -
- 495. - .ads_unions_list .column_date_view,
- 496. - .ads_unions_list .column_date_view *,
- 497. - .ads_unions_list .column_action_view,
- 498. - .ads_unions_list .column_action_view *,
- 499. - .ads_unions_list .column_access_view,
- 500. - .ads_unions_list .column_access_view *,
- 501. - .ads_unions_list .column_name_view,
- 502. - .ads_unions_list .column_name_view *,
- 503. - .ads_unions_list .column_name,
- 504. - .ads_unions_list .column_name *,
- 505. - .ads_unions_list .column_status,
- 506. - .ads_unions_list .column_status * {
- 507. - text-align: left;
- 508. - }
- 509. -
- 510. - .ads_unions_list td.column_name_view {
- 511. - max-width: 160px;
- 512. - }
- 513. -
- 514. - .ads_unions_list .table_footer td {
- 515. - background-color: rgb(246, 247, 249);
- 516. - border-top: 1px solid rgb(211, 219, 225);
- 517. - border-bottom: 1px solid rgb(211, 219, 225);
- 518. - }
- 519. -
- 520. - .ads_unions_list table,
- 521. - .ads_unions_list th,
- 522. - .ads_unions_list td {
- 523. - border-color: rgb(211, 219, 225);
- 524. - }
- 525. -
- 526. - .ads_unions_list th * {
- 527. - border: 0;
- 528. - padding: 0;
- 529. - height: auto;
- 530. - }
- 531. -
- 532. - .ads_unions_list th table {
- 533. - height: 100%;
- 534. - border: 0;
- 535. - }
- 536. -
- 537. - .ads_unions_list tr.ads_table_header th th {
- 538. - border-left: 1px solid rgb(239, 242, 245);
- 539. - white-space: nowrap;
- 540. - }
- 541. -
- 542. - .ads_unions_list tr.ads_table_header th.first_table_header,
- 543. - .ads_unions_list tr.ads_table_header th.first_table_header * {
- 544. - border-left: 0 none;
- 545. - }
- 546. -
- 547. - .ads_unions_list th th,
- 548. - .ads_unions_list td {
- 549. - padding: 0 8px;
- 550. - }
- 551. -
- 552. - .ads_unions_list th.first_table_header th,
- 553. - .ads_unions_list td.first_table_column {
- 554. - padding-left: 10px;
- 555. - }
- 556. -
- 557. - .ads_unions_list th.last_table_header th,
- 558. - .ads_unions_list td.last_table_column {
- 559. - padding-right: 10px;
- 560. - }
- 561. -
- 562. - .ads_unions_list td.even_row {
- 563. - background-color: #F0F2F4;
- 564. - }
- 565. -
- 566. - .ads_unions_table {
- 567. - margin-top: 7px;
- 568. - }
- 569. -
- 570. - .paginated_table .ads_unions_table {
- 571. - margin-top: 0px;
- 572. - }
- 573. -
- 574. - .ads_unions_list td.column_day_limit_view a,
- 575. - .ads_unions_list td.column_all_limit_view a,
- 576. - .ads_unions_list td.column_cost_per_click_view a {
- 577. - border-bottom: 1px dashed #2B587A;
- 578. - text-decoration: none;
- 579. - }
- 580. -
- 581. - tr.ads_union_empty_row td.ads_union_empty_cell {
- 582. - height: auto;
- 583. - }
- 584. -
- 585. - tr.ads_union_empty_row td.ads_union_empty_cell {
- 586. - text-align: center !important;
- 587. - color: #666666;
- 588. - line-height: 150%;
- 589. - background-color: #F7F7F7;
- 590. - padding: 15px 0;
- 591. - }
- 592. -
- 593. - .ads_unions_list_p .paginated_table_cell {
- 594. - text-align: right;
- 595. - }
- 596. -
- 597. - .ads_unions_list_p .paginated_table .paginated_table_cell.column_date_view,
- 598. - .ads_unions_list_p .paginated_table .paginated_table_cell.column_date_view *,
- 599. - .ads_unions_list_p .paginated_table .paginated_table_cell.column_action_view,
- 600. - .ads_unions_list_p .paginated_table .paginated_table_cell.column_action_view *,
- 601. - .ads_unions_list_p .paginated_table .paginated_table_cell.column_access_view,
- 602. - .ads_unions_list_p .paginated_table .paginated_table_cell.column_access_view *,
- 603. - .ads_unions_list_p .paginated_table .paginated_table_cell.column_name_view,
- 604. - .ads_unions_list_p .paginated_table .paginated_table_cell.column_name_view *,
- 605. - .ads_unions_list_p .paginated_table .paginated_table_cell.column_name,
- 606. - .ads_unions_list_p .paginated_table .paginated_table_cell.column_name *,
- 607. - .ads_unions_list_p .paginated_table .paginated_table_cell.column_status,
- 608. - .ads_unions_list_p .paginated_table .paginated_table_cell.column_status * {
- 609. - text-align: left;
- 610. - }
- 611. -
- 612. - .ads_unions_list_p .paginated_table .paginated_table_cell.column_name_view,
- 613. - .ads_unions_list_p .paginated_table .paginated_table_cell.column_name_view *,
- 614. - .ads_unions_list_p .paginated_table .paginated_table_cell.column_name,
- 615. - .ads_unions_list_p .paginated_table .paginated_table_cell.column_name *,
- 616. - .paginated_table .paginated_table_cell.column_client_name,
- 617. - .paginated_table .paginated_table_cell.column_client_name *,
- 618. - .paginated_table .paginated_table_cell.column_campaign_name,
- 619. - .paginated_table .paginated_table_cell.column_campaign_name * {
- 620. - white-space: normal !important;
- 621. - }
- 622. -
- 623. - .ads_unions_list_p td.paginated_table_cell.column_name_view,
- 624. - .ads_unions_list_p td.paginated_table_cell.column_name {
- 625. - max-width: 160px;
- 626. - overflow: visible;
- 627. - }
- 628. - .ads_unions_list_p td.paginated_table_cell.column_date_view {
- 629. - min-width: 20%;
- 630. - }
- 631. - .ads_unions_list_p .paginated_table td.paginated_table_cell.column_day_limit_view a,
- 632. - .ads_unions_list_p .paginated_table td.paginated_table_cell.column_all_limit_view a,
- 633. - .ads_unions_list_p .paginated_table td.paginated_table_cell.column_cost_per_click_view a {
- 634. - border-bottom: 1px dashed #2B587A;
- 635. - text-decoration: none;
- 636. - }
- 637. -
- 638. - .ads_unions_list_p .paginated_table td.column_video_views_count_view {
- 639. - width: 1px;
- 640. - }
- 641. -
- 642. - tr.ads_union_empty_row td.ads_union_empty_cell {
- 643. - height: auto;
- 644. - }
- 645. -
- 646. - tr.ads_union_empty_row td.ads_union_empty_cell {
- 647. - text-align: center !important;
- 648. - color: #666666;
- 649. - line-height: 150%;
- 650. - background-color: #F7F7F7;
- 651. - padding: 15px 0;
- 652. - }
- 653. -
- 654. - /* Some navigation - begin */
- 655. -
- 656. - #ads_graph_navigation a.nav,
- 657. - #ads_demography_navigation a.nav {
- 658. - padding: 4px 5px 4px 10px;
- 659. - display: block;
- 660. - overflow: hidden;
- 661. - border: 1px solid #F7F7F7;
- 662. - }
- 663. - #ads_graph_navigation a.nav,
- 664. - #ads_demography_navigation a.nav {
- 665. - border: 1px solid #FFFFFF;
- 666. - background-color: #FFFFFF;
- 667. - }
- 668. - #ads_graph_navigation a.nav:hover,
- 669. - #ads_demography_navigation a.nav:hover {
- 670. - background-color: #DAE1E8;
- 671. - border-color: #DAE1E8;
- 672. - text-decoration: none;
- 673. - }
- 674. - #ads_graph_navigation a.nav_selected,
- 675. - #ads_graph_navigation a.nav_selected:hover,
- 676. - #ads_demography_navigation a.nav_selected,
- 677. - #ads_demography_navigation a.nav_selected:hover {
- 678. - border-color: #517295;
- 679. - background-color: #5e82a8;
- 680. - color: #FFF;
- 681. - }
- 682. -
- 683. - /* Some navigation - end */
- 684. -
- 685. - a.ads_status_link,
- 686. - a.ads_inline_dropdown {
- 687. - background: none !important;
- 688. - border-bottom: 1px dashed #2B587A;
- 689. - padding-right: 0 !important;
- 690. - }
- 691. -
- 692. - .ads_main_notice {
- 693. - background-color: #F6F7F9;
- 694. - border: 1px solid #D8DFEA;
- 695. - padding: 10px;
- 696. - margin-bottom: 15px;
- 697. - line-height: 160%;
- 698. - }
- 699. -
- 700. - .ads_warning {
- 701. - background-color: #F9F6E7;
- 702. - border: 1px solid #D4BC4C;
- 703. - padding: 8px 11px;
- 704. - line-height: 160%;
- 705. - }
- 706. -
- 707. - .ads_warning_light {
- 708. - background-color: #FFFFFF;
- 709. - border: 1px solid #B9C4DA;
- 710. - padding: 8px 11px;
- 711. - }
- 712. -
- 713. - .ads_small_info {
- 714. - background: none repeat scroll 0 0 #F7F7F7;
- 715. - border: 1px solid #DAE1E8;
- 716. - font-size: 0.91em;
- 717. - margin-top: 10px;
- 718. - padding: 5px 10px;
- 719. - vertical-align: top;
- 720. - }
- 721. -
- 722. - #ads_change_budget_box .ads_warning {
- 723. - margin-top: 10px;
- 724. - }
- 725. -
- 726. - #ads_change_budget_box td {
- 727. - padding: 0px;
- 728. - }
- 729. -
- 730. - .ads_union_status_image {
- 731. - background: url("/images/icons/ad_status.gif?3") no-repeat scroll left top transparent;
- 732. - width: 5px;
- 733. - height: 5px;
- 734. - margin: 0 5px 1px 0;
- 735. - display: block;
- 736. -
- 737. - display: -moz-inline-stack;
- 738. - display: inline-block;
- 739. - _overflow: hidden;
- 740. - *zoom: 1;
- 741. - *display: inline;
- 742. - }
- 743. -
- 744. - .ads_union_status_image_on {
- 745. - background-position: left 0;
- 746. - }
- 747. - .ads_union_status_image_off {
- 748. - background-position: left -5px;
- 749. - }
- 750. - .ads_union_status_image_part_on {
- 751. - background-position: left -10px;
- 752. - }
- 753. - .ads_union_status_image_part_off {
- 754. - background-position: left -15px;
- 755. - }
- 756. - .ads_union_status_image_disapproved {
- 757. - background-position: left -20px;
- 758. - }
- 759. - .ads_union_status_image_deleted {
- 760. - background-position: left -25px;
- 761. - }
- 762. -
- 763. - .ads_status_image_span {
- 764. - background: url("/images/icons/ad_status_new.gif") no-repeat scroll left top transparent;
- 765. - width: 11px;
- 766. - height: 11px;
- 767. - margin: 5px 0px 3px 2px;
- 768. - display: block;
- 769. -
- 770. - display: -moz-inline-stack;
- 771. - display: inline-block;
- 772. - _overflow: hidden;
- 773. - *zoom: 1;
- 774. - *display: inline;
- 775. - }
- 776. -
- 777. - .dd_menu_header.ads_dd_header_popup .ads_status_image_span.status_on,
- 778. - .ads_status_image_span.status_on {
- 779. - background-position: left -0px;
- 780. - }
- 781. - .dd_menu_header.ads_dd_header_popup .ads_status_image_span.status_off,
- 782. - .ads_status_image_span.status_off {
- 783. - background-position: left -170px;
- 784. - }
- 785. - .dd_menu_header.ads_dd_header_popup .ads_status_image_span.status_pending,
- 786. - .ads_status_image_span.status_pending {
- 787. - background-position: left -157px;
- 788. - }
- 789. - .dd_menu_header.ads_dd_header_popup .ads_status_image_span.status_off_red,
- 790. - .ads_status_image_span.status_off_red {
- 791. - background-position: left -128px;
- 792. - }
- 793. - .dd_menu_header.ads_dd_header_popup .ads_status_image_span.status_deleted,
- 794. - .ads_status_image_span.status_deleted {
- 795. - background-position: left -183px;
- 796. - }
- 797. - .dd_menu_header.ads_dd_header_popup .ads_status_image_span.status_cross,
- 798. - .ads_status_image_span.status_cross {
- 799. - background-position: left -141px;
- 800. - }
- 801. -
- 802. - .dd_menu_header .ads_status_image_span.status_on {
- 803. - background-position: left -16px;
- 804. - }
- 805. - .dd_menu_header .ads_status_image_span.status_off {
- 806. - background-position: left -29px;
- 807. - }
- 808. - .dd_menu_header .ads_status_image_span.status_pending {
- 809. - background-position: left -69px;
- 810. - }
- 811. - .dd_menu_header .ads_status_image_span.status_off_red {
- 812. - background-position: left -29px;
- 813. - }
- 814. - .dd_menu_header .ads_status_image_span.status_deleted {
- 815. - background-position: left -41px;
- 816. - }
- 817. - .dd_menu_header .ads_status_image_span.status_cross {
- 818. - background-position: left -55px;
- 819. - }
- 820. -
- 821. - .dd_menu_body.ads_dd_wide .dd_menu_rows a .ads_status_image_span.status_on {
- 822. - background-position: left -85px;
- 823. - }
- 824. - .dd_menu_body.ads_dd_wide .dd_menu_rows a .ads_status_image_span.status_off {
- 825. - background-position: left -98px;
- 826. - }
- 827. - .dd_menu_body.ads_dd_wide .dd_menu_rows a .ads_status_image_span.status_deleted {
- 828. - background-position: left -111px;
- 829. - }
- 830. -
- 831. - .ads_unions_list tr.ads_table_header th.paginated_table td.paginated_table_cell.column_commit_date,
- 832. - .ads_unions_list tr.ads_table_header th.paginated_table td.paginated_table_cell.column_commit_date * {
- 833. - border-left: 0 none;
- 834. - }
- 835. -
- 836. - #ads_unions_budget * {
- 837. - text-align: left;
- 838. - }
- 839. -
- 840. - #ads_general_info_status_selector {
- 841. - border-bottom: 1px dashed #2B587A;
- 842. - }
- 843. -
- 844. - table.ads_unions_content_label {
- 845. - border-collapse: collapse;
- 846. - }
- 847. -
- 848. - .ads_export_prefs .table_label {
- 849. - line-height: 190%;
- 850. - }
- 851. - .ads_export_prefs .table_value {
- 852. - width: 300px;
- 853. - }
- 854. -
- 855. - #ads_unions_content .export_prefs_web .summary td {
- 856. - padding-top: 10px !important;
- 857. - }
- 858. -
- 859. - .ads_export_stats .ads_unions_table th.paginated_table td.paginated_table_cell.column_checked {
- 860. - width: 34px;
- 861. - }
- 862. -
- 863. - .ads_unions_list .checkbox_container table {
- 864. - border: 0px;
- 865. - }
- 866. -
- 867. - .ads_unions_table .hovered_header,
- 868. - .ads_unions_table .hovered_header_hover {
- 869. - cursor: pointer;
- 870. - }
- 871. - .ads_unions_table .hovered_header_hover {
- 872. - background-color: #EFF2F5;
- 873. - }
- 874. -
- 875. - .ads_inline_edit_remove_value {
- 876. - margin-left: 5px;
- 877. - white-space: nowrap;
- 878. - }
- 879. -
- 880. - .ads_inline_edit_table {
- 881. - border-collapse: collapse;
- 882. - }
- 883. - table.ads_inline_edit_table td {
- 884. - padding: 0;
- 885. - }
- 886. - .ads_inline_fast_error_row {
- 887. - display: none;
- 888. - }
- 889. - .ads_inline_fast_error {
- 890. - background-color: #F9F6E7;
- 891. - border: 1px solid #D4BC4C;
- 892. - padding: 8px 11px;
- 893. - margin-top: 5px;
- 894. - }
- 895. -
- 896. - .ads_inline_recommended_cost_text {
- 897. - font-size: 0.91em;
- 898. - color: #777777;
- 899. - display: none;
- 900. - }
- 901. -
- 902. - .ads_moder_comment_rules_wrap ul {
- 903. - list-style: square outside none;
- 904. - color: #758EAC;
- 905. - margin: 11px 0 0 0;
- 906. - }
- 907. - .ads_moder_comment_rules_wrap span {
- 908. - color: black;
- 909. - }
- 910. - .ads_moder_comment_rules_separator {
- 911. - height: 11px;
- 912. - }
- 913. -
- 914. - #ads_admin_box_wrapper a:hover {
- 915. - text-decoration: underline;
- 916. - }
- 917. -
- 918. - .ads_admin_table_cell {
- 919. - border-bottom: 1px solid #DAE2E8;
- 920. - }
- 921. -
- 922. - .admin_table_cell_last {
- 923. - border-bottom: none;
- 924. - }
- 925. -
- 926. - .ads_admin_box_label {
- 927. - color: #777777;
- 928. - text-align: right;
- 929. - width: 125px;
- 930. - padding-right: 10px;
- 931. - }
- 932. - .ads_admin_box_labeled {
- 933. - width: 270px;
- 934. - }
- 935. -
- 936. - .ads_general_info_hidden {
- 937. - display: none;
- 938. - }
- 939. -
- 940. - .ads_general_info .table_large_text {
- 941. - width: 400px;
- 942. - }
- 943. -
- 944. - #ads_unions_content h4 span {
- 945. - font-weight: bold
- 946. - }
- 947. -
- 948. - .ads_users_stats_dark {
- 949. - background-color: #597DA3;
- 950. - }
- 951. -
- 952. - .ads_users_stats_light {
- 953. - background-color: #DAE1E8;
- 954. - }
- 955. -
- 956. - .ads_users_stats_bars_title {
- 957. - padding-bottom: 16px;
- 958. - color: #45688E;
- 959. - font-weight: bold;
- 960. - }
- 961. -
- 962. - .ads_users_stats_bar_label {
- 963. - height: 30px;
- 964. - text-align: right;
- 965. - padding-right: 16px;
- 966. - padding-top: 2px;
- 967. - vertical-align: top;
- 968. - color: #45688E;
- 969. - font-weight: bold;
- 970. - }
- 971. - .ads_users_stats_bar_wrap table {
- 972. - border: 0px;
- 973. - border-collapse: collapse;
- 974. - }
- 975. - .ads_users_stats_bar_wrap table td {
- 976. - padding: 0px;
- 977. - }
- 978. - .ads_users_stats_bar_wrap {
- 979. - height: 30px;
- 980. - vertical-align: top;
- 981. - }
- 982. - .ads_users_stats_bar_wrap table td.ads_users_stats_bar_value {
- 983. - padding-left: 11px;
- 984. - }
- 985. - .ads_users_stats_bar {
- 986. - -moz-border-radius: 0 3px 3px 0;
- 987. - -webkit-border-radius: 0 3px 3px 0;
- 988. - -khtml-border-radius: 0 3px 3px 0;
- 989. - border-radius: 0 3px 3px 0;
- 990. - height: 17px;
- 991. - }
- 992. -
- 993. - #ads_demography_wrap .summary_right .summary_tab2 {
- 994. - background-color: transparent;
- 995. - }
- 996. -
- 997. - .ads_dropdown_menu_scrollbar {
- 998. - position: absolute;
- 999. - z-index: 1500;
- 1000. - background-color: #000;
- 1001. -
- 1002. - opacity: 0.4;
- 1003. - -moz-opacity: 0.4;
- 1004. - filter: alpha(opacity=40);
- 1005. -
- 1006. - border-radius: 3px;
- 1007. - -webkit-border-radius: 3px;
- 1008. - -moz-border-radius: 3px;
- 1009. - -khtml-border-radius: 3px;
- 1010. - }
- 1011. - .ads_dropdown_menu_scrollbar:hover,
- 1012. - .ads_dropdown_menu_scrollbar.hovered {
- 1013. - opacity: 0.6;
- 1014. - -moz-opacity: 0.6;
- 1015. - filter: alpha(opacity=60);
- 1016. - }
- 1017. -
- 1018. - #ads_admin_box_wrapper h2 {
- 1019. - padding: 0;
- 1020. - margin: 0;
- 1021. - border: none;
- 1022. - }
- 1023. -
- 1024. - #ads_reqs_edit td.ads_req_label {
- 1025. - color: #666666;
- 1026. - text-align: right;
- 1027. - vertical-align: top;
- 1028. - padding-top: 5px;
- 1029. - }
- 1030. -
- 1031. - #ads_reqs_edit td.ads_req_right {
- 1032. - width: 100px;
- 1033. - }
- 1034. -
- 1035. - #ads_reqs_edit_form input.ads_req_edit,
- 1036. - #ads_reqs_edit_form textarea.ads_req_edit {
- 1037. - margin: 0px;
- 1038. - width: 250px;
- 1039. - }
- 1040. -
- 1041. - #ads_legal_info_box div {
- 1042. - padding: 8px 11px;
- 1043. - border: 1px solid #C0CAD5;
- 1044. - }
- 1045. -
- 1046. - /*
- 1047. - * About section
- 1048. - */
- 1049. -
- 1050. - .ads_help_section.section_wrap {
- 1051. - padding: 20px 25px 25px 26px;
- 1052. - line-height: 130%;
- 1053. - }
- 1054. -
- 1055. - .ads_help_section .header {
- 1056. - font-size: 1.09em;
- 1057. - margin: 0px 0px 20px 1px;
- 1058. - border: none;
- 1059. - }
- 1060. - .ads_help_section .sub_header {
- 1061. - border-bottom: 1px solid #DAE1E8;
- 1062. - font-size: 1em;
- 1063. - margin-bottom: 10px;
- 1064. - padding-bottom: 2px;
- 1065. - }
- 1066. - .ads_help_section .sub_header,
- 1067. - .ads_help_section .header {
- 1068. - color: #45688E;
- 1069. - font-weight: bold;
- 1070. - }
- 1071. - .ads_help_section .header_hl {
- 1072. - border-bottom: 1px solid #DAE1E8;
- 1073. - padding-bottom: 3px;
- 1074. - margin-bottom: 10px;
- 1075. - }
- 1076. -
- 1077. - .ads_help_section .listing li {
- 1078. - padding-top: 2px;
- 1079. - }
- 1080. -
- 1081. - .ads_help_section .listing,
- 1082. - .ads_help_section ol {
- 1083. - padding-bottom: 0px;
- 1084. - margin-bottom: 0px;
- 1085. - }
- 1086. -
- 1087. - .ads_help_section .par_divider {
- 1088. - margin-bottom: 31px;
- 1089. - }
- 1090. -
- 1091. - .ads_help_section .emph_link {
- 1092. - margin-left: 26px;
- 1093. - }
- 1094. -
- 1095. - #unions_navigation {
- 1096. - vertical-align: top;
- 1097. - }
- 1098. -
- 1099. - #unions_navigation {
- 1100. - width: 150px;
- 1101. - padding: 12px 12px 12px 0;
- 1102. - }
- 1103. -
- 1104. - #unions_navigation .edit_button_wrap {
- 1105. - padding-bottom: 10px;
- 1106. - }
- 1107. -
- 1108. - #unions_navigation .nav_separator {
- 1109. - border-bottom: 1px solid rgb(211, 219, 225);
- 1110. - height: 1px;
- 1111. - overflow: hidden;
- 1112. - margin: 7px 0px 8px 0;
- 1113. - }
- 1114. -
- 1115. - #unions_navigation a.nav {
- 1116. - padding: 4px 5px 4px 10px;
- 1117. - display: block;
- 1118. - overflow: hidden;
- 1119. - border: 1px solid #F7F7F7;
- 1120. - }
- 1121. - #unions_navigation a.nav {
- 1122. - border: 1px solid white;
- 1123. - }
- 1124. - #unions_navigation a.nav {
- 1125. - max-width: 133px;
- 1126. - word-wrap: break-word;
- 1127. - }
- 1128. - #unions_navigation a.nav:hover {
- 1129. - background-color: #DAE1E8;
- 1130. - border-color: #DAE1E8;
- 1131. - text-decoration: none;
- 1132. - }
- 1133. - #unions_navigation a.nav:hover {
- 1134. - background-color: #E1E7ED;
- 1135. - border-color: #E1E7ED;
- 1136. - }
- 1137. - #unions_navigation a.nav_selected,
- 1138. - #unions_navigation a.nav_selected:hover {
- 1139. - border-color: #517295;
- 1140. - background-color: #5e82a8;
- 1141. - color: #FFF;
- 1142. - }
- 1143. -
- 1144. -
- 1145. - #unions_navigation.ads_unions_navigation_about {
- 1146. - background-color: #F7F7F7;
- 1147. - border-left: 1px solid #DAE1E8;
- 1148. - padding: 14px 10px;
- 1149. - }
- 1150. -
- 1151. - #unions_navigation.ads_unions_navigation_about .nav {
- 1152. - border-color: #F7F7F7;
- 1153. - }
- 1154. -
- 1155. - #unions_navigation.ads_unions_navigation_about .nav_selected {
- 1156. - border-color: #517295;
- 1157. - }
- 1158. -
- 1159. - .ads_unions_navigation_about .ad_box_preview {
- 1160. - border: 1px solid #DCE3E9
- 1161. - }
- 1162. -
- 1163. - #ads_contacts_form {
- 1164. - margin: 20px 0 0 0;
- 1165. - }
- 1166. - #ads_contacts_form .row {
- 1167. - clear: both;
- 1168. - height: 30px;
- 1169. - }
- 1170. - #ads_contacts_form .label {
- 1171. - width: 100px;
- 1172. - color: #555;
- 1173. - float: left;
- 1174. - padding: 4px 10px 0 0;
- 1175. - text-align: right;
- 1176. - clear: left;
- 1177. - }
- 1178. - #ads_contacts_form .labeled {
- 1179. - padding-left: 110px;
- 1180. - }
- 1181. - #ads_contacts_form input.txt {
- 1182. - width: 242px;
- 1183. - }
- 1184. - #ads_contacts_form textarea.txt {
- 1185. - width: 242px;
- 1186. - height: 90px;
- 1187. - }
- 1188. - #ads_contacts_form .msg {
- 1189. - background-color: #f9f6e7;
- 1190. - border-color: #c3b988;
- 1191. - font-weight: normal;
- 1192. - }
- 1193. -
- 1194. - /* Multi dropdown menu - begin */
- 1195. -
- 1196. - a.ads_dd_menu_item_checkbox_on,
- 1197. - a.ads_dd_menu_item_checkbox_off {
- 1198. - padding-left: 22px !important;
- 1199. - background-image: none !important;
- 1200. - background-position: 4px 2px !important;
- 1201. - }
- 1202. - a.ads_dd_menu_item_checkbox_on {
- 1203. - background-image: url("/images/dropdead_check.gif") !important;
- 1204. - }
- 1205. -
- 1206. - /* Multi dropdown menu - end */
- 1207. -
- 1208. - .ads_paginated_table_name {
- 1209. - overflow: hidden;
- 1210. - white-space: nowrap;
- 1211. - }
- 1212. -
- 1213. - .ad_new_user td.label {
- 1214. - text-align: right;
- 1215. - padding: 6px 15px 6px 0;
- 1216. - width: 120px;
- 1217. - color: gray;
- 1218. - }
- 1219. - .ad_new_user td.labeled input {
- 1220. - width: 160px;
- 1221. - }
- 1222. -
- 1223. - #ads_page_simple .ads_reg_row {
- 1224. - height: 30px;
- 1225. - }
- 1226. - #ads_page_simple .ads_reg_label {
- 1227. - width: 231px;
- 1228. - float: left;
- 1229. - text-align: right;
- 1230. - color: #777777;
- 1231. - padding: 4px 10px 0 0;
- 1232. - }
- 1233. - #ads_page_simple .ads_reg_labeled {
- 1234. - float: left;
- 1235. - }
- 1236. - #ads_page_simple .ads_reg_labeled_input {
- 1237. - margin: 0;
- 1238. - }
- 1239. - #ads_page_simple .ads_reg_labeled input#first_name,
- 1240. - #ads_page_simple .ads_reg_labeled input#last_name,
- 1241. - #ads_page_simple .ads_reg_labeled input#regemail,
- 1242. - #ads_page_simple .ads_reg_labeled input#regpass {
- 1243. - width: 217px;
- 1244. - }
- 1245. -
- 1246. - .box_body .ads_disapproved_message {
- 1247. - line-height: 150%;
- 1248. - }
- 1249. -
- 1250. - .ads_wiki_wrap {
- 1251. - line-height: 160%;
- 1252. - }
- 1253. -
- 1254. - .ads_wiki_bonus {
- 1255. - padding-bottom: 10px;
- 1256. - }
- 1257. -
- 1258. - #ads_bonus_activation_form .ads_unions_content_label td {
- 1259. - padding: 0 0 4px 0;
- 1260. - }
- 1261. -
- 1262. - #ads_unions_content .payments_systems_container {
- 1263. - padding: 7px 102px 0 50px;
- 1264. - }
- 1265. -
- 1266. - #ads_unions_content .payments_systems_container .ps_desc_short {
- 1267. - padding-right: 120px;
- 1268. - }
- 1269. -
- 1270. - #ads_unions_content .payments_systems_container .term_info {
- 1271. - min-height: 24px;
- 1272. - }
- 1273. -
- 1274. - #ads_unions_content .payments_landing div {
- 1275. - margin-bottom: 20px;
- 1276. - }
- 1277. -
- 1278. - #ads_retargeting_groups_table {
- 1279. - margin-top: 15px;
- 1280. - }
- 1281. - #ads_retargeting_groups_table .column_action_view {
- 1282. - width: 100px;
- 1283. - white-space: nowrap;
- 1284. - }
- 1285. - #ads_retargeting_groups .ads_retargeting_controls {
- 1286. - padding-top: 15px;
- 1287. - }
- 1288. - .ads_retargeting_box {
- 1289. - line-height: 160%;
- 1290. - }
- 1291. - .ads_retargeting_box_text {
- 1292. - padding-bottom: 10px;
- 1293. - }
- 1294. - .ads_retargeting_box td.label {
- 1295. - color: #777;
- 1296. - padding: 5px 10px 5px 0px;
- 1297. - text-align: right;
- 1298. - width: 100px;
- 1299. - }
- 1300. - .ads_retargeting_box td.labeled {
- 1301. - padding: 2px 0;
- 1302. - }
- 1303. - .ads_retargeting_box td.labeled_info {
- 1304. - padding: 2px 0 2px 5px;
- 1305. - }
- 1306. - .ads_retargeting_box input {
- 1307. - width: 190px;
- 1308. - }
- 1309. - #ads_retargeting_box_error {
- 1310. - margin-bottom: 10px;
- 1311. - display: none;
- 1312. - }
- 1313. - .ads_retargeting_box .box_msg {
- 1314. - margin-bottom: 10px;
- 1315. - font-weight: normal;
- 1316. - }
- 1317. - .ads_retargeting_box_notice {
- 1318. - font-size: 0.91em;
- 1319. - color: #777;
- 1320. - }
- 1321. - #retargeting_group_pixel {
- 1322. - background-color: #F2F2F2;
- 1323. - height: 110px;
- 1324. - width: 245px;
- 1325. - }
- 1326. - .ads_retargeting_text {
- 1327. - line-height: 150%;
- 1328. - }
- ------
- Файл - ads_moder.css (Старый размер - 11150 | Новый - 0):
- 0. - #ads_moder_css { display: none; }
- 1. -
- 2. - /* ------- */
- 3. - /* General */
- 4. - /* ------- */
- 5. -
- 6. - .ads_overflow_hidden_wrap1 {
- 7. - overflow: hidden;
- 8. - }
- 9. - .ads_overflow_hidden_wrap2 {
- 10. - overflow: visible;
- 11. - white-space: nowrap;
- 12. - width: 1px;
- 13. - }
- 14. -
- 15. - .ads_moder_tabs {
- 16. - padding-top: 0;
- 17. - }
- 18. - .ads_moder_tabs ul.t0 {
- 19. - width: auto;
- 20. - }
- 21. -
- 22. - /* -- */
- 23. - /* Ad */
- 24. - /* -- */
- 25. -
- 26. - .ads_ad_char_hint {
- 27. - position: relative;
- 28. - }
- 29. - .ads_ad_char_hint_color {
- 30. - visibility: hidden;
- 31. - position: absolute;
- 32. - height: 1px;
- 33. - bottom: 0;
- 34. - left: 0;
- 35. - border-bottom: 1px solid red;
- 36. - overflow: hidden;
- 37. - }
- 38. - .ads_ad_box a:hover .ads_ad_char_hint_color {
- 39. - visibility: visible;
- 40. - }
- 41. -
- 42. - /* ------- */
- 43. - /* Markers */
- 44. - /* ------- */
- 45. -
- 46. - .ads_marker_wrap_ad {
- 47. - position: relative;
- 48. - }
- 49. - .ads_marker_wrap {
- 50. - position: absolute;
- 51. - top: 1px;
- 52. - left: 1px;
- 53. - z-index: 10;
- 54. - }
- 55. - .ads_marker {
- 56. - float: left;
- 57. - width: 5px;
- 58. - height: 5px;
- 59. - margin-right: 2px;
- 60. - border-radius: 1px;
- 61. - }
- 62. - .ads_marker_wrap_ad:hover .ads_marker {
- 63. - width: 7px;
- 64. - height: 7px;
- 65. - border-radius: 2px;
- 66. - }
- 67. -
- 68. - .ads_marker_target {
- 69. - background-color: #ff8000;
- 70. - }
- 71. - .ads_marker_clicked {
- 72. - background-color: #9966cc;
- 73. - }
- 74. - .ads_marker_closed {
- 75. - background-color: #00b2cc;
- 76. - }
- 77. - .ads_marker_viewed {
- 78. - background-color: #ff55aa;
- 79. - }
- 80. -
- 81. - .ads_marker_offensive {
- 82. - background-color: #5090ff;
- 83. - }
- 84. - .ads_marker_porno {
- 85. - background-color: #ff2213;
- 86. - }
- 87. - .ads_marker_cheaters {
- 88. - background-color: #a0522d;
- 89. - }
- 90. - .ads_marker_against {
- 91. - background-color: #008000;
- 92. - }
- 93. -
- 94. - .ads_marker_enabled {
- 95. - background-color: #00aa00;
- 96. - }
- 97. - .ads_marker_enabling {
- 98. - background-color: #CFB53B;
- 99. - }
- 100. - .ads_marker_approved {
- 101. - background-color: #0000dd;
- 102. - }
- 103. - .ads_marker_disapproved {
- 104. - background-color: #aa0000;
- 105. - }
- 106. - .ads_marker_archived {
- 107. - background-color: #333333;
- 108. - }
- 109. -
- 110. - .ads_marker_request_manual {
- 111. - background-color: #e0b080;
- 112. - }
- 113. - .ads_marker_request_wrong {
- 114. - background-color: #00d07f;
- 115. - }
- 116. -
- 117. - .ads_marker_target_tip {
- 118. - color: #ff8000;
- 119. - }
- 120. - .ads_marker_clicked_tip {
- 121. - color: #9966cc;
- 122. - }
- 123. - .ads_marker_closed_tip {
- 124. - color: #00b2cc;
- 125. - }
- 126. - .ads_marker_viewed_tip {
- 127. - color: #ff55aa;
- 128. - }
- 129. -
- 130. - .ads_marker_offensive_tip {
- 131. - color: #5090ff;
- 132. - }
- 133. - .ads_marker_porno_tip {
- 134. - color: #ff2213;
- 135. - }
- 136. - .ads_marker_cheaters_tip {
- 137. - color: #a0522d;
- 138. - }
- 139. - .ads_marker_against_tip {
- 140. - color: #008000;
- 141. - }
- 142. -
- 143. - .ads_marker_enabled_tip {
- 144. - color: #00aa00;
- 145. - }
- 146. - .ads_marker_enabling_tip {
- 147. - color: #CFB53B;
- 148. - }
- 149. - .ads_marker_approved_tip {
- 150. - color: #0000dd;
- 151. - }
- 152. - .ads_marker_disapproved_tip {
- 153. - color: #aa0000;
- 154. - }
- 155. - .ads_marker_archived_tip {
- 156. - color: #333333;
- 157. - }
- 158. -
- 159. - .ads_marker_request_manual_tip {
- 160. - color: #e0b080;
- 161. - }
- 162. - .ads_marker_request_wrong_tip {
- 163. - color: #00d07f;
- 164. - }
- 165. -
- 166. - .ads_marker_other_tip {
- 167. - color: #2b587a;
- 168. - }
- 169. - .ads_marker_grey_tip {
- 170. - color: grey;
- 171. - }
- 172. - /* #8B00ff */
- 173. - /* 009090 */
- 174. -
- 175. - .ads_info_marker {
- 176. - position: absolute;
- 177. - z-index: 20;
- 178. - top: 2px;
- 179. - right: 2px;
- 180. -
- 181. - background-color: #D5DDE5;
- 182. - border-radius: 3px;
- 183. - text-align: center;
- 184. -
- 185. - width: 20px;
- 186. - height: 20px;
- 187. - line-height: 20px;
- 188. - font-size: 1px;
- 189. - opacity: 0.5;
- 190. -
- 191. - display: none;
- 192. - }
- 193. - .ads_marker_wrap_ad:hover .ads_info_marker {
- 194. - display: block;
- 195. - text-decoration: none;
- 196. - }
- 197. - .ads_marker_wrap_ad .ads_info_marker:hover {
- 198. - font-size: 11px;
- 199. - opacity: 1;
- 200. - }
- 201. -
- 202. - /* -------- */
- 203. - /* Category */
- 204. - /* -------- */
- 205. -
- 206. - .ads_category_wrap {
- 207. - max-width: 118px;
- 208. - margin-top: 4px;
- 209. - display: inline-block;
- 210. - font-size: 0.91em;
- 211. - position: relative;
- 212. - }
- 213. - .ads_category_wrap .ads_category_parent {
- 214. - position: absolute;
- 215. - z-index: 10;
- 216. - display: none;
- 217. - white-space: nowrap;
- 218. - padding-left: 5px;
- 219. - }
- 220. - .ads_category_wrap .ads_subcategory {
- 221. - font-weight: bold;
- 222. - }
- 223. - .ads_category_wrap:hover .ads_subcategory,
- 224. - .ads_category_wrap:hover .ads_category_parent {
- 225. - background-color: white;
- 226. - }
- 227. - .ads_category_wrap:hover .ads_category_parent {
- 228. - display: inline;
- 229. - }
- 230. -
- 231. - /* -------- */
- 232. - /* Ads info */
- 233. - /* -------- */
- 234. -
- 235. - .ads_info_premoderation_request .ads_ad_box_border {
- 236. - border-width: 1px;
- 237. - }
- 238. - .ads_info_premoderation_request .label {
- 239. - color: grey;
- 240. - padding-right: 10px;
- 241. - }
- 242. - .ads_info_premoderation_request .info_msg {
- 243. - margin-top: 15px;
- 244. - }
- 245. - .ads_info_premoderation_request_info {
- 246. - line-height: 160%;
- 247. - }
- 248. - .ads_info_premoderation_request_info td {
- 249. - vertical-align: top;
- 250. - padding-bottom: 3px;
- 251. - }
- 252. - .ads_info_premoderation_request_ad_prev,
- 253. - .ads_info_premoderation_request_ad_cur,
- 254. - .ads_info_premoderation_request_arrow,
- 255. - .ads_info_premoderation_request_info {
- 256. - padding-right: 15px;
- 257. - }
- 258. - .ads_info_premoderation_request_ad_prev,
- 259. - .ads_info_premoderation_request_ad_cur,
- 260. - .ads_info_premoderation_request_info {
- 261. - vertical-align: top;
- 262. - }
- 263. - .ads_info_premoderation_request_ad_prev,
- 264. - .ads_info_premoderation_request_ad_cur {
- 265. - text-align: center;
- 266. - }
- 267. - .ads_info_premoderation_request_arrow {
- 268. - font-size: 30px;
- 269. - }
- 270. -
- 271. - /* ------- */
- 272. - /* All ads */
- 273. - /* ------- */
- 274. -
- 275. - .ads_all_navigation_page {
- 276. - display: block;
- 277. - float: left;
- 278. - text-decoration: none !important;
- 279. - padding: 5px;
- 280. - margin: 0 3px 3px 0;
- 281. - border: 1px solid #DAE1E8;
- 282. - min-width: 45px;
- 283. - }
- 284. - .ads_all_navigation_page.current {
- 285. - font-weight: bold;
- 286. - }
- 287. -
- 288. - .ads_all_ads_box {
- 289. - float: left;
- 290. - height: 300px;
- 291. - margin: 0 5px;
- 292. - }
- 293. -
- 294. - .ads_all_ads_box .ads_ad_box_border {
- 295. - border-width: 1px;
- 296. - }
- 297. -
- 298. - /* ------------- */
- 299. - /* Premoderation */
- 300. - /* ------------- */
- 301. -
- 302. - .ads_premoderation_requests {
- 303. - margin-right: -30px;
- 304. - }
- 305. - .ads_premoderation_request_wrap {
- 306. - float: left;
- 307. - height: 480px;
- 308. - margin: 10px 30px 0 0;
- 309. - }
- 310. - .ads_premoderation_request_wrap.first {
- 311. - margin-right: 31px;
- 312. - }
- 313. -
- 314. - .ads_premoderation_requests .ads_ad_box_border {
- 315. - border-width: 1px;
- 316. - }
- 317. -
- 318. - .ads_premoderation_requests_office .label {
- 319. - padding-right: 10px;
- 320. - vertical-align: top;
- 321. - }
- 322. - .ads_premoderation_requests_office_columns {
- 323. - width: 100%;
- 324. - }
- 325. - .ads_premoderation_requests_office_column {
- 326. - vertical-align: top;
- 327. - }
- 328. - .ads_premoderation_requests_office_column_domains {
- 329. - text-align: right;
- 330. - }
- 331. - .ads_premoderation_requests_office_domains {
- 332. - display: inline-block;
- 333. - }
- 334. - .ads_premoderation_requests_office_domains .labeled {
- 335. - text-align: left;
- 336. - }
- 337. - .ads_premoderation_requests_office_domain_similar {
- 338. - color: #aa0000;
- 339. - }
- 340. -
- 341. - .ads_premoderation_request {
- 342. - border: 1px solid #D3DBE1;
- 343. - padding: 3px;
- 344. - width: 283px;
- 345. - }
- 346. - .ads_premoderation_request_ad_wrap {
- 347. - vertical-align: top;
- 348. - text-align: center;
- 349. - padding-top: 5px;
- 350. - }
- 351. - .ads_premoderation_request_ad_wrap2 {
- 352. - display: inline-block;
- 353. - }
- 354. - .ads_premoderation_request_ad_page_link_wrap {
- 355. - font-size: 30px;
- 356. - text-align: center;
- 357. - line-height: 20px;
- 358. - overflow: hidden;
- 359. - }
- 360. - a.ads_premoderation_request_ad_page_link {
- 361. - text-decoration: none;
- 362. - }
- 363. - .ads_premoderation_request_ad_link_url_wrap {
- 364. - padding: 5px 3px 0 3px;
- 365. - }
- 366. - .ads_premoderation_request_notes_wrap {
- 367. - padding: 5px 3px 0 3px;
- 368. - }
- 369. - .ads_premoderation_request_comment_wrap {
- 370. - padding-top: 3px;
- 371. - }
- 372. - .ads_premoderation_request_comment_wrap2 {
- 373. - margin-right: 8px;
- 374. - }
- 375. - .ads_premoderation_request_comment {
- 376. - width: 100%;
- 377. - margin: 0;
- 378. - }
- 379. - .ads_premoderation_request_actions_wrap {
- 380. - padding-top: 8px;
- 381. - }
- 382. - .ads_premoderation_request_actions_wrap2 {
- 383. - width: 100%;
- 384. - border-collapse: collapse;
- 385. - }
- 386. - .ads_premoderation_request_reasons_wrap2 {
- 387. - position: relative;
- 388. - }
- 389. - .ads_premoderation_request_result_wrap {
- 390. - height: 20px;
- 391. - padding: 5px 3px 3px 3px;
- 392. - }
- 393. - .ads_premoderation_request_result {
- 394. - color: grey;
- 395. - }
- 396. -
- 397. - .ads_premoderation_categories_edit_box .info_msg {
- 398. - margin-bottom: 15px;
- 399. - }
- 400. - .ads_premoderation_categories_edit_box .label {
- 401. - padding-top: 4px;
- 402. - color: grey;
- 403. - width: 150px;
- 404. - text-align: right;
- 405. - }
- 406. - .ads_premoderation_categories_edit_box .labeled {
- 407. - padding-bottom: 10px;
- 408. - }
- 409. -
- 410. - .ads_premoderation_mass_progress_wrap2,
- 411. - .ads_premoderation_mass_result {
- 412. - padding-top: 10px;
- 413. - }
- 414. - .ads_premoderation_mass_progress_wrap1 {
- 415. - width: 250px;
- 416. - }
- 417. -
- 418. - .ads_premoderation_stat_moder_name_wrap {
- 419. - visibility: hidden;
- 420. - position: relative;
- 421. - }
- 422. - .ads_premoderation_stat_moder_name {
- 423. - visibility: visible;
- 424. - position: absolute;
- 425. - left: 0;
- 426. - top: 0;
- 427. - white-space: nowrap;
- 428. - }
- 429. - .ads_premoderation_stat_value_hint,
- 430. - .ads_premoderation_stat_value_hint a {
- 431. - color: gray;
- 432. - }
- 433. -
- 434. - /* ---- */
- 435. - /* Logs */
- 436. - /* ---- */
- 437. -
- 438. - table.ads_logs_users {
- 439. - border-collapse: collapse;
- 440. - }
- 441. - table.ads_logs_users td,
- 442. - table.ads_logs_users th {
- 443. - padding: 2px 5px;
- 444. - }
- 445. -
- 446. - table.ads_logs_info {
- 447. - border-collapse: collapse;
- 448. - }
- 449. - table.ads_logs_info td,
- 450. - table.ads_logs_info th {
- 451. - padding: 1px 10px;
- 452. - }
- 453. -
- 454. - /* ------------ */
- 455. - /* Stat summary */
- 456. - /* ------------ */
- 457. -
- 458. - .ads_moder_stat_summary_range_wrap {
- 459. - margin-top: -2px;
- 460. - }
- 461. - @-moz-document url-prefix() {
- 462. - .ads_moder_stat_summary_range_wrap {
- 463. - margin-top: -1px;
- 464. - }
- 465. - }
- 466. - .ads_moder_stat_summary_range_part {
- 467. - padding-left: 8px;
- 468. - }
- 469. - .ads_moder_stat_summary_range_label {
- 470. - padding-top: 5px;
- 471. - }
- 472. - @-moz-document url-prefix() {
- 473. - .ads_moder_stat_summary_range_label {
- 474. - padding-top: 4px;
- 475. - }
- 476. - }
- 477. - #ads_moder_stat_summary_range_link {
- 478. - opacity: 0.5;
- 479. - display: block;
- 480. - padding: 1px;
- 481. - }
- 482. - #ads_moder_stat_summary_range_link:hover {
- 483. - opacity: 1;
- 484. - }
- 485. - #ads_moder_stat_summary_range_link img {
- 486. - display: block;
- 487. - }
- 488. -
- 489. - #ads_moder_stat_summary_filter_properties_shower {
- 490. - display: block;
- 491. - padding: 3px 8px 8px 8px;
- 492. - }
- 493. -
- 494. - .ads_stat_summary_graph_link {
- 495. - height: 11px;
- 496. - overflow: visible;
- 497. - }
- 498. - .ads_stat_summary_graph_image {
- 499. - display: block;
- 500. - margin-top: -1px;
- 501. - }
- 502. -
- 503. - /* ----- */
- 504. - /* Other */
- 505. - /* ----- */
- 506. -
- 507. - .ads_navigation_link.current {
- 508. - font-weight: bold;
- 509. - }
- 510. -
- 511. - .ads_note {
- 512. - padding-bottom: 5px;
- 513. - }
- 514. - .ads_note_object {
- 515. - font-weight: bold;
- 516. - }
- 517. - .ads_note_info {
- 518. - color: #999999;
- 519. - font-size: 0.91em;
- 520. - }
- 521. - .ads_note_info_user,
- 522. - .ads_note_info_edit_link {
- 523. - color: #999999;
- 524. - }
- 525. - .ads_note_edit_link {
- 526. - display: block;
- 527. - }
- 528. - .ads_note_edit_wrap {
- 529. - margin-right: 8px;
- 530. - }
- 531. - #ads_note_edit {
- 532. - width: 100%;
- 533. - height: 100px;
- 534. - }
- 535. -
- 536. - /* --- */
- 537. - /* OLD */
- 538. - /* --- */
- 539. -
- 540. - #ads_unions_bonuses * {
- 541. - text-align: left;
- 542. - }
- 543. -
- 544. - #ads_unions_queue .ads_unions_list td,
- 545. - #ads_unions_queue .ads_unions_list th {
- 546. - text-align: left;
- 547. - }
- 548. -
- 549. - #ads_premoderation_stat .ads_unions_list th.column_moder *,
- 550. - #ads_premoderation_stat .ads_unions_list td.column_moder,
- 551. - #ads_premoderation_stat .ads_unions_list th.column_period *,
- 552. - #ads_premoderation_stat .ads_unions_list td.column_period {
- 553. - text-align: left;
- 554. - }
- 555. -
- 556. - /* Distribution chart */
- 557. - .ads_moder_chart_table_wrap {
- 558. - position: relative;
- 559. - }
- 560. - .ads_moder_chart_table {
- 561. - background-color: #F3F5F7;
- 562. - border: 0 none;
- 563. - margin-bottom: 10px;
- 564. - vertical-align: bottom;
- 565. - margin: 0 auto;
- 566. - }
- 567. - .ads_moder_chart_table td.ads_moder_total_chart_row {
- 568. - background-color: #FFFFFF;
- 569. - color:#45688E;
- 570. - border: 0 none;
- 571. - padding-top: 10px;
- 572. - padding-bottom: 30px;
- 573. - vertical-align: bottom;
- 574. - }
- 575. - .ads_moder_chart_column {
- 576. - background-color: #B0C1CF;
- 577. - vertical-align: bottom;
- 578. - cursor: pointer;
- 579. - }
- 580. - .ads_moder_chart_column.even {
- 581. - background-color: #C7D3DD;
- 582. - }
- 583. - .ads_moder_chart_table td {
- 584. - vertical-align: bottom;
- 585. - }
- 586. - .ads_moder_chart_table td.ads_moder_chart_under_num {
- 587. - background-color: #EAEEF2;
- 588. - height: 15px;
- 589. - padding-bottom: 3px;
- 590. - }
- 591. - .ads_moder_chart_table td.ads_moder_chart_under_num.even {
- 592. - background-color: #FFFFFF;
- 593. - }
- 594. - .ads_moder_chart_date {
- 595. - font-size: 9px;
- 596. - height: 10px;
- 597. - padding-top: 4px;
- 598. - text-align: center;
- 599. - }
- 600. - .ads_moder_chart_max_label {
- 601. - background-color: #FFFFFF;
- 602. - color: #000000;
- 603. - display: none;
- 604. - font-size: 9px;
- 605. - padding: 2px 4px;
- 606. - position: absolute;
- 607. - z-index: 100;
- 608. - }
- 609. - .ads_moder_chart_max_label_out {
- 610. - background-color: #2B587A;
- 611. - display: none;
- 612. - opacity: 0.2;
- 613. - position: absolute;
- 614. - z-index: 90;
- 615. - }
- 616. - .ads_moder_chart_max_label_out2 {
- 617. - background-color: #2B587A;
- 618. - display: none;
- 619. - opacity: 0.1;
- 620. - position: absolute;
- 621. - z-index: 90;
- 622. - }
- ------
- Файл - ads_moder.js (Старый размер - 25405 | Новый - 0):
- 0. - var AdsModer = {};
- 1. -
- 2. - AdsModer.init = function() {
- 3. - AdsModer.initDelayedImages();
- 4. - }
- 5. -
- 6. - AdsModer.initDelayedImages = function() {
- 7. - var imagesIndex;
- 8. - var indexStep = 500;
- 9. - var lastImage;
- 10. - var lastImageY;
- 11. -
- 12. - buildIndex();
- 13. - if (isEmpty(imagesIndex)) {
- 14. - return;
- 15. - }
- 16. -
- 17. - var scrolledNode = (browser.msie6 ? pageNode : window);
- 18. - var handler = checkImages.pbind(false);
- 19. - function deinit() {
- 20. - removeEvent(scrolledNode, 'scroll', handler);
- 21. - }
- 22. - cur.destroy.push(deinit);
- 23. - addEvent(scrolledNode, 'scroll', handler);
- 24. - handler();
- 25. -
- 26. - function buildIndex() {
- 27. - if (lastImage && lastImage.hasAttribute('src_') && lastImageY == getXY(lastImage)[1]) {
- 28. - return;
- 29. - }
- 30. -
- 31. - var imagesAll = geByTag('img');
- 32. - var image;
- 33. - var indexKey;
- 34. -
- 35. - imagesIndex = {};
- 36. -
- 37. - if (!imagesAll.length) {
- 38. - return;
- 39. - }
- 40. -
- 41. - for (var i = 0, image; image = imagesAll[i]; i++) {
- 42. - if (!image.hasAttribute('src_')) {
- 43. - continue;
- 44. - }
- 45. - indexKey = intval(getXY(image)[1] / indexStep);
- 46. - if (!(indexKey in imagesIndex)) {
- 47. - imagesIndex[indexKey] = [];
- 48. - }
- 49. - imagesIndex[indexKey].push(image);
- 50. - lastImage = image;
- 51. - }
- 52. -
- 53. - lastImageY = getXY(lastImage)[1];
- 54. - }
- 55. -
- 56. - function checkIndex() {
- 57. - buildIndex();
- 58. - if (isEmpty(imagesIndex)) {
- 59. - deinit();
- 60. - }
- 61. - }
- 62. -
- 63. - function checkImages(delayed) {
- 64. - var yTop = scrollGetY()
- 65. - var yBottom = yTop + lastWindowHeight;
- 66. - var indexTop = intval(yTop / indexStep);
- 67. - var indexBottom = intval(yBottom / indexStep);
- 68. - var image;
- 69. - for (var i = indexTop; i <= indexBottom; i++) {
- 70. - if (!(i in imagesIndex)) {
- 71. - continue;
- 72. - }
- 73. - for (var j = 0, len = imagesIndex[i].length; j < len; j++) {
- 74. - image = imagesIndex[i][j];
- 75. - image.src = image.getAttribute('src_');
- 76. - image.removeAttribute('src_')
- 77. - }
- 78. - delete imagesIndex[i];
- 79. - }
- 80. - checkIndex();
- 81. - setTimeout(checkIndex, 1000);
- 82. - }
- 83. - }
- 84. -
- 85. - AdsModer.showObjectInfo = function(objectType, objectId) {
- 86. - var ajaxParams = {};
- 87. - ajaxParams.object_type = objectType;
- 88. - ajaxParams.object_id = objectId;
- 89. -
- 90. - var showOptions = {params: {}};
- 91. -
- 92. - showBox('/adsmoder?act=object_info', ajaxParams, showOptions);
- 93. - }
- 94. -
- 95. - AdsModer.openFeaturesEditBox = function(unionId, hash, featuresInfo, featuresEditHtml) {
- 96. - var editBox = showFastBox({title: '�����������', width: 550}, featuresEditHtml);
- 97. - var saveFeaturesHandler = AdsModer.saveFeatures.pbind(unionId, hash, featuresInfo, editBox);
- 98. - editBox.removeButtons();
- 99. - editBox.addButton(getLang('box_cancel'), false, 'no');
- 100. - editBox.addButton('��������', saveFeaturesHandler, 'yes');
- 101. -
- 102. - for (var i in featuresInfo) {
- 103. - var featureInfo = featuresInfo[i];
- 104. - new Checkbox(ge('ads_moder_feature_' + featureInfo.key), {
- 105. - label: featureInfo.name,
- 106. - checked: intval(featureInfo.value),
- 107. - width: 500
- 108. - });
- 109. - }
- 110. - }
- 111. -
- 112. - AdsModer.saveFeatures = function(unionId, hash, featuresInfo, editBox) {
- 113. - if (!Ads.lock('saveFeatures', onLock, onUnlock)) {
- 114. - return;
- 115. - }
- 116. -
- 117. - var ajaxParams = {};
- 118. - ajaxParams.union_id = unionId;
- 119. - ajaxParams.hash = hash;
- 120. - ajaxParams.features = [];
- 121. - for (var i in featuresInfo) {
- 122. - var featureInfo = featuresInfo[i];
- 123. - ajaxParams.features.push(featureInfo.key + ':' + intval(ge('ads_moder_feature_' + featureInfo.key).value));
- 124. - }
- 125. - ajaxParams.features = ajaxParams.features.join(',');
- 126. -
- 127. - ajax.post('/adsmoder?act=a_edit_features', ajaxParams, {onDone: onComplete, onFail: onComplete});
- 128. -
- 129. - function onComplete(response) {
- 130. - Ads.unlock('saveFeatures');
- 131. - if (response && response.ok) {
- 132. - nav.reload();
- 133. - } else {
- 134. - showFastBox('������', '������');
- 135. - }
- 136. - return true;
- 137. - }
- 138. - function onLock() {
- 139. - editBox.showProgress();
- 140. - }
- 141. - function onUnlock() {
- 142. - editBox.hide();
- 143. - }
- 144. - }
- 145. -
- 146. - AdsModer.openNoteEditBox = function(ajaxParams, noteText, noteTextParams, boxTitle, editActionText, isEdit, isOtherUser) {
- 147. - function onBoxHide() {
- 148. - delete cur.noteEditBox;
- 149. - delete cur.noteEditAjaxParams;
- 150. - }
- 151. -
- 152. - cur.noteEditAjaxParams = ajaxParams;
- 153. -
- 154. - var boxHtml = '<div class="ads_note_edit_wrap"><div><textarea id="ads_note_edit" ' + noteTextParams + '>' + noteText + '</textarea></div></div>';
- 155. -
- 156. - cur.noteEditBox = showFastBox({title: boxTitle, width: 400, onHide: onBoxHide}, boxHtml);
- 157. - cur.noteEditBox.removeButtons();
- 158. - if (isOtherUser) {
- 159. - cur.noteEditBox.addButton(getLang('box_cancel'), false, 'yes');
- 160. - } else {
- 161. - cur.noteEditBox.addButton(getLang('box_cancel'), false, 'no');
- 162. - cur.noteEditBox.addButton(editActionText, AdsModer.saveNote.pbind(false), 'yes');
- 163. - }
- 164. - if (isEdit) {
- 165. - cur.noteEditBox.setControlsText('<a href="#" onclick="AdsModer.saveNote(true); return false;">�������</a>');
- 166. - }
- 167. - }
- 168. -
- 169. - AdsModer.saveNote = function(isDelete) {
- 170. - if (!Ads.lock('save_note', onLock, onUnlock)) {
- 171. - return;
- 172. - }
- 173. -
- 174. - var ajaxParams = {};
- 175. - ajaxParams = extend({}, ajaxParams, cur.noteEditAjaxParams);
- 176. - ajaxParams.note_text = (isDelete ? '' : ge('ads_note_edit').value);
- 177. - ajax.post('/adsmoder?act=a_edit_notes', ajaxParams, {onDone: onComplete, onFail: onComplete});
- 178. -
- 179. - function onComplete(response) {
- 180. - Ads.unlock('save_note');
- 181. - if (response && response.ok) {
- 182. - nav.reload();
- 183. - } else {
- 184. - showFastBox({title: '������', onHide: function() { nav.reload(); }}, '������');
- 185. - }
- 186. - return true;
- 187. - }
- 188. - function onLock() {
- 189. - cur.noteEditBox.showProgress();
- 190. - }
- 191. - function onUnlock() {
- 192. - cur.noteEditBox.hide();
- 193. - }
- 194. - }
- 195. -
- 196. - AdsModer.openCategoriesEditBox = function(requestKey, linkElem) {
- 197. - var editBox = showFastBox({title: '��������� �������� ����������', width: 440}, cur.categoriesEditBoxHtml);
- 198. - editBox.removeButtons();
- 199. - editBox.addButton(getLang('box_cancel'), false, 'no');
- 200. - editBox.addButton('��������', applyChanges, 'yes');
- 201. -
- 202. - var requestParams = cur.requestsParams[requestKey];
- 203. -
- 204. - var category1_id = requestParams.ui_category1_id;
- 205. - var category2_id = requestParams.ui_category2_id;
- 206. - var subcategory1_id = requestParams.ui_subcategory1_id;
- 207. - var subcategory2_id = requestParams.ui_subcategory2_id;
- 208. -
- 209. - var uiCategory1 = new Dropdown(ge('ads_moder_category1'), cur.categoriesData, {
- 210. - selectedItems: category1_id,
- 211. - width: 250,
- 212. - height: 400,
- 213. - onChange: onChangeCategory1
- 214. - });
- 215. - var uiCategory2 = new Dropdown(ge('ads_moder_category2'), cur.categoriesData, {
- 216. - selectedItems: category2_id,
- 217. - width: 250,
- 218. - height: 400,
- 219. - onChange: onChangeCategory2
- 220. - });
- 221. - var uiSubcategory1 = new Dropdown(ge('ads_moder_subcategory1'), [], {
- 222. - width: 250,
- 223. - height: 400,
- 224. - onChange: function(value) {
- 225. - subcategory1_id = intval(value);
- 226. - }
- 227. - });
- 228. - var uiSubcategory2 = new Dropdown(ge('ads_moder_subcategory2'), [], {
- 229. - width: 250,
- 230. - height: 400,
- 231. - onChange: function(value) {
- 232. - subcategory2_id = intval(value);
- 233. - }
- 234. - });
- 235. -
- 236. - onChangeCategory1(category1_id);
- 237. - onChangeCategory2(category2_id);
- 238. -
- 239. - var boxOptions = {};
- 240. - boxOptions.onClean = function() {
- 241. - uiCategory1.destroy();
- 242. - uiCategory2.destroy();
- 243. - uiSubcategory1.destroy();
- 244. - uiSubcategory2.destroy();
- 245. - };
- 246. - editBox.setOptions(boxOptions);
- 247. -
- 248. - function onChangeCategory1(value) {
- 249. - value = intval(value);
- 250. - if (value != category1_id) {
- 251. - subcategory1_id = 0;
- 252. - }
- 253. - category1_id = value;
- 254. - var data = cur.subcategoriesData[value] || [];
- 255. - var disabledText = (value ? getLang('ads_no_subcategories') : getLang('ads_first_select_category1'));
- 256. - uiSubcategory1.setOptions({disabledText: disabledText});
- 257. - uiSubcategory1.setData(data);
- 258. - if (subcategory1_id) {
- 259. - uiSubcategory1.val(subcategory1_id);
- 260. - } else {
- 261. - uiSubcategory1.clear();
- 262. - }
- 263. - uiSubcategory1.disable(data.length == 0);
- 264. - }
- 265. - function onChangeCategory2(value) {
- 266. - value = intval(value);
- 267. - if (value != category2_id) {
- 268. - subcategory2_id = 0;
- 269. - }
- 270. - category2_id = value;
- 271. - var data = cur.subcategoriesData[value] || [];
- 272. - var disabledText = (value ? getLang('ads_no_subcategories') : getLang('ads_first_select_category2'));
- 273. - uiSubcategory2.setOptions({disabledText: disabledText});
- 274. - uiSubcategory2.setData(data);
- 275. - if (subcategory2_id) {
- 276. - uiSubcategory2.val(subcategory2_id);
- 277. - } else {
- 278. - uiSubcategory2.clear();
- 279. - }
- 280. - uiSubcategory2.disable(data.length == 0);
- 281. - }
- 282. - function applyChanges() {
- 283. - if (!category1_id && !category2_id) {
- 284. - showFastBox('������', '�� ������ ��������.');
- 285. - return;
- 286. - }
- 287. -
- 288. - cur.requestsParams[requestKey].category1_id = (subcategory1_id || category1_id);
- 289. - cur.requestsParams[requestKey].category2_id = (subcategory2_id || category2_id);
- 290. - cur.requestsParams[requestKey].ui_category1_id = category1_id;
- 291. - cur.requestsParams[requestKey].ui_category2_id = category2_id;
- 292. - cur.requestsParams[requestKey].ui_subcategory1_id = subcategory1_id;
- 293. - cur.requestsParams[requestKey].ui_subcategory2_id = subcategory2_id;
- 294. - cur.requestsParams[requestKey].categories_changed = true;
- 295. -
- 296. - var category1Elem = geByClass1('ads_category1', linkElem);
- 297. - var category1ParentElem = geByClass1('ads_category1_parent', linkElem);
- 298. - if (subcategory1_id) {
- 299. - replaceClass(category1Elem, 'ads_category', 'ads_subcategory');
- 300. - category1Elem.innerHTML = uiSubcategory1.val_full()[1];
- 301. - category1ParentElem.innerHTML = ' (' + uiCategory1.val_full()[1] + ')';
- 302. - } else {
- 303. - replaceClass(category1Elem, 'ads_subcategory', 'ads_category');
- 304. - category1Elem.innerHTML = (category1_id ? uiCategory1.val_full()[1] : '');
- 305. - category1ParentElem.innerHTML = '';
- 306. - }
- 307. -
- 308. - var category2Elem = geByClass1('ads_category2', linkElem);
- 309. - var category2ParentElem = geByClass1('ads_category2_parent', linkElem);
- 310. - if (subcategory2_id) {
- 311. - replaceClass(category2Elem, 'ads_category', 'ads_subcategory');
- 312. - category2Elem.innerHTML = uiSubcategory2.val_full()[1];
- 313. - category2ParentElem.innerHTML = ' (' + uiCategory2.val_full()[1] + ')';
- 314. - } else {
- 315. - replaceClass(category2Elem, 'ads_subcategory', 'ads_category');
- 316. - category2Elem.innerHTML = (category2_id ? uiCategory2.val_full()[1] : '');
- 317. - category2ParentElem.innerHTML = '';
- 318. - }
- 319. -
- 320. - editBox.hide();
- 321. - }
- 322. - }
- 323. -
- 324. - AdsModer.premoderationProcessRequest = function(action, requestKey, requestKeyModer, onCompleteExternal) {
- 325. -
- 326. - var requestParams = cur.requestsParams[requestKey];
- 327. - var requestParamsModer = cur.requestsParams[requestKeyModer];
- 328. -
- 329. - if (!requestKey || !requestKeyModer || !requestParams || !requestParamsModer) {
- 330. - return;
- 331. - }
- 332. -
- 333. - var result = AdsModer.premoderationProcessRequestsMassCheck(action, requestKey);
- 334. - if (result) {
- 335. - return;
- 336. - }
- 337. -
- 338. - var moderComment = ge('moder_comment_' + requestKeyModer);
- 339. - var resultArea = ge('request_result_area_' + requestKey);
- 340. -
- 341. - var ajaxParams = {};
- 342. - ajaxParams.action = action;
- 343. - ajaxParams.request_id = requestParams.request_id;
- 344. - ajaxParams.ad_id = requestParams.ad_id;
- 345. - ajaxParams.hash = requestParams.hash;
- 346. - ajaxParams.checksum = requestParams.checksum_all;
- 347. -
- 348. - if (action === 'approve') {
- 349. - if (requestParamsModer.categories_changed) {
- 350. - ajaxParams.category1_id = requestParamsModer.category1_id;
- 351. - ajaxParams.category2_id = requestParamsModer.category2_id;
- 352. - } else {
- 353. - ajaxParams.category1_id = requestParams.category1_id;
- 354. - ajaxParams.category2_id = requestParams.category2_id;
- 355. - }
- 356. - }
- 357. -
- 358. - ajaxParams.moder_comment = moderComment.getValue();
- 359. - if (action === 'disapprove') {
- 360. - ajaxParams.moder_rules = cur.uiReasonsControls[requestKeyModer].getSelectedItems().join(',');
- 361. - }
- 362. -
- 363. - resultArea.innerHTML = '<img src="/images/upload.gif" />';
- 364. -
- 365. - ajax.post('/adsmoder?act=a_premoderation_process', ajaxParams, {onDone: onComplete, onFail: onComplete});
- 366. -
- 367. - function onComplete(response) {
- 368. - var responseText = ((response && response.text) ? response.text : '������!');
- 369. - resultArea.innerHTML = responseText;
- 370. - if (isFunction(onCompleteExternal)) {
- 371. - onCompleteExternal(response, requestKey, responseText);
- 372. - }
- 373. - return true;
- 374. - };
- 375. - }
- 376. -
- 377. - AdsModer.premoderationProcessRequestsMassCheck = function(action, requestKey) {
- 378. -
- 379. - var requestParams = cur.requestsParams[requestKey];
- 380. -
- 381. - var requestsKeys = [];
- 382. -
- 383. - if (action === 'approve') {
- 384. - if (requestParams.categories_changed) {
- 385. - if (cur.requestsChecksumsApproveWithoutCategories[requestParams.checksum_approve_without_categories].length < 5) {
- 386. - return false;
- 387. - }
- 388. - requestsKeys = cur.requestsChecksumsApproveWithoutCategories[requestParams.checksum_approve_without_categories];
- 389. - } else {
- 390. - if (cur.requestsChecksumsApproveWithCategories[requestParams.checksum_approve_with_categories].length < 5) {
- 391. - return false;
- 392. - }
- 393. - requestsKeys = cur.requestsChecksumsApproveWithCategories[requestParams.checksum_approve_with_categories];
- 394. - }
- 395. - } else if (action === 'disapprove') {
- 396. - if (cur.requestsChecksumsDisapprove[requestParams.checksum_disapprove].length < 5) {
- 397. - return false;
- 398. - }
- 399. - requestsKeys = cur.requestsChecksumsDisapprove[requestParams.checksum_disapprove];
- 400. - }
- 401. -
- 402. - var confirmTitle = ((action === 'approve') ? '�������� ���������' : '�������� ����������');
- 403. - var confirmText = '������� ���������� �� ������� ��������: '+requestsKeys.length;
- 404. - var processAllText = ((action === 'approve') ? '�������� ���' : '��������� ���');
- 405. - var processOneText = ((action === 'approve') ? '�������� ����' : '��������� ����');
- 406. -
- 407. - var box = showFastBox(confirmTitle, cur.massBoxHtml, processAllText, processAll, processOneText, processOne);
- 408. - geByClass1('ads_premoderation_mass_confirm_text', box.bodyNode).innerHTML = confirmText;
- 409. -
- 410. - return true;
- 411. -
- 412. - function processAll() {
- 413. - cleanChecksums();
- 414. - AdsModer.premoderationProcessRequestsMass(action, requestKey, requestsKeys, box);
- 415. - }
- 416. - function processOne() {
- 417. - cleanChecksums();
- 418. - box.hide();
- 419. - AdsModer.premoderationProcessRequest(action, requestKey, requestKey);
- 420. - }
- 421. - function cleanChecksums() {
- 422. - cur.requestsChecksumsApproveWithCategories[requestParams.checksum_approve_with_categories] = [];
- 423. - cur.requestsChecksumsApproveWithoutCategories[requestParams.checksum_approve_without_categories] = [];
- 424. - cur.requestsChecksumsDisapprove[requestParams.checksum_disapprove] = [];
- 425. - }
- 426. - }
- 427. -
- 428. - AdsModer.premoderationProcessRequestsMass = function(action, requestKeyModer, requestsKeys, box) {
- 429. - var requestParams = cur.requestsParams[requestKeyModer];
- 430. -
- 431. - var totalCount = requestsKeys.length;
- 432. - var completeCount = 0;
- 433. - var approvedCount = 0;
- 434. - var disapprovedCount = 0;
- 435. - var errorCount = 0;
- 436. - var responseInfos = [];
- 437. -
- 438. - box.removeButtons();
- 439. - box.addButton(getLang('box_close'), false, 'yes');
- 440. -
- 441. - var progressWrapElem = geByClass1('ads_premoderation_mass_progress_wrap2', box.bodyNode);
- 442. - var progressElem = geByClass1('ads_gradient_progress', box.bodyNode);
- 443. - var resultElem = geByClass1('ads_premoderation_mass_result', box.bodyNode);
- 444. - var resultTextElem = geByClass1('ads_premoderation_mass_result_text', box.bodyNode);
- 445. - var resultMoreElem = geByClass1('ads_premoderation_mass_result_more', box.bodyNode);
- 446. - drawProgress();
- 447. - show(progressWrapElem);
- 448. -
- 449. - for (var i = 0; requestKey = requestsKeys[i]; i++) {
- 450. - AdsModer.premoderationProcessRequest(action, requestKey, requestKeyModer, onComplete);
- 451. - }
- 452. -
- 453. - function onComplete(response, responseRequestKey, responseText) {
- 454. - var responseAdId = cur.requestsParams[responseRequestKey].ad_id;
- 455. - responseInfos.push('<a href="/ads?act=office&union_id='+responseAdId+'" target="_blank">'+responseAdId+' - '+responseText+'</a>');
- 456. -
- 457. - if (response && (response.approved || response.disapproved)) {
- 458. - if (response.approved) {
- 459. - approvedCount++;
- 460. - }
- 461. - if (response.disapproved) {
- 462. - disapprovedCount++;
- 463. - }
- 464. - } else {
- 465. - errorCount++;
- 466. - }
- 467. - completeCount++;
- 468. -
- 469. - drawProgress();
- 470. - if (completeCount == totalCount) {
- 471. - setTimeout(drawResults, 1000);
- 472. - }
- 473. - }
- 474. - function drawProgress() {
- 475. - var percent = intval(completeCount / totalCount * 100);
- 476. - setStyle(progressElem, {width: percent + '%'});
- 477. - }
- 478. - function drawResults() {
- 479. - hide(progressWrapElem);
- 480. -
- 481. - var resultText = '';
- 482. - if (approvedCount) {
- 483. - resultText += '��������: '+approvedCount+'<br>';
- 484. - }
- 485. - if (disapprovedCount) {
- 486. - resultText += '���������: '+disapprovedCount+'<br>';
- 487. - }
- 488. - resultText += '������: '+errorCount+'<br>';
- 489. -
- 490. - resultTextElem.innerHTML = resultText;
- 491. - resultMoreElem.innerHTML = responseInfos.join('<br>');
- 492. - show(resultElem);
- 493. - }
- 494. - }
- 495. -
- 496. - AdsModer.premoderationTakeUnion = function(unionId, hash) {
- 497. - var ajaxParams = {};
- 498. - ajaxParams.hash = hash;
- 499. - ajaxParams.union_id = unionId;
- 500. - ajaxParams.action = 'take_union';
- 501. - ajax.post('/adsmoder?act=a_premoderation_manage_work', ajaxParams, {onDone: onComplete, onFail: onComplete});
- 502. -
- 503. - function onComplete(response) {
- 504. - if (response && response.ok) {
- 505. - if (response.redirect) {
- 506. - nav.go(response.redirect);
- 507. - }
- 508. - } else {
- 509. - var message = ((response && response.error) ? response.error : '������');
- 510. - showFastBox({title: '������', onHide: function() { nav.reload(); }}, message);
- 511. - }
- 512. - return true;
- 513. - }
- 514. - }
- 515. -
- 516. - AdsModer.premoderationTakeBackUnion = function(unionId, hash) {
- 517. - var ajaxParams = {};
- 518. - ajaxParams.hash = hash;
- 519. - ajaxParams.union_id = unionId;
- 520. - ajaxParams.action = 'take_back_union';
- 521. - ajax.post('/adsmoder?act=a_premoderation_manage_work', ajaxParams, {onDone: onComplete, onFail: onComplete});
- 522. -
- 523. - function onComplete(response) {
- 524. - if (response && response.ok) {
- 525. - nav.reload();
- 526. - } else {
- 527. - var message = ((response && response.error) ? response.error : '������');
- 528. - showFastBox({title: '������', onHide: function() { nav.reload(); }}, message);
- 529. - }
- 530. - return true;
- 531. - }
- 532. - }
- 533. -
- 534. - AdsModer.premoderationStopWork = function(hash) {
- 535. - var ajaxParams = {};
- 536. - ajaxParams.hash = hash;
- 537. - ajaxParams.action = 'stop_work';
- 538. - ajax.post('/adsmoder?act=a_premoderation_manage_work', ajaxParams, {onDone: onComplete, onFail: onComplete});
- 539. -
- 540. - function onComplete(response) {
- 541. - if (response && response.ok) {
- 542. - nav.reload();
- 543. - } else {
- 544. - var message = ((response && response.error) ? response.error : '������');
- 545. - showFastBox({title: '������', onHide: function() { nav.reload(); }}, message);
- 546. - }
- 547. - return true;
- 548. - }
- 549. - }
- 550. -
- 551. - AdsModer.premoderationFixRequest = function(wrapElemId, requestId, action, hash) {
- 552. - if (!Ads.lock(wrapElemId, onLock, onUnlock)) {
- 553. - return;
- 554. - }
- 555. -
- 556. - var ajaxParams = {}
- 557. - ajaxParams.request_id = requestId;
- 558. - ajaxParams.action = action;
- 559. - ajaxParams.hash = hash;
- 560. -
- 561. - ajax.post('/adsmoder?act=premoderation_fix_request', ajaxParams, {onDone: onComplete, onFail: onComplete});
- 562. -
- 563. - function onComplete(response) {
- 564. - Ads.unlock(wrapElemId);
- 565. - if (response && response.text_new) {
- 566. - var wrapElem = ge(wrapElemId);
- 567. - if (wrapElem) {
- 568. - wrapElem.parentNode.replaceChild(se(response.text_new), wrapElem);
- 569. - }
- 570. - }
- 571. - return true;
- 572. - }
- 573. - function onLock() {
- 574. - show(geByTag1('img', ge(wrapElemId)));
- 575. - }
- 576. - function onUnlock() {
- 577. - var wrapElem = ge(wrapElemId);
- 578. - if (wrapElem) {
- 579. - hide(geByTag1('img', wrapElem));
- 580. - }
- 581. - }
- 582. - }
- 583. -
- 584. - AdsModer.switchOfficeBlock = function(actionLocation, confirmTitle, confirmText, actionText) {
- 585. - function switchBlocked() {
- 586. - Ads.simpleAjax(actionLocation);
- 587. - }
- 588. - showFastBox(confirmTitle, confirmText, actionText, switchBlocked, getLang('box_cancel'));
- 589. - }
- 590. -
- 591. - AdsModer.openCancelClicksBox = function(ajaxParams) {
- 592. - var showOptions = {params: {}};
- 593. - showBox('/adsweb?act=log_cancel_box', ajaxParams, showOptions);
- 594. - }
- 595. -
- 596. - AdsModer.initCancelClicksBox = function(box, ajaxParams) {
- 597. - var handler = AdsModer.cancelClicks.pbind(box, ajaxParams);
- 598. - box.removeButtons();
- 599. - box.addButton(getLang('box_cancel'), false, 'no');
- 600. - box.addButton('�������� �����', handler, 'yes');
- 601. - }
- 602. -
- 603. - AdsModer.cancelClicks = function(box, ajaxParams) {
- 604. - if (!Ads.lock('cancelClicks', onLock, onUnlock)) {
- 605. - return;
- 606. - }
- 607. -
- 608. - ajax.post('/adsweb?act=log_cancel', ajaxParams, {onDone: onComplete, onFail: onComplete});
- 609. -
- 610. - function onComplete(response) {
- 611. - Ads.unlock('cancelClicks');
- 612. - if (response && response.ok) {
- 613. - nav.reload();
- 614. - } else {
- 615. - showFastBox('������', '������');
- 616. - }
- 617. - return true;
- 618. - }
- 619. - function onLock() {
- 620. - box.showProgress();
- 621. - }
- 622. - function onUnlock() {
- 623. - box.hide();
- 624. - }
- 625. - }
- 626. -
- 627. - AdsModer.openClickfraudersPrepareBanBox = function(usersIds, day) {
- 628. - var ajaxParams = {};
- 629. - ajaxParams.users_ids = usersIds;
- 630. - ajaxParams.day = day;
- 631. -
- 632. - var showOptions = {params: {}};
- 633. -
- 634. - showBox('/adsweb?act=clickfrauders_prepare_ban_box', ajaxParams, showOptions);
- 635. - }
- 636. -
- 637. - AdsModer.initClickfraudersPrepareBanBox = function(box, hash, usersIds, day) {
- 638. - var prepareBanHandler = AdsModer.clickfraudersPrepareBan.pbind(box, hash, usersIds, day);
- 639. - box.removeButtons();
- 640. - box.addButton(getLang('box_cancel'), false, 'no');
- 641. - box.addButton('��������', prepareBanHandler, 'yes');
- 642. - }
- 643. -
- 644. - AdsModer.clickfraudersPrepareBan = function(box, hash, usersIds, day) {
- 645. - if (!Ads.lock('clickfraudersPrepareBan', onLock, onUnlock)) {
- 646. - return;
- 647. - }
- 648. -
- 649. - var ajaxParams = {};
- 650. - ajaxParams.hash = hash;
- 651. - ajaxParams.users_ids = usersIds;
- 652. - ajaxParams.day = day;
- 653. -
- 654. - ajax.post('/adsweb?act=clickfrauders_prepare_ban', ajaxParams, {onDone: onComplete, onFail: onComplete});
- 655. -
- 656. - function onComplete(response) {
- 657. - Ads.unlock('clickfraudersPrepareBan');
- 658. - if (response && response.message) {
- 659. - showFastBox('��', response.message);
- 660. - } else {
- 661. - showFastBox('������', '������');
- 662. - }
- 663. - return true;
- 664. - }
- 665. - function onLock() {
- 666. - box.showProgress();
- 667. - }
- 668. - function onUnlock() {
- 669. - box.hide();
- 670. - }
- 671. - }
- 672. -
- 673. - AdsModer.historyGet = function(elem, notNavigationParam) {
- 674. - while (elem && elem.nodeName.toLowerCase() !== 'form') {
- 675. - elem = elem.parentNode;
- 676. - }
- 677. - if (!elem) {
- 678. - return;
- 679. - }
- 680. - var values = serializeForm(elem);
- 681. - var params = values.other_params;
- 682. - delete values.other_params;
- 683. - for (var i in values) {
- 684. - if (values[i]) {
- 685. - params = '&' + i + '=' + values[i] + params;
- 686. - }
- 687. - }
- 688. - nav.go('/adsmoder?act=history' + params);
- 689. - }
- 690. -
- 691. - AdsModer.historyToggleFilters = function() {
- 692. - var filtersContainerElem = ge('ads_moder_history');
- 693. - var filtersElems = geByClass('ads_navigation_link', filtersContainerElem);
- 694. - for (var i = 0; elem = filtersElems[i]; i++) {
- 695. - if (hasClass(elem, 'current')) {
- 696. - continue
- 697. - }
- 698. - elem = elem.parentNode;
- 699. - if (elem.nodeName.toLowerCase() !== 'span') {
- 700. - continue
- 701. - }
- 702. - toggleClass(elem, 'unshown');
- 703. - }
- 704. - }
- 705. -
- 706. - AdsModer.statSummaryInit = function(periodType, fromYear, fromMonth, fromDay, toYear, toMonth, toDay) {
- 707. - var datePickerOptionsFrom = {
- 708. - mode: (periodType === 'month') ? 'm' : 'd',
- 709. - year: fromYear,
- 710. - month: fromMonth,
- 711. - day: fromDay,
- 712. - width: 130,
- 713. - pastActive: true,
- 714. - onUpdate: function(date, mode) {
- 715. - fromYear = date.y;
- 716. - fromMonth = date.m;
- 717. - fromDay = date.d;
- 718. - updateLink();
- 719. - }
- 720. - };
- 721. - var datePickerOptionsTo = {
- 722. - mode: (periodType === 'month') ? 'm' : 'd',
- 723. - year: toYear,
- 724. - month: toMonth,
- 725. - day: toDay,
- 726. - width: 130,
- 727. - pastActive: true,
- 728. - onUpdate: function(date, mode) {
- 729. - toYear = date.y;
- 730. - toMonth = date.m;
- 731. - toDay = date.d;
- 732. - updateLink();
- 733. - }
- 734. - };
- 735. - new Datepicker(ge('ads_moder_stat_summary_from'), datePickerOptionsFrom);
- 736. - new Datepicker(ge('ads_moder_stat_summary_to'), datePickerOptionsTo);
- 737. -
- 738. - function updateLink() {
- 739. - var fromPeriod = fromYear * 100 + fromMonth;
- 740. - var toPeriod = toYear * 100 + toMonth;
- 741. - if (periodType !== 'month') {
- 742. - fromPeriod = fromPeriod * 100 + fromDay;
- 743. - toPeriod = toPeriod * 100 + toDay;
- 744. - }
- 745. - var linkElem = ge('ads_moder_stat_summary_range_link');
- 746. - linkElem.href = linkElem.href.replace(/&period=\d+-\d+/, '&period=' + fromPeriod + '-' + toPeriod);
- 747. - linkElem.style.opacity = 1;
- 748. - }
- 749. - }
- 750. -
- 751. - AdsModer.statSummaryShowAllProperties = function() {
- 752. - var propertiesElem = ge('ads_moder_stat_summary_filter_properties');
- 753. - var elems = geByClass('ads_moder_stat_summary_filter_property', propertiesElem);
- 754. - each(elems, show);
- 755. - hide('ads_moder_stat_summary_filter_properties_shower');
- 756. - }
- 757. -
- 758. - AdsModer.statSummaryDistrShowCountLabel = function(id, i, val) {
- 759. - var contXy = getXY(ge(id+'_stats_graph_wrap'));
- 760. - var colXy = getXY(ge(id+'_distr_col_'+i));
- 761. -
- 762. - setStyle(ge(id+'_max_label'), {
- 763. - left: colXy[0] - contXy[0] + 14,
- 764. - top: colXy[1] - contXy[1] - 11
- 765. - });
- 766. - ge(id+'_max_label').innerHTML = val;
- 767. - show(id+'_max_label');
- 768. - setStyle(ge(id+'_max_label_out'), {
- 769. - width: ge(id+'_max_label').offsetWidth + 2,
- 770. - height: ge(id+'_max_label').offsetHeight + 2,
- 771. - left: colXy[0] - contXy[0] + 13,
- 772. - top: colXy[1] - contXy[1] - 12
- 773. - });
- 774. - show(id+'_max_label_out');
- 775. - setStyle(ge(id+'_max_label_out2'), {
- 776. - width: ge(id+'_max_label').offsetWidth + 4,
- 777. - height: ge(id+'_max_label').offsetHeight + 4,
- 778. - left: colXy[0] - contXy[0] + 12,
- 779. - top: colXy[1] - contXy[1] - 13
- 780. - });
- 781. - show(id+'_max_label_out2');
- 782. - }
- 783. -
- 784. - AdsModer.statSummaryDistrHideCountLabel = function(id) {
- 785. - hide(id+'_max_label');
- 786. - hide(id+'_max_label_out');
- 787. - hide(id+'_max_label_out2');
- 788. - }
- 789. -
- 790. - AdsModer.statSummaryShowVotesBox = function(periodType, period) {
- 791. - var ajaxParams = {};
- 792. - ajaxParams.period_type = periodType;
- 793. - ajaxParams.period = period;
- 794. -
- 795. - var showOptions = {params: {}};
- 796. -
- 797. - showBox('/adsmoder?act=stat_summary_votes', ajaxParams, showOptions);
- 798. - }
- 799. -
- 800. - try{stManager.done('ads_moder.js');}catch(e){}
- ------
Advertisement
Add Comment
Please, Sign In to add comment