%@ page import="com.univ.utils.ContexteUniv, com.univ.utils.UnivWebFmt, com.jsbsoft.jtf.core.LangueUtil, com.univ.objetspartages.om.Annuaire, com.univ.objetspartages.om.Structure,com.univ.objetspartages.om.PageLibre, com.univ.objetspartages.om.ParagrapheBean, com.univ.objetspartages.om.SousParagrapheBean, com.univ.objetspartages.om.Libelle, java.util.*, java.text.*, java.lang.*" errorPage ="/fr/jsb_exception.jsp" %><%@ include file="/jsp/template/fonctions.jsp" %><%--
********************************************************************
********* LECTURE DE L ENREGISTREMENT *************
********************************************************************
--%><%
ctx.setCodeStructureNavigation( "" );
String codeRattachement="";
pageLibre = new PageLibre();
pageLibre.setCtx(ctx);
ficheUniv = UnivWebFmt.lireFiche(ctx, pageLibre, request);
codeRattachement = pageLibre.getCodeRattachement();
structure = Structure.getFicheStructure(ctx, codeRattachement , LangueUtil.getLangueLocale( ctx.getLocale()));
if(( structure != null)&&(pageLibre.getRattachementBandeau().equals("1")))
ctx.setCodeStructureNavigation( codeRattachement );
ctx.setRubriqueNavigation("");
%><%@ include file="/jsp/template/cadre_haut.jsp" %>
<%--
********************************************************************
********* HAUT DE PAGE *************
********************************************************************
--%>
<% titre = pageLibre.getTitre(); %>
<%@ include file="/jsp/template/pagelibre_titre.jsp" %>
<%--
********************************************************************
********* DESCRIPTION *************
********************************************************************
--%>
<%
Vector listeParagraphes = pageLibre.getParagraphes();
Enumeration e = listeParagraphes.elements();
ParagrapheBean paragraphe = null;
int ligne = 0;
while (e.hasMoreElements()) {
/********************************************************************/
/********* CHAQUE PARAGRAPHE *************/
/********************************************************************/
paragraphe = (ParagrapheBean) e.nextElement();
// On applique la personnalisation qui peut générer des sous-paragraphes
paragraphe.setContenu( UnivWebFmt.transformerTagsPersonnalisation(ctx,paragraphe.getContenu()));
/* On détermine le nombre de paragraphes dans la ligne */
Enumeration e2 = listeParagraphes.elements();
ParagrapheBean paragraphe2 = null;
int nbParagraphesLigne = 0;
while (e2.hasMoreElements()) {
paragraphe2 = (ParagrapheBean) e2.nextElement();
if( paragraphe2.getLigne() == paragraphe.getLigne())
nbParagraphesLigne++;
}
if (paragraphe.getLigne() > ligne ) {
if(ligne > 0) {
%>
<%} %>
|
<%
/* Boucle sur les sous-paragraphes */
Enumeration e3 = paragraphe.getSousParagraphes().elements();
int indiceSousParagraphe = 0;
while (e3.hasMoreElements()) {
/********************************************************************/
/********* CHAQUE SOUS-PARAGRAPHE *************/
/********************************************************************/
SousParagrapheBean sousParagraphe = (SousParagrapheBean) e3.nextElement();
titre = sousParagraphe.getTitre();
if (titre.length() == 0)
titre = " ";
if(indiceSousParagraphe > 0) {%>
<% }%> <% if( sousParagraphe.getStyle() == sousParagraphe.STYLE_TITRE_NORMAL) {%> <%@ include file="/jsp/template/pagelibre_titrefixe_debut.jsp" %> <%= UnivWebFmt.formaterEnHTML(ctx,sousParagraphe.getContenu())%> <%@ include file="/jsp/template/pagelibre_titrefixe_fin.jsp" %> <% }%> <% if(sousParagraphe.getStyle() == sousParagraphe.STYLE_TITRE_MINI) {%> <%@ include file="/jsp/template/pagelibre_titremini_debut.jsp" %> <%= UnivWebFmt.formaterEnHTML(ctx,sousParagraphe.getContenu())%> <%@ include file="/jsp/template/pagelibre_titremini_fin.jsp" %> <% }%> <% if(sousParagraphe.getStyle() == sousParagraphe.STYLE_TITRE_MAXI) {%> <%@ include file="/jsp/template/pagelibre_titremaxi_debut.jsp" %> <%= UnivWebFmt.formaterEnHTML(ctx,sousParagraphe.getContenu()).replaceAll("#FF9933","#00A7D2")%> <%@ include file="/jsp/template/pagelibre_titremaxi_fin.jsp" %> <% }%> <% if(sousParagraphe.getStyle() == sousParagraphe.STYLE_TITRE_INVISIBLE) {%> <%@ include file="/jsp/template/pagelibre_titreinvisible_debut.jsp" %> <%= UnivWebFmt.formaterEnHTML(ctx,sousParagraphe.getContenu())%> <%@ include file="/jsp/template/pagelibre_titreinvisible_fin.jsp" %> <% }%> <% /* Fin Boucle sur les sous-paragraphes */ indiceSousParagraphe++; } %> |
<%
ligne = paragraphe.getLigne();
}
%>
<%
/* Dernière fermeture de tableau */
if( ligne > 0) { %>