Message posté par : Marcopololo
----------------------------------------
Bonjour,
J'ai mis un code pour gérer mes parcelles de bois dans les infos bulles, traitements
,travaux prévisions en ayant une succession de lignes. Mais certaine sont vides, alors
existe t-il une fonction qui permet de ne pas mettre une ligne vide.
Ou alors se sont mes <BR> qui imposent un saut de ligne ?
Voici le code joint, qui pourrait peut être être simplifié mais en tout cas il
fonctionne.
Merci d'avance de votre aide.
Marcopololo
-----------------
Code :
[%"section"%][%"numero"%]<BR>
[%"SURFACE"%] ares
[% CASE
WHEN "liste_arbres_Annee" is not null THEN
'<p><strong>Plantation
:<i>'||"liste_arbres_Annee"||'</i></strong></p>'
ELSE
''
END
%]
<p><strong>
[% CASE
WHEN "liste_arbres_Plant1" is not null THEN
'<p>Type : <i>'||array_to_string(
array("liste_arbres_Plant1", "liste_arbres_Plant2",
"liste_arbres_Plant3"), ', ')||'</i></p>'
ELSE
''
END
%]</strong></p>
[% CASE
WHEN "Propriéta" is not null THEN
'<p><strong><Font color="#FF0000">Propriétaire
:<i>'||"Propriéta"||'</i></font
color></strong></p>'
ELSE
''
END
%]
<! Information Traitement>
<p><font color ="#0044CC">
[% CASE
WHEN "parcelles_Traitements_Traitements1" is not null THEN
'Traitement : '||array_to_string(
array("parcelles_Traitements_Traitements1",
format_date("parcelles_Traitements_DateTrait1",'dd/MM/yyyy'),
"parcelles_Traitements_RemarqueTrait1"), ', ')
ELSE
''
END
%]<BR>
[% CASE
WHEN "parcelles_Traitements_Traitements2" is not null THEN
'Traitement : '||array_to_string(
array("parcelles_Traitements_Traitements2",
"parcelles_Traitements_DateTrait2",
"parcelles_Traitements_RemarqueTrait2"), ', ')
ELSE
''
END
%]<BR>
[% CASE
WHEN "parcelles_Traitements_Traitements3" is not null THEN
'Traitement : '||array_to_string(
array("parcelles_Traitements_Traitements3",
"parcelles_Traitements_DateTrait3",
"parcelles_Traitements_RemarqueTrait3"), ', ')
ELSE
''
END
%]<BR>
[% CASE
WHEN "parcelles_Traitements_TraitementsTrait4" is not null THEN
'Traitement : '||array_to_string(
array("parcelles_Traitements_TraitementsTrait4",
"parcelles_Traitements_DateTrait4",
"parcelles_Traitements_Remarque4"), ', ')
ELSE
''
END
%]<BR>
[% CASE
WHEN "parcelles_Travaux_Travaux5" is not null THEN
'Traitement : '||array_to_string( array("parcelles_Travaux_Travaux5",
format_date("parcelles_Travaux_Date5",'dd/MM/YYYY'),
"parcelles_Travaux_Remarque5"), ', ')
ELSE
''
END
%]
<i Informations travaux>
</font color></p>
<p><font color ="#0044CC">
[% CASE
WHEN "parcelles_Travaux_Travaux1" is not null THEN
'Travaux : '||array_to_string( array("parcelles_Travaux_Travaux1",
format_date("parcelles_Travaux_Date1",'dd/MM/yyyy'),
"parcelles_Travaux_Remarque1"), ', ')
ELSE
''
END
%]<BR>
[% CASE
WHEN "parcelles_Travaux_Travaux2" is not null THEN
'Travaux : '||array_to_string( array("parcelles_Travaux_Travaux2",
format_date("parcelles_Travaux_Date2",'dd/MM:yyyy'),
"parcelles_Travaux_Remarque2"), ', ')
ELSE
''
END
%]<BR>
[% CASE
WHEN "parcelles_Travaux_Travaux3" is not null THEN
'Traitement : '||array_to_string( array("parcelles_Travaux_Travaux3",
format_date("parcelles_Travaux_Date3",'dd/MM/YYYYY'),
"parcelles_Travaux_Remarque3"), ', ')
ELSE
''
END
%]<BR>
[% CASE
WHEN "parcelles_Travaux_Travaux4" is not null THEN
'Travaux : '||array_to_string( array("parcelles_Travaux_Travaux4",
format_date("parcelles_Travaux_Date4",'dd/MM/YYYY'),
"parcelles_Travaux_Remarque4"), ', ')
ELSE
''
END
%]<BR>
[% CASE
WHEN "parcelles_Travaux_Travaux5" is not null THEN
'Traitement : '||array_to_string( array("parcelles_Travaux_Travaux5",
format_date("parcelles_Travaux_Date5",'dd/MM/yyyy'),
"parcelles_Travaux_Remarque5"), ', ')
ELSE
''
END
%]<BR>
[% CASE
WHEN "parcelles_Travaux_Travaux6" is not null THEN
'Traitement : '||array_to_string( array("parcelles_Travaux_Travaux6",
format_date("parcelles_Travaux_Date6",'dd/MM/yyyy'),
"parcelles_Travaux_Remarque6"), ', ')
ELSE
''
END
%]
</font color></p>
-----------------
----------------------------------------
Ce message est accompagné de fichiers, pour les télécharger, suivre le lien ci-dessous.
----------------------------------------
Le message est situé
https://georezo.net/forum/viewtopic.php?pid=371809#p371809
Pour y répondre : qgis_fr(a)ml.georezo.net ou reply de votre messagerie
Pour vous désabonner connectez-vous sur le forum puis Profil / Abonnement
--
Association GeoRezo - le portail géomatique
https://georezo.net