--- /dev/null
+<% /**
+*Copyright Igor Barma, Alexandre Desoubeaux, Christian Martel, Eric Brun, Mathieu Amblard, Gwenael Gevet, Pierre Guillot, 2012
+*
+*This file is part of the work and learning management system Pentila Nero.
+*
+*Pentila Nero is free software. You can redistribute it and/or modify since
+*you respect the terms of either (at least one of the both license) :
+*- under the terms of the GNU Affero General Public License as
+*published by the Free Software Foundation, either version 3 of the
+*License, or (at your option) any later version.
+*- the CeCILL-C as published by CeCILL-C; either version 1 of the
+*License, or any later version
+*- the GNU Lesser General Public License as published by the
+*Free Software Foundation, either version 3 of the license,
+*or (at your option) any later version.
+*
+*There are special exceptions to the terms and conditions of the
+*licenses as they are applied to this software. View the full text of
+*the exception in file LICENSE-PROJECT.txt in the directory of this software
+*distribution.
+*
+*Pentila Nero 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
+*Licenses for more details.
+*
+*You should have received a copy of the GNU Affero General Public License
+*and the CeCILL-C and the GNU Lesser General Public License along with
+*Pentila Nero. If not, see :
+*<http://www.gnu.org/licenses/> and
+*<http://www.cecill.info/licences.fr.html>.
+*/ %>
+
+
+<%@page import="com.pentila.entSavoie.utils.XitiUtil"%>
+<%@page import="java.util.List"%>
+<%@page import="com.liferay.portal.service.PortletLocalServiceUtil"%>
+<%@page import="com.liferay.portal.model.Portlet"%>
+<%@page import="java.util.Date"%>
+
+<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
+<%@ taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %>
+<%@ taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %>
+
+<portlet:defineObjects />
+<liferay-theme:defineObjects/>
+
+var jsHeaders = new Array();
+var cssHeaders = new Array();
+
+<%
+Portlet portlet = PortletLocalServiceUtil.getPortletById(company.getCompanyId(), portletDisplay.getId());
+
+String html = "<div style=\\\"font-size:12px;\\\"><br/>Paraschool a été ouvert dans une nouvelle fenêtre.<br/><i>Si vous ne la voyez pas, </i><b><a href=\\\"#\\\" onclick=\\\"openWindow('https://www.cartabledesavoie.com/cas/login?service=http://system.paraschool.com/soutien/partner/cas/CartableDeSavoieLogin.do', 'Paraschool');\\\">cliquez ici</a></b> <i>pour l'ouvrir à nouveau.</i><br/>" +
+ "Si le problème persiste, votre navigateur doit certainement bloquer les fenêtre surgissantes (popups) ouvertes depuis l'ENT. " +
+ "Pour les autoriser, veuillez suivre la démarche indiquée dans l'onglet \\\"Autoriser les popups\\\" de la fenêtre d'informations (accessible en cliquant sur le bouton " +
+ "<img src=\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAACJUlEQVR42j1SXUiTARS9FREGSdGPCS6cthU0NSqTttqWy2kTtqmt5caiDO33YfZiPaz/QEIMIoikkF562INPkYQGG3PpZs79ubW2jP7XYpFrpds3Pe37Qh/u5cI553K455JOZ10BgNiqbbMra445+khqH16tsA1Wtdi7y5XPRIs4EZZxQ8fDjpUSo7O/8ogXZdowTl6ehuZCDEXqCIRaV7b08EvzkohtLLlC/w68BtcCVY9mgpEUM/AinqVdrkylIQSB/i34als7J2BtVOQ3s+QSlSsnO+GF5W4MpkthrNV4sb01MCc0xbBV74nzFU+LqPqoo0/Q9AZCzXiG5G7cvB/Dj58ZWJ/HQbJJCFqD4OlDOb7xPbZoHSaqbHEOl2lDKFONMSQZxeaGcaT/5OD2p0DSAESnoihvizLC098hNHqu044mx2BxfQDr9juzJBlDocqDRDKDkcm8oDmK3Z2fUNH5mdnZlULVGb+FSg8Nd68S+7Be+ipDB19jo9bPWRrxpkHHP0JyJbGw52pyXnwrBclFj5p44gHRGrGN2aTwgBQTc9sMU/idtzQRmQWd/7YgvzMzW/cIUPYmfPuICrizFh8YMhcpgyD5FHqffMklfzHM9NcsY348M7/3AdDc/zfb1BuWLeXA1gbZUHthvSsuP/cBdV1JaG6n0diTRm1Pwqe79598DVjOxb0oEqnzd66xmajRfYMMXgv/rE+tK6ECFtNZwb3QP3OJU8Xr5MjdAAAAAElFTkSuQmCC \\\" /> " +
+ "ou " +
+ "<img src=\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAB4klEQVR42k2S30vTURjGn/oTuulGIcKiSESCURcRNQZFUUS2xjZzU7ywdC4FxxK7qUC2IGgLikwTDLEwzcwY1DbnD4T0IrfoQiRKyXJI6Fi2na/7Pr0baV58OM/767znnPcAwA6SyFNSdrFoLHylLj5jDXyctgTHwuarBoOheDOez8WmMTJ4wZlcuPyTtIhpFSoLJBfNy2+HjtVsFRWSB4zVuZRNpJ3UbNpU1KSiIZOiqtVIF/V0DUMvD9YWCgylKF6ev5QkG6mnXBlmWui0l/Hk8QPk79vkui9D3mfyS/XK6XLsQezVoXpmvWT6nqanH5AbXfQ0naLDfpT80yFFnbL2S6cexoaOuJGInX9I9stOz1VuxUeuunnLU84G525yyUj92wnqC+cUUw5+enf4MeLvrY+4HqQ+d0Zps3KleTDQCrbViZ4DN+JgLgHFr2DiNToQfbLLzQ+gHoamwpI0CY4HwJBf9ASoIhIb3ak4DY52ohlnK7B3qRe/OAhme5DlC9DvAL1mKegDtWfiGwB/9GLVXImSwrO+ace13FORQeEu1OfrULMuOYZfkG56NzhyB41bc8gzfBMN39uxRp+Y/n+IFl9quA3ubdP+/zUqbNgXaUXLjBfdeSI34LFUYf/2r/EXtspt+t9KFIgAAAAASUVORK5CYII= \\\" /> " +
+ "situé dans le cadre des préférences utilisateurs). ";
+html += "<br/> <br/> <br/>";
+html += "</div>";
+
+List<String> javascriptHeaders = portlet.getHeaderPortletJavaScript();
+List<String> cssHeaders = portlet.getHeaderPortletCss();
+
+for(String js: javascriptHeaders){
+ if(js.contains("global/globalPortletJS")){
+ js += "?token=" + (new Date()).getTime();
+ }
+%>
+ jsHeaders.push("<%=request.getContextPath() + js%>");
+<%
+}
+for(String css: cssHeaders){
+ %>
+ cssHeaders.push("<%=request.getContextPath() + css%>");
+ <%
+}
+%>
+
+ScriptMgr.loadCss(cssHeaders);
+ScriptMgr.load({
+ scripts : jsHeaders,
+ callback : function() {
+ Ext.fly('appLoadingIndicator').remove();
+ document.getElementById("portlet_div_container").innerHTML="<%=html %>";
+ openWindow('https://www.cartabledesavoie.com/cas/login?service=http://system.paraschool.com/soutien/partner/cas/CartableDeSavoieLogin.do', 'Paraschool');
+
+ updateInterface();
+
+ xiti(userXitiId,roleXitiId,etabXitiId,serviceXitiId_REL,libServiceXiti_REL, true);
+ },
+ scope : this
+});