Browse Source

application du parseur sur le programme des formations + copie locale des css

master
Bastien 8 years ago
committed by Squiz
parent
commit
81b5c62ce3
94 changed files with 13925 additions and 0 deletions
  1. +472
    -0
      scripts/DD_roundies_0.0.2a.js
  2. +287
    -0
      scripts/activebar2.js
  3. +164
    -0
      scripts/carrousel.js?new=20120621
  4. +34
    -0
      scripts/cookies.js
  5. +561
    -0
      scripts/defaut.js
  6. +1124
    -0
      scripts/effects.js
  7. +16
    -0
      scripts/jquery-1.5.2.min.js
  8. +93
    -0
      scripts/lytebox.css?new=2012050301
  9. +843
    -0
      scripts/lytebox.js
  10. +61
    -0
      scripts/menu.js
  11. +19
    -0
      scripts/mozbar.js
  12. +4320
    -0
      scripts/prototype.js
  13. +114
    -0
      scripts/scroll.js
  14. +8
    -0
      scripts/swfobject.js
  15. +1497
    -0
      scripts/toolbox.js
  16. +214
    -0
      styles/defaut/degrade.css
  17. +2767
    -0
      styles/defaut/ecran.css
  18. +109
    -0
      styles/defaut/formulaires.css
  19. BIN
      styles/defaut/img/agenda.png
  20. BIN
      styles/defaut/img/annuaire.png
  21. BIN
      styles/defaut/img/body.jpg
  22. BIN
      styles/defaut/img/body_interieur.jpg
  23. BIN
      styles/defaut/img/body_multisites.jpg
  24. BIN
      styles/defaut/img/boutique.png
  25. BIN
      styles/defaut/img/bouton.png
  26. BIN
      styles/defaut/img/com_h3_bgd.gif
  27. BIN
      styles/defaut/img/deco_1.png
  28. BIN
      styles/defaut/img/en_mode_apercu.png
  29. BIN
      styles/defaut/img/form_ferme_min.png
  30. BIN
      styles/defaut/img/form_ferme_vert_min.png
  31. BIN
      styles/defaut/img/form_ouvert_min.png
  32. BIN
      styles/defaut/img/form_ouvert_vert_min.png
  33. BIN
      styles/defaut/img/html.png
  34. BIN
      styles/defaut/img/img-liste.png
  35. BIN
      styles/defaut/img/infos_pratiques.png
  36. BIN
      styles/defaut/img/infos_pratiques_contact.png
  37. BIN
      styles/defaut/img/infos_pratiques_plan.png
  38. BIN
      styles/defaut/img/intranet.png
  39. BIN
      styles/defaut/img/menu_acces.png
  40. BIN
      styles/defaut/img/menu_acces_span.png
  41. BIN
      styles/defaut/img/menu_after.png
  42. BIN
      styles/defaut/img/menu_before.png
  43. BIN
      styles/defaut/img/menu_principal.png
  44. BIN
      styles/defaut/img/menu_principal_focus.png
  45. BIN
      styles/defaut/img/menu_secondaire.png
  46. BIN
      styles/defaut/img/menu_secondaire2.png
  47. BIN
      styles/defaut/img/menu_secondaire_focus.png
  48. BIN
      styles/defaut/img/outils.png
  49. BIN
      styles/defaut/img/picto_pdf.png
  50. BIN
      styles/defaut/img/pictos/defaut.png
  51. BIN
      styles/defaut/img/pictos/image.png
  52. BIN
      styles/defaut/img/pictos/msexcel.png
  53. BIN
      styles/defaut/img/pictos/mspowerpoint.png
  54. BIN
      styles/defaut/img/pictos/msword.png
  55. BIN
      styles/defaut/img/pictos/ooo_classeur.png
  56. BIN
      styles/defaut/img/pictos/ooo_presentation.png
  57. BIN
      styles/defaut/img/pictos/ooo_texte.png
  58. BIN
      styles/defaut/img/pictos/pdf.png
  59. BIN
      styles/defaut/img/pied_page.png
  60. BIN
      styles/defaut/img/plan.png
  61. BIN
      styles/defaut/img/pliage_titre.png
  62. BIN
      styles/defaut/img/police/pt_sans-narrow-web-bold-webfont.eot
  63. +268
    -0
      styles/defaut/img/police/pt_sans-narrow-web-bold-webfont.svg
  64. BIN
      styles/defaut/img/police/pt_sans-narrow-web-bold-webfont.ttf
  65. BIN
      styles/defaut/img/police/pt_sans-narrow-web-bold-webfont.woff
  66. BIN
      styles/defaut/img/police/pt_sans-narrow-web-regular-webfont.eot
  67. +266
    -0
      styles/defaut/img/police/pt_sans-narrow-web-regular-webfont.svg
  68. BIN
      styles/defaut/img/police/pt_sans-narrow-web-regular-webfont.ttf
  69. BIN
      styles/defaut/img/police/pt_sans-narrow-web-regular-webfont.woff
  70. BIN
      styles/defaut/img/puce.png
  71. BIN
      styles/defaut/img/puce1.png
  72. BIN
      styles/defaut/img/puce2.png
  73. BIN
      styles/defaut/img/puce3.png
  74. BIN
      styles/defaut/img/recherche_encours.png
  75. BIN
      styles/defaut/img/se_deconnecter.png
  76. BIN
      styles/defaut/img/slideshow.png
  77. BIN
      styles/defaut/img/slideshow_actif.png
  78. BIN
      styles/defaut/img/style3.png
  79. BIN
      styles/defaut/img/style4_contenu.png
  80. BIN
      styles/defaut/img/titre_cache.png
  81. BIN
      styles/defaut/img/type_recherche.png
  82. +89
    -0
      styles/defaut/impression.css
  83. +23
    -0
      styles/defaut/lte_ie7.css
  84. +87
    -0
      styles/defaut/lte_ie8.css
  85. +20
    -0
      styles/defaut/lte_ie9.css
  86. +100
    -0
      styles/defaut/multisites.css
  87. +139
    -0
      styles/defaut/multisites/couleur_y.css
  88. BIN
      styles/defaut/multisites/couleur_y/menu_secondaire_focus.png
  89. BIN
      styles/defaut/multisites/couleur_y/puce1.png
  90. BIN
      styles/defaut/multisites/couleur_y/puce2.png
  91. BIN
      styles/defaut/multisites/couleur_y/titre_ouvert.png
  92. +28
    -0
      styles/defaut/police.css
  93. +80
    -0
      styles/defaut/reset.css
  94. +122
    -0
      styles/defaut/scroll.css

+ 472
- 0
scripts/DD_roundies_0.0.2a.js View File

@ -0,0 +1,472 @@
/**
* DD_roundies, this adds rounded-corner CSS in standard browsers and VML sublayers in IE that accomplish a similar appearance when comparing said browsers.
* Author: Drew Diller
* Email: drew.diller@gmail.com
* URL: http://www.dillerdesign.com/experiment/DD_roundies/
* Version: 0.0.2a
* Licensed under the MIT License: http://dillerdesign.com/experiment/DD_roundies/#license
*
* Usage:
* DD_roundies.addRule('#doc .container', '10px 5px'); // selector and multiple radii
* DD_roundies.addRule('.box', 5, true); // selector, radius, and optional addition of border-radius code for standard browsers.
*
* Just want the PNG fixing effect for IE6, and don't want to also use the DD_belatedPNG library? Don't give any additional arguments after the CSS selector.
* DD_roundies.addRule('.your .example img');
**/
var DD_roundies = {
ns: 'DD_roundies',
IE6: false,
IE7: false,
IE8: false,
IEversion: function() {
if (document.documentMode != 8 && document.namespaces && !document.namespaces[this.ns]) {
this.IE6 = true;
this.IE7 = true;
}
else if (document.documentMode == 8) {
this.IE8 = true;
}
},
querySelector: document.querySelectorAll,
selectorsToProcess: [],
imgSize: {},
createVmlNameSpace: function() { /* enable VML */
if (this.IE6 || this.IE7) {
document.namespaces.add(this.ns, 'urn:schemas-microsoft-com:vml');
}
if (this.IE8) {
document.writeln('<?import namespace="' + this.ns + '" implementation="#default#VML" ?>');
}
},
createVmlStyleSheet: function() { /* style VML, enable behaviors */
/*
Just in case lots of other developers have added
lots of other stylesheets using document.createStyleSheet
and hit the 31-limit mark, let's not use that method!
further reading: http://msdn.microsoft.com/en-us/library/ms531194(VS.85).aspx
*/
var style = document.createElement('style');
document.documentElement.firstChild.insertBefore(style, document.documentElement.firstChild.firstChild);
if (style.styleSheet) { /* IE */
try {
var styleSheet = style.styleSheet;
styleSheet.addRule(this.ns + '\\:*', '{behavior:url(#default#VML)}');
this.styleSheet = styleSheet;
} catch(err) {}
}
else {
this.styleSheet = style;
}
},
/**
* Method to use from afar - refer to it whenever.
* Example for IE only: DD_roundies.addRule('div.boxy_box', '10px 5px');
* Example for IE, Firefox, and WebKit: DD_roundies.addRule('div.boxy_box', '10px 5px', true);
* @param {String} selector - REQUIRED - a CSS selector, such as '#doc .container'
* @param {Integer} radius - REQUIRED - the desired radius for the box corners
* @param {Boolean} standards - OPTIONAL - true if you also wish to output -moz-border-radius/-webkit-border-radius/border-radius declarations
**/
addRule: function(selector, rad, standards) {
if (typeof rad == 'undefined' || rad === null) {
rad = 0;
}
if (rad.constructor.toString().search('Array') == -1) {
rad = rad.toString().replace(/[^0-9 ]/g, '').split(' ');
}
for (var i=0; i<4; i++) {
rad[i] = (!rad[i] && rad[i] !== 0) ? rad[Math.max((i-2), 0)] : rad[i];
}
if (this.styleSheet) {
if (this.styleSheet.addRule) { /* IE */
var selectors = selector.split(','); /* multiple selectors supported, no need for multiple calls to this anymore */
for (var i=0; i<selectors.length; i++) {
this.styleSheet.addRule(selectors[i], 'behavior:expression(DD_roundies.roundify.call(this, [' + rad.join(',') + ']))'); /* seems to execute the function without adding it to the stylesheet - interesting... */
}
}
else if (standards) {
var moz_implementation = rad.join('px ') + 'px';
this.styleSheet.appendChild(document.createTextNode(selector + ' {border-radius:' + moz_implementation + '; -moz-border-radius:' + moz_implementation + ';}'));
this.styleSheet.appendChild(document.createTextNode(selector + ' {-webkit-border-top-left-radius:' + rad[0] + 'px ' + rad[0] + 'px; -webkit-border-top-right-radius:' + rad[1] + 'px ' + rad[1] + 'px; -webkit-border-bottom-right-radius:' + rad[2] + 'px ' + rad[2] + 'px; -webkit-border-bottom-left-radius:' + rad[3] + 'px ' + rad[3] + 'px;}'));
}
}
else if (this.IE8) {
this.selectorsToProcess.push({'selector':selector, 'radii':rad});
}
},
readPropertyChanges: function(el) {
switch (event.propertyName) {
case 'style.border':
case 'style.borderWidth':
case 'style.padding':
this.applyVML(el);
break;
case 'style.borderColor':
this.vmlStrokeColor(el);
break;
case 'style.backgroundColor':
case 'style.backgroundPosition':
case 'style.backgroundRepeat':
this.applyVML(el);
break;
case 'style.display':
el.vmlBox.style.display = (el.style.display == 'none') ? 'none' : 'block';
break;
case 'style.filter':
this.vmlOpacity(el);
break;
case 'style.zIndex':
el.vmlBox.style.zIndex = el.style.zIndex;
break;
}
},
applyVML: function(el) {
el.runtimeStyle.cssText = '';
this.vmlFill(el);
this.vmlStrokeColor(el);
this.vmlStrokeWeight(el);
this.vmlOffsets(el);
this.vmlPath(el);
this.nixBorder(el);
this.vmlOpacity(el);
},
vmlOpacity: function(el) {
if (el.currentStyle.filter.search('lpha') != -1) {
var trans = el.currentStyle.filter;
trans = parseInt(trans.substring(trans.lastIndexOf('=')+1, trans.lastIndexOf(')')), 10)/100;
for (var v in el.vml) {
el.vml[v].filler.opacity = trans;
}
}
},
vmlFill: function(el) {
if (!el.currentStyle) {
return;
} else {
var elStyle = el.currentStyle;
}
el.runtimeStyle.backgroundColor = '';
el.runtimeStyle.backgroundImage = '';
var noColor = (elStyle.backgroundColor == 'transparent');
var noImg = true;
if (elStyle.backgroundImage != 'none' || el.isImg) {
if (!el.isImg) {
el.vmlBg = elStyle.backgroundImage;
el.vmlBg = el.vmlBg.substr(5, el.vmlBg.lastIndexOf('")')-5);
}
else {
el.vmlBg = el.src;
}
var lib = this;
if (!lib.imgSize[el.vmlBg]) { /* determine size of loaded image */
var img = document.createElement('img');
img.attachEvent('onload', function() {
this.width = this.offsetWidth; /* weird cache-busting requirement! */
this.height = this.offsetHeight;
lib.vmlOffsets(el);
});
img.className = lib.ns + '_sizeFinder';
img.runtimeStyle.cssText = 'behavior:none; position:absolute; top:-10000px; left:-10000px; border:none;'; /* make sure to set behavior to none to prevent accidental matching of the helper elements! */
img.src = el.vmlBg;
img.removeAttribute('width');
img.removeAttribute('height');
document.body.insertBefore(img, document.body.firstChild);
lib.imgSize[el.vmlBg] = img;
}
el.vml.image.filler.src = el.vmlBg;
noImg = false;
}
el.vml.image.filled = !noImg;
el.vml.image.fillcolor = 'none';
el.vml.color.filled = !noColor;
el.vml.color.fillcolor = elStyle.backgroundColor;
el.runtimeStyle.backgroundImage = 'none';
el.runtimeStyle.backgroundColor = 'transparent';
},
vmlStrokeColor: function(el) {
el.vml.stroke.fillcolor = el.currentStyle.borderColor;
},
vmlStrokeWeight: function(el) {
var borders = ['Top', 'Right', 'Bottom', 'Left'];
el.bW = {};
for (var b=0; b<4; b++) {
el.bW[borders[b]] = parseInt(el.currentStyle['border' + borders[b] + 'Width'], 10) || 0;
}
},
vmlOffsets: function(el) {
var dims = ['Left', 'Top', 'Width', 'Height'];
for (var d=0; d<4; d++) {
el.dim[dims[d]] = el['offset'+dims[d]];
}
var assign = function(obj, topLeft) {
obj.style.left = (topLeft ? 0 : el.dim.Left) + 'px';
obj.style.top = (topLeft ? 0 : el.dim.Top) + 'px';
obj.style.width = el.dim.Width + 'px';
obj.style.height = el.dim.Height + 'px';
};
for (var v in el.vml) {
var mult = (v == 'image') ? 1 : 2;
el.vml[v].coordsize = (el.dim.Width*mult) + ', ' + (el.dim.Height*mult);
assign(el.vml[v], true);
}
assign(el.vmlBox, false);
if (DD_roundies.IE8) {
el.vml.stroke.style.margin = '-1px';
if (typeof el.bW == 'undefined') {
this.vmlStrokeWeight(el);
}
el.vml.color.style.margin = (el.bW.Top-1) + 'px ' + (el.bW.Left-1) + 'px';
}
},
vmlPath: function(el) {
var coords = function(direction, w, h, r, aL, aT, mult) {
var cmd = direction ? ['m', 'qy', 'l', 'qx', 'l', 'qy', 'l', 'qx', 'l'] : ['qx', 'l', 'qy', 'l', 'qx', 'l', 'qy', 'l', 'm']; /* whoa */
aL *= mult;
aT *= mult;
w *= mult;
h *= mult;
var R = r.slice(); /* do not affect original array */
for (var i=0; i<4; i++) {
R[i] *= mult;
R[i] = Math.min(w/2, h/2, R[i]); /* make sure you do not get funky shapes - pick the smallest: half of the width, half of the height, or current value */
}
var coords = [
cmd[0] + Math.floor(0+aL) +','+ Math.floor(R[0]+aT),
cmd[1] + Math.floor(R[0]+aL) +','+ Math.floor(0+aT),
cmd[2] + Math.ceil(w-R[1]+aL) +','+ Math.floor(0+aT),
cmd[3] + Math.ceil(w+aL) +','+ Math.floor(R[1]+aT),
cmd[4] + Math.ceil(w+aL) +','+ Math.ceil(h-R[2]+aT),
cmd[5] + Math.ceil(w-R[2]+aL) +','+ Math.ceil(h+aT),
cmd[6] + Math.floor(R[3]+aL) +','+ Math.ceil(h+aT),
cmd[7] + Math.floor(0+aL) +','+ Math.ceil(h-R[3]+aT),
cmd[8] + Math.floor(0+aL) +','+ Math.floor(R[0]+aT)
];
if (!direction) {
coords.reverse();
}
var path = coords.join('');
return path;
};
if (typeof el.bW == 'undefined') {
this.vmlStrokeWeight(el);
}
var bW = el.bW;
var rad = el.DD_radii.slice();
/* determine outer curves */
var outer = coords(true, el.dim.Width, el.dim.Height, rad, 0, 0, 2);
/* determine inner curves */
rad[0] -= Math.max(bW.Left, bW.Top);
rad[1] -= Math.max(bW.Top, bW.Right);
rad[2] -= Math.max(bW.Right, bW.Bottom);
rad[3] -= Math.max(bW.Bottom, bW.Left);
for (var i=0; i<4; i++) {
rad[i] = Math.max(rad[i], 0);
}
var inner = coords(false, el.dim.Width-bW.Left-bW.Right, el.dim.Height-bW.Top-bW.Bottom, rad, bW.Left, bW.Top, 2);
var image = coords(true, el.dim.Width-bW.Left-bW.Right+1, el.dim.Height-bW.Top-bW.Bottom+1, rad, bW.Left, bW.Top, 1);
/* apply huge path string */
el.vml.color.path = inner;
el.vml.image.path = image;
el.vml.stroke.path = outer + inner;
this.clipImage(el);
},
nixBorder: function(el) {
var s = el.currentStyle;
var sides = ['Top', 'Left', 'Right', 'Bottom'];
for (var i=0; i<4; i++) {
el.runtimeStyle['padding' + sides[i]] = (parseInt(s['padding' + sides[i]], 10) || 0) + (parseInt(s['border' + sides[i] + 'Width'], 10) || 0) + 'px';
}
el.runtimeStyle.border = 'none';
},
clipImage: function(el) {
var lib = DD_roundies;
if (!el.vmlBg || !lib.imgSize[el.vmlBg]) {
return;
}
var thisStyle = el.currentStyle;
var bg = {'X':0, 'Y':0};
var figurePercentage = function(axis, position) {
var fraction = true;
switch(position) {
case 'left':
case 'top':
bg[axis] = 0;
break;
case 'center':
bg[axis] = 0.5;
break;
case 'right':
case 'bottom':
bg[axis] = 1;
break;
default:
if (position.search('%') != -1) {
bg[axis] = parseInt(position, 10) * 0.01;
}
else {
fraction = false;
}
}
var horz = (axis == 'X');
bg[axis] = Math.ceil(fraction ? (( el.dim[horz ? 'Width' : 'Height'] - (el.bW[horz ? 'Left' : 'Top'] + el.bW[horz ? 'Right' : 'Bottom']) ) * bg[axis]) - (lib.imgSize[el.vmlBg][horz ? 'width' : 'height'] * bg[axis]) : parseInt(position, 10));
bg[axis] += 1;
};
for (var b in bg) {
figurePercentage(b, thisStyle['backgroundPosition'+b]);
}
el.vml.image.filler.position = (bg.X/(el.dim.Width-el.bW.Left-el.bW.Right+1)) + ',' + (bg.Y/(el.dim.Height-el.bW.Top-el.bW.Bottom+1));
var bgR = thisStyle.backgroundRepeat;
var c = {'T':1, 'R':el.dim.Width+1, 'B':el.dim.Height+1, 'L':1}; /* these are defaults for repeat of any kind */
var altC = { 'X': {'b1': 'L', 'b2': 'R', 'd': 'Width'}, 'Y': {'b1': 'T', 'b2': 'B', 'd': 'Height'} };
if (bgR != 'repeat') {
c = {'T':(bg.Y), 'R':(bg.X+lib.imgSize[el.vmlBg].width), 'B':(bg.Y+lib.imgSize[el.vmlBg].height), 'L':(bg.X)}; /* these are defaults for no-repeat - clips down to the image location */
if (bgR.search('repeat-') != -1) { /* now let's revert to dC for repeat-x or repeat-y */
var v = bgR.split('repeat-')[1].toUpperCase();
c[altC[v].b1] = 1;
c[altC[v].b2] = el.dim[altC[v].d]+1;
}
if (c.B > el.dim.Height) {
c.B = el.dim.Height+1;
}
}
el.vml.image.style.clip = 'rect('+c.T+'px '+c.R+'px '+c.B+'px '+c.L+'px)';
},
pseudoClass: function(el) {
var self = this;
setTimeout(function() { /* would not work as intended without setTimeout */
self.applyVML(el);
}, 1);
},
reposition: function(el) {
this.vmlOffsets(el);
this.vmlPath(el);
},
roundify: function(rad) {
this.style.behavior = 'none';
if (!this.currentStyle) {
return;
}
else {
var thisStyle = this.currentStyle;
}
var allowed = {BODY: false, TABLE: false, TR: false, TD: false, SELECT: false, OPTION: false, TEXTAREA: false};
if (allowed[this.nodeName] === false) { /* elements not supported yet */
return;
}
var self = this; /* who knows when you might need a setTimeout */
var lib = DD_roundies;
this.DD_radii = rad;
this.dim = {};
/* attach handlers */
var handlers = {resize: 'reposition', move: 'reposition'};
if (this.nodeName == 'A') {
var moreForAs = {mouseleave: 'pseudoClass', mouseenter: 'pseudoClass', focus: 'pseudoClass', blur: 'pseudoClass'};
for (var a in moreForAs) {
handlers[a] = moreForAs[a];
}
}
for (var h in handlers) {
this.attachEvent('on' + h, function() {
lib[handlers[h]](self);
});
}
this.attachEvent('onpropertychange', function() {
lib.readPropertyChanges(self);
});
/* ensure that this elent and its parent is given hasLayout (needed for accurate positioning) */
var giveLayout = function(el) {
el.style.zoom = 1;
if (el.currentStyle.position == 'static') {
el.style.position = 'relative';
}
};
giveLayout(this.offsetParent);
giveLayout(this);
/* create vml elements */
this.vmlBox = document.createElement('ignore'); /* IE8 really wants to be encased in a wrapper element for the VML to work, and I don't want to disturb getElementsByTagName('div') - open to suggestion on how to do this differently */
this.vmlBox.runtimeStyle.cssText = 'behavior:none; position:absolute; margin:0; padding:0; border:0; background:none;'; /* super important - if something accidentally matches this (you yourseld did this once, Drew), you'll get infinitely-created elements and a frozen browser! */
this.vmlBox.style.zIndex = thisStyle.zIndex;
this.vml = {'color':true, 'image':true, 'stroke':true};
for (var v in this.vml) {
this.vml[v] = document.createElement(lib.ns + ':shape');
this.vml[v].filler = document.createElement(lib.ns + ':fill');
this.vml[v].appendChild(this.vml[v].filler);
this.vml[v].stroked = false;
this.vml[v].style.position = 'absolute';
this.vml[v].style.zIndex = thisStyle.zIndex;
this.vml[v].coordorigin = '1,1';
this.vmlBox.appendChild(this.vml[v]);
}
this.vml.image.fillcolor = 'none';
this.vml.image.filler.type = 'tile';
this.parentNode.insertBefore(this.vmlBox, this);
this.isImg = false;
if (this.nodeName == 'IMG') {
this.isImg = true;
this.style.visibility = 'hidden';
}
setTimeout(function() {
lib.applyVML(self);
}, 1);
}
};
try {
document.execCommand("BackgroundImageCache", false, true);
} catch(err) {}
DD_roundies.IEversion();
DD_roundies.createVmlNameSpace();
DD_roundies.createVmlStyleSheet();
if (DD_roundies.IE8 && document.attachEvent && DD_roundies.querySelector) {
document.attachEvent('onreadystatechange', function() {
if (document.readyState == 'complete') {
var selectors = DD_roundies.selectorsToProcess;
var length = selectors.length;
var delayedCall = function(node, radii, index) {
setTimeout(function() {
DD_roundies.roundify.call(node, radii);
}, index*100);
};
for (var i=0; i<length; i++) {
var results = document.querySelectorAll(selectors[i].selector);
var rLength = results.length;
for (var r=0; r<rLength; r++) {
if (results[r].nodeName != 'INPUT') { /* IE8 doesn't like to do this to inputs yet */
delayedCall(results[r], selectors[i].radii, r);
}
}
}
}
});
}

+ 287
- 0
scripts/activebar2.js View File

@ -0,0 +1,287 @@
/**
* This file is part of Activebar2.
*
* Activebar2 is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 3 of the License.
*
* Activebar2 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Activebar2; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* You may contact the author by mail: jakob@php.net
*
* Or write to:
* Jakob Westhoff
* Kleiner Floraweg 35
* 44229 Dortmund
* Germany
*
* The latest version of ActiveBar can be obtained from:
* http://www.westhoffswelt.de/
*
* @package Core
* @version $Revision$
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPL
*/
(function($) {
$.fn.activebar = function( options ) {
// Merge the specified options with the default ones
var options = $.fn.extend( {}, $.fn.activebar.defaults, options );
// Create a new activebar container if there is no one lying around
if ( $.fn.activebar.container == null ) {
$.fn.activebar.container = initializeActivebar( options );
}
// Update the style values according to the provided options
setOptionsOnContainer( $.fn.activebar.container, options );
// If the activebar is currently visible hide it
$.fn.activebar.hide();
// Remove all elements from the activebar content, which might be there
$( '.content', $.fn.activebar.container ).empty();
// Use all provided elements as new content source
$(this).each( function() {
$( '.content', $.fn.activebar.container ).append( this );
});
// Remove any "gotoURL" function
$.fn.activebar.container.unbind( 'click' );
// Add a new "gotoURL" function if one has been supplied
if( options.url != null ) {
$.fn.activebar.container.click(
function() {
window.location.href = options.url;
}
);
}
// Update the position based on the new content data height
$.fn.activebar.container.css( 'top', '-' + $.fn.activebar.container.height() + 'px' );
// Show the activebar
$.fn.activebar.show();
};
/**
* Default options used if nothing more specific is provided.
*/
$.fn.activebar.defaults = {
'background': 'InfoBackground',
'border': '#c8c8c8',
'highlight': 'Highlight',
'font': 'Bitstream Vera Sans,verdana,sans-serif',
'fontColor': 'black !important',
'fontSize': '12px',
'icon': 'images/activebar-information.png',
'button': 'images/activebar-closebtn.png',
'url': null
};
/**
* Indicator in which state the activebar currently is
* 0: Moved in (hidden)
* 1: Moving in (hiding)
* 2: Moving out (showing)
* 3: Moved out (shown)
*/
$.fn.activebar.state = 0;
/**
* Activebar container object which holds the shown content
*/
$.fn.activebar.container = null;
/**
* Show the activebar by moving it in
*/
$.fn.activebar.show = function() {
if ( $.fn.activebar.state > 1 ) {
// Already moving out or visible. Do Nothing.
return;
}
$.fn.activebar.state = 2;
$.fn.activebar.container.css( 'display', 'block' );
var height = $.fn.activebar.container.height();
$.fn.activebar.container.animate({
'top': '+=' + height + 'px'
}, height * 20, 'linear', function() {
$.fn.activebar.state = 3;
});
};
/**
* Hide the activebar by moving it out
*/
$.fn.activebar.hide = function() {
if ( $.fn.activebar.state < 2 ) {
// Already moving in or hidden. Do nothing.
return;
}
$.fn.activebar.state = 1;
var height = $.fn.activebar.container.height();
$.fn.activebar.container.animate({
'top': '-=' + height + 'px'
}, height * 20, 'linear', function() {
$.fn.activebar.container.css( 'display', 'none' );
$.fn.activebar.visible = false;
});
};
/****************************************************************
* Private function only accessible from within this plugin
****************************************************************/
/**
* Create the a basic activebar container object and return it
*/
function initializeActivebar( options ) {
// Create the container object
var container = $( '<div></div>' ).attr( 'id', 'activebar-container' );
// Set the needed css styles
container.css({
'display': 'none',
'position': 'fixed',
'zIndex': '99999',
'top': '0px',
'left': '0px',
'cursor': 'pointer'
});
// Make sure the bar has always the correct width
$(window).bind( 'resize', function() {
container.width( $(this).width() );
});
// Set the initial bar width
$(window).trigger( 'resize' );
// The IE prior to version 7.0 does not support position fixed. However
// the correct behaviour can be emulated using a hook to the scroll
// event. This is a little choppy, but it works.
if ( $.browser.msie
&& ( $.browser.version.substring( 0, 1 ) == '5'
|| $.browser.version.substring( 0, 1 ) == '6' ) ) {
// Position needs to be changed to absolute, because IEs fallback
// for fixed is static, which is quite useless here.
container.css( 'position', 'absolute' );
$( window ).scroll(
function() {
container.stop( true, true );
if ( $.fn.activebar.state == 3 ) {
// Activebar is visible
container.css( 'top', $( window ).scrollTop() + 'px' );
}
else {
// Activebar is hidden
container.css( 'top', ( $( window ).scrollTop() - container.height() ) + 'px' );
}
}
);
}
// Add the icon container
container.append(
$( '<div></div>' ).attr( 'class', 'icon' )
.css({
'float': 'left',
'width': '16px',
'height': '16px',
'margin': '6px 4px 4px 4px'
})
);
// Add the close button
container.append(
$( '<div></div>' ).attr( 'class', 'close' )
.css({
'float': 'right',
'margin': '6px 4px 4px 4px',
'width': '16px',
'height': '16px'
})
.click(
function(event) {
if(options.onClose) options.onClose.apply();
$.fn.activebar.hide();
event.stopPropagation();
}
)
.ready(
function(event) {
if(options.onReady) options.onReady.apply();
}
)
);
// Create the initial content container
if($j.browser.msie && parseInt($j.browser.version) < 7)
container.append(
$( '<div></div>' ).attr( 'class', 'content' )
.css({
'margin': '8px 28px 4px 28px'
})
);
else
container.append(
$( '<div></div>' ).attr( 'class', 'content' )
.css({
'margin': '5px 28px 4px 28px'
})
)
$('body').prepend( container );
return container;
};
/**
* Set the provided options on the given activebar container object
*/
function setOptionsOnContainer( container, options ) {
container.css({
'background': options.background,
'borderBottom': '1px solid ' + options.border
});
// Register functions to change between normal and highlight background
// color on mouseover
container.unbind( 'mouseenter mouseleave' );
container.hover(
function() {
$(this).css( 'backgroundColor', options.highlight );
},
function() {
$(this).css( 'backgroundColor', options.background );
}
);
// Set the correct icon image
$( '.icon', container ).css( 'background', 'transparent url( \'' + options.icon + '\' ) top left no-repeat' );
// Set the close button image
$( '.close', container ).css( 'background', 'transparent url( \'' + options.button + '\' ) top left no-repeat' );
// Set the content font styles
$( '.content', container ).css({
'color': options.fontColor,
'fontFamily': options.font,
'fontSize': options.fontSize
});
};
})(jQuery);

+ 164
- 0
scripts/carrousel.js?new=20120621 View File

@ -0,0 +1,164 @@
/**
* div, id = menuId, class = scroll_container
* div/ul, id = subMenuId, class = scroll_content
*/
function Carrousel()
{
var oThis = this; // création d'une référence vers l'objet courant
this.sIdCarrousel = '';
this.iDuree = 2; // duree en seconde pour le fade
this.bBoucleAuto = true; // boolean
this.iPos = 0; // element en cours
this.iNbItems = 0; // nombre de li
this.bActionable = true;
this.Init = function(sIdCarrousel)
{
// Attributs du composant
this.sIdCarrousel = sIdCarrousel;
var ulListe = document.getElementById(sIdCarrousel); // ul contenaut les actus renvoie la classe caroussel
// recuper nb items
var filsUlListe = ulListe.getElementsByTagName("*");
for(var i=0; i<filsUlListe.length; i++){
if( filsUlListe[i].id.indexOf(sIdCarrousel)>-1) {
this.iNbItems = this.iNbItems +1;
}
}
}
this.AfficheUnique = function(iIndex)
{
if (this.bActionable && iIndex <= this.iNbItems-1 && iIndex!=this.iPos )
{
this.SetActive(false);
new Effect.Fade(this.sIdCarrousel +'_' + this.iPos,{ duration: this.iDuree });
new Effect.Appear(this.sIdCarrousel +'_' + iIndex,{ duration: this.iDuree });
setTimeout(function() { oThis.SetActive(true); }, this.iDuree*1000);
this.iPos = iIndex;
this.ActualiserPositionPlayer(iIndex);
this.bBoucleAuto = false;
}
}
this.Affiche = function(iIndex)
{
// on ne peut pas afficher plus d'éléments que ce qu'on a dans la liste et on n'agit pas sur l'élément déjà affiché
if (this.bActionable && iIndex <= this.iNbItems-1 && iIndex!=this.iPos )
{
this.SetActive(false);
new Effect.Fade(this.sIdCarrousel +'_' + this.iPos,{ duration: this.iDuree });
new Effect.Appear(this.sIdCarrousel +'_' + iIndex,{ duration: this.iDuree });
setTimeout(function() { oThis.SetActive(true); }, this.iDuree*1000);
this.iPos = iIndex;
this.ActualiserPositionPlayer(iIndex);
//document.getElementById('position_courante').innerHTML=this.iPos+1 + '/'+ this.iNbItems;
}
}
this.ActualiserPositionPlayer = function(iIndex)
{
var ulPlayer = document.getElementById('player_slideshow_' + this.sIdCarrousel);
if (ulPlayer != null) {
var filsulPlayer = ulPlayer.getElementsByTagName("*");
for(var i=0; i<filsulPlayer.length; i++){
filsulPlayer[i].className = 'lien_slideshow';
}
}
var liPlayer = document.getElementById(this.sIdCarrousel + '_player_' + this.iPos);
if (liPlayer != null) {
liPlayer.className = liPlayer.className + " actif";
}
}
this.SetActive = function(actif) {
this.bActionable = actif;
}
this.Defile = function()
{
// gerer defilement
if (this.bBoucleAuto)
{
if (this.iPos < this.iNbItems-1) {
this.Affiche(this.iPos+1);
}
else {
this.Affiche(0);
this.bBoucleAuto=true;
//this.MasquerPause();
}
// gerer recursif
setTimeout(function() { oThis.Defile(); }, 7000);
}
}
this.Play = function(auto)
{
if (this.bActionable){
this.bBoucleAuto = true;
this.MasquerPlay();
this.Defile();
}
}
this.Pause = function()
{
this.bBoucleAuto = false;
this.MasquerPause();
}
this.Suivant = function()
{
if (this.bActionable && this.iPos < this.iNbItems-1){
this.bBoucleAuto = false;
this.Affiche(this.iPos+1);
this.MasquerPause();
}
}
this.Precedent = function()
{
if (this.bActionable && this.iPos > 0){
this.bBoucleAuto = false;
this.Affiche(this.iPos-1);
this.MasquerPause();
}
}
this.MasquerPlay = function()
{
document.getElementById('bouton_pause').style.display='block';
document.getElementById('bouton_play').style.display='none';
}
this.MasquerPause = function()
{
document.getElementById('bouton_pause').style.display='none';
document.getElementById('bouton_play').style.display='block';
}
this.hauteurImage = function(sIdCarrousel)
{
var docPere = document.getElementById(sIdCarrousel);
var docFils = docPere.getElementsByTagName("*");
if (document.all) // ok I.E
{
H = docFils[0].currentStyle.height;
}
else // ok firefox.0.9.2 , pas mozilla.1.0 ni netscape.7.02
{
H = document.defaultView.getComputedStyle(docFils[0], null).height;
}
docPere.style.height= H ;
}
}

+ 34
- 0
scripts/cookies.js View File

@ -0,0 +1,34 @@
/* positionne un cookie */
function setCookie(c_name,value,expiredays) {
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);
document.cookie=c_name+ "=" +escape(value)+
((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}
/* lecture d'un cookie */
function getCookie(c_name) {
if (document.cookie.length>0) {
c_start=document.cookie.indexOf(c_name + "=");
if (c_start!=-1) {
c_start=c_start + c_name.length+1;
c_end=document.cookie.indexOf(";",c_start);
if (c_end==-1) c_end=document.cookie.length;
return unescape(document.cookie.substring(c_start,c_end));
}
}
return "";
}
/* verification d'un cookie */
function checkCookie(c_name,value) {
c_value=getCookie(c_name);
if(c_value==value) return 1;
else return 0;
}
/* suppression d'un cookie */
function deleteCookie(c_name) {
setCookie(c_name,null,-1);
}

+ 561
- 0
scripts/defaut.js View File

@ -0,0 +1,561 @@
/*
ED - 12.07.2006
Fonction AddEvent de John Resig
http://ejohn.org/projects/flexible-javascript-events/
*/
function addEvent( obj, type, fn ) {
if ( obj.attachEvent ) {
obj['e'+type+fn] = fn;
obj[type+fn] = function(){obj['e'+type+fn]( window.event );}
obj.attachEvent( 'on'+type, obj[type+fn] );
} else
obj.addEventListener( type, fn, false );
}
function removeEvent( obj, type, fn ) {
if ( obj.detachEvent ) {
obj.detachEvent( 'on'+type, obj[type+fn] );
obj[type+fn] = null;
} else
obj.removeEventListener( type, fn, false );
}
var nomForm = "";
/* Affichage d'une image type plan d'acc�s */
function ouvrirFenetrePlan(url, nom) {
window.open(url, nom, "width=520,height=500,scrollbars=yes, status=yes");
}
function showMessageField(typeAide, f1, f2) {
showMessageField2(typeAide, f1, f2, '');
}
/* Demande d'affichage d'une fenetre par un champ */
function showMessageField2(typeAide, f1, f2, form) {
numToolbox = '';
nomForm = form;
field1 = f1;
field2 = f2;
fieldRequete = '';
texte = '';
nomApplet = '';
// Type d'insertion (liste)
typeInsertion = '';
//AM 200309 : L'arbre des structures doit prendre en compte la langue courante dans le front office
if (typeAide.indexOf('structure') != -1) {
var indexSlash1 = typeAide.indexOf('/');
var lg = '';
var filtre = '';
if (indexSlash1 != -1)
{
var indexSlash2 = typeAide.indexOf('/', indexSlash1 + 1);
if (indexSlash2 != -1)
{
lg = typeAide.substring(indexSlash1 + 1, indexSlash2);
filtre = typeAide.substring(indexSlash2 + 1);
}
else
{
lg = typeAide.substring(indexSlash1 + 1);
}
}
sList = window.open('/adminsite/menu/menu.jsp?MODE=STRUCTURE&LANGUE='+lg+'&FILTRE='+filtre, 'menu2', 'scrollbars=yes, resizable=yes, status=yes, width=600, height=400, top=320, left=320');
}
//JSS 20040419 : affichage arbre structure en fonction du perimetre (back-office)
else if (typeAide.indexOf('strbo/') != -1) {
// formatte comme suit strbo/type/objet/action/langue
var indexSlash1 = typeAide.indexOf('/');
var indexSlash2 = typeAide.indexOf('/', indexSlash1 + 1);
var indexSlash3 = typeAide.indexOf('/', indexSlash2 + 1);
var indexSlash4 = typeAide.indexOf('/', indexSlash3 + 1);
var indexSlash5 = typeAide.indexOf('/', indexSlash4 + 1);
var permission = typeAide.substring(indexSlash1+1, indexSlash4);
var lg = typeAide.substring(indexSlash4+1, indexSlash5);
var filtre = typeAide.substring(indexSlash5+1, typeAide.length);
sList = window.open('/adminsite/menu/menu.jsp?MODE=STRUCTURE&PERMISSION='+permission+'&LANGUE='+lg+'&FILTRE='+filtre, 'menu2', 'scrollbars=yes, resizable=yes, status=yes, width=600, height=400, top=320, left=320');
}
//FBI 20051110 : affichage arbre structure en front (filtre sur les structures non visibles)
else if (typeAide.indexOf('strfo') != -1) {
var indexSlash1 = typeAide.indexOf('/');
var lg = '';
var filtre = '';
if (indexSlash1 != -1)
{
var indexSlash2 = typeAide.indexOf('/', indexSlash1 + 1);
if (indexSlash2 != -1)
{
lg = typeAide.substring(indexSlash1 + 1, indexSlash2);
filtre = typeAide.substring(indexSlash2 + 1);
}
else
{
lg = typeAide.substring(indexSlash1 + 1);
}
}
sList = window.open('/adminsite/menu/menu.jsp?MODE=STRUCTURE&LANGUE='+lg+'&FILTRE='+filtre+'&FRONT=true', 'menu2', 'scrollbars=yes, resizable=yes, status=yes, width=600, height=400, top=320, left=320');
}
else if (typeAide == 'rubrique' || typeAide.indexOf('rubrique') != -1) {
if (typeAide == 'rubrique') {
sList = window.open('/adminsite/menu/menu.jsp?MODE=RUBRIQUE', 'menu2', 'scrollbars=yes, resizable=yes, status=yes, width=600, height=400, top=320, left=320');
}
else {
var lg = typeAide.substring(typeAide.indexOf('rubrique')+8,typeAide.length);
if (lg != null && lg.length > 0)
sList = window.open('/adminsite/menu/menu.jsp?MODE=RUBRIQUE&LANGUE='+lg, 'menu2', 'scrollbars=yes, resizable=yes, status=yes, width=600, height=400, top=320, left=320');
else
sList = window.open('/adminsite/menu/menu.jsp?MODE=RUBRIQUE', 'menu2', 'scrollbars=yes, resizable=yes, status=yes, width=600, height=400, top=320, left=320');
}
}
//JSS 20040419 : affichage arbre rubrique en fonction du perimetre (back-office)
else if (typeAide.indexOf('rubbo/') != -1) {
// formatte comme suit rubbo/type/objet/action
var indexSlash1 = typeAide.indexOf('/');
var indexSlash2 = typeAide.indexOf('/', indexSlash1 + 1);
var indexSlash3 = typeAide.indexOf('/', indexSlash2 + 1);
var permission = typeAide.substring(indexSlash1+1,typeAide.length);
sList = window.open('/adminsite/menu/menu.jsp?MODE=RUBRIQUE&PERMISSION='+permission, 'menu2', 'scrollbars=yes, resizable=yes, status=yes, width=600, height=400, top=320, left=320');
}
/* FBI : utiliser 'saisie_annuaire'
else if (typeAide == 'annuaire') {
sList = window.open("/servlet/com.jsbsoft.jtf.core.SG?PROC=SAISIE_ANNUAIRE&ACTION=RECHERCHER&TOOLBOX=LIEN_INTERNE&LANGUE_ARTICLE=-1", "annuaire2", "width=500,height=400,top=210,left=310,scrollbars=yes,resizable=yes, status=yes");
}
*/
else if (typeAide.indexOf('fichefil') != -1) {
var proc = typeAide.substring(typeAide.indexOf('fichefil')+8,typeAide.length).toUpperCase();
sList = window.open("/servlet/com.jsbsoft.jtf.core.SG?PROC="+proc+"&ACTION=RECHERCHER&TOOLBOX=LIEN_INTERNE", "fichefil", "width=500,height=500,top=210,left=310,scrollbars=yes, status=yes");
}
else if (typeAide == 'pagelibre') {
sList = window.open("/servlet/com.jsbsoft.jtf.core.SG?PROC=SAISIE_PAGELIBRE&ACTION=RECHERCHER&TOOLBOX=LIEN_INTERNE&LANGUE_ARTICLE=0", "pagelibre", "width=500,height=330,top=210,left=310,scrollbars=yes, status=yes");
}
/* AM 200309 creation de page libre */
else if (typeAide == ('pagelibre_creation')){
field2="LIBELLE_CODE_PAGE_TETE";
sList = window.open("/servlet/com.jsbsoft.jtf.core.SG?PROC=TRAITEMENT_PAGELIBRE&ACTION=AJOUTER&LANGUE=0&CODE_RUBRIQUE="+f2, "pagelibre_creation", "width=500,height=330,top=210,left=310,scrollbars=yes, status=yes");
}
// JSS 20040419 : arbre des groupes
else if (typeAide == 'groupe_dsi') {
sList = window.open('/adminsite/menu/menu.jsp?MODE=GROUPE', 'menu2', 'scrollbars=yes, resizable=yes, status=yes, width=600, height=400, top=320, left=320,resizable=yes,status=yes');
}
//JSS 20040419 : affichage arbre groupe en fonction du perimetre (back-office)
else if (typeAide.indexOf('groupebo/') != -1) {
// formatte comme suit groupebo/type/objet/action
var indexSlash1 = typeAide.indexOf('/');
var indexSlash2 = typeAide.indexOf('/', indexSlash1 + 1);
var indexSlash3 = typeAide.indexOf('/', indexSlash2 + 1);
var permission = typeAide.substring(indexSlash1+1,typeAide.length);
sList = window.open('/adminsite/menu/menu.jsp?MODE=GROUPE&PERMISSION='+permission, 'menu2', 'scrollbars=yes,,resizable=yes,width=350,height=210,top=320,left=320, resizable=yes,status=yes');
}
else if (typeAide == 'public_vise_dsi') {
sList = window.open('/adminsite/menu/menu.jsp?MODE=GROUPE&PUBLIC_VISE=1', 'menu2', 'scrollbars=yes,width=420,height=210,top=320,left=320, resizable=yes,status=yes');
}
// JSS 20040419 : arbre des groupes
else if (typeAide.indexOf('publicbo/') != -1) {
// formatte comme suit publicbo/type/objet/action
var indexSlash1 = typeAide.indexOf('/');
var indexSlash2 = typeAide.indexOf('/', indexSlash1 + 1);
var indexSlash3 = typeAide.indexOf('/', indexSlash2 + 1);
var permission = typeAide.substring(indexSlash1+1,typeAide.length);
sList = window.open('/adminsite/menu/menu.jsp?MODE=GROUPE&PUBLIC_VISE=1&PERMISSION='+permission, 'menu2', 'scrollbars=yes,width=420,height=210,top=320,left=320, resizable=yes,status=yes');
}
else if (typeAide == 'utilisateur') {
sList = window.open("/servlet/com.jsbsoft.jtf.core.SG?PROC=RECHERCHE_UTILISATEUR&ACTION=RECHERCHER", "annuaire2", "width=450,height=500,top=210,left=290,scrollbars=yes,resizable=yes,status=yes");
}
/* FBI : utiliser 'saisie_formation'
else if (typeAide == 'formation') {
sList = window.open("/servlet/com.jsbsoft.jtf.core.SG?PROC=SAISIE_FORMATION&ACTION=RECHERCHER&TOOLBOX=LIEN_INTERNE&LANGUE_ARTICLE=-1", "formation", "width=500,height=330,top=150,left=150,scrollbars=yes, status=yes");
}
/* FBI : utiliser 'saisie_ueup'
else if (typeAide == 'ueup') {
sList = window.open("/servlet/com.jsbsoft.jtf.core.SG?PROC=SAISIE_UEUP&ACTION=RECHERCHER&TOOLBOX=LIEN_INTERNE&LANGUE_ARTICLE=-1", "ueup", "width=500,height=330,top=150,left=150,scrollbars=yes, status=yes");
}
*/
else if (typeAide == 'parcours') {
sList = window.open("/servlet/com.jsbsoft.jtf.core.SG?PROC=SAISIE_UEUP&ACTION=RECHERCHER&TOOLBOX=LIEN_INTERNE&TYPE=PARCOURS&LANGUE_ARTICLE=-1", "parcours", "width=500,height=330,top=150,left=150,scrollbars=yes, status=yes");
}
else if (typeAide.indexOf('parcoursM') != -1) {
var codeUe = typeAide.substring(9);
sList = window.open("/servlet/com.jsbsoft.jtf.core.SG?PROC=TRAITEMENT_PARCOURS&ACTION=MODIFIER&CODE_UEUP_PARCOURS="+codeUe+"&TOOLBOX=LIEN_INTERNE&LANGUE_ARTICLE=-1", "parcours", "width=500,height=330,top=150,left=150,scrollbars=yes, status=yes");
}
/* FBI : utiliser 'saisie_cours'
else if (typeAide == 'cours') {
sList = window.open("/servlet/com.jsbsoft.jtf.core.SG?PROC=SAISIE_COURS&ACTION=RECHERCHER&TOOLBOX=LIEN_INTERNE&LANGUE_ARTICLE=-1", "ueup", "width=500,height=330,top=150,left=150,scrollbars=yes, status=yes");
}
*/
else if (typeAide == 'photo') {
indice='';
if (f1=='' && f2=='')
{
indice = window.document.forms[indiceForm].NB_FICHIER_JOINT.value;
eval('window.document.forms[indiceForm].NO_FICHIER_JOINT.value = '+indice+'');
}
sList = window.open("/servlet/com.jsbsoft.jtf.core.SG?PROC=SAISIE_PHOTO&ACTION=RECHERCHER&MODE_PHOTOTHEQUE=SELECTION&NO_FICHIER_JOINT="+indice, "photo", "width=650,height=535,top=20,left=100,scrollbars=yes, status=yes");
}
else if (typeAide == 'image') {
sList = window.open("/servlet/com.jsbsoft.jtf.core.SG?PROC=SAISIE_PHOTO&ACTION=RECHERCHER&MODE_PHOTOTHEQUE=SAISIE", "photo", "width=650,height=535,top=20,left=100,scrollbars=yes, status=yes");
}
else if (typeAide == 'document') {
sList = window.open("/servlet/com.jsbsoft.jtf.core.SG?PROC=TRAITEMENT_DOCUMENT&ACTION=INSERER", "document", "width=400, height=200, top=20, left=100, scrollbars=yes, status=yes, status=yes");
}
else if (typeAide == 'documentfront') {
sList = window.open("/servlet/com.jsbsoft.jtf.core.SG?PROC=TRAITEMENT_DOCUMENT_FRONT&ACTION=INSERER&SAISIE_FRONT=true", "document", "width=400, height=130, top=20, left=100, scrollbars=yes, status=yes");
}
/* FBI : 20060109 : @deprecated
else if (typeAide == 'evenements')
sList = window.open("/servlet/com.jsbsoft.jtf.core.SG?PROC=SAISIE_EVENEMENTS&ACTION=RECHERCHER&TOOLBOX=LIEN_INTERNE&LANGUE_ARTICLE=-1", "evenements", "width=350,height=300,top=150,left=150,scrollbars=yes, status=yes");
*/
/* FBI : utiliser 'saisie_actualite'
else if (typeAide == 'actualites') {
sList = window.open("/servlet/com.jsbsoft.jtf.core.SG?PROC=SAISIE_ACTUALITE&ACTION=RECHERCHER&TOOLBOX=LIEN_INTERNE&LANGUE_ARTICLE=-1", "actualites", "width=400,height=380,top=150,left=150,scrollbars=yes, status=yes");
}
/* FBI : 20060109 : @deprecated
else if (typeAide == 'sites')
sList = window.open("/servlet/com.jsbsoft.jtf.core.SG?PROC=SAISIE_SITESLIEUX&ACTION=RECHERCHER&TOOLBOX=LIEN_INTERNE&LANGUE_ARTICLE=-1", "sites", "width=350,height=300,top=150,left=150,scrollbars=yes, status=yes");
*/
else if (typeAide == 'pagetete') {
sList = window.open("/adminsite/toolbox/choix_objet.jsp?TOOLBOX=PAGE_TETE", "list", "width=500,height=330,top=100,left=100,scrollbars=yes,status=yes");
pageTete = true;
}
else if (typeAide == 'commentaire') {
sList = window.open("/adminsite/toolbox/choix_objet.jsp?TOOLBOX=COMMENTAIRE", "list", "width=500,height=330,top=100,left=100,scrollbars=yes,status=yes");
pageTete = true;
}
else if (typeAide == 'requete') {
field1 = "";
field2 = f2;
nomForm = "";
fieldRequete = f1;
if (field2 == 'STATS') {
field2 = "";
sList = window.open("/adminsite/toolbox/choix_objet.jsp?TOOLBOX=LIEN_REQUETE&RESTRICTION=STATS", "list", "width=500,height=330,top=100,left=100,scrollbars=yes,status=yes");
}
else {
field2 = "";
sList = window.open("/adminsite/toolbox/choix_objet.jsp?TOOLBOX=LIEN_REQUETE&RESTRICTION=XML", "list", "width=500,height=330,top=100,left=100,scrollbars=yes,status=yes");
}
}
}
/* Traitement des donnees resultats renvoyees par la fenetre mere */
function saveField(objet, code, libelle) {
/* Cas de l'administration */
if (inBackOffice()) {
if (!pageTete) {
/* Cas de l'administration */
if (field1 != "")
eval( "window.document.forms[0]."+field1+".value = code;");
if (field2 != "")
eval( "window.document.forms[0]."+field2+".value = libelle;");
//AM 200501: parcours LMD
if(ajoutAuto != ""){
eval("ajouter"+ajoutAuto+"();");
ajoutAuto = "";
}
//AM 200501: parcours LMD
if(modifAuto != ""){
eval("validmodif"+modifAuto+"();");
modifAuto = "";
}
}else{
/* Cas d'une page de tete : on ajoute le type d'objet au code*/
if (field1 != "")
eval( "window.document.forms[0]."+field1+".value = code+',TYPE='+objet;");
if (field2 != "")
eval( "window.document.forms[0]."+field2+".value = objet + ' : ' +libelle;");
}
} else {
/* Cas particulier du WEB */
var formCourant = "RECHERCHE_WEB";
if( nomForm.length > 0)
formCourant = nomForm;
if (field1 != "")
eval( "window.document."+formCourant+"."+field1+".value = code;");
if (field2 != "")
eval( "window.document."+formCourant+"."+field2+".value = libelle;");
}
if( fieldRequete != "") {
chaine = "\"OBJET="+objet;
if( code.length > 0)
{
chaine = chaine +"&"+code;
}
chaine = chaine +"\"";
eval( "window.document.forms[0]."+fieldRequete+".value = "+ chaine );
}
field1 = "";
field2 = "";
nomForm = "";
fieldRequete = "";
numToolbox = "";
texte = "";
nomApplet = "";
// JSS 20020612-001 Type d'insertion (liste)
typeInsertion="";
}
function inBackOffice () {
for (i = 0; i < window.document.forms.length; i++) {
if ( (window.document.forms[i].name == 'RECHERCHE_WEB' || window.document.forms[i].name == nomForm )
&& window.document.forms[i].name != "")
return false;
}
return true;
}
/* Affichage d'un calendrier pour les formulaires avec recherche par date */
function affiche_calendrier(nom, form) {
if (document.getElementById) {
document.write("<a href=\"#\" onclick=\"window.open('/adminsite/calendrier/calendrierjs.html?champ=" + nom + "&form=" + form +"', 'calendrier', 'width=135, height=138, toolbar=no, location=no, status=yes, resizable=yes'); return false;\"><img src=\"/images/calendrier.png\" alt=\"calendrier\" title=\"choisir une date\"></a>");
}
}
/* Effacement du libelle d'un champ de recherche */
function effacerTextField (zoneSaisie, zoneLibelle, value, libelle) {
if (inBackOffice() ) {
/* Cas de l'administration */
eval( "window.document.forms[0]."+zoneSaisie+".value = value;");
eval( "window.document.forms[0]."+zoneLibelle+".value = libelle;");
} else {
eval( "window.document.RECHERCHE_WEB."+zoneSaisie+".value = value;");
eval( "window.document.RECHERCHE_WEB."+zoneLibelle+".value = libelle;");
}
}
/* Activation du service selectionn� dans la liste des services */
function activerService() {
var index = window.document.getElementById('selectservices').selectedIndex;
if( index == 0)
return;
var url = window.document.getElementById('selectservices').options[index].value;
/* Analyse target */
var indexTarget = url.indexOf(';');
if (indexTarget > 0) {
var target = url.substring(0,indexTarget);
url = url.substring(indexTarget + 1);
window.open(url, target);
} else {
window.location.href=url.substring(1);
}
}
/* Affichage d'une image dans une popup */
function afficheImage(source) {
// Ouverture du pop-up
window.open(source,'pop','status=no,directories=no,toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=yes');
}
function atteindreAncre(ancre) {
if (ancre != 'null'){
window.location.href += '#' + ancre;
}
}
/* Fonction utilis�e dans la recherche avanc�e pour r�initialiser les formulaires */
function viderFormulaire(criteres) {
criteres = criteres.split(";");
var champReinit = "";
var valeurChamp = "";
for (var i=0; i < (criteres.length); i++) {
champReinit = eval("document.RECHERCHE_WEB." + criteres[i].substring(0, criteres[i].indexOf("=")));
valeurChamp = criteres[i].substring(criteres[i].indexOf("=")+1);
champReinit.value = valeurChamp
}
}
function afficherBoutonImprimer(intitule) {
document.write('<span id="imprimer" onclick="window.print(); return false;">' + intitule + '</span>');
}
/* fonction permettant d'afficher ou de cacher un element par id (specific � la fiche formation) */
function montrerCacher_div(intitule) {
var oDiv = document.getElementById(intitule);
var oSpan = document.getElementById(intitule + '_s');
var blksem = intitule.substr(0,6);
if (oDiv != null){
if (oDiv.style.display == 'none'){
oDiv.style.display = 'block';
if (oSpan != null){
if (blksem == 'blksem'){
oSpan.className = 'titre_ouvert_vert';
} else {
oSpan.className = 'titre_ouvert';
}
oSpan.title='Masquer les infos';
}
} else if (oDiv.style.display == 'block'){
oDiv.style.display = 'none';
if (oSpan != null){
if (blksem == 'blksem'){
oSpan.className = 'titre_cache_vert';
} else {
oSpan.className = 'titre_cache';
}
oSpan.title='Afficher les infos';
}
}
}
}
/*
* Cache tous les divs ayant le ¿½me pr�fixe
*/
function closeOpenAll() {
var ouverture = true;
var verifEtat = document.getElementById('tout_derouler');
if (verifEtat !=null ){
if (verifEtat.className == 'tout_derouler'){
ouverture = true;
} else {
ouverture = false;
}
var contenu_deco = document.getElementById('page');
// on prend tous les fils
var filsContenu_deco = contenu_deco.getElementsByTagName("*");
if (ouverture == true){
for(var i=0; i<filsContenu_deco.length; i++){
if (filsContenu_deco[i].className == 'cache' || filsContenu_deco[i].className == 'ouvert' ){
filsContenu_deco[i].style.display = 'block';
filsContenu_deco[i].className = 'ouvert';
}
if (filsContenu_deco[i].className == 'titre_cache'){
filsContenu_deco[i].className = 'titre_ouvert'
filsContenu_deco[i].title = 'Masquer les infos';
}
verifEtat.className = 'tout_fermer';
verifEtat.innerHTML = 'Masquer toutes les infos';
verifEtat.title = 'Masquer toutes les infos';
}
} else {
for(var i=0; i<filsContenu_deco.length; i++){
if (filsContenu_deco[i].className == 'cache' || filsContenu_deco[i].className == 'ouvert' ){
filsContenu_deco[i].style.display = 'none';
filsContenu_deco[i].className = 'cache';
}
if (filsContenu_deco[i].className == 'titre_ouvert'){
filsContenu_deco[i].className = 'titre_cache';
filsContenu_deco[i].title = 'Afficher les infos';
}
verifEtat.className = 'tout_derouler';
verifEtat.innerHTML = 'Afficher toutes les infos';
verifEtat.title = 'Afficher toutes les infos';
}
}
}
}
/* fonction permettant d'affiche une combo specific � la rechercher fiche formation */
function affiner_recherche() {
var oAffinerRech2 = document.getElementById('affiner_recherche_2');
var oAffinerRech3 = document.getElementById('affiner_recherche_3');
if (oAffinerRech2 != null && oAffinerRech2.style.display == 'none'){
oAffinerRech2.style.display = 'block';
} else if (oAffinerRech3 != null && oAffinerRech3.style.display == 'none'){
oAffinerRech3.style.display = 'block';
} else {
alert('3 débouchés naturels maximum')
}
}
/* fonction permettant de selectionner le type d'objet qui doivent �tre recherch�s avec le formulaire de recherche */
function rechercherTypeObjet(objet) {
var oRechercherType = document.getElementById('RECHERCHER_TYPE_OBJET');
var oLabelAnnuaire = document.getElementById('lab_recherche_annuaire');
var oLabelSite = document.getElementById('lab_recherche_site');
if (oRechercherType != null) {
if (objet == 'ANNUAIREKSUP') {
oRechercherType.value = objet;
oLabelAnnuaire.className = 'encours';
oLabelSite.className = '';
} else {
oRechercherType.value = 'TOUS';
oLabelAnnuaire.className = '';
oLabelSite.className = 'encours';
}
}
}
/* Activation du service selectionn� dans la liste des services */
function rechercherAutreObjet() {
var index = window.document.getElementById('selecttyperecherche').selectedIndex;
var url = window.document.getElementById('selecttyperecherche').options[index].value;
window.location.href=url;
}
/* Affiche le type de choix de recherche (tout le site / annuaire) du service selectionn� dans la liste des services */
function afficherChoixTypeRecherche() {
var oRechercherType = document.getElementById('RECHERCHER_TYPE_OBJET');
if (oRechercherType != null) {
rechercherTypeObjet(oRechercherType.value);
}
var zoneBouton = window.document.getElementById('type_recherche');
if (zoneBouton != null) {
zoneBouton.style.visibility = 'visible';
}
}

+ 1124
- 0
scripts/effects.js
File diff suppressed because it is too large
View File


+ 16
- 0
scripts/jquery-1.5.2.min.js
File diff suppressed because it is too large
View File


+ 93
- 0
scripts/lytebox.css?new=2012050301 View File

@ -0,0 +1,93 @@
#lbOverlay { position: fixed; top: 0; left: 0; z-index: 99998; width: 100%; height: 500px; }
#lbOverlay.grey { background-color: #000000; }
#lbOverlay.red { background-color: #330000; }
#lbOverlay.green { background-color: #003300; }
#lbOverlay.blue { background-color: #011D50; }
#lbOverlay.gold { background-color: #666600; }
#lbMain { position: absolute; left: 0; width: 100%; z-index: 99999; text-align: center; line-height: 0; }