Commit | Line | Data |
---|---|---|
c495c100 | 1 | <B_rubrique_courante> |
6458e8be | 2 | <BOUCLE_rubrique_courante(RUBRIQUES){id_rubrique}{id_parent==52}> |
c495c100 P |
3 | <!-- TEXTE --> |
4 | <h1>[(#TITRE|supprimer_numero)]</h1> | |
5 | ||
6 | <ul> | |
6458e8be | 7 | <BOUCLE_lister_sous_rubriques(RUBRIQUES){id_parent}{par num titre}> |
c495c100 P |
8 | <li><a href="#URL_RUBRIQUE">[(#TITRE|supprimer_numero)]</a></li> |
9 | </BOUCLE_lister_sous_rubriques> | |
10 | </ul> | |
11 | <!-- fin du TEXTE --> | |
12 | </BOUCLE_rubrique_courante> | |
13 | </B_rubrique_courante> | |
14 | <table id="table_fiches"> | |
15 | <tr> | |
16 | <td class="top_table_fiches"> | |
6458e8be | 17 | <BOUCLE_titre_rub_courante(RUBRIQUES){id_rubrique}{tout}> |
c495c100 P |
18 | <h2>Fiche : [(#TITRE|supprimer_numero)]</h2> |
19 | </BOUCLE_titre_rub_courante> | |
20 | </td> | |
21 | </tr> | |
22 | </table> | |
23 | <?php | |
24 | $categories = array(); | |
25 | $struct_table_cat = array('valide'=>"F",'indice'=>array('categorie'=>"",'contexte'=>"", 'liens'=>array('titre'=>"",'url'=>"",'chapo'=>"",'texte'=>"",'options'=>""))); | |
26 | $indice_categorie=0; | |
27 | ?> | |
6458e8be | 28 | <BOUCLE_mots_fiches_categorie(MOTS){id_groupe=2}> |
c495c100 P |
29 | <B_fiche_cat> |
30 | <?php | |
31 | $id_mot = "#ID_MOT"; | |
32 | $nom_cat= "[(#_mots_fiches_categorie:TITRE|supprimer_numero|unique|texte_backend)]"; | |
33 | $supp = "<table id='table_fiches'><tr><td class='top_table_fiches'>[<h4><b>(#DESCRIPTIF|liens_absolus|texte_backend)</b></h4>]<br>[<p>(#TEXTE|liens_absolus|texte_backend)</p>]</td></p></tr></table>"; | |
34 | if($id_mot==5){ | |
35 | $struct_table_cat[$indice_categorie]['categorie'] = "<h3 class='categorie'>".$nom_cat."</h3>".$supp; | |
36 | }else{ | |
37 | $struct_table_cat[$indice_categorie]['categorie'] = "<h3 class='categorie'>"."CATÉGORIE : ".$nom_cat."</h3>"; | |
38 | } | |
39 | $indice=0; | |
40 | ?> | |
6458e8be | 41 | <BOUCLE_fiche_cat(ARTICLES){id_mot=#ID_MOT}{id_rubrique}{par num titre}> |
c495c100 | 42 | <?php $struct_table_cat[$indice_categorie]['valide'] = "V"; ?> |
6458e8be | 43 | <BOUCLE_contexte(MOTS){id_article}{id_groupe=1}{0,1}> |
c495c100 P |
44 | <?php $struct_table_cat[$indice_categorie][$indice]['liens']['contexte']= "[(#TITRE|supprimer_numero|texte_backend)]";?> |
45 | </BOUCLE_contexte> | |
46 | <B_options_mots_groupes> | |
47 | <?php $options_mots = "<ul>"; ?> | |
6458e8be | 48 | <BOUCLE_options_mots_groupes(GROUPES_MOTS){id_groupe!=1}{id_groupe!=2}{par num titre}> |
c495c100 P |
49 | <B_options_mots> |
50 | <?php | |
51 | $options_mots .= '<li><a href="#" onMouseover="infoBulle(event,\'[(#ID_GROUPE)]\')" onMouseout="delayhidemenu()">[(#TITRE|supprimer_numero|texte_backend)]</a><ul>'; | |
52 | ?> | |
6458e8be | 53 | <BOUCLE_options_mots(MOTS){id_article=#_fiche_cat:ID_ARTICLE}{id_groupe}> |
c495c100 P |
54 | <?php $options_mots .= "<li>[(#TITRE|supprimer_numero|texte_backend)]</li>";?> |
55 | </BOUCLE_options_mots><?php $options_mots .= "</ul></li>";?> | |
56 | </B_options_mots> | |
57 | <//B_options_mots> | |
58 | </BOUCLE_options_mots_groupes> | |
59 | </B_options_mots_groupes> | |
60 | <?php | |
61 | $options_mots .="</ul>"; | |
62 | $struct_table_cat[$indice_categorie][$indice]['liens']['options']= $options_mots; | |
63 | $struct_table_cat[$indice_categorie][$indice]['liens']['titre']= "[(#TITRE|supprimer_numero|texte_backend)]"; | |
64 | $struct_table_cat[$indice_categorie][$indice]['liens']['url'] = "#URL_SITE"; | |
65 | $struct_table_cat[$indice_categorie][$indice]['liens']['chapo']= "[<p><b>DÉTAILS : </b><br><br>(#CHAPO|liens_absolus|texte_backend)</p>]"; | |
66 | $struct_table_cat[$indice_categorie][$indice]['liens']['texte']= "[<p>(#TEXTE|liens_absolus|texte_backend)</p>]"; | |
67 | $indice++; | |
68 | ?> | |
69 | </BOUCLE_fiche_cat> | |
70 | <?php $indice_categorie++; ?> | |
71 | </B_fiche_cat> | |
72 | <//B_fiche_cat> | |
73 | </BOUCLE_mots_fiches_categorie> | |
74 | <?php | |
75 | for($i=0;$i<count($struct_table_cat)-1;$i++){ | |
76 | if($struct_table_cat[$i]['valide']=="V"){ | |
77 | echo html_entity_decode($struct_table_cat[$i]['categorie']); | |
78 | ?> | |
79 | <table id="table_fiches"> | |
80 | <?php | |
81 | for($j=0;$j<count($struct_table_cat[$i])-2;$j++){ | |
82 | ?> | |
83 | <tr> | |
84 | <td class="td_left_table_fiches"> | |
85 | <p class="contexte"><a href="#" onMouseover="infoBulle(event,'1')" onMouseout="delayhidemenu()"><?php echo $struct_table_cat[$i][$j]['liens']['contexte']; ?></a></p> | |
86 | <a href="<?php echo $struct_table_cat[$i][$j]['liens']['url']; ?>" class="lien" target="_blanc"> | |
87 | <img src="dist/puce.gif" width="8" height="11" alt="-" /> <?php echo $struct_table_cat[$i][$j]['liens']['titre']; ?> | |
88 | </a> | |
89 | <br /> | |
90 | <br /> | |
6458e8be | 91 | <img src="http://www.apercite.fr/api/apercite/120x90/oui/<?php echo $struct_table_cat[$i][$j]['liens']['url']?>" width="120" height="90"> |
c495c100 P |
92 | |
93 | </td> | |
94 | <td class="td_right_table_fiches"> | |
95 | <?php echo $struct_table_cat[$i][$j]['liens']['options']; ?> | |
b6efafb8 | 96 | <?php echo html_entity_decode($struct_table_cat[$i][$j]['liens']['chapo'], ENT_COMPAT, 'UTF-8'); ?> |
97 | <?php echo html_entity_decode($struct_table_cat[$i][$j]['liens']['texte'], ENT_COMPAT, 'UTF-8'); ?> | |
c495c100 P |
98 | </td> |
99 | </tr> | |
100 | <?php | |
101 | } | |
102 | ?> | |
103 | ||
104 | </table> | |
105 | <?php | |
106 | } | |
107 | } | |
108 | ?> | |
109 | ||
c39d5510 | 110 | <//B_rubrique_courante> |