Voilà ce que je souhaite faire avec la boucle qui suit :
Cette boucle affiche un icone "livre fermé" (bookmarks-closed.png) devant les noms des rubriques (menu de gauche de BioSPIP : http://biospip.tuxfamily.org)
Et j'aimerai afficher à la place un icone "livre ouvert" (bookmarks-open.png) si et seulement si il existe des sous-rubriques.
boucle incriminée :
<B_haut>
<BOUCLE_haut(RUBRIQUES){id_parent=0}{par titre}>
<div align="left">
<A HREF="#URL_RUBRIQUE"><img class=iconelien src="biopics/bookmarks-closed.png" border="0" alt="#TITRE" height="24" width="24"></A> <A HREF="#URL_RUBRIQUE"[ TITLE="(#DESCRIPTIF|textebrut|attribut_html)"]><FONT FACE="arial,helvetica,sans-serif" SIZE=2><B>[(#TITRE|supprimer_numero)]</B></FONT></A></div>
<B_sous-rub>
<BOUCLE_sous-rub(RUBRIQUES){tout}{id_parent}{par titre}>
<FONT FACE="arial,helvetica,sans-serif" SIZE=1> <A HREF="#URL_RUBRIQUE"[ TITLE="(#DESCRIPTIF|textebrut|attribut_html)"]>- [(#TITRE|supprimer_numero)]</a></font><BR>
</BOUCLE_sous-rub>
</B_sous-rub>
</BOUCLE_haut>
</B_haut>
--
/\/\_ Patrice HARDOUIN _/\/\
/\/\_ alias "bionet" _/\/\
bionet@tuxfamily.org
- http://www.biotechno.org
Biotechno pour les Profs
- http://biospip.tuxfamily.org
génération de sites web coopératifs
() campagne du ruban ascii - contre les mail en html
/\ contre les pieces-jointes Microsoft