[SPIP] +2.1.12
[velocampus/web/www.git] / www / plugins / auto / fullcalendar / formulaires / config_fullcalendar.html
1 <!-- autoriser=webmestre -->
2 <!-- refus=<:cfg:refus_configuration_webmestre:> -->
3 <!-- depot=metapack -->
4 <!-- nom=fullcalendar -->
5
6 [<p class="reponse_formulaire reponse_formulaire_ok">(#ENV*{message_ok})</p>]
7 [<p class="reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})</p>]
8
9 <style type='text/css'>
10 .clear {clear:both;}
11 </style>
12
13 <form name="formulaire_config_vitorry" method="post" action="#SELF">
14
15 #ACTION_FORMULAIRE{#SELF}
16
17 <div class="formulaire_spip formulaire_configurer">
18 <div class="cadre_padding">
19 <p><a name="CFG_options"><h1><:fullcalendar:general:></h1></a></p>
20 <hr>
21 <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:> &amp; <: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:> &amp; <:fullcalendar:time:></option>
29 </select> <a href="http://arshaw.com/fullcalendar/docs/views/Available_Views/" target="_blank"><:fullcalendar:help:></a>
30 </p>
31 <p>
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>
37 </p>
38 <p>
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>
42 </p>
43 <p>
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>
49 </p>
50 <p>
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>
60 </select>
61 </p>
62 </div>
63 </div>
64
65 <div class="formulaire_spip formulaire_configurer">
66 <div class="cadre_padding">
67 <p><a name="CFG_header"><h1><:fullcalendar:header:></h1></a></p>
68 <hr>
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>
72 <hr>
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>
81 </div>
82 </div>
83 <div style="width:52%;float:left">
84 <p>
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%" />
87 </p>
88 <p>
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%" />
91 </p>
92 <p>
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%" />
95 </p>
96
97 </div>
98 <br class='clear'/>
99 </div>
100 </div>
101
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>
106 <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%" />
109 </p>
110 <p>
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%" />
113 </p>
114 <p>
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%" />
117 </p>
118 </div>
119 </div>
120
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>
125 <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%" />
128 </p>
129 <p>
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%" />
132 </p>
133 <p>
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%" />
136 </p>
137 <p>
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%" />
140 </p>
141 </div>
142 </div>
143
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>
148 <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%" />
151 </p>
152 <p>
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%" />
155 </p>
156 <p>
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%" />
159 </p>
160 <p>
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%" />
163 </p>
164 </div>
165 </div>
166
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>
170 <hr>
171 <p>
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>
176 </select>
177 &nbsp; &nbsp;
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
180 &nbsp; &nbsp;
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
183 </p>
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>
187 <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%" />
190 </p>
191 <p>
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%" />
194 </p>
195 <p>
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%" />
198 </p>
199 </div>
200 </div>
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>
204 <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%" />
207 </p>
208 <p>
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%" />
211 </p>
212 <p>
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%" />
215 </p>
216 </div>
217 </div>
218 <br class='clear'/>
219 <p><h1><:fullcalendar:view_mini:> <:fullcalendar:in_skel:></h1></p>
220 <hr>
221 <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>
226 </BOUCLE_calendrier>
227 </select>
228 </p>
229 <br />
230 <p><h1><:fullcalendar:noizette_sarka:> inc_mini_agenda_fullcalendar</h1></p>
231 <hr>
232 <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>
237 </select>
238 </p>
239 <div id='event_nuts'>
240 <p>
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" />
243 </p>
244 <p>
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
247 </p>
248 </div>
249 </div>
250 </div>
251
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" />
256 </div>
257 </div>
258
259 </form>
260
261 <script type="text/javascript">
262
263 $(document).ready(function() {
264
265 var offset = $("#navigation").offset();
266 var topPadding = 0;
267 var shortcuts='';
268
269 shortcuts+='<span class="cellule-h-lien"><a href="&#35;CFG_options" class="cellule-h"><:fullcalendar:general:></a></span>';
270 shortcuts+='<span class="cellule-h-lien"><a href="&#35;CFG_header" class="cellule-h"><:fullcalendar:header:></a></span>';
271 shortcuts+='<span class="cellule-h-lien"><a href="&#35;CFG_month" class="cellule-h"><:fullcalendar:view_month:></a></span>';
272 shortcuts+='<span class="cellule-h-lien"><a href="&#35;CFG_week" class="cellule-h"><:fullcalendar:view_week:></a></span>';
273 shortcuts+='<span class="cellule-h-lien"><a href="&#35;CFG_day" class="cellule-h"><:fullcalendar:view_day:></a></span>';
274 shortcuts+='<span class="cellule-h-lien"><a href="&#35;CFG_mini" class="cellule-h"><:fullcalendar:view_mini:></a></span>';
275
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>');
279
280 $(window).scroll(function() {
281 if ($(window).scrollTop() > offset.top) {
282 $("#navigation").stop().animate({
283 marginTop: $(window).scrollTop() - offset.top + topPadding
284 });
285 } else {
286 $("#navigation").stop().animate({
287 marginTop: 0
288 });
289 };
290 });
291
292 function CheckNuts(t){
293 if(t==1)
294 $("DIV#event\_nuts").show('slow');
295 else
296 $("DIV#event\_nuts").hide('slow');
297 return false;
298 }
299
300 CheckNuts($("SELECT#\_ir\_event\_nuts option:selected").val());
301 $('SELECT#\_ir\_event\_nuts').change(function() { CheckNuts($("SELECT#\_ir\_event\_nuts option:selected").val()); });
302 });
303
304 </script>