19,7 → 19,7 |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: bazar.fonct.rss.php,v 1.62 2006-12-11 15:54:55 alexandre_tb Exp $ |
// CVS : $Id: bazar.fonct.rss.php,v 1.63 2007-01-18 14:37:34 alexandre_tb Exp $ |
/** |
* |
*@package bazar |
28,7 → 28,7 |
*@author Florian Schmitt <florian@ecole-et-nature.org> |
//Autres auteurs : |
*@copyright Tela-Botanica 2000-2006 |
*@version $Revision: 1.62 $ |
*@version $Revision: 1.63 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
254,7 → 254,7 |
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] != '') { |
if ($ligne[$val] != '' && $ligne[$val] != '0000-00-00') { |
$res .= '<span class="rubrique">'.$tableau[$i]['label'].':</span>'."\n"; |
$res .= '<span class="description"> '.strftime('%d.%m.%Y',strtotime($ligne[$val])).'</span>'."\n".'<br />'."\n"; |
} |
316,8 → 316,12 |
|
//informations complementaires (id fiche, etat publication,... ) |
if ($danslappli==1) { |
if ($ligne['bf_statut_fiche']==1 && $GLOBALS['_BAZAR_']['appropriation']!=1 ) { |
$res .= '<span class="rubrique">'.BAZ_PUBLIEE.':</span> '.BAZ_DU.' '.strftime('%d.%m.%Y',strtotime($ligne['bf_date_debut_validite_fiche'])).' '.BAZ_AU.' '.strftime('%d.%m.%Y',strtotime($ligne['bf_date_fin_validite_fiche'])).'<br />'."\n"; |
if ($ligne['bf_statut_fiche']==1 && $GLOBALS['_BAZAR_']['appropriation']!=1) { |
if ($ligne['bf_date_debut_validite_fiche'] != '0000-00-00' && $ligne['bf_date_fin_validite_fiche'] != '0000-00-00') { |
$res .= '<span class="rubrique">'.BAZ_PUBLIEE.':</span> '.BAZ_DU. |
' '.strftime('%d.%m.%Y',strtotime($ligne['bf_date_debut_validite_fiche'])).' '. |
BAZ_AU.' '.strftime('%d.%m.%Y',strtotime($ligne['bf_date_fin_validite_fiche'])).'<br />'."\n"; |
} |
} |
elseif ($GLOBALS['_BAZAR_']['appropriation']!=1 || $ligne['bf_statut_fiche']!=1) { |
$res .= '<span class="rubrique">'.BAZ_PUBLIEE.':</span> '.BAZ_NON; |
1012,9 → 1016,13 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.61 2006/12/05 13:35:41 alexandre_tb |
* modification de l ordre d apparition des fiches |
* Revision 1.60.2.2 2007/01/17 16:01:27 alexandre_tb |
* les dates ne s'affichent pas si elles sont vides. |
* les champs dates propose 4 années avant l'année actuelle |
* |
* Revision 1.60.2.1 2007/01/05 14:41:49 alexandre_tb |
* backport ordre d affichage des dernieres news et suppression de la taille des images uploadees |
* |
* Revision 1.60 2006/10/05 08:53:50 florian |
* amelioration moteur de recherche, correction de bugs |
* |