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.92 2007-09-28 15:02:43 jp_milcent Exp $
|
22 |
// CVS : $Id: bazar.fonct.rss.php,v 1.93 2007-10-01 11:59:51 alexandre_tb 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.92 $
|
31 |
*@version $Revision: 1.93 $
|
32 |
// +------------------------------------------------------------------------------------------------------+
|
32 |
// +------------------------------------------------------------------------------------------------------+
|
33 |
*/
|
33 |
*/
|
Line 34... |
Line 34... |
34 |
|
34 |
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
Line 213... |
Line 213... |
213 |
include_once(BAZ_CHEMIN_APPLI.'templates/'.$GLOBALS['_BAZAR_']['typeannonce'].'-fiche.php');
|
213 |
include_once(BAZ_CHEMIN_APPLI.'templates/'.$GLOBALS['_BAZAR_']['typeannonce'].'-fiche.php');
|
214 |
$res .=genere_fiche($ligne);
|
214 |
$res .=genere_fiche($ligne);
|
215 |
}
|
215 |
}
|
216 |
//on affiche ligne par ligne sinon
|
216 |
//on affiche ligne par ligne sinon
|
217 |
else {
|
217 |
else {
|
- |
|
218 |
// Le titre
|
- |
|
219 |
$res .= '<h1 class="BAZ_fiche_titre BAZ_fiche_titre_'.$GLOBALS['_BAZAR_']['class'].'">'.$ligne['bf_titre'].'</h1>'."\n";
|
218 |
//cas d'une image personalisee
|
220 |
// cas d'une image personalisee
|
219 |
if (isset($ligne['bf_url_image'])) {
|
221 |
if (isset($ligne['bf_url_image'])) {
|
220 |
$res .= '<div class="BAZ_fiche_image BAZ_fiche_image_'.$GLOBALS['_BAZAR_']['class'].'">'."\n";
|
222 |
$res .= '<div class="BAZ_fiche_image BAZ_fiche_image_'.$GLOBALS['_BAZAR_']['class'].'">'."\n";
|
221 |
$res .= '<img class="BAZ_image" src="client/bazar/upload/'.$ligne['bf_url_image'].'" border=0 alt="'.BAZ_TEXTE_IMG_ALTERNATIF.'" />'."\n";
|
223 |
$res .= '<img class="BAZ_image" src="client/bazar/upload/'.$ligne['bf_url_image'].'" border=0 alt="'.BAZ_TEXTE_IMG_ALTERNATIF.'" />'."\n";
|
222 |
$res .= '</div>'."\n";
|
224 |
$res .= '</div>'."\n";
|
Line 225... |
Line 227... |
225 |
elseif (isset ($GLOBALS['_BAZAR_']['image_logo']) && $GLOBALS['_BAZAR_']['image_logo']!='') {
|
227 |
elseif (isset ($GLOBALS['_BAZAR_']['image_logo']) && $GLOBALS['_BAZAR_']['image_logo']!='') {
|
226 |
$res .= '<div class="BAZ_fiche_image BAZ_fiche_image_'.$GLOBALS['_BAZAR_']['class'].'">'."\n";
|
228 |
$res .= '<div class="BAZ_fiche_image BAZ_fiche_image_'.$GLOBALS['_BAZAR_']['class'].'">'."\n";
|
227 |
$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";
|
229 |
$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";
|
228 |
$res .= '</div>'."\n";
|
230 |
$res .= '</div>'."\n";
|
229 |
}
|
231 |
}
|
230 |
$res .= '<h1 class="BAZ_fiche_titre BAZ_fiche_titre_'.$GLOBALS['_BAZAR_']['class'].'">'.$ligne['bf_titre'].'</h1>'."\n";
|
- |
|
- |
|
232 |
|
231 |
$res .= '<div class="BAZ_description BAZ_description_'.$GLOBALS['_BAZAR_']['class'].'">'.nl2br($ligne['bf_description']).'</div>'."\n";
|
233 |
$res .= '<div class="BAZ_description BAZ_description_'.$GLOBALS['_BAZAR_']['class'].'">'.nl2br($ligne['bf_description']).'</div>'."\n";
|
232 |
$tableau=baz_valeurs_template($GLOBALS['_BAZAR_']['template']);
|
234 |
$tableau=baz_valeurs_template($GLOBALS['_BAZAR_']['template']);
|
233 |
for ($i=0; $i<count($tableau); $i++) {
|
235 |
for ($i=0; $i<count($tableau); $i++) {
|
234 |
if (isset($ligne[$tableau[$i]['nom_bdd']]) && ( $tableau[$i]['type']=='texte' || $tableau[$i]['type']=='textelong' ) ) {
|
236 |
if (isset($ligne[$tableau[$i]['nom_bdd']]) && ( $tableau[$i]['type']=='texte' || $tableau[$i]['type']=='textelong' ) ) {
|
235 |
$val=$tableau[$i]['nom_bdd'];
|
237 |
$val=$tableau[$i]['nom_bdd'];
|
Line 261... |
Line 263... |
261 |
}
|
263 |
}
|
262 |
elseif ( $tableau[$i]['type']=='listedatedeb' || $tableau[$i]['type']=='listedatefin' ) {
|
264 |
elseif ( $tableau[$i]['type']=='listedatedeb' || $tableau[$i]['type']=='listedatefin' ) {
|
263 |
$val=$tableau[$i]['nom_bdd'];
|
265 |
$val=$tableau[$i]['nom_bdd'];
|
264 |
if (!in_array($val, array ('bf_date_debut_validite_fiche', 'bf_date_fin_validite_fiche'))) {
|
266 |
if (!in_array($val, array ('bf_date_debut_validite_fiche', 'bf_date_fin_validite_fiche'))) {
|
265 |
if ($ligne[$val] != '' && $ligne[$val] != '0000-00-00') {
|
267 |
if ($ligne[$val] != '' && $ligne[$val] != '0000-00-00') {
|
- |
|
268 |
// Petit test pour afficher la date de debut et de fin d evenement
|
- |
|
269 |
if ($val == 'bf_date_debut_evenement' || $val == 'bf_date_fin_evenement') {
|
- |
|
270 |
if ($ligne['bf_date_debut_evenement'] == $ligne['bf_date_fin_evenement']) {
|
- |
|
271 |
if ($val == 'bf_date_debut_evenement') continue;
|
- |
|
272 |
$res .= '<div class="BAZ_rubrique BAZ_rubrique_'.$GLOBALS['_BAZAR_']['class'].'">'."\n".'<span class="BAZ_label" id="'.$tableau[$i]['nom_bdd'].'_rubrique">'.BAZ_LE.':</span>'."\n";
|
- |
|
273 |
$res .= '<span class="BAZ_texte BAZ_texte_'.$GLOBALS['_BAZAR_']['class'].'" id="'.$tableau[$i]['nom_bdd'].'_description"> '.strftime('%d.%m.%Y',strtotime($ligne['bf_date_debut_evenement'])).'</span>'."\n".'</div>'."\n";
|
- |
|
274 |
continue;
|
- |
|
275 |
} else {
|
- |
|
276 |
|
- |
|
277 |
if ($val == 'bf_date_debut_evenement') {
|
- |
|
278 |
$res .= '<div class="BAZ_rubrique BAZ_rubrique_'.$GLOBALS['_BAZAR_']['class'].'">'."\n".'<span class="BAZ_label" id="'.$tableau[$i]['nom_bdd'].'_rubrique">';
|
- |
|
279 |
$res .= BAZ_DU;
|
- |
|
280 |
$res .= '</span>'."\n".'<span class="BAZ_texte BAZ_texte_'.$GLOBALS['_BAZAR_']['class'].'" id="'.$tableau[$i]['nom_bdd'].'_description"> '.strftime('%d.%m.%Y',strtotime($ligne[$val])).'</span>'."\n";
|
- |
|
281 |
} else {
|
- |
|
282 |
$res .= '<span class="BAZ_label" id="'.$tableau[$i]['nom_bdd'].'_rubrique">'.BAZ_AU;
|
- |
|
283 |
$res .= '</span>'."\n".'<span class="BAZ_texte BAZ_texte_'.$GLOBALS['_BAZAR_']['class'].'" id="'.$tableau[$i]['nom_bdd'].'_description"> '.strftime('%d.%m.%Y',strtotime($ligne[$val])).'</span>'."\n".'</div>'."\n";
|
- |
|
284 |
}
|
- |
|
285 |
|
- |
|
286 |
continue;
|
- |
|
287 |
}
|
- |
|
288 |
}
|
- |
|
289 |
|
266 |
$res .= '<div class="BAZ_rubrique BAZ_rubrique_'.$GLOBALS['_BAZAR_']['class'].'">'."\n".'<span class="BAZ_label" id="'.$tableau[$i]['nom_bdd'].'_rubrique">'.$tableau[$i]['label'].':</span>'."\n";
|
290 |
$res .= '<div class="BAZ_rubrique BAZ_rubrique_'.$GLOBALS['_BAZAR_']['class'].'">'."\n".'<span class="BAZ_label" id="'.$tableau[$i]['nom_bdd'].'_rubrique">'.$tableau[$i]['label'].':</span>'."\n";
|
267 |
$res .= '<span class="BAZ_texte BAZ_texte_'.$GLOBALS['_BAZAR_']['class'].'" id="'.$tableau[$i]['nom_bdd'].'_description"> '.strftime('%d.%m.%Y',strtotime($ligne[$val])).'</span>'."\n".'</div>'."\n";
|
291 |
$res .= '<span class="BAZ_texte BAZ_texte_'.$GLOBALS['_BAZAR_']['class'].'" id="'.$tableau[$i]['nom_bdd'].'_description"> '.strftime('%d.%m.%Y',strtotime($ligne[$val])).'</span>'."\n".'</div>'."\n";
|
268 |
}
|
292 |
}
|
269 |
}
|
293 |
}
|
270 |
}
|
294 |
}
|
Line 1212... |
Line 1236... |
1212 |
}
|
1236 |
}
|
Line 1213... |
Line 1237... |
1213 |
|
1237 |
|
1214 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1238 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1215 |
*
|
1239 |
*
|
- |
|
1240 |
* $Log: not supported by cvs2svn $
|
- |
|
1241 |
* Revision 1.92 2007-09-28 15:02:43 jp_milcent
|
- |
|
1242 |
* Suppression d'une div fermante jamais ouverte!
|
1216 |
* $Log: not supported by cvs2svn $
|
1243 |
*
|
1217 |
* Revision 1.91 2007-09-28 14:43:29 jp_milcent
|
1244 |
* Revision 1.91 2007-09-28 14:43:29 jp_milcent
|
1218 |
* Correction bogue sur la gestion du mail des rédacteurs.
|
1245 |
* Correction bogue sur la gestion du mail des rédacteurs.
|
1219 |
*
|
1246 |
*
|
1220 |
* Revision 1.90 2007-09-28 13:39:15 jp_milcent
|
1247 |
* Revision 1.90 2007-09-28 13:39:15 jp_milcent
|