Subversion Repositories Applications.bazar

Rev

Rev 221 | Rev 223 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 221 Rev 222
Line 17... Line 17...
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: bazar.fonct.rss.php,v 1.75 2007-04-04 08:51:01 florian Exp $
22
// CVS : $Id: bazar.fonct.rss.php,v 1.76 2007-04-04 15:09:59 florian Exp $
23
/**
23
/**
24
* 
24
* 
25
*@package bazar
25
*@package bazar
26
//Auteur original :
26
//Auteur original :
27
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
27
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
28
*@author        Florian Schmitt <florian@ecole-et-nature.org>
28
*@author        Florian Schmitt <florian@ecole-et-nature.org>
29
//Autres auteurs :
29
//Autres auteurs :
30
*@copyright     Tela-Botanica 2000-2006
30
*@copyright     Tela-Botanica 2000-2006
31
*@version       $Revision: 1.75 $
31
*@version       $Revision: 1.76 $
32
// +------------------------------------------------------------------------------------------------------+
32
// +------------------------------------------------------------------------------------------------------+
33
*/
33
*/
Line 34... Line 34...
34
 
34
 
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
Line 209... Line 209...
209
	//on affiche ligne par ligne sinon
209
	//on affiche ligne par ligne sinon
210
	else {
210
	else {
211
		//cas d'une image personalisee
211
		//cas d'une image personalisee
212
		if (isset($ligne['bf_url_image'])) {
212
		if (isset($ligne['bf_url_image'])) {
213
			$res .= '<div class="BAZ_fiche_image BAZ_fiche_image_'.$GLOBALS['_BAZAR_']['class'].'">'."\n";
213
			$res .= '<div class="BAZ_fiche_image BAZ_fiche_image_'.$GLOBALS['_BAZAR_']['class'].'">'."\n";
214
			$res .= '<img src="client/bazar/upload/'.$ligne['bf_url_image'].'" border=0 alt="'.BAZ_TEXTE_IMG_ALTERNATIF.'" />'."\n";
214
			$res .= '<img class="BAZ_image" src="client/bazar/upload/'.$ligne['bf_url_image'].'" border=0 alt="'.BAZ_TEXTE_IMG_ALTERNATIF.'" />'."\n";
215
			$res .= '</div>'."\n";
215
			$res .= '</div>'."\n";
216
		}
216
		}
217
		//cas d'une image par defaut
217
		//cas d'une image par defaut
218
		elseif (isset ($GLOBALS['_BAZAR_']['image_logo']) && $GLOBALS['_BAZAR_']['image_logo']!='') {
218
		elseif (isset ($GLOBALS['_BAZAR_']['image_logo']) && $GLOBALS['_BAZAR_']['image_logo']!='') {
219
			$res .= '<div class="BAZ_fiche_image BAZ_fiche_image_'.$GLOBALS['_BAZAR_']['class'].'">'."\n";
219
			$res .= '<div class="BAZ_fiche_image BAZ_fiche_image_'.$GLOBALS['_BAZAR_']['class'].'">'."\n";
220
			$res .= '<img src="client/bazar/images/'.$GLOBALS['_BAZAR_']['image_logo'].'" border=0 alt="'.BAZ_TEXTE_IMG_ALTERNATIF.'" width="130" height="130" />'."\n";
220
			$res .= '<img class="BAZ_image" src="client/bazar/images/'.$GLOBALS['_BAZAR_']['image_logo'].'" border=0 alt="'.BAZ_TEXTE_IMG_ALTERNATIF.'" width="130" height="130" />'."\n";
221
			$res .= '</div>'."\n";
221
			$res .= '</div>'."\n";
222
		}
222
		}
223
		$res .= '<h1 class="BAZ_fiche_titre BAZ_fiche_titre_'.$GLOBALS['_BAZAR_']['class'].'">'.$ligne['bf_titre'].'</h1>'."\n";
223
		$res .= '<h1 class="BAZ_fiche_titre BAZ_fiche_titre_'.$GLOBALS['_BAZAR_']['class'].'">'.$ligne['bf_titre'].'</h1>'."\n";
224
		$res .= '<div class="BAZ_description BAZ_description_'.$GLOBALS['_BAZAR_']['class'].'">'.nl2br($ligne['bf_description']).'</div>'."\n";
224
		$res .= '<div class="BAZ_description BAZ_description_'.$GLOBALS['_BAZAR_']['class'].'">'.nl2br($ligne['bf_description']).'</div>'."\n";
225
		$tableau=baz_valeurs_template($GLOBALS['_BAZAR_']['template']);
225
		$tableau=baz_valeurs_template($GLOBALS['_BAZAR_']['template']);
Line 286... Line 286...
286
	$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
286
	$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
287
	if (DB::isError($resultat)) {
287
	if (DB::isError($resultat)) {
288
		die ($resultat->getMessage().$resultat->getDebugInfo()) ;
288
		die ($resultat->getMessage().$resultat->getDebugInfo()) ;
289
	}
289
	}
290
	if ($resultat->numRows()>0) {
290
	if ($resultat->numRows()>0) {
291
		$res .= '<span class="BAZ_rubrique BAZ_rubrique_'.$GLOBALS['_BAZAR_']['class'].'">'.BAZ_LISTE_FICHIERS_JOINTS.':</span>'."\n";
291
		$res .= '<span class="BAZ_label BAZ_label_'.$GLOBALS['_BAZAR_']['class'].'">'.BAZ_LISTE_FICHIERS_JOINTS.':</span>'."\n";
292
		$res .= '<span class="BAZ_description BAZ_description_'.$GLOBALS['_BAZAR_']['class'].'">'."\n";
292
		$res .= '<span class="BAZ_description BAZ_description_'.$GLOBALS['_BAZAR_']['class'].'">'."\n";
293
		$res .= '<ul>'."\n";
293
		$res .= '<ul class="BAZ_liste BAZ_liste_'.$GLOBALS['_BAZAR_']['class'].'">'."\n";
294
		while ($ligne2 = $resultat->fetchRow(DB_FETCHMODE_ASSOC)) {
294
		while ($ligne2 = $resultat->fetchRow(DB_FETCHMODE_ASSOC)) {
295
			$res .= '<li><a href="client/bazar/upload/'.$ligne2['bfj_fichier'].'">'.$ligne2['bfj_description'].'</a></li>'."\n";
295
			$res .= '<li class="BAZ_liste_fichier BAZ_liste_fichier_'.$GLOBALS['_BAZAR_']['class'].'"><a href="client/bazar/upload/'.$ligne2['bfj_fichier'].'">'.$ligne2['bfj_description'].'</a></li>'."\n";
296
		}
296
		}
297
		$res .= '</ul></span>'."\n";
297
		$res .= '</ul></span>'."\n";
298
	}
298
	}
299
	$res .= '<div class="BAZ_bulle_corps BAZ_bulle_corps_'.$GLOBALS['_BAZAR_']['class'].'">'."\n";
299
	$res .= '<div class="BAZ_bulle_corps BAZ_bulle_corps_'.$GLOBALS['_BAZAR_']['class'].'">'."\n";
300
	$res .= '<div class="BAZ_infos_fiche BAZ_infos_fiche_'.$GLOBALS['_BAZAR_']['class'].'">'."\n";
300
	$res .= '<div class="BAZ_infos_fiche BAZ_infos_fiche_'.$GLOBALS['_BAZAR_']['class'].'">'."\n";
Line 1128... Line 1128...
1128
}
1128
}
Line 1129... Line 1129...
1129
 
1129
 
1130
/* +--Fin du code ----------------------------------------------------------------------------------------+
1130
/* +--Fin du code ----------------------------------------------------------------------------------------+
1131
*
1131
*
-
 
1132
* $Log: not supported by cvs2svn $
-
 
1133
* Revision 1.75  2007/04/04 08:51:01  florian
-
 
1134
* gestion des classes spécifiques pour habiller par CSS les fiches bazar
1132
* $Log: not supported by cvs2svn $
1135
*
1133
* Revision 1.74  2007/03/28 15:54:32  florian
1136
* Revision 1.74  2007/03/28 15:54:32  florian
1134
* correction de bugs
1137
* correction de bugs
1135
*
1138
*
1136
* Revision 1.73  2007/03/28 10:01:47  florian
1139
* Revision 1.73  2007/03/28 10:01:47  florian