Subversion Repositories Applications.bazar

Compare Revisions

Ignore whitespace Rev 98 → Rev 105

/trunk/bibliotheque/bazar.fonct.rss.php
127,7 → 127,7
}
//affiche le texte sinon
else {
$res .= '<h1 class="BAZ_titre">'.constant ($GLOBALS['_BAZAR_']['typeannonce']).'</h1>'."\n";
$res .= '<h1 class="BAZ_titre">'.$GLOBALS['_BAZAR_']['typeannonce'].'</h1>'."\n";
}
$res .= '<div class="BAZ_cadre_fiche">'."\n";
$res .= '<div class="BAZ_cadre_fiche_haut">'."\n";
168,7 → 168,7
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) {
$res .= '<span class="rubrique">'.constant($tableau[$i]['label']).':</span>'."\n";
$res .= '<span class="rubrique">'.$tableau[$i]['label'].':</span>'."\n";
$res .= '<span class="description"> '.$ligne[$val].'</span>'."\n".'<br />'."\n";
}
}
187,7 → 187,7
$val .= $tab[0];
$nb++;
}
$res .= '<span class="rubrique">'.constant($tableau[$i]['label']).':</span>'."\n";
$res .= '<span class="rubrique">'.$tableau[$i]['label'].':</span>'."\n";
$res .= '<span class="description"> '.$val.'</span>'."\n".'<br />'."\n";
}
}
577,18 → 577,17
}
$type_annonce_select['toutes']=BAZ_TOUS_TYPES_FICHES;
while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC)) {
$type_annonce_select[$ligne['bn_id_nature']] = constant($ligne['bn_label_nature']);
$type_annonce_select[$ligne['bn_id_nature']] = $ligne['bn_label_nature'];
$tableau_typeannonces[] = $ligne['bn_id_nature'] ;
}
if ($GLOBALS['_BAZAR_']['typeannonce']=='toutes') {
$res= '<h2>'.BAZ_TOUTES_LES_ANNONCES.'</h2><br />'."\n";
$option=array('style'=>'border:1px solid #000;width: 140px;font:12px Myriad, Arial, sans-serif;');
$formtemplate->addElement ('select', 'nature', BAZ_TYPEANNONCE, $type_annonce_select, $option) ;
}
//cas du type d'annonces prédéfini
else {
$res = '<h2>'.BAZ_TOUTES_LES_ANNONCES_DE_TYPE.' '.constant($GLOBALS['_BAZAR_']['typeannonce']).'</h2>'."\n";
$res = '<h2>'.BAZ_TOUTES_LES_ANNONCES_DE_TYPE.' '.$GLOBALS['_BAZAR_']['typeannonce'].'</h2>'."\n";
}