function submitFormAlert(countdown) { var msg = "\u0043\u0065\u0020\u0066\u006f\u0072\u006d\u0075\u006c\u0061\u0069\u0072\u0065\u0020\u0061\u0020\u0064\u00e9\u006a\u00e0\u0020\u00e9\u0074\u00e9\u0020\u0070\u006f\u0073\u0074\u00e9\u002e\u0020\u004c\u0061\u0020\u0073\u006f\u0075\u006d\u0069\u0073\u0073\u0069\u006f\u006e\u0020\u0076\u0061\u0020\u00ea\u0074\u0072\u0065\u0020\u0061\u0063\u0074\u0069\u0076\u00e9\u0065\u0020\u0064\u0061\u006e\u0073\u0020\u007b\u0030\u007d\u0020\u0073\u0065\u0063\u006f\u006e\u0064\u0065\u0073\u002e"; alert(msg.replace("{0}", countdown)); } Calendar._DN = new Array( "dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi", "dimanche" ); Calendar._SDN = new Array( "dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam.", "dim." ); Calendar._MN = new Array( "janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre" ); Calendar._SMN = new Array( "janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc." ); Calendar._TT = {}; Calendar._TT["ABOUT"] = "Utilisez les boutons \xab et \xbb pour choisir l'année. Utilisez les boutons {0} et {1} pour choisir le mois. Gardez le bouton de la souris sur ces boutons pour un choix plus rapide."; Calendar._TT["ABOUT"] = Calendar._TT["ABOUT"].replace("{0}", String.fromCharCode(0x2039)); Calendar._TT["ABOUT"] = Calendar._TT["ABOUT"].replace("{1}", String.fromCharCode(0x203a)); Calendar._TT["ABOUT_TIME"] = ""; Calendar._TT["CLOSE"] = "Fermer"; Calendar._TT["DAY_FIRST"] = "Display %s First"; Calendar._TT["DRAG_TO_MOVE"] = ""; Calendar._TT["GO_TODAY"] = "Aujourd'hui"; Calendar._TT["INFO"] = "Aide"; Calendar._TT["NEXT_MONTH"] = "Mois suivant"; Calendar._TT["NEXT_YEAR"] = "Année suivante"; Calendar._TT["PART_TODAY"] = ""; Calendar._TT["PREV_MONTH"] = "Mois précédent"; Calendar._TT["PREV_YEAR"] = "Année précédente"; Calendar._TT["SEL_DATE"] = "Choisir la date"; Calendar._TT["SUN_FIRST"] = ""; Calendar._TT["TIME_PART"] = ""; Calendar._TT["TODAY"] = "Aujourd'hui"; Calendar._TT["WK"] = ""; Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; Calendar._TT["WEEKEND"] = "0,6"; var loadingAnimation = new Image(); loadingAnimation.src = "/html/themes/classic/images/progress_bar/loading_animation.gif"; function addPortlet(plid, portletId, doAsUserId) { var refreshPortletList = ","; if (refreshPortletList.match("," + portletId + ",")) { self.location = "/c/portal/update_layout?p_l_id=" + plid + "&p_p_id=" + portletId + "&doAsUserId=" + doAsUserId + "&cmd=add&referer=" + encodeURIComponent("/c/portal/layout?p_l_id=" + plid + "&doAsUserId=" + doAsUserId) + "&refresh=1"; } else { loadPage("/c/portal/update_layout", "p_l_id=" + plid + "&p_p_id=" + portletId + "&doAsUserId=" + doAsUserId + "&cmd=add", addPortletReturn); var loadingDiv = document.createElement("div"); var container = document.getElementById("layout-column_column-1"); if (container == null) { return; } loadingDiv.className = "portlet-loading"; container.insertBefore(loadingDiv, null); } } function addPortletReturn(xmlHttpReq) { var container = document.getElementById("layout-column_column-1"); var portletId = addPortletHTML(xmlHttpReq.responseText, container, null); if (window.location.hash) { window.location.hash = "p_" + portletId; } } function addPortletHTML(html, container, placeHolder) { if (container == null) { return; } var addDiv = document.createElement("div"); var loadingDiv = document.getElementsByClassName("portlet-loading", container)[0]; addDiv.style.display = "none"; addDiv.innerHTML = html; var portletBound = document.getElementsByClassName("portlet-boundary", addDiv)[0]; portletBound.parentNode.removeChild(portletBound); var portletId = portletBound.id; portletId = portletId.replace(/^p_p_id_/,""); portletId = portletId.replace(/_$/,""); portletBound.portletId = portletId; if (loadingDiv) { container.removeChild(loadingDiv); } container.insertBefore(portletBound, placeHolder); executeLoadedScript(addDiv); executeLoadedScript(portletBound); if (!portletBound.isStatic) { LayoutColumns.initPortlet(portletBound); } return portletId; } function closePortlet(plid, portletId, doAsUserId) { if (confirm('\u00ca\u0074\u0065\u0073\u002d\u0076\u006f\u0075\u0073\u0020\u0073\u00fb\u0072\u0020\u0064\u0065\u0020\u0076\u006f\u0075\u006c\u006f\u0069\u0072\u0020\u0065\u006e\u006c\u0065\u0076\u0065\u0072\u0020\u0063\u0065\u0020\u0063\u006f\u006d\u0070\u006f\u0073\u0061\u006e\u0074\u0020\u003f')) { var curItem = document.getElementById("p_p_id_" + portletId + "_"); var parent = curItem.parentNode; parent.removeChild(curItem); if (curItem = document.getElementById(portletId)) { parent = curItem.parentNode; parent.removeChild(curItem); } if (LayoutConfiguration) { LayoutConfiguration.initialized = false; } if (LayoutColumns.layoutMaximized) { self.location = "/c/portal/update_layout?p_l_id=" + plid + "&p_p_id=" + portletId + "&doAsUserId=" + doAsUserId + "&cmd=delete&referer=" + encodeURIComponent("/c/portal/layout?p_l_id=" + plid + "&doAsUserId=" + doAsUserId) + "&refresh=1"; } else { loadPage("/c/portal/update_layout", "p_l_id=" + plid + "&p_p_id=" + portletId + "&doAsUserId=" + doAsUserId + "&cmd=delete"); } } else { self.focus(); } } function minimizePortlet(plid, portletId, restore, doAsUserId) { if (LayoutColumns.layoutMaximized) { self.location = "/c/portal/update_layout?p_l_id=" + plid + "&p_p_id=" + portletId + "&p_p_restore=" + restore + "&doAsUserId=" + doAsUserId + "&cmd=minimize&referer=" + encodeURIComponent("/c/portal/layout?p_l_id=" + plid + "&doAsUserId=" + doAsUserId) + "&refresh=1"; } else { if (restore) { var portletEl = document.getElementById("p_p_body_" + portletId); portletEl.style.display = "block"; portletEl.style.overflow = "hidden"; portletEl.style.height = "1px"; var buttonsEl = document.getElementById("p_p_body_" + portletId + "_min_buttons"); var html = buttonsEl.innerHTML; html = html.replace(", true", ", false"); html = html.replace("restore.gif", "minimize.gif"); html = html.replace("Restaurer", "Minimiser"); buttonsEl.innerHTML = html; loadPage("/c/portal/update_layout", "p_l_id=" + plid + "&p_p_id=" + portletId + "&p_p_restore=" + restore + "&doAsUserId=" + doAsUserId + "&cmd=minimize"); slideMaximize("p_p_body_" + portletId, 1, 20); } else { var portletEl = document.getElementById("p_p_body_" + portletId); portletEl.style.overflow = "hidden"; slideMinimize("p_p_body_" + portletId, portletEl.offsetHeight, 20); var buttonsEl = document.getElementById("p_p_body_" + portletId + "_min_buttons"); var html = buttonsEl.innerHTML; html = html.replace(", false", ", true"); html = html.replace("minimize.gif", "restore.gif"); html = html.replace("Minimiser", "Restaurer"); buttonsEl.innerHTML = html; loadPage("/c/portal/update_layout", "p_l_id=" + plid + "&p_p_id=" + portletId + "&p_p_restore=" + restore + "&doAsUserId=" + doAsUserId + "&cmd=minimize"); } } } function movePortlet(plid, portletId, columnId, columnPos, doAsUserId) { loadPage("/c/portal/update_layout", "p_l_id=" + plid + "&p_p_id=" + portletId + "&p_p_col_id=" + columnId + "&p_p_col_pos=" + columnPos + "&doAsUserId=" + doAsUserId + "&cmd=move"); } LayoutColumns.highlight = "#f5f5f5"; if (!is_ie) { Event.addHandler(window, "onscroll", function() { if (document.body.scrollHeight) { $("layout-outer-side-decoration").style.height = (document.body.scrollHeight) + "px"; } }); }