Subversion Repositories eFlore/Applications.bibliobota

Rev

Rev 2 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 30
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_media.inc.php,v 1.1 2005-11-23 10:22:25 jp_milcent Exp $
22
// CVS : $Id$
23
/**
23
/**
24
* Appli bb_consultation : gestion des informations avancées "media" de Biblio Bota
24
* Appli bb_consultation : gestion des informations avancées "media" de Biblio Bota
25
*
25
*
26
* Ce fichier permet d'afficher les informations concernant les "médias" d'un organisme lié à la botanique.
26
* Ce fichier permet d'afficher les informations concernant les "médias" 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$ $Date$
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
$tableau['args'] = '&amp;arg_0=str%3D'.$tableau['media'].'&amp;arg_1=coll%3D'.$tableau['media'].'&amp;arg_2=book%3D'.$tableau['media'].'&amp;arg_3=media%3D'.$tableau['media'];
50
$tableau['args'] = '&amp;arg_0=str%3D'.$tableau['media'].'&amp;arg_1=coll%3D'.$tableau['media'].'&amp;arg_2=book%3D'.$tableau['media'].'&amp;arg_3=media%3D'.$tableau['media'];
51
 
51
 
52
// Proposition d'édition
52
// Proposition d'édition
-
 
53
/* TODO NAVIGBIBLIO */
53
/*
54
/*
54
$sortie .= '<p>'."\n";
55
$sortie .= '<p>'."\n";
55
if ($var_biblio['open_proposer_media'] == 1) {
56
if ($var_biblio['open_proposer_media'] == 1) {
56
    $sortie .= CreateNavigBiblio('add', 'media', 'Proposer un nouveau media', $tableau['media'], 1, $tableau);
57
    $sortie .= CreateNavigBiblio('add', 'media', 'Proposer un nouveau media', $tableau['media'], 1, $tableau);
57
} else {
58
} else {
58
    $sortie .= '&nbsp;';
59
    $sortie .= '&nbsp;';
59
}
60
}
60
$sortie .= '</p>'."\n";
61
$sortie .= '</p>'."\n";
61
*/
62
*/
62
 
63
 
63
// Récupèration du nom de la structure
64
// Récupèration du nom de la structure
64
$requete =  'SELECT B_S_NOM '.
65
$requete =  'SELECT B_S_NOM '.
65
            'FROM '.$tbl['str'].' '.
66
            'FROM '.$tbl['str'].' '.
66
            'WHERE B_S_IDSTR = '.$tableau['media'];
67
            'WHERE B_S_IDSTR = '.$tableau['media'];
67
$resultat = mysql_query($requete) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $requete));
68
$resultat = mysql_query($requete) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $requete));
68
$num_s = mysql_num_rows($resultat);
69
$num_s = mysql_num_rows($resultat);
69
 
70
 
70
if ($num_s != 1) {
71
if ($num_s != 1) {
71
    $sortie .=  '<p class="erreur"><strong>'.'Erreur de requête MEDIA !'.'</strong>'.
72
    $sortie .=  '<p class="erreur"><strong>'.'Erreur de requête MEDIA !'.'</strong>'.
72
                ' nombre de résultats (= '.$num_s.') incohérent pour la requête : '.'<br />'.$requete.'</p>';
73
                ' nombre de résultats (= '.$num_s.') incohérent pour la requête : '.'<br />'.$requete.'</p>';
73
} else {
74
} else {
74
    $ligne = mysql_fetch_object($resultat);
75
    $ligne = mysql_fetch_object($resultat);
75
    $la_structure = $ligne->B_S_NOM;
76
    $la_structure = $ligne->B_S_NOM;
76
    mysql_free_result($resultat);
77
    mysql_free_result($resultat);
77
    
78
    
78
    // Comptage du nombre de médias
79
    // Comptage du nombre de médias
79
    $requete =  'SELECT COUNT(*) AS COMPTAGE '.
80
    $requete =  'SELECT COUNT(*) AS COMPTAGE '.
80
                'FROM '.$tbl['item'].', '.$tbl['media'].' '.
81
                'FROM '.$tbl['item'].', '.$tbl['media'].' '.
81
                'WHERE '.$tbl['media'].'.B_M_LKSTR = '.$tableau['media'].' '.
82
                'WHERE '.$tbl['media'].'.B_M_LKSTR = '.$tableau['media'].' '.
82
                'AND '.$tbl['item'].'.B_I_TYPPHY <> '.$def_livre.' '.
83
                'AND '.$tbl['item'].'.B_I_TYPPHY <> '.$def_livre.' '.
83
                'AND '.$tbl['item'].'.B_I_IDITEM = '.$tbl['media'].'.B_M_IDMEDIA';
84
                'AND '.$tbl['item'].'.B_I_IDITEM = '.$tbl['media'].'.B_M_IDMEDIA';
84
    $resultat = mysql_query($requete) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $requete));
85
    $resultat = mysql_query($requete) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $requete));
85
    $tmp_nb_c = mysql_fetch_object($resultat);
86
    $tmp_nb_c = mysql_fetch_object($resultat);
86
    $num_c = $tmp_nb_c->COMPTAGE;
87
    $num_c = $tmp_nb_c->COMPTAGE;
87
    mysql_free_result($resultat);
88
    mysql_free_result($resultat);
88
    
89
    
89
    $requete =  'SELECT '.$tbl['item'].'.*, '.$tbl['media'].'.*, GEN_MON_SYMBOLE, B_AS_LIBELLE, GEN_MON_VAL1EURO, '.$tbl['item_typphy'].'.*, '.$tbl['item_typlog'].'.*, '.$tbl['domaine'].'.* '.
90
    $requete =  'SELECT '.$tbl['item'].'.*, '.$tbl['media'].'.*, GEN_MON_SYMBOLE, B_AS_LIBELLE, GEN_MON_VAL1EURO, '.$tbl['item_typphy'].'.*, '.$tbl['item_typlog'].'.*, '.$tbl['domaine'].'.* '.
90
                'FROM '.$tbl['item'].', '.$tbl['media'].', '.$tbl['monnaie'].', '.$tbl['saisie'].', '.$tbl['item_typphy'].', '.$tbl['item_typlog'].', '.$tbl['domaine'].', '.$tbl['domaine_lk'].' '.
91
                'FROM '.$tbl['item'].', '.$tbl['media'].', '.$tbl['monnaie'].', '.$tbl['saisie'].', '.$tbl['item_typphy'].', '.$tbl['item_typlog'].', '.$tbl['domaine'].', '.$tbl['domaine_lk'].' '.
91
                'WHERE B_M_LKSTR = '.$tableau['media'].' '.
92
                'WHERE B_M_LKSTR = '.$tableau['media'].' '.
92
                'AND B_I_TYPPHY <> '.$def_livre.' '.
93
                'AND B_I_TYPPHY <> '.$def_livre.' '.
93
                'AND B_I_IDITEM = B_M_IDMEDIA '.
94
                'AND B_I_IDITEM = B_M_IDMEDIA '.
94
                'AND GEN_MON_IDMONNAIE = B_M_LKMONNAIE '.
95
                'AND GEN_MON_IDMONNAIE = B_M_LKMONNAIE '.
95
                'AND B_I_AUTEURSAISIE = B_AS_ID '.
96
                'AND B_I_AUTEURSAISIE = B_AS_ID '.
96
                'AND B_I_TYPLOG = B_IL_ID '.
97
                'AND B_I_TYPLOG = B_IL_ID '.
97
                'AND B_I_TYPPHY = B_IP_ID '.
98
                'AND B_I_TYPPHY = B_IP_ID '.
98
                'AND B_I_IDITEM = B_DL_IDITEM '.
99
                'AND B_I_IDITEM = B_DL_IDITEM '.
99
                'AND B_DL_IDDOM = B_D_ID '.
100
                'AND B_DL_IDDOM = B_D_ID '.
100
                'ORDER BY B_I_TYPLOG, B_I_TYPPHY, B_I_AUTEURS '.
101
                'ORDER BY B_I_TYPLOG, B_I_TYPPHY, B_I_AUTEURS '.
101
                'LIMIT '.$tableau['pstart'].', '.$var_biblio['how_book'];
102
                'LIMIT '.$tableau['pstart'].', '.$var_biblio['how_book'];
102
    $resultat = mysql_query($requete) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $requete));
103
    $resultat = mysql_query($requete) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $requete));
103
    $nb_m = mysql_num_rows($resultat);
104
    $nb_m = mysql_num_rows($resultat);
104
    
105
    
105
    // Affichage du titre
106
    // Affichage du titre
106
    $sortie .= '<h1>'.$la_structure.' : médias'.'</h1>'."\n";
107
    $sortie .= '<h1>'.$la_structure.' : médias'.'</h1>'."\n";
107
    
108
    
108
    // Récupération d'informations
109
    // Récupération d'informations
109
    if (empty($tableau['step'])) {
110
    if (empty($tableau['step'])) {
110
        $tableau['step'] = $var_biblio['how_book'];
111
        $tableau['step'] = $var_biblio['how_book'];
111
    }
112
    }
112
    if (empty($tableau['pend'])) {
113
    if (empty($tableau['pend'])) {
113
        $tableau['pend'] = $num_c;
114
        $tableau['pend'] = $num_c;
114
    }
115
    }
115
    if (empty($tableau['libelle'])) {
116
    if (empty($tableau['libelle'])) {
116
        $tableau['libelle'] = 'média';
117
        $tableau['libelle'] = 'média';
117
    }
118
    }
118
    if (empty($tableau['feminin'])) {
119
    if (empty($tableau['feminin'])) {
119
        $tableau['feminin'] = 0;
120
        $tableau['feminin'] = 0;
120
    }
121
    }
121
    
122
    
122
    // Affichage du nbre de résultats
123
    // Affichage du nbre de résultats
123
    $sortie .= '<p id="frag_nbre_resultat">';
124
    $sortie .= '<p id="frag_nbre_resultat">';
124
    $sortie .= FRAG_afficherTxtNbreResultat('bbpopup', $tableau, $nb_m, $num_c);
125
    $sortie .= FRAG_afficherTxtNbreResultat('bbpopup', $tableau, $nb_m, $num_c);
125
    $sortie .= '</p>'."\n";
126
    $sortie .= '</p>'."\n";
126
    
127
    
127
    // Ici on fragmente en pages, pour une navigation plus facile
128
    // Ici on fragmente en pages, pour une navigation plus facile
128
    $frag = new fragmenteur(' - ', 10, BB_URL_COURANTE_CONSULTATION_AVANCEE);
129
    $frag = new fragmenteur(' - ', 10, BB_URL_COURANTE_CONSULTATION_AVANCEE);
129
    $frag_txt = $frag->fragmente($tableau, $num_c);
130
    $frag_txt = $frag->fragmente($tableau, $num_c);
130
    if (($frag->nb_pages)>1) {
131
    if (($frag->nb_pages)>1) {
131
        $sortie .= '<p class="frag_navigation">'.$frag_txt.'</p>'."\n";
132
        $sortie .= '<p class="frag_navigation">'.$frag_txt.'</p>'."\n";
132
    }
133
    }
133
    
134
    
134
    // Affichage des médias
135
    // Affichage des médias
135
    if ($num_c == 0) {
136
    if ($num_c == 0) {
136
        $sortie .= '<p class="information">'.'Aucun média indexé.'.'</p>'."\n";
137
        $sortie .= '<p class="information">'.'Aucun média indexé.'.'</p>'."\n";
137
    } else {
138
    } else {
138
        $sortie .= '<ul id="bb_liste_article">'."\n";
139
        $sortie .= '<ul id="bb_liste_article">'."\n";
139
        while ($ligne = mysql_fetch_object($resultat)) {
140
        while ($ligne = mysql_fetch_object($resultat)) {
140
            $id_a = $ligne->B_I_IDITEM;
141
            $id_a = $ligne->B_I_IDITEM;
141
            $titre = $ligne->B_I_TITRE;
142
            $titre = $ligne->B_I_TITRE;
142
            $auteurs = $ligne->B_I_AUTEURS;
143
            $auteurs = $ligne->B_I_AUTEURS;
143
            $geo = $ligne->B_I_GEO;
144
            $geo = $ligne->B_I_GEO;
144
            $langue = $ligne->B_I_LANGUE;
145
            $langue = $ligne->B_I_LANGUE;
145
            $resum = $ligne->B_I_RESUMCLE;
146
            $resum = $ligne->B_I_RESUMCLE;
146
            $image = $ligne->B_I_IMAGE;
147
            $image = $ligne->B_I_IMAGE;
147
            $saisie = $ligne->B_AS_LIBELLE;
148
            $saisie = $ligne->B_AS_LIBELLE;
148
            $comment = $ligne->B_I_COMMENT;
149
            $comment = $ligne->B_I_COMMENT;
149
            $date = $ligne->B_M_DATE;
150
            $date = $ligne->B_M_DATE;
150
            $prix = $ligne->B_M_PRIX;
151
            $prix = $ligne->B_M_PRIX;
151
            $idmonnaie = $ligne->B_M_LKMONNAIE;
152
            $idmonnaie = $ligne->B_M_LKMONNAIE;
152
            $monnaie = $ligne->GEN_MON_SYMBOLE;
153
            $monnaie = $ligne->GEN_MON_SYMBOLE;
153
            $converter = $ligne->GEN_MON_VAL1EURO;
154
            $converter = $ligne->GEN_MON_VAL1EURO;
154
            $volume = $ligne->B_M_VOLUME;
155
            $volume = $ligne->B_M_VOLUME;
155
            $edite = $ligne->B_M_EDITE;
156
            $edite = $ligne->B_M_EDITE;
156
            $vendu = $ligne->B_M_VEND;
157
            $vendu = $ligne->B_M_VEND;
157
            $editeur = $ligne->B_M_EDITEUR;
158
            $editeur = $ligne->B_M_EDITEUR;
158
            $collection_book = $ligne->B_M_COLLECTION;
159
            $collection_book = $ligne->B_M_COLLECTION;
159
            $numcoll_book = $ligne->B_M_NUMCOLL;
160
            $numcoll_book = $ligne->B_M_NUMCOLL;
160
            $get_domaine_id = $ligne->B_D_ID;
161
            $get_domaine_id = $ligne->B_D_ID;
161
            $get_domaine_nom = $ligne->B_D_LABEL;
162
            $get_domaine_nom = $ligne->B_D_LABEL;
162
            $item_phy = $ligne->B_IP_LABEL;
163
            $item_phy = $ligne->B_IP_LABEL;
163
            $icon_phy = $ligne->B_IP_IMAGE;
164
            $icon_phy = $ligne->B_IP_IMAGE;
164
            $item_log = $ligne->B_IL_LABEL;
165
            $item_log = $ligne->B_IL_LABEL;
165
            $icon_log = $ligne->B_IL_IMAGE;
166
            $icon_log = $ligne->B_IL_IMAGE;
166
            
167
            
167
            $sortie .= '<li>'."\n";
168
            $sortie .= '<li>'."\n";
168
            
169
            
169
            if ($image != '') {
170
            if ($image != '') {
170
                $sortie .=  '<img class="bb_img_media" src="'.BB_CHEMIN_IMAGES_ILLUSTRATION.$image.'" '.
171
                $sortie .=  '<img class="bb_img_media" src="'.BB_CHEMIN_IMAGES_ILLUSTRATION.$image.'" '.
171
                            'alt="'.'Illustration du média : '.$titre.'" />';
172
                            'alt="'.'Illustration du média : '.$titre.'" />';
172
            }
173
            }
173
            
174
            
174
            $sortie .= '<span class="texte_inactif">';
175
            $sortie .= '<span class="texte_inactif">';
175
            
176
            
176
            if ($get_domaine_id != 1) {
177
            if ($get_domaine_id != 1) {
177
                $sortie .= '['.$get_domaine_nom.']'."\n";
178
                $sortie .= '['.$get_domaine_nom.']'."\n";
178
            }
179
            }
179
            
180
            
180
            if ($icon_phy != '') {
181
            if ($icon_phy != '') {
181
                $sortie .= '<img class="'.BB_CLASS_IMG_ICONE.'" src="'.BB_CHEMIN_IMAGES_TYPE_PHYSIQUE.$icon_phy.'" alt="'.$item_phy.'" />';
182
                $sortie .= '<img class="'.BB_CLASS_IMG_ICONE.'" src="'.BB_CHEMIN_IMAGES_TYPE_PHYSIQUE.$icon_phy.'" alt="'.$item_phy.'" />';
182
            } else {
183
            } else {
183
                $sortie .= '['.$item_phy.']';
184
                $sortie .= '['.$item_phy.']';
184
            }
185
            }
185
            
186
            
186
            if (($icon_phy == '') && ($icon_log)) {
187
            if (($icon_phy == '') && ($icon_log)) {
187
                $sortie .= ' - ';
188
                $sortie .= ' - ';
188
            }
189
            }
189
            
190
            
190
            if ($icon_log != '') {
191
            if ($icon_log != '') {
191
                $sortie .= '<img class="'.BB_CLASS_IMG_ICONE.'" src="'.BB_CHEMIN_IMAGES_TYPE_LOGIQUE.$icon_log.'" alt="'.$item_log.'" />';
192
                $sortie .= '<img class="'.BB_CLASS_IMG_ICONE.'" src="'.BB_CHEMIN_IMAGES_TYPE_LOGIQUE.$icon_log.'" alt="'.$item_log.'" />';
192
            } else {
193
            } else {
193
                $sortie .= '['.$item_log.']';
194
                $sortie .= '['.$item_log.']';
194
            }
195
            }
195
            $sortie .= '</span> ';
196
            $sortie .= '</span> ';
196
        
197
        
197
            $sortie .= $auteurs.' - '.'<strong>'.$titre.'</strong>'.' -'."\n";
198
            $sortie .= $auteurs.' - '.'<strong>'.$titre.'</strong>'.' -'."\n";
198
        
199
        
199
            $sortie .= ' Éditeur : ';
200
            $sortie .= ' Éditeur : ';
200
            if ($editeur != '') {
201
            if ($editeur != '') {
201
                $sortie .= $editeur;
202
                $sortie .= $editeur;
202
            } else {
203
            } else {
203
                $sortie .= 'inconnu';
204
                $sortie .= 'inconnu';
204
            }
205
            }
205
            $sortie .= ' - ';
206
            $sortie .= ' - ';
206
        
207
        
207
            if (($collection_book != '') || ($numcoll_book != '')) {
208
            if (($collection_book != '') || ($numcoll_book != '')) {
208
                $sortie .= 'Collection : '.$collection_book.' '.$numcoll_book.' - ';
209
                $sortie .= 'Collection : '.$collection_book.' '.$numcoll_book.' - ';
209
            }
210
            }
210
            
211
            
211
            if ($geo != '') {
212
            if ($geo != '') {
212
                $sortie .= 'Départ./Région : '.'<em>'.$geo.'</em>'.' -';
213
                $sortie .= 'Départ./Région : '.'<em>'.$geo.'</em>'.' -';
213
            }
214
            }
214
            
215
            
215
            if ($date > 0) {
216
            if ($date > 0) {
216
                $sortie .= ' '.DAT_formaterDateYYYYMMJJ($date).', ';
217
                $sortie .= ' '.DAT_formaterDateYYYYMMJJ($date).', ';
217
            }
218
            }
218
            if ($volume != '') {
219
            if ($volume != '') {
219
                $sortie .= $volume.', ';
220
                $sortie .= $volume.', ';
220
            }
221
            }
221
            if ($prix > 0) {
222
            if ($prix > 0) {
222
                $sortie .= $prix.' '.$monnaie;
223
                $sortie .= $prix.' '.$monnaie;
223
            }
224
            }
224
            
225
            
225
            if (($def_euro != $idmonnaie) && ($converter > 0)) {
226
            if (($def_euro != $idmonnaie) && ($converter > 0)) {
226
                $sortie .= ' (env. '.round($prix / $converter, 2).' &euro;)';
227
                $sortie .= ' (env. '.round($prix / $converter, 2).' &euro;)';
227
            }
228
            }
228
            
229
            
229
            if ($langue != '') {
230
            if ($langue != '') {
230
                $sortie .= ' ('.$langue.')';
231
                $sortie .= ' ('.$langue.')';
231
            }
232
            }
232
            
233
            
233
            if (($resum != '') || ($comment != '')) {
234
            if (($resum != '') || ($comment != '')) {
234
                $sortie .= ' - '.'<em>'.$comment;
235
                $sortie .= ' - '.'<em>'.$comment;
235
                if (($resum != '') && ($comment != '')) {
236
                if (($resum != '') && ($comment != '')) {
236
                    $sortie .= ' - ';
237
                    $sortie .= ' - ';
237
                }
238
                }
238
                $sortie .= $resum.'</em>';
239
                $sortie .= $resum.'</em>';
239
            }
240
            }
240
            
241
            
241
            if ($vendu == -1) {
242
            if ($vendu == -1) {
242
                $sortie .= ' - '.'<img class="'.BB_CLASS_IMG_EPUISE.'" src="'.BB_IMG_EPUISE.'" alt="'.'Épuisé'.'" />';
243
                $sortie .= ' - '.'<img class="'.BB_CLASS_IMG_EPUISE.'" src="'.BB_IMG_EPUISE.'" alt="'.'Épuisé'.'" />';
243
            }
244
            }
244
            
245
            
245
            if (($edite == 1) || ($vendu == 1)) {
246
            if (($edite == 1) || ($vendu == 1)) {
246
                $sortie .= ' - '.'Organisme ';
247
                $sortie .= ' - '.'Organisme ';
247
                if ($edite == 1) {
248
                if ($edite == 1) {
248
                    $sortie .= 'éditeur';
249
                    $sortie .= 'éditeur';
249
                }
250
                }
250
                if (($edite == 1) && ($vendu == 1)) {
251
                if (($edite == 1) && ($vendu == 1)) {
251
                    $sortie .= ' et ';
252
                    $sortie .= ' et ';
252
                }
253
                }
253
                if ($vendu == 1) {
254
                if ($vendu == 1) {
254
                    $sortie .= 'vendeur';
255
                    $sortie .= 'vendeur';
255
                }
256
                }
256
                $sortie .= ' de l\'article';
257
                $sortie .= ' de l\'article';
257
            }
258
            }
258
            
259
            
259
            if ($saisie != '') {
260
            if ($saisie != '') {
260
                $sortie .= '<span class="texte_inactif">'.' - '.'Saisie : '.$saisie.' - '.'Art. n°'.$id_a.'.'.'</span>';
261
                $sortie .= '<span class="texte_inactif">'.' - '.'Saisie : '.$saisie.' - '.'Art. n°'.$id_a.'.'.'</span>';
261
            }
262
            }
262
            
263
            
263
            // Là on affiche les Voir Aussi Médias ... si y'en a 
264
            // Là on affiche les Voir Aussi Médias ... si y'en a 
264
            $UnVoirAussi = new VoirAussi($id_a, $tbl['article']);
265
            $UnVoirAussi = new VoirAussi($id_a, $tbl['article']);
265
            if ($UnVoirAussi->NbVA > 0) {
266
            if ($UnVoirAussi->NbVA > 0) {
266
                $sortie .= '<br />'.'Consulter : ';
267
                $sortie .= '<br />'.'Consulter : ';
267
                $liste_va = $UnVoirAussi->ListerVoirAussi();
268
                $liste_va = $UnVoirAussi->ListerVoirAussi();
268
                for ($i = 0; $i == (($UnVoirAussi->NbVA) - 1); $i++) {
269
                for ($i = 0; $i == (($UnVoirAussi->NbVA) - 1); $i++) {
269
                    $sortie .= '<img class="'.BB_CLASS_IMG_ICONE.'" src="'.$liste_va[$i]['icon_src'].'" alt="'.$liste_va[$i]['icon_alt'].'" /> ';
270
                    $sortie .= '<img class="'.BB_CLASS_IMG_ICONE.'" src="'.$liste_va[$i]['icon_src'].'" alt="'.$liste_va[$i]['icon_alt'].'" /> ';
270
                    $sortie .= '<a '.$liste_va[$i]['target'].'>'.$liste_va[$i]['texte'].'</a>';
271
                    $sortie .= '<a '.$liste_va[$i]['target'].'>'.$liste_va[$i]['texte'].'</a>';
271
                    if ($liste_va[$i]['desc'] != '') {
272
                    if ($liste_va[$i]['desc'] != '') {
272
                        $ret .= ' - '.'<em>'.$liste_va[$i]['desc'].'</em>';
273
                        $ret .= ' - '.'<em>'.$liste_va[$i]['desc'].'</em>';
273
                    }
274
                    }
274
                }
275
                }
275
            }
276
            }
276
            
277
            
277
            $sortie .= '</li>'."\n";
278
            $sortie .= '</li>'."\n";
278
        }
279
        }
279
        $sortie .= '</ul>'."\n";
280
        $sortie .= '</ul>'."\n";
280
    }
281
    }
281
    mysql_free_result($resultat);
282
    mysql_free_result($resultat);
282
}
283
}
283
 
284
 
284
/* +--Fin du code ----------------------------------------------------------------------------------------+
285
/* +--Fin du code ----------------------------------------------------------------------------------------+
285
*
286
*
286
* $Log: not supported by cvs2svn $
287
* $Log$
287
*
288
*
288
* +-- Fin du code ----------------------------------------------------------------------------------------+
289
* +-- Fin du code ----------------------------------------------------------------------------------------+
289
*/
290
*/
290
?>
291
?>