- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
if ($now_month == 1) {
array_push($months, 11);
array_push($months, 12);
array_push($months, 1);
array_push($years, ($now_year - 1));
array_push($years, ($now_year - 1));
array_push($years, $now_year);
}
if ($now_month == 2) {
array_push($months, 12);
array_push($months, 1);
array_push($months, 2);
array_push($years, ($now_year - 1));
array_push($years, $now_year);
array_push($years, $now_year);
}
if ($now_month == 3) {
array_push($months, 1);
array_push($months, 2);
array_push($months, 3);
array_push($years, $now_year);
array_push($years, $now_year);
array_push($years, $now_year);
}
if ($now_month == 4) {
array_push($months, 2);
array_push($months, 3);
array_push($months, 4);
array_push($years, $now_year);
array_push($years, $now_year);
array_push($years, $now_year);
}
if ($now_month == 5) {
array_push($months, 3);
array_push($months, 4);
array_push($months, 5);
array_push($years, $now_year);
array_push($years, $now_year);
array_push($years, $now_year);
}
if ($now_month == 6) {
array_push($months, 4);
array_push($months, 5);
array_push($months, 6);
array_push($years, $now_year);
array_push($years, $now_year);
array_push($years, $now_year);
}
if ($now_month == 7) {
array_push($months, 5);
array_push($months, 6);
array_push($months, 7);
array_push($years, $now_year);
array_push($years, $now_year);
array_push($years, $now_year);
}
if ($now_month == 8) {
array_push($months, 6);
array_push($months, 7);
array_push($months, 8);
array_push($years, $now_year);
array_push($years, $now_year);
array_push($years, $now_year);
}
if ($now_month == 9) {
array_push($months, 7);
array_push($months, 8);
array_push($months, 9);
array_push($years, $now_year);
array_push($years, $now_year);
array_push($years, $now_year);
}
if ($now_month == 10) {
array_push($months, 8);
array_push($months, 9);
array_push($months, 10);
array_push($years, $now_year);
array_push($years, $now_year);
array_push($years, $now_year);
}
if ($now_month == 11) {
array_push($months, 9);
array_push($months, 10);
array_push($months, 11);
array_push($years, $now_year);
array_push($years, $now_year);
array_push($years, $now_year);
}
if ($now_month == 12) {
array_push($months, 10);
array_push($months, 11);
array_push($months, 12);
array_push($years, $now_year);
array_push($years, $now_year);
array_push($years, $now_year);
}
Я попросил показывать результаты за последние три месяца. Он так и сделал.
heyzea1 14.12.2014 17:02 # +1