-5 Removals
+7 Additions

Created by:phpboost

1 <script> 1 <script>
2 <!-- 2 <!--
3 function ChangeMonth(year, month) 3 function ChangeMonth(year, month)
4 { 4 {
5 jQuery.ajax({ 5 jQuery.ajax({
6 url: ${escapejs(U_AJAX_CALENDAR)} + year + '/' + month + '/' + {MINI_MODULE}, 6 url: ${escapejs(U_AJAX_CALENDAR)} + year + '/' + month + '/' + {MINI_MODULE},
7 success: function(returnData){ 7 success: function(returnData){
8 jQuery('#calendar').html(returnData); 8 jQuery('#calendar').html(returnData);
9 } 9 }
10 }); 10 });
11 11
12 # IF NOT C_MINI_MODULE # 12 # IF NOT C_MINI_MODULE #
13 jQuery.ajax({ 13 jQuery.ajax({
14 url: ${escapejs(U_AJAX_EVENTS)} + year + '/' + month, 14 url: ${escapejs(U_AJAX_EVENTS)} + year + '/' + month,
15 success: function(returnData){ 15 success: function(returnData){
16 jQuery('#events').html(returnData); 16 jQuery('#events').html(returnData);
17 } 17 }
18 }); 18 });
19 # ENDIF # 19 # ENDIF #
20 } 20 }
21 --> 21 -->
22 </script> 22 </script>
23 23
24 <div id="date_select_form" class="center"> 24 <div id="date_select_form" class="center">
25 <form method="post" class="fieldset-content"> 25 <form method="post" class="fieldset-content">
26 <div class="horizontal-fieldset" id="CalendarAjaxCalendarController_choose-date"> 26 <div class="horizontal-fieldset" id="CalendarAjaxCalendarController_choose-date">
27 <div id="CalendarAjaxCalendarController_month_field" class="form-element"> 27 <div id="CalendarAjaxCalendarController_month_field" class="form-element">
28 <div class="form-field"> 28 <div class="form-field">
29 <label for="CalendarAjaxCalendarController_month" class="sr-only">{@month}</label>
29 <select name="CalendarAjaxCalendarController_month" id="CalendarAjaxCalendarController_month" onchange="ChangeMonth(jQuery('#CalendarAjaxCalendarController_year').val(), jQuery('#CalendarAjaxCalendarController_month').val());"> 30 <select name="CalendarAjaxCalendarController_month" id="CalendarAjaxCalendarController_month" onchange="ChangeMonth(jQuery('#CalendarAjaxCalendarController_year').val(), jQuery('#CalendarAjaxCalendarController_month').val());">
30 # START months # 31 # START months #
31 <option value="{months.VALUE}"# IF months.SELECTED # selected="selected"# ENDIF #>{months.NAME}</option> 32 <option value="{months.VALUE}"# IF months.SELECTED # selected="selected"# ENDIF #>{months.NAME}</option>
32 # END months # 33 # END months #
33 </select> 34 </select>
34 </div> 35 </div>
35 </div> 36 </div>
36 <div id="CalendarAjaxCalendarController_year_field" class="form-element"> 37 <div id="CalendarAjaxCalendarController_year_field" class="form-element">
37 <div class="form-field"> 38 <div class="form-field">
39 <label for="CalendarAjaxCalendarController_year" class="sr-only">{@year}</label>
38 <select name="CalendarAjaxCalendarController_year" id="CalendarAjaxCalendarController_year" onchange="ChangeMonth(jQuery('#CalendarAjaxCalendarController_year').val(), jQuery('#CalendarAjaxCalendarController_month').val());"> 40 <select name="CalendarAjaxCalendarController_year" id="CalendarAjaxCalendarController_year" onchange="ChangeMonth(jQuery('#CalendarAjaxCalendarController_year').val(), jQuery('#CalendarAjaxCalendarController_month').val());">
39 # START years # 41 # START years #
40 <option value="{years.VALUE}"# IF years.SELECTED # selected="selected"# ENDIF #>{years.NAME}</option> 42 <option value="{years.VALUE}"# IF years.SELECTED # selected="selected"# ENDIF #>{years.NAME}</option>
41 # END years # 43 # END years #
42 </select> 44 </select>
43 </div> 45 </div>
44 </div> 46 </div>
45 </div> 47 </div>
46 </form> 48 </form>
47 </div> 49 </div>
48 50
49 <div class="calendar-container"> 51 <div class="calendar-container">
50 <div class="calendar-top-container"> 52 <div class="calendar-top-container">
51 <div class="calendar-top-l"> 53 <div class="calendar-top-l">
52 <a onclick="ChangeMonth(${escapejs(PREVIOUS_YEAR)}, ${escapejs(PREVIOUS_MONTH)});" title="{PREVIOUS_MONTH_TITLE}"><i class="fa fa-angle-double-left"></i></a> 54 <a onclick="ChangeMonth(${escapejs(PREVIOUS_YEAR)}, ${escapejs(PREVIOUS_MONTH)});" aria-label="{PREVIOUS_MONTH_TITLE}"><i class="fa fa-angle-double-left" aria-hidden="true" title="{PREVIOUS_MONTH_TITLE}"></i></a>
53 </div> 55 </div>
54 <div class="calendar-top-r"> 56 <div class="calendar-top-r">
55 <a onclick="ChangeMonth(${escapejs(NEXT_YEAR)}, ${escapejs(NEXT_MONTH)});" title="{NEXT_MONTH_TITLE}"><i class="fa fa-angle-double-right"></i></a> 57 <a onclick="ChangeMonth(${escapejs(NEXT_YEAR)}, ${escapejs(NEXT_MONTH)});" aria-label="{NEXT_MONTH_TITLE}"><i class="fa fa-angle-double-right" aria-hidden="true" title="{NEXT_MONTH_TITLE}"></i></a>
56 </div> 58 </div>
57 <div class="calendar-top-content"> 59 <div class="calendar-top-content">
58 <h5>{DATE}</h5> 60 <h5>{DATE}</h5>
59 </div> 61 </div>
60 </div> 62 </div>
61 63
62 <div class="calendar-content"> 64 <div class="calendar-content">
63 <table class="# IF C_MINI_MODULE #mini # ENDIF #calendar-table"> 65 <table class="# IF C_MINI_MODULE #mini # ENDIF #calendar-table">
64 <thead> 66 <thead>
65 <tr> 67 <tr>
66 <th></th> 68 <th class="sr-only">{@week_mini}</th>
67 <th class="text-strong">{@monday_mini}</th> 69 <th class="text-strong">{@monday_mini}</th>
68 <th class="text-strong">{@tuesday_mini}</th> 70 <th class="text-strong">{@tuesday_mini}</th>
69 <th class="text-strong">{@wednesday_mini}</th> 71 <th class="text-strong">{@wednesday_mini}</th>
70 <th class="text-strong">{@thursday_mini}</th> 72 <th class="text-strong">{@thursday_mini}</th>
71 <th class="text-strong">{@friday_mini}</th> 73 <th class="text-strong">{@friday_mini}</th>
72 <th class="text-strong">{@saturday_mini}</th> 74 <th class="text-strong">{@saturday_mini}</th>
73 <th class="text-strong">{@sunday_mini}</th> 75 <th class="text-strong">{@sunday_mini}</th>
74 </tr> 76 </tr>
75 </thead> 77 </thead>
76 <tbody> 78 <tbody>
77 <tr> 79 <tr>
78 # START day # 80 # START day #
79 <td class="{day.CLASS}"# IF day.C_COLOR # style="background-color:{day.COLOR}"# ENDIF #> 81 <td class="{day.CLASS}"# IF day.C_COLOR # style="background-color:{day.COLOR}"# ENDIF #>
80 # IF day.C_MONTH_DAY #<a title="{day.TITLE}" href="{day.U_DAY_EVENTS}">{day.DAY}</a># ENDIF # 82 # IF day.C_MONTH_DAY #<a title="{day.TITLE}" href="{day.U_DAY_EVENTS}">{day.DAY}</a># ENDIF #
81 # IF day.C_WEEK_LABEL #{day.DAY}# ENDIF # 83 # IF day.C_WEEK_LABEL #{day.DAY}# ENDIF #
82 </td> 84 </td>
83 # IF day.CHANGE_LINE # 85 # IF day.CHANGE_LINE #
84 </tr> 86 </tr>
85 <tr> 87 <tr>
86 # ENDIF # 88 # ENDIF #
87 # END day # 89 # END day #
88 </tr> 90 </tr>
89 # IF C_DISPLAY_LEGEND # 91 # IF C_DISPLAY_LEGEND #
90 <tr> 92 <tr>
91 <td colspan="8" class="legend-line"># INCLUDE LEGEND #</td> 93 <td colspan="8" class="legend-line"># INCLUDE LEGEND #</td>
92 </tr> 94 </tr>
93 # ENDIF # 95 # ENDIF #
94 </tbody> 96 </tbody>
95 </table> 97 </table>
96 </div> 98 </div>
97 99
98 </div> 100 </div>
Editor
Original Text
Changed Text
Recommended videos