1 <!-- autoriser=webmestre -->
2 <!-- refus=<:cfg:refus_configuration_webmestre:> -->
3 <!-- depot=metapack -->
4 <!-- nom=fullcalendar -->
6 [
<p class=
"reponse_formulaire reponse_formulaire_ok">(#ENV*{message_ok})
</p>]
7 [
<p class=
"reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})
</p>]
9 <style type='text/css'
>
13 <form name=
"formulaire_config_vitorry" method=
"post" action=
"#SELF">
15 #ACTION_FORMULAIRE{#SELF}
17 <div class=
"formulaire_spip formulaire_configurer">
18 <div class=
"cadre_padding">
19 <p><a name=
"CFG_options"><h1><:fullcalendar:general:></h1></a></p>
22 <label for=
"_ir_defaultView"><:fullcalendar:view_default:></label>
23 <select name=
"defaultView" id=
"_ir_defaultView" style=
"width:150px">
24 <option value=
"month" [(#ENV{defaultView}|=={#VAL{'month'}}|?{
selected=
"selected",''})]
><:fullcalendar:month:></option>
25 <option value=
"basicWeek" [(#ENV{defaultView}|=={#VAL{'basicWeek'}}|?{
selected=
"selected",''})]
><:fullcalendar:weeks:></option>
26 <option value=
"agendaWeek" [(#ENV{defaultView}|=={#VAL{'agendaWeek'}}|?{
selected=
"selected",''})]
><:fullcalendar:weeks:> & <:fullcalendar:time:></option>
27 <option value=
"basicDay" [(#ENV{defaultView}|=={#VAL{'basicDay'}}|?{
selected=
"selected",''})]
><:fullcalendar:days:></option>
28 <option value=
"agendaDay" [(#ENV{defaultView}|=={#VAL{'agendaDay'}}|?{
selected=
"selected",''})]
><:fullcalendar:days:> & <:fullcalendar:time:></option>
29 </select> <a href=
"http://arshaw.com/fullcalendar/docs/views/Available_Views/" target=
"_blank"><:fullcalendar:help:></a>
32 <label for=
"_ir_theme"><:fullcalendar:use_theme:> :
</label>
33 <select name=
"useTheme" id=
"_ir_theme" style=
"width:80px">
34 <option value=
"true" [(#ENV{useTheme}|=={#VAL{'true'}}|?{
selected=
"selected",''})]
><:fullcalendar:oui:></option>
35 <option value=
"false" [(#ENV{useTheme}|=={#VAL{'false'}}|?{
selected=
"selected",''})]
><:fullcalendar:non:></option>
36 </select> <a href=
"http://arshaw.com/fullcalendar/docs/display/theme/" target=
"_blank"><:fullcalendar:help:></a>
39 <label for=
"_ir_aspectRatio"><:fullcalendar:aspect_ratio:> :
</label>
40 <input type=
"text" name=
"aspectRatio" class=
"type_txt" value=
"#ENV{aspectRatio, '1.35'}" id=
"_ir_aspectRatio" style=
"width:20%" />
41 <a href=
"http://arshaw.com/fullcalendar/docs/display/aspectRatio/" target=
"_blank"><:fullcalendar:help:></a>
44 <label for=
"_ir_weekends"><:fullcalendar:show_weekends:> :
</label>
45 <select name=
"weekends" id=
"_ir_weekends" style=
"width:80px">
46 <option value=
"true" [(#ENV{weekends}|=={#VAL{'true'}}|?{
selected=
"selected",''})]
><:fullcalendar:oui:></option>
47 <option value=
"false" [(#ENV{weekends}|=={#VAL{'false'}}|?{
selected=
"selected",''})]
><:fullcalendar:non:></option>
48 </select> <a href=
"http://arshaw.com/fullcalendar/docs/display/weekends/" target=
"_blank"><:fullcalendar:help:></a>
51 <label for=
"_ir_firstDay"><:fullcalendar:week_begin:> :
</label>
52 <select name=
"firstDay" id=
"_ir_firstDay" style=
"width:100px">
53 <option value=
"1" [(#ENV{firstDay}|=={#VAL{'
1'}}|?{
selected=
"selected",''})]
>Lundi
</option>
54 <option value=
"2" [(#ENV{firstDay}|=={#VAL{'
2'}}|?{
selected=
"selected",''})]
>Mardi
</option>
55 <option value=
"3" [(#ENV{firstDay}|=={#VAL{'
3'}}|?{
selected=
"selected",''})]
>Mercredi
</option>
56 <option value=
"4" [(#ENV{firstDay}|=={#VAL{'
4'}}|?{
selected=
"selected",''})]
>Jeudi
</option>
57 <option value=
"5" [(#ENV{firstDay}|=={#VAL{'
5'}}|?{
selected=
"selected",''})]
>Vendredi
</option>
58 <option value=
"6" [(#ENV{firstDay}|=={#VAL{'
6'}}|?{
selected=
"selected",''})]
>Samedi
</option>
59 <option value=
"7" [(#ENV{firstDay}|=={#VAL{'
7'}}|?{
selected=
"selected",''})]
>Dimanche
</option>
65 <div class=
"formulaire_spip formulaire_configurer">
66 <div class=
"cadre_padding">
67 <p><a name=
"CFG_header"><h1><:fullcalendar:header:></h1></a></p>
69 <div class=
"formulaire_spip" style=
"width:47%;float:right">
70 <div class=
"cadre_padding">
71 <p><b>Options :
</b> <a href=
"http://arshaw.com/fullcalendar/docs/display/header/" target=
"_blank"><:fullcalendar:help:></a></p>
73 <p><b>title
</b> :
<:fullcalendar:title:></p>
74 <p><b>prev, next
</b> :
<:fullcalendar:prevnext:></p>
75 <p><b>prevYear
</b> :
<:fullcalendar:year_prev:></p>
76 <p><b>nextYear
</b> :
<:fullcalendar:year_next:></p>
77 <p><b>today
</b> :
<:fullcalendar:today:></p>
78 <p><b>month
</b> :
<:fullcalendar:view_month:></p>
79 <p><b>agendaWeek
</b> :
<:fullcalendar:view_week:></p>
80 <p><b>agendaDay
</b> :
<:fullcalendar:view_day:></p>
83 <div style=
"width:52%;float:left">
85 <label for='_ir_left'
><:fullcalendar:left:> :
</label>
86 <input type=
"text" name=
"headerLeft" class=
"type_txt" value=
"#ENV{headerLeft, 'prev,next'}" id=
"_ir_left" style=
"width:90%" />
89 <label for='_ir_center'
><:fullcalendar:center:> :
</label>
90 <input type=
"text" name=
"headerCenter" class=
"type_txt" value=
"#ENV{headerCenter, 'title'}" id=
"_ir_center" style=
"width:90%" />
93 <label for='_ir_right'
><:fullcalendar:right:> :
</label>
94 <input type=
"text" name=
"headerRight" class=
"type_txt" value=
"#ENV{headerRight, 'month,agendaWeek,agendaDay'}" id=
"_ir_right" style=
"width:90%" />
102 <div class=
"formulaire_spip formulaire_configurer">
103 <div class=
"cadre_padding">
104 <p><a name=
"CFG_month"><h1><:fullcalendar:view_month:></h1></a></p>
105 <hr> <a href=
"http://arshaw.com/fullcalendar/docs/utilities/formatDate/" target=
"_blank"><:fullcalendar:help:></a></p>
107 <label for='_ir_month_titleFormat'
><:fullcalendar:title:> :
</label>
108 <input type=
"text" name=
"month_titleFormat" class=
"type_txt" value=
"#ENV{month_titleFormat, 'MMMM yyyy'}" id=
"_ir_month_titleFormat" style=
"width:98%" />
111 <label for='_ir_month_columnFormat'
><:fullcalendar:column:> :
</label>
112 <input type=
"text" name=
"month_columnFormat" class=
"type_txt" value=
"#ENV{month_columnFormat, 'dddd'}" id=
"_ir_month_columnFormat" style=
"width:98%" />
115 <label for='_ir_month_timeFormat'
><:fullcalendar:time:> :
</label>
116 <input type=
"text" name=
"month_timeFormat" class=
"type_txt" value=
"#ENV{month_timeFormat, ''}" id=
"_ir_month_timeFormat" style=
"width:98%" />
121 <div class=
"formulaire_spip formulaire_configurer">
122 <div class=
"cadre_padding">
123 <p><h1><:fullcalendar:view_week:></h1></p><a name=
"CFG_week"></a>
124 <hr> <a href=
"http://arshaw.com/fullcalendar/docs/utilities/formatDate/" target=
"_blank"><:fullcalendar:help:></a></p>
126 <label for='_ir_week_titleFormat'
><:fullcalendar:title:> :
</label>
127 <input type=
"text" name=
"week_titleFormat" class=
"type_txt" value=
"#ENV{week_titleFormat, 'd [MMMM] [ yyyy]{ - d MMMM yyyy}'}" id=
"_ir_week_titleFormat" style=
"width:98%" />
130 <label for='_ir_week_columnFormat'
><:fullcalendar:column:> :
</label>
131 <input type=
"text" name=
"week_columnFormat" class=
"type_txt" value=
"#ENV{week_columnFormat, 'dddd d'}" id=
"_ir_week_columnFormat" style=
"width:98%" />
134 <label for='_ir_week_timeFormat_basic'
><:fullcalendar:time:> (basic) :
</label>
135 <input type=
"text" name=
"week_timeFormat_basic" class=
"type_txt" value=
"#ENV{week_timeFormat_basic, 'H(:mm)'}" id=
"_ir_week_timeFormat_basic" style=
"width:98%" />
138 <label for='_ir_week_timeFormat_agenda'
><:fullcalendar:time:> (agenda) :
</label>
139 <input type=
"text" name=
"week_timeFormat_agenda" class=
"type_txt" value=
"#ENV{week_timeFormat_agenda, 'H(:mm)'}" id=
"_ir_week_timeFormat_agenda" style=
"width:98%" />
144 <div class=
"formulaire_spip formulaire_configurer">
145 <div class=
"cadre_padding">
146 <p><h1><:fullcalendar:view_day:></h1></p><a name=
"CFG_day"></a>
147 <hr> <a href=
"http://arshaw.com/fullcalendar/docs/utilities/formatDate/" target=
"_blank"><:fullcalendar:help:></a></p>
149 <label for='_ir_day_titleFormat'
><:fullcalendar:title:> :
</label>
150 <input type=
"text" name=
"day_titleFormat" class=
"type_txt" value=
"#ENV{day_titleFormat, 'dddd d MMMM yyyy'}" id=
"_ir_day_titleFormat" style=
"width:98%" />
153 <label for='_ir_day_columnFormat'
><:fullcalendar:column:> :
</label>
154 <input type=
"text" name=
"day_columnFormat" class=
"type_txt" value=
"#ENV{day_columnFormat, 'dddd d MMMM'}" id=
"_ir_day_columnFormat" style=
"width:98%" />
157 <label for='_ir_day_timeFormat_basic'
><:fullcalendar:time:> (basic) :
</label>
158 <input type=
"text" name=
"day_timeFormat_basic" class=
"type_txt" value=
"#ENV{day_timeFormat_basic, 'H:mm{ - H:mm}'}" id=
"_ir_day_timeFormat_basic" style=
"width:98%" />
161 <label for='_ir_day_timeFormat_agenda'
><:fullcalendar:time:> (agenda) :
</label>
162 <input type=
"text" name=
"day_timeFormat_agenda" class=
"type_txt" value=
"#ENV{day_timeFormat_agenda, 'H:mm{ - H:mm}'}" id=
"_ir_day_timeFormat_agenda" style=
"width:98%" />
167 <div class=
"formulaire_spip formulaire_configurer">
168 <div class=
"cadre_padding">
169 <p><h1><:fullcalendar:view_mini:></h1></p><a name=
"CFG_mini"></a>
172 <label for=
"_ir_miniweekends"><:fullcalendar:show_weekends:> :
</label>
173 <select name=
"miniweekends" id=
"_ir_miniweekends" style=
"width:80px">
174 <option value=
"false" [(#ENV{miniweekends}|=={#VAL{'false'}}|?{
selected=
"selected",''})]
><:fullcalendar:non:></option>
175 <option value=
"true" [(#ENV{miniweekends}|=={#VAL{'true'}}|?{
selected=
"selected",''})]
><:fullcalendar:oui:></option>
178 <label for='_ir_mini_width'
><:fullcalendar:width:> :
</label>
179 <input type=
"text" name=
"mini_width" class=
"type_txt" value=
"#ENV{mini_width, 180}" id=
"_ir_mini_width" style=
"width:32px" />px
181 <label for='_ir_mini_font'
><:fullcalendar:font:> :
</label>
182 <input type=
"text" name=
"mini_font" class=
"type_txt" value=
"#ENV{mini_font, 1.4}" id=
"_ir_mini_font" style=
"width:24px" />em
184 <div class=
"formulaire_spip" style=
"width:49%;float:left">
185 <div class=
"cadre_padding">
186 <p><a name=
"CFG_miniheader"><h2><:fullcalendar:header:></h2></a></p>
188 <label for='_ir_left'
><:fullcalendar:left:> :
</label>
189 <input type=
"text" name=
"miniheaderLeft" class=
"type_txt" value=
"#ENV{miniheaderLeft, 'today'}" id=
"_ir_left" style=
"width:98%" />
192 <label for='_ir_center'
><:fullcalendar:center:> :
</label>
193 <input type=
"text" name=
"miniheaderCenter" class=
"type_txt" value=
"#ENV{miniheaderCenter, 'title'}" id=
"_ir_center" style=
"width:98%" />
196 <label for='_ir_right'
><:fullcalendar:right:> :
</label>
197 <input type=
"text" name=
"miniheaderRight" class=
"type_txt" value=
"#ENV{miniheaderRight, 'prev,next'}" id=
"_ir_right" style=
"width:98%" />
201 <div class=
"formulaire_spip" style=
"width:49%;float:right;clear:right">
202 <div class=
"cadre_padding">
203 <p><a name=
"CFG_minimonth"><h2><:fullcalendar:view_month:></h2></a></p>
205 <label for='_ir_minimonth_titleFormat'
><:fullcalendar:title:> :
</label>
206 <input type=
"text" name=
"minimonth_titleFormat" class=
"type_txt" value=
"#ENV{minimonth_titleFormat, 'MMM yy'}" id=
"_ir_minimonth_titleFormat" style=
"width:98%" />
209 <label for='_ir_minimonth_columnFormat'
><:fullcalendar:column:> :
</label>
210 <input type=
"text" name=
"minimonth_columnFormat" class=
"type_txt" value=
"#ENV{minimonth_columnFormat, 'ddd'}" id=
"_ir_minimonth_columnFormat" style=
"width:98%" />
213 <label for='_ir_minimonth_timeFormat'
><:fullcalendar:time:> :
</label>
214 <input type=
"text" name=
"minimonth_timeFormat" class=
"type_txt" value=
"#ENV{minimonth_timeFormat, ''}" id=
"_ir_minimonth_timeFormat" style=
"width:98%" />
219 <p><h1><:fullcalendar:view_mini:> <:fullcalendar:in_skel:></h1></p>
222 <label for=
"_ir_mini_id"><:fullcalendar:default_info:></label>
223 <select name=
"mini_id" id=
"_ir_mini_id" style=
"width:324px">
224 <BOUCLE_calendrier(spip_fullcalendar_main){par #TYPE, #NOM}
>
225 <option value=
"#ID_FULLCALENDAR"[(#ENV{mini_id}|=={#ID_FULLCALENDAR}|?{
selected=
"selected",''})]
>#NOM (#TYPE)
</option>
230 <p><h1><:fullcalendar:noizette_sarka:> inc_mini_agenda_fullcalendar
</h1></p>
233 <label for=
"_ir_event_nuts"><:fullcalendar:event_nuts:> :
</label>
234 <select name=
"events_nuts" id=
"_ir_event_nuts" style=
"width:80px">
235 <option value=
"1" [(#ENV{events_nuts}|=={#VAL{'
1'}}|?{
selected=
"selected",''})]
><:fullcalendar:oui:></option>
236 <option value=
"0" [(#ENV{events_nuts}|=={#VAL{'
0'}}|?{
selected=
"selected",''})]
><:fullcalendar:non:></option>
239 <div id='event_nuts'
>
241 <label for='_ir_mini_limite'
><:fullcalendar:mini_limit:> :
</label>
242 <input type=
"text" name=
"mini_limite" class=
"type_txt" value=
"#ENV{mini_limite, 10}" id=
"_ir_mini_limite" style=
"width:42px" />
245 <label for='_ir_max_height'
><:fullcalendar:max_height:> :
</label>
246 <input type=
"text" name=
"max_height" class=
"type_txt" value=
"#ENV{max_height, 200}" id=
"_ir_max_height" style=
"width:42px" />px
252 <div class=
"formulaire_spip formulaire_configurer">
253 <div class=
"boutons">
254 <input type=
"submit" name=
"_cfg_delete" value=
"<:fullcalendar:bouton_effacer:>" class=
"fondo" />
255 <input type=
"submit" name=
"_cfg_ok" value=
"<:bouton_enregistrer:>" class=
"fondo" />
261 <script type=
"text/javascript">
263 $(document).ready(function() {
265 var offset = $(
"#navigation").offset();
269 shortcuts+='
<span class=
"cellule-h-lien"><a href=
"#CFG_options" class=
"cellule-h"><:fullcalendar:general:></a></span>';
270 shortcuts+='
<span class=
"cellule-h-lien"><a href=
"#CFG_header" class=
"cellule-h"><:fullcalendar:header:></a></span>';
271 shortcuts+='
<span class=
"cellule-h-lien"><a href=
"#CFG_month" class=
"cellule-h"><:fullcalendar:view_month:></a></span>';
272 shortcuts+='
<span class=
"cellule-h-lien"><a href=
"#CFG_week" class=
"cellule-h"><:fullcalendar:view_week:></a></span>';
273 shortcuts+='
<span class=
"cellule-h-lien"><a href=
"#CFG_day" class=
"cellule-h"><:fullcalendar:view_day:></a></span>';
274 shortcuts+='
<span class=
"cellule-h-lien"><a href=
"#CFG_mini" class=
"cellule-h"><:fullcalendar:view_mini:></a></span>';
276 $('#navigation #shortcuts').remove();
277 $('#navigation #shortcuts_blocks').remove();
278 $('#navigation').append('
<div id=
"shortcuts_blocks"><div class=
"cadre cadre-e"><div class=
"cadre_padding"><table class=
"cellule-h-table" style=
"vertical-align: middle;" cellpadding=
"0"><tbody><tr><td><a href=
"?exec=fullcalendar_add" class=
"cellule-h"><span class=
"cell-i"><img src=
"#EVAL{_DIR_PLUGIN_FULLCALENDAR}prive/themes/spip/images/calendar.png" alt=
"Agenda fullcalendar : configuration"></span></a></td><td class=
"cellule-h-lien"><a href=
"?exec=fullcalendar_add" class=
"cellule-h">FullCalendar - Gestion
</a></td></tr></tbody></table><div class=
"nettoyeur"></div></div></div><div class=
"cadre cadre-e"><div class=
"cadre_padding"><table class=
"cellule-h-table" style=
"vertical-align: middle;" cellpadding=
"0"><tbody><tr><td><a href=
"?exec=fullcalendar_css" class=
"cellule-h"><span class=
"cell-i"><img src=
"#EVAL{_DIR_PLUGIN_FULLCALENDAR}/prive/themes/spip/images/edit_css.png" alt=
"Styles de fullcalendar : configuration"></span></a></td><td class=
"cellule-h-lien"><a href=
"?exec=fullcalendar_css" class=
"cellule-h">CSS - configuration
</a></td></tr></tbody></table><div class=
"nettoyeur"></div></div></div></div><div id=
"shortcuts" class=
"cadre cadre-e" style=
""><div class=
"cadre_padding" style=
"vertical-align: middle;">'+shortcuts+'
<div class=
"nettoyeur"></div></div></div>');
280 $(window).scroll(function() {
281 if ($(window).scrollTop()
> offset.top) {
282 $(
"#navigation").stop().animate({
283 marginTop: $(window).scrollTop() - offset.top + topPadding
286 $(
"#navigation").stop().animate({
292 function CheckNuts(t){
294 $(
"DIV#event\_nuts").show('slow');
296 $(
"DIV#event\_nuts").hide('slow');
300 CheckNuts($(
"SELECT#\_ir\_event\_nuts option:selected").val());
301 $('SELECT#\_ir\_event\_nuts').change(function() { CheckNuts($(
"SELECT#\_ir\_event\_nuts option:selected").val()); });