Subversion Repositories eFlore/Applications.bibliobota

Rev

Rev 2 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 4
1
<?php
1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
3
// +------------------------------------------------------------------------------------------------------+
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
7
// +------------------------------------------------------------------------------------------------------+
8
// | This library is free software; you can redistribute it and/or                                        |
8
// | This library is free software; you can redistribute it and/or                                        |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
10
// | License as published by the Free Software Foundation; either                                         |
10
// | License as published by the Free Software Foundation; either                                         |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
12
// |                                                                                                      |
12
// |                                                                                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
16
// | Lesser General Public License for more details.                                                      |
16
// | Lesser General Public License for more details.                                                      |
17
// |                                                                                                      |
17
// |                                                                                                      |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
19
// | License along with this library; if not, write to the Free Software                                  |
19
// | License along with this library; if not, write to the Free Software                                  |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
21
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id: bbc_info_livre.inc.php,v 1.1 2005-11-23 10:22:25 jp_milcent Exp $
22
// CVS : $Id: bbc_info_livre.inc.php,v 1.2 2005-12-03 19:44:11 jp_milcent Exp $
23
/**
23
/**
24
* Appli bb_consultation : gestion des informations avancées "livre" de Biblio Bota
24
* Appli bb_consultation : gestion des informations avancées "livre" de Biblio Bota
25
*
25
*
26
* Ce fichier permet d'afficher les informations concernant les "livres" d'un organisme lié à la botanique.
26
* Ce fichier permet d'afficher les informations concernant les "livres" d'un organisme lié à la botanique.
27
*
27
*
28
*@package BiblioBota-Consultation
28
*@package BiblioBota-Consultation
29
//Auteur original :
29
//Auteur original :
30
*@author        Jean-Charles GRANGER <tela@vecteur.org>
30
*@author        Jean-Charles GRANGER <tela@vecteur.org>
31
//Autres auteurs :
31
//Autres auteurs :
32
*@author        Jean-Pascal MILCENT <jpm@clapas.org>
32
*@author        Jean-Pascal MILCENT <jpm@clapas.org>
33
*@copyright     Tela-Botanica 2000-2004
33
*@copyright     Tela-Botanica 2000-2004
34
*@version       $Revision: 1.1 $ $Date: 2005-11-23 10:22:25 $
34
*@version       $Revision: 1.2 $ $Date: 2005-12-03 19:44:11 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
39
// |                                            ENTETE du PROGRAMME                                       |
39
// |                                            ENTETE du PROGRAMME                                       |
40
// +------------------------------------------------------------------------------------------------------+
40
// +------------------------------------------------------------------------------------------------------+
41
 
41
 
42
 
42
 
43
// +------------------------------------------------------------------------------------------------------+
43
// +------------------------------------------------------------------------------------------------------+
44
// |                                            CORPS du PROGRAMME                                        |
44
// |                                            CORPS du PROGRAMME                                        |
45
// +------------------------------------------------------------------------------------------------------+
45
// +------------------------------------------------------------------------------------------------------+
46
 
46
 
47
if ($tableau['pstart']== '') {
47
if ($tableau['pstart']== '') {
48
    $tableau['pstart'] = 0;
48
    $tableau['pstart'] = 0;
49
}
49
}
50
 
50
 
51
// Ligne de proposition d'édition
51
// Ligne de proposition d'édition
52
if ($var_biblio['open_proposer_media'] == 1) {
52
if ($var_biblio['open_proposer_media'] == 1) {
53
    $sortie .= CreateNavigBiblio('add', 'book', 'Proposer un nouveau livre', $tableau['book'], 1, $tableau);
53
    $sortie .= CreateNavigBiblio('add', 'book', 'Proposer un nouveau livre', $tableau['book'], 1, $tableau);
54
} else {
54
} else {
55
    $sortie .= '&nbsp;';
55
    $sortie .= '&nbsp;';
56
}
56
}
57
*/
-
 
58
 
57
 
59
// Ligne de titre
58
// Ligne de titre
60
$requete =  'SELECT B_S_NOM '.
59
$requete =  'SELECT B_S_NOM '.
61
            'FROM '.$tbl['str'].' '.
60
            'FROM '.$tbl['str'].' '.
62
            'WHERE B_S_IDSTR = '.$tableau['book'];
61
            'WHERE B_S_IDSTR = '.$tableau['book'];
63
$resultat = mysql_query($requete) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $requete));
62
$resultat = mysql_query($requete) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $requete));
64
$num_s = mysql_num_rows($resultat);
63
$num_s = mysql_num_rows($resultat);
65
 
64
 
66
if ($num_s != 1) {
65
if ($num_s != 1) {
67
    $sortie .=  '<p class="erreur"><strong>'.'Erreur de requête LIVRE !'.'</strong>'.
66
    $sortie .=  '<p class="erreur"><strong>'.'Erreur de requête LIVRE !'.'</strong>'.
68
                ' nombre de résultats (= '.$num_s.') incohérent pour la requête : '.'<br />'.$requete.'</p>';
67
                ' nombre de résultats (= '.$num_s.') incohérent pour la requête : '.'<br />'.$requete.'</p>';
69
} else {
68
} else {
70
    // Récupération des infos sur la structure
69
    // Récupération des infos sur la structure
71
    $ligne = mysql_fetch_object($resultat);
70
    $ligne = mysql_fetch_object($resultat);
72
    $la_structure = $ligne->B_S_NOM;
71
    $la_structure = $ligne->B_S_NOM;
73
    mysql_free_result($resultat);
72
    mysql_free_result($resultat);
74
    
73
    
75
    $tableau['args'] =  '&amp;book='.$tableau['book'];
74
    $tableau['args'] =  '&amp;book='.$tableau['book'];
76
    
75
    
77
    // Comptage du nombre de livres
76
    // Comptage du nombre de livres
78
    $requete =  'SELECT COUNT(*) AS COMPTAGE '.
77
    $requete =  'SELECT COUNT(*) AS COMPTAGE '.
79
                'FROM '.$tbl['item'].', '.$tbl['media'].' '.
78
                'FROM '.$tbl['item'].', '.$tbl['media'].' '.
80
                'WHERE '.$tbl['media'].'.B_M_LKSTR = '.$tableau['book'].' '.
79
                'WHERE '.$tbl['media'].'.B_M_LKSTR = '.$tableau['book'].' '.
81
                'AND '.$tbl['item'].'.B_I_TYPPHY = '.$def_livre.' '.
80
                'AND '.$tbl['item'].'.B_I_TYPPHY = '.$def_livre.' '.
82
                'AND '.$tbl['item'].'.B_I_IDITEM = '.$tbl['media'].'.B_M_IDMEDIA';
81
                'AND '.$tbl['item'].'.B_I_IDITEM = '.$tbl['media'].'.B_M_IDMEDIA';
83
    $resultat = mysql_query($requete) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $requete));
82
    $resultat = mysql_query($requete) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $requete));
84
    $ligne = mysql_fetch_object($resultat);
83
    $ligne = mysql_fetch_object($resultat);
85
    $num_c = $ligne->COMPTAGE;
84
    $num_c = $ligne->COMPTAGE;
86
    mysql_free_result($resultat);
85
    mysql_free_result($resultat);
87
    
86
    
88
    global $def_livre;
87
    global $def_livre;
89
    $requete =  'select '.$tbl['item'].'.*, '.$tbl['media'].'.*, GEN_MON_SYMBOLE, B_AS_LIBELLE, GEN_MON_VAL1EURO, '.$tbl['domaine'].'.* '.
88
    $requete =  'select '.$tbl['item'].'.*, '.$tbl['media'].'.*, GEN_MON_SYMBOLE, B_AS_LIBELLE, GEN_MON_VAL1EURO, '.$tbl['domaine'].'.* '.
90
                'FROM '.$tbl['item'].', '.$tbl['media'].', '.$tbl['monnaie'].', '.$tbl['saisie'].', '.$tbl['domaine'].', '.$tbl['domaine_lk'].' '.
89
                'FROM '.$tbl['item'].', '.$tbl['media'].', '.$tbl['monnaie'].', '.$tbl['saisie'].', '.$tbl['domaine'].', '.$tbl['domaine_lk'].' '.
91
                'WHERE B_M_LKSTR = '.$tableau['book'].' '.
90
                'WHERE B_M_LKSTR = '.$tableau['book'].' '.
92
                'AND B_I_TYPPHY = '.$def_livre.' '.
91
                'AND B_I_TYPPHY = '.$def_livre.' '.
93
                'AND B_I_IDITEM = B_M_IDMEDIA '.
92
                'AND B_I_IDITEM = B_M_IDMEDIA '.
94
                'AND GEN_MON_IDMONNAIE = B_M_LKMONNAIE '.
93
                'AND GEN_MON_IDMONNAIE = B_M_LKMONNAIE '.
95
                'AND B_I_AUTEURSAISIE = B_AS_ID '.
94
                'AND B_I_AUTEURSAISIE = B_AS_ID '.
96
                'AND B_I_IDITEM = B_DL_IDITEM '.
95
                'AND B_I_IDITEM = B_DL_IDITEM '.
97
                'AND B_DL_IDDOM = B_D_ID '.
96
                'AND B_DL_IDDOM = B_D_ID '.
98
                'ORDER BY B_I_AUTEURS '.
97
                'ORDER BY B_I_AUTEURS '.
99
                'LIMIT '.$tableau['pstart'].', '.$var_biblio['how_book'];
98
                'LIMIT '.$tableau['pstart'].', '.$var_biblio['how_book'];
100
    $resultat = mysql_query($requete) or die (BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $requete));
99
    $resultat = mysql_query($requete) or die (BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $requete));
101
    $nb_m = mysql_num_rows($resultat);
100
    $nb_m = mysql_num_rows($resultat);
102
    
101
    
103
    // Titre de la page
102
    // Titre de la page
104
    $sortie .= '<h1>'.$la_structure.' : livres'.'</h1>'."\n";
103
    $sortie .= '<h1>'.$la_structure.' : livres'.'</h1>'."\n";
105
    
104
    
106
    // Récupération d'informations
105
    // Récupération d'informations
107
    if (empty($tableau['step'])) {
106
    if (empty($tableau['step'])) {
108
        $tableau['step'] = $var_biblio['how_book'];
107
        $tableau['step'] = $var_biblio['how_book'];
109
    }
108
    }
110
    if (empty($tableau['how_bloc'])) {
109
    if (empty($tableau['how_bloc'])) {
111
        $tableau['step'] = $var_biblio['how_book'];
110
        $tableau['step'] = $var_biblio['how_book'];
112
    }
111
    }
113
    if (empty($tableau['pend'])) {
112
    if (empty($tableau['pend'])) {
114
        $tableau['pend'] = $num_c;
113
        $tableau['pend'] = $num_c;
115
    }
114
    }
116
    if (empty($tableau['libelle'])) {
115
    if (empty($tableau['libelle'])) {
117
        $tableau['libelle'] = 'livre';
116
        $tableau['libelle'] = 'livre';
118
    }
117
    }
119
    if (empty($tableau['feminin'])) {
118
    if (empty($tableau['feminin'])) {
120
        $tableau['feminin'] = 0;
119
        $tableau['feminin'] = 0;
121
    }
120
    }
122
    
121
    
123
    // Affichage du nbre de résultats
122
    // Affichage du nbre de résultats
124
    $sortie .= '<p id="frag_nbre_resultat">';
123
    $sortie .= '<p id="frag_nbre_resultat">';
125
    $sortie .= FRAG_afficherTxtNbreResultat('bbpopup', $tableau, $nb_m, $num_c);
124
    $sortie .= FRAG_afficherTxtNbreResultat('bbpopup', $tableau, $nb_m, $num_c);
126
    $sortie .= '</p>'."\n";
125
    $sortie .= '</p>'."\n";
127
    
126
    
128
    // Ici on fragmente en pages, pour une navigation plus facile
127
    // Ici on fragmente en pages, pour une navigation plus facile
129
    $frag = new fragmenteur(' - ', 10, BB_URL_COURANTE_CONSULTATION_AVANCEE);
128
    $frag = new fragmenteur(' - ', 10, BB_URL_COURANTE_CONSULTATION_AVANCEE);
130
    $frag_txt = $frag->fragmente($tableau, $num_c);
129
    $frag_txt = $frag->fragmente($tableau, $num_c);
131
    if (($frag->nb_pages) > 1) {
130
    if (($frag->nb_pages) > 1) {
132
        $sortie .= '<p class="frag_navigation">'.$frag_txt.'</p>'."\n";
131
        $sortie .= '<p class="frag_navigation">'.$frag_txt.'</p>'."\n";
133
    }
132
    }
134
    
133
    
135
    // Affichage des livres
134
    // Affichage des livres
136
    if ($num_c == 0) {
135
    if ($num_c == 0) {
137
        $sortie .= '<p class="information">'.'Aucun livre indexé.'.'</p>';
136
        $sortie .= '<p class="information">'.'Aucun livre indexé.'.'</p>';
138
    } else {
137
    } else {
139
        $sortie .= '<ul id="bb_liste_livre">'."\n";
138
        $sortie .= '<ul id="bb_liste_livre">'."\n";
140
        while ($ligne = mysql_fetch_object($resultat)) {
139
        while ($ligne = mysql_fetch_object($resultat)) {
141
            $id_a = $ligne->B_I_IDITEM;
140
            $id_a = $ligne->B_I_IDITEM;
142
            $titre = $ligne->B_I_TITRE;
141
            $titre = $ligne->B_I_TITRE;
143
            $auteurs = $ligne->B_I_AUTEURS;
142
            $auteurs = $ligne->B_I_AUTEURS;
144
            $geo = $ligne->B_I_GEO;
143
            $geo = $ligne->B_I_GEO;
145
            $langue = $ligne->B_I_LANGUE;
144
            $langue = $ligne->B_I_LANGUE;
146
            $resum = $ligne->B_I_RESUMCLE;
145
            $resum = $ligne->B_I_RESUMCLE;
147
            $image = $ligne->B_I_IMAGE;
146
            $image = $ligne->B_I_IMAGE;
148
            $saisie = $ligne->B_AS_LIBELLE;
147
            $saisie = $ligne->B_AS_LIBELLE;
149
            $comment = $ligne->B_I_COMMENT;
148
            $comment = $ligne->B_I_COMMENT;
150
            $date = $ligne->B_M_DATE;
149
            $date = $ligne->B_M_DATE;
151
            $prix = $ligne->B_M_PRIX;
150
            $prix = $ligne->B_M_PRIX;
152
            $idmonnaie = $ligne->B_M_LKMONNAIE;
151
            $idmonnaie = $ligne->B_M_LKMONNAIE;
153
            $monnaie = $ligne->GEN_MON_SYMBOLE;
152
            $monnaie = $ligne->GEN_MON_SYMBOLE;
154
            $converter = $ligne->GEN_MON_VAL1EURO;
153
            $converter = $ligne->GEN_MON_VAL1EURO;
155
            $volume = $ligne->B_M_VOLUME;
154
            $volume = $ligne->B_M_VOLUME;
156
            $edite = $ligne->B_M_EDITE;
155
            $edite = $ligne->B_M_EDITE;
157
            $vendu = $ligne->B_M_VEND;
156
            $vendu = $ligne->B_M_VEND;
158
            $editeur = $ligne->B_M_EDITEUR;
157
            $editeur = $ligne->B_M_EDITEUR;
159
            $collection_book = $ligne->B_M_COLLECTION;
158
            $collection_book = $ligne->B_M_COLLECTION;
160
            $numcoll_book = $ligne->B_M_NUMCOLL;
159
            $numcoll_book = $ligne->B_M_NUMCOLL;
161
            $get_domaine_id = $ligne->B_D_ID;
160
            $get_domaine_id = $ligne->B_D_ID;
162
            $get_domaine_nom = $ligne->B_D_LABEL;
161
            $get_domaine_nom = $ligne->B_D_LABEL;
163
            
162
            
164
            $sortie .= '<li>'."\n";
163
            $sortie .= '<li>'."\n";
165
            
164
            
166
            if ($image != '') {
165
            if ($image != '') {
167
                $sortie .=  '<img class="bb_img_livre" src="'.BB_CHEMIN_IMAGES_ILLUSTRATION.$image.'" '.
166
                $sortie .=  '<img class="bb_img_livre" src="'.BB_CHEMIN_IMAGES_ILLUSTRATION.$image.'" '.
168
                            'alt="'.'Illustration du livre : '.$titre.'" />';
167
                            'alt="'.'Illustration du livre : '.$titre.'" />';
169
            }
168
            }
170
            
169
            
171
            if ($get_domaine_id != 1) {
170
            if ($get_domaine_id != 1) {
172
                $sortie .= '<span class="texte_inactif">'.'['.$get_domaine_nom.']'.'</span>'."\n";
171
                $sortie .= '<span class="texte_inactif">'.'['.$get_domaine_nom.']'.'</span>'."\n";
173
            }
172
            }
174
            
173
            
175
            if (($auteurs == '') || ($auteurs == 'ANONYME')) {
174
            if (($auteurs == '') || ($auteurs == 'ANONYME')) {
176
                $sortie .= 'Inconnu ou Anonyme'.' - ';
175
                $sortie .= 'Inconnu ou Anonyme'.' - ';
177
            } else {
176
            } else {
178
                $sortie .= $auteurs.' - ';
177
                $sortie .= $auteurs.' - ';
179
            }
178
            }
180
            
179
            
181
            $sortie .= '<strong>'.$titre.'</strong>'.' -'."\n";
180
            $sortie .= '<strong>'.$titre.'</strong>'.' -'."\n";
182
            
181
            
183
            $sortie .= ' Éditeur : ';
182
            $sortie .= ' Éditeur : ';
184
            if ($editeur != '') {
183
            if ($editeur != '') {
185
                $sortie .= $editeur;
184
                $sortie .= $editeur;
186
            } else {
185
            } else {
187
                $sortie .= 'inconnu';
186
                $sortie .= 'inconnu';
188
            }
187
            }
189
            $sortie .= ' - ';
188
            $sortie .= ' - ';
190
            if (($collection_book != '') || ($numcoll_book != '')) {
189
            if (($collection_book != '') || ($numcoll_book != '')) {
191
                $sortie .= 'Collection : '.$collection_book.' '.$numcoll_book.' - ';
190
                $sortie .= 'Collection : '.$collection_book.' '.$numcoll_book.' - ';
192
            }
191
            }
193
            
192
            
194
            if ($geo != '') {
193
            if ($geo != '') {
195
                $sortie .= 'Départ./Région : '.'<em>'.$geo.'</em>'.' -';
194
                $sortie .= 'Départ./Région : '.'<em>'.$geo.'</em>'.' -';
196
            }
195
            }
197
            
196
            
198
            if ($date > 0) {
197
            if ($date > 0) {
199
                $sortie .= ' '.DAT_formaterDateYYYYMMJJ($date).', ';
198
                $sortie .= ' '.DAT_formaterDateYYYYMMJJ($date).', ';
200
            }
199
            }
201
            if ($volume != '') {
200
            if ($volume != '') {
202
                $sortie .= $volume.', ';
201
                $sortie .= $volume.', ';
203
            }
202
            }
204
            
203
            
205
            if ($prix > 0) {
204
            if ($prix > 0) {
206
                $sortie .= $prix.' '.$monnaie;
205
                $sortie .= $prix.' '.$monnaie;
207
            }
206
            }
208
            
207
            
209
            if (($def_euro != $idmonnaie) && ($converter > 0)) {
208
            if (($def_euro != $idmonnaie) && ($converter > 0)) {
210
                $sortie .= ' (env. '.round($prix/$converter, 2).' &euro;)';
209
                $sortie .= ' (env. '.round($prix/$converter, 2).' &euro;)';
211
            }
210
            }
212
            
211
            
213
            if ($langue != '') {
212
            if ($langue != '') {
214
                $sortie .= ' ('.$langue.')';
213
                $sortie .= ' ('.$langue.')';
215
            }
214
            }
216
            
215
            
217
            if (($resum != '') || ($comment != '')) {
216
            if (($resum != '') || ($comment != '')) {
218
                $sortie .= ' - '.'<em>'.$comment;
217
                $sortie .= ' - '.'<em>'.$comment;
219
                if (($resum != '') && ($comment != '')) {
218
                if (($resum != '') && ($comment != '')) {
220
                    $sortie .= ' - ';
219
                    $sortie .= ' - ';
221
                }
220
                }
222
                $sortie .= $resum.'</em>';
221
                $sortie .= $resum.'</em>';
223
            }
222
            }
224
            
223
            
225
            if ($vendu == -1) {
224
            if ($vendu == -1) {
226
                $sortie .= ' - '.'<img class="'.BB_CLASS_IMG_EPUISE.'" src="'.BB_IMG_EPUISE.'" alt="'.'Épuisé'.'" />';
225
                $sortie .= ' - '.'<img class="'.BB_CLASS_IMG_EPUISE.'" src="'.BB_IMG_EPUISE.'" alt="'.'Épuisé'.'" />';
227
            }
226
            }
228
            
227
            
229
            if (($edite == 1) || ($vendu == 1)) {
228
            if (($edite == 1) || ($vendu == 1)) {
230
                $sortie .= ' - '.'Organisme ';
229
                $sortie .= ' - '.'Organisme ';
231
                if ($edite == 1) {
230
                if ($edite == 1) {
232
                    $sortie .= 'éditeur';
231
                    $sortie .= 'éditeur';
233
                }
232
                }
234
                if (($edite == 1) && ($vendu == 1)) {
233
                if (($edite == 1) && ($vendu == 1)) {
235
                    $sortie .= ' et ';
234
                    $sortie .= ' et ';
236
                }
235
                }
237
                if ($vendu == 1) {
236
                if ($vendu == 1) {
238
                    $sortie .= 'vendeur';
237
                    $sortie .= 'vendeur';
239
                }
238
                }
240
                $sortie .= ' de l\'article';
239
                $sortie .= ' de l\'article';
241
            }
240
            }
242
            
241
            
243
            if ($saisie != '') {
242
            if ($saisie != '') {
244
                $sortie .= '<span class="texte_inactif">'.' - '.'Saisie : '.$saisie.' - Art. n°'.$id_a.'.'.'</span>';
243
                $sortie .= '<span class="texte_inactif">'.' - '.'Saisie : '.$saisie.' - Art. n°'.$id_a.'.'.'</span>';
245
            }
244
            }
246
            
245
            
247
            // Là on affiche les Voir Aussi Livres ... si y'en a 
246
            // Là on affiche les Voir Aussi Livres ... si y'en a 
248
            $UnVoirAussi = new VoirAussi($id_a, $tbl['article']);
247
            $UnVoirAussi = new VoirAussi($id_a, $tbl['article']);
249
            if ($UnVoirAussi->NbVA > 0) {
248
            if ($UnVoirAussi->NbVA > 0) {
250
                $sortie .= '<br />'.'Consulter : ';
249
                $sortie .= '<br />'.'Consulter : ';
251
                $liste_va = $UnVoirAussi->ListerVoirAussi();
250
                $liste_va = $UnVoirAussi->ListerVoirAussi();
252
                for ($i = 0; $i == (($UnVoirAussi->NbVA) - 1); $i++) {
251
                for ($i = 0; $i == (($UnVoirAussi->NbVA) - 1); $i++) {
253
                    $sortie .= '<img class="'.BB_CLASS_IMG_ICONE.'" src="'.$liste_va[$i]['icon_src'].'" alt="'.$liste_va[$i]['icon_alt'].'" /> ';
252
                    $sortie .= '<img class="'.BB_CLASS_IMG_ICONE.'" src="'.$liste_va[$i]['icon_src'].'" alt="'.$liste_va[$i]['icon_alt'].'" /> ';
254
                    $sortie .= '<a '.$liste_va[$i]['target'].'>'.$liste_va[$i]['texte'].'</a>';
253
                    $sortie .= '<a '.$liste_va[$i]['target'].'>'.$liste_va[$i]['texte'].'</a>';
255
                    if ($liste_va[$i]['desc'] != '') {
254
                    if ($liste_va[$i]['desc'] != '') {
256
                        $ret .= ' - '.'<em>'.$liste_va[$i]['desc'].'</em>';
255
                        $ret .= ' - '.'<em>'.$liste_va[$i]['desc'].'</em>';
257
                    }
256
                    }
258
                }
257
                }
259
            }
258
            }
260
            
259
            
261
            $sortie .= '</li>'."\n";
260
            $sortie .= '</li>'."\n";
262
        }
261
        }
263
        $sortie .= '</ul>'."\n";
262
        $sortie .= '</ul>'."\n";
264
    }
263
    }
265
    mysql_free_result($resultat);
264
    mysql_free_result($resultat);
266
}
265
}
267
 
266
 
268
/* +--Fin du code ----------------------------------------------------------------------------------------+
267
/* +--Fin du code ----------------------------------------------------------------------------------------+
269
*
268
*
270
* $Log: not supported by cvs2svn $
269
* $Log: not supported by cvs2svn $
-
 
270
* Revision 1.1  2005/11/23 10:22:25  jp_milcent
-
 
271
* Ajout au dépot de l'application BiblioBota.
-
 
272
* Elle doit à terme migrer dans eFlore.
-
 
273
*
271
*
274
*
272
* +-- Fin du code ----------------------------------------------------------------------------------------+
275
* +-- Fin du code ----------------------------------------------------------------------------------------+
273
*/
276
*/
274
?>
277
?>