1 <style type='text/css'
>
3 [(#VAL{_SPIP19300}|defined|non)
4 div.cadre-info a { background:none; padding:
0; border:
0; }
5 div.cadre-info { margin-bottom:
1em; }
6 div.cadre-padding form{ padding:
0; margin:
0; }
7 div.cadre-padding .titrem { background-color:#EEEEEE; color:#
000000; }
9 div.cadre_padding form { padding:
0; margin:
0; }
10 [(#VAL{_SPIP20100}|defined|oui)
11 #contenu .cadre_padding .titrem { background-color:#EEEEEE !important; color:#
000000 !important; padding:
2px !important; }
12 #contenu .cadre_padding { padding:
6px !important; }
14 [(#VAL{_SPIP30000}|defined|oui)
15 #SET{claire,##ENV{couleur_claire,edf3fe}}
16 #SET{foncee,##ENV{couleur_foncee,
3874b0}}
17 div.cs_outils fieldset, div.cs_intros_inner { border:
2px solid #GET{claire}; background:#fcfcfc;}
18 div.cs_infos fieldset { border:
1px threedface groove; padding:
0.3em; }
19 table.spip td,table.spip th,th,td,caption { padding:
0.20em
0.40em; }
20 div.cs_aide p { margin:
1em
0; }
21 div.cs_boite_rss ul { font-size:
95%; }
25 .cs_hidden { display:none; }
27 div.cs-cadre{ padding:
0.5em; margin:
1px; width=
100%; border:
1px solid #
666666; }
28 div.cs-cadre h3 { margin:
0.2em
0; border-bottom:
1px solid #
666666; }
29 div.cs_infos { overflow:hidden; }
30 div.cs_infos p { margin:
0.3em
1em
0.3em
0; padding:
0; }
31 div.cs_infos h3.titrem { border-bottom:solid
1px; font-weight:bold; display:block; background-color: #EEE;}
32 div.cs_infos legend { font-weight:bold; }
33 div.cs_infos fieldset { margin:
.8em
4em
.5em
4em; }
34 div.cs_infos fieldset fieldset { border:
0; margin:
0 0 0 4em; padding:
0.3em; }
35 div.cs_infos fieldset
>div { margin:
0; }
36 div.cs_infos sup { font-size:
85%; font-variant:normal; vertical-align:super; }
37 div.cs_infos hr { border:
0; border-top:
1px solid #
67707F; }
38 div.cs_infos img { border:
0; }
39 div.cs_infos div.cs_bouton { margin-top:
0; text-align: right; }
40 div.cs_infos div.cs_modif_ok { font-weight:bold; color:green; margin:
0.4em; text-align:center; }
41 div.cs_infos div.cs_menu_outil { text-align:right; font-size:
85%; margin-bottom:
0.8em; }
42 div.cs_infos div.cs_details_outil { font-size:
85%; margin-top:
0.8em; border-top:solid
1px; }
43 div.cs_infos fieldset ul { margin:
0; padding:
0; }
44 div.cs_infos fieldset ul li { list-style:none; display:inline; }
46 div.cs_action_rapide { border:
1px dotted; margin-bottom:
1em; padding-bottom:
0.4em; background-color:#F0EEEE; }
47 div.cs_action_rapide select.ar_select { width:auto; display:inline; }
48 div.cs_action_rapide .ar_edit_info { font-size:
85%; font-style:italic; }
51 list-style-type:none; padding:
0; margin:
0; list-style-image: none; list-style-position: outside;
53 .cs_raccourcis b { color:darkRed; }
86 width:
9.6%; /* pour IE6 */
91 div.categorie, div.cs_intros {
97 background-color:#EEE;
102 div.categorie span.light {
106 div.cs_intros_inner {
113 background:transparent none repeat scroll
0% !important;
114 border:medium none !important;
115 color:#
000099 !important;
118 font-family: inherit;
119 font-weight:normal !important;
120 margin:
0pt !important;
121 padding:
0pt !important;
132 .cs_boite_rss li { padding-top:
0.5em; }
133 .cs_boite_rss ul { list-style-type:none; padding:
0; margin:
0; }
134 .cs_boite_rss p.rss-small { font-size:
85%; border-top:solid gray thin; margin:
1em
0; }
136 /* classes de description */
137 .q1 { margin:
0 2em; }
138 .q2 { margin-left:
2em; }
139 .q3 { font-size:
85%; }
143 <script type=
"text/javascript"><!--
144 var cs_selected, cs_descripted;
146 function set_selected() {
147 cs_selected = new Array();
148 jQuery('a.outil_on').each( function(i){
149 cs_selected[i] = this.id;
151 if(cs_selected.length) {
152 jQuery('div.cs_toggle div').show();
153 jQuery('#cs_toggle_p').html('('+cs_selected.length+')');
154 } else jQuery('div.cs_toggle div').hide();
157 function set_categ(id) {
158 nb = jQuery('#'+id+' a.outil_on').length;
159 if(nb>0) jQuery('#'+id).prev().children().removeClass('light');
160 else jQuery('#'+id).prev().children().addClass('light');
163 function outils_toggle() {
164 if(cs_selected.length>1) {
165 msg="<:couteauprive:outils_permuter_gras2|cs_javascript:>";
166 msg=msg.replace(/@nb@/, cs_selected.length);
168 msg="<:couteauprive:outil_permuter|cs_javascript:>";
169 msg=msg.replace(/@text@/, jQuery('a.outil_on').text());
171 if(!confirm(msg)) return false;
172 jQuery('#cs_selection').attr('value', cs_selected.join(','));
173 jQuery('#cs_infos').html('');
174 jQuery('.cs_patience').css('display','block');
175 document.csform.submit();
178 // clic sur un outil (fonction egalement utilisee par l'outil 'maj_auto')
179 function cs_href_click(this_, force) {
180 var this_id = this_.id.replace(/^href_/,'');
181 // on s'en va si l'outil est deja affiche
182 if(!force && cs_descripted==this_id) return false;
183 cs_descripted=this_id;
184 // on charge la nouvelle description
186 .css('opacity', '0.5')
188 .prepend(ajax_image_searching)
189 .load('[(#URL_ECRIRE{charger_description_outil}|parametre_url{source,#ENV{exec},&})]&outil='+this_id);
190 // annulation du clic
194 if(window.jQuery) jQuery(function(){
195 // decalage a supprimer sur FF2
196 if(jQuery.browser.mozilla) jQuery('input.cs_sobre').css('margin-left','-3px');
198 jQuery('div.sous_liste').each(cs_Categorie2);
199 if(window.location.search.match(/cmd=pack/)!=null)
200 jQuery("div.cs_aide a["+cs_sel_jQuery+"href*='cmd=pack']")
201 .click( function() { window.location.reload(true); return false; });
202 jQuery("div.cs_aide a["+cs_sel_jQuery+"href*='cmd=install']").click( function() {
203 msg="<:couteauprive:pack_installer|cs_javascript:>\n\n<:couteauprive:cs_reset2|cs_javascript:>";
204 return window.confirm(msg.replace(/@pack@/,jQuery(this).text()));
206 jQuery("div.cs_aide a["+cs_sel_jQuery+"href*='cmd=resetall']").click( function() {
207 msg="<:couteauprive:cs_reset|cs_javascript:>\n\n<:couteauprive:cs_reset2|cs_javascript:>";
208 return window.confirm(msg);
211 jQuery('div.cs_liste script').remove();
212 // clic sur un titre de categorie
213 jQuery('div.categorie, div.cs_intros').click( function() {
214 jQuery(this).children().toggleClass('cs_hidden');
215 next = jQuery(this).next();
216 next.toggleClass('cs_hidden');
217 cs_EcrireCookie(next[0].id, '+'+next[0].className, dixans);
218 // annulation du clic
221 jQuery('div.categorie').dblclick(function(){
222 id = '#'+this.nextSibling.id;
223 a = jQuery(id+' a.outil_on').length;
224 b = jQuery(id+' a.cs_href').length;
225 if(a==b) jQuery(id+' a.outil_on').removeClass('outil_on');
226 else jQuery(id+' a.cs_href').addClass('outil_on');
227 jQuery(this).children().addClass('cs_hidden');
228 next = jQuery(this).next();
229 next.removeClass('cs_hidden');
230 cs_EcrireCookie(next[0].id, '+'+next[0].className, dixans);
232 set_categ(this.nextSibling.id);
237 jQuery('a.cs_href').click( function() {
238 jQuery(this).toggleClass('outil_on');
240 set_categ(this.parentNode.id);
241 return cs_href_click(this, false);
243 .dblclick(function(){
244 jQuery('a.outil_on').removeClass('outil_on');
245 jQuery('div.categorie span').addClass('light');
246 jQuery(this).addClass('outil_on');
248 set_categ(this.parentNode.id);
253 // clic sur le bouton de permutation
254 jQuery('#cs_toggle_a').click( function() {
256 // annulation du clic
260 // clic sur le bouton de reset
261 jQuery('#cs_reset_a').click( function() {
262 jQuery('a.outil_on').removeClass('outil_on');
263 jQuery('div.cs_toggle div').hide();
264 jQuery('div.categorie span').addClass('light');
265 // annulation du clic
269 // clic sur le bouton 'tous les actifs'
270 jQuery('#cs_tous_a').click( function() {
271 jQuery('div.cs_actifs a.cs_href').addClass('outil_on');
272 jQuery('div.categorie span').removeClass('light');
274 // annulation du clic
278 // masquage/demasquage des blocs <variable> liees a des checkbox
279 input_init.apply(document);
281 // verifier la version du CS
282 jQuery('span.cs_version').load('[(#URL_ECRIRE{cs_version}|parametre_url{version,#ENV*{cs_version},&}|parametre_url{force,#ENV*{force},&})]',
283 // afficher la boite rss, si elle existe
284 jQuery('div.cs_boite_rss').load('[(#URL_ECRIRE{cs_boite_rss}|parametre_url{force,#ENV*{force},&})]')
289 // masquage/demasquage des blocs <variable> liees a des checkbox
290 // compatibilite Ajax : ajouter this dans jQuery()
291 var input_init=function(){
293 jQuery('.cs_input_checkbox', this).cs_todo().click(bloc_variables);
294 jQuery('input.cs_input_checkbox:checked',this).each(bloc_variables);
296 jQuery('.cs_hidden_checkbox', this).cs_todo().each(bloc_variables);
298 function bloc_variables(index, domElement) {
299 //alert(this.name+' - '+this.value);
300 jQuery('.groupe_'+this.name).addClass('cs_hidden');
301 jQuery('.valeur_'+this.name+'_'+this.value).removeClass('cs_hidden');
303 if(typeof onAjaxLoad=='function') onAjaxLoad(input_init);
305 // TODO : cookies en jQuery sous SPIP>=2.0 (plugin jquery.cookie.js)
308 dixans.setFullYear(dixans.getFullYear()+10);
310 // ref : http://www.actulab.com/ecrire-les-cookies.php
311 function cs_EcrireCookie(nom, valeur){
312 var argv=cs_EcrireCookie.arguments;
313 var argc=cs_EcrireCookie.arguments.length;
314 var expires=(argc > 2) ? argv[2] : null;
315 var path=(argc > 3) ? argv[3] : null;
316 var domain=(argc > 4) ? argv[4] : null;
317 var secure=(argc > 5) ? argv[5] : false;
318 document.cookie=nom+'='+escape(valeur)+
319 ((expires==null) ? '' : ('; expires='+expires.toGMTString()))+
320 ((path==null) ? '' : ('; path='+path))+
321 ((domain==null) ? '' : ('; domain='+domain))+
322 ((secure==true) ? '; secure' : '');
324 function cs_getCookieVal(offset){
325 var endstr=document.cookie.indexOf (';', offset);
326 if(endstr==-1) endstr=document.cookie.length;
327 return unescape(document.cookie.substring(offset, endstr));
329 function cs_LireCookie(nom){
332 var clen=document.cookie.length;
336 if(document.cookie.substring(i, j)==arg) return cs_getCookieVal(j);
337 i=document.cookie.indexOf(' ',i)+1;
342 function cs_EffaceCookie(nom){
344 date.setFullYear(date.getFullYear()-1);
345 cs_EcrireCookie(nom,null,date);
348 function cs_Categorie2(i,e){
349 var c=cs_LireCookie(this.id);
350 if(c===null || c.match('cs_hidden')) {
352 j.addClass('cs_hidden');
353 j.prev().children('span.light').removeClass('cs_hidden');