function calendar(miesiac) {
//var calendar=array();
calendar[2]='
| Nd | Pon | Wt | Śr | Czw | Pt | Sob | | | | | 1
| 2
| 3
| 4
|
5
| 6
| 7
| 8
| 9
| 10
| 11
|
12
| 13
| 14
| 15
| 16
| 17
| 18
|
19
| 20
| 21
| 22
| 23
| 24
| 25
|
26
| 27
| 28
| 29
| | | |
';
calendar[3]='
| Nd | Pon | Wt | Śr | Czw | Pt | Sob | | | | | | 1
| 2
| 3
|
4
| 5
| 6
| 7
| 8
| 9
| 10
|
11
| 12
| 13
| 14
| 15
| 16
| 17
|
18
| 19
| 20
| 21
| 22
| 23
| 24
|
25
| 26
| 27
| 28
| 29
| 30
| 31
|
';
calendar[4]='
| Nd | Pon | Wt | Śr | Czw | Pt | Sob | 1
| 2
| 3
| 4
| 5
| 6
| 7
|
8
| 9
| 10
| 11
| 12
| 13
| 14
|
15
| 16
| 17
| 18
| 19
| 20
| 21
|
22
| 23
| 24
| 25
| 26
| 27
| 28
|
29
| 30
| | | | | |
';
calendar[5]='
| Nd | Pon | Wt | Śr | Czw | Pt | Sob | | | | 1
| 2
| 3
| 4
| 5
|
6
| 7
| 8
| 9
| 10
| 11
| 12
|
13
| 14
| 15
| 16
| 17
| 18
| 19
|
20
| 21
| 22
| 23
| 24
| 25
| 26
|
27
| 28
| 29
| 30
| 31
| | |
';
(document.getElementById('kalendarz')).innerHTML=calendar[miesiac];
}
function events(date) {
new Ajax.Request('index.php?module=events&action=show_list', {
parameters: { date: date },
onLoading: function(transport) {
$('preloader').show();
$('events_container').hide();
},
onSuccess: function(transport) {
$('preloader').hide();
$('events_container').show();
$('events_container').innerHTML=transport.responseText;
}
});
}
function event_loading() {
}
function event_complete() {
}