Subversion Repositories Applications.bazar

Compare Revisions

Ignore whitespace Rev 121 → Rev 122

/trunk/bibliotheque/bazar.fonct.rss.php
177,16 → 177,15
$res .= '</div>'."\n";
}
$res .= '<h1 id="fiche_titre">'.$ligne['bf_titre'].'</h1>'."\n";
$res .= '<div id="BAZ_description">'.$ligne['bf_description'].'</div>'."\n";
$res .= '<div id="BAZ_description">'.nl2br($ligne['bf_description']).'</div>'."\n";
$tableau=baz_valeurs_template($GLOBALS['_BAZAR_']['template']);
for ($i=0; $i<count($tableau); $i++) {
if (isset($ligne[$tableau[$i]['nom_bdd']]) && ( $tableau[$i]['type']=='texte' || $tableau[$i]['type']=='textelong' ) ) {
$val=$tableau[$i]['nom_bdd'];
if (!in_array($val, array ('bf_titre', 'bf_description', 'bf_date_debut_validite_fiche',
'bf_date_fin_validite_fiche'))) {
if ($val != '' and $val != BAZ_CHOISIR and $val != BAZ_NON_PRECISE) {
if (!in_array($val, array ('bf_titre', 'bf_description'))) {
if ($ligne[$val] != '' and $ligne[$val] != BAZ_CHOISIR and $ligne[$val] != BAZ_NON_PRECISE) {
$res .= '<span class="rubrique">'.$tableau[$i]['label'].':</span>'."\n";
$res .= '<span class="description"> '.$ligne[$val].'</span>'."\n".'<br />'."\n";
$res .= '<span class="description"> '.nl2br($ligne[$val]).'</span>'."\n".'<br />'."\n";
}
}
}
204,9 → 203,20
$val .= $tab[0];
$nb++;
}
$res .= '<span class="rubrique">'.$tableau[$i]['label'].':</span>'."\n";
$res .= '<span class="description"> '.$val.'</span>'."\n".'<br />'."\n";
if ($val != '' and $val != BAZ_CHOISIR and $val != BAZ_NON_PRECISE) {
$res .= '<span class="rubrique">'.$tableau[$i]['label'].':</span>'."\n";
$res .= '<span class="description"> '.$val.'</span>'."\n".'<br />'."\n";
}
}
elseif ( $tableau[$i]['type']=='listedatedeb' || $tableau[$i]['type']=='listedatefin' ) {
$val=$tableau[$i]['nom_bdd'];
if (!in_array($val, array ('bf_date_debut_validite_fiche', 'bf_date_fin_validite_fiche'))) {
if ($ligne[$val] != '') {
$res .= '<span class="rubrique">'.$tableau[$i]['label'].':</span>'."\n";
$res .= '<span class="description"> '.strftime('%d.%m.%Y',strtotime($ligne[$val])).'</span>'."\n".'<br />'."\n";
}
}
}
}
//afficher les liens pour l'annonce
$requete = 'SELECT bu_url, bu_descriptif_url FROM bazar_url WHERE bu_ce_fiche='.$GLOBALS['_BAZAR_']['id_fiche'];