Subversion Repositories Applications.bazar

Rev

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

Rev 174 Rev 177
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.60.2.4 2007-01-30 15:45:01 alexandre_tb Exp $
22
// CVS : $Id: bazar.fonct.rss.php,v 1.60.2.5 2007-02-02 13:46:54 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.60.2.4 $
31
*@version       $Revision: 1.60.2.5 $
32
// +------------------------------------------------------------------------------------------------------+
32
// +------------------------------------------------------------------------------------------------------+
33
*/
33
*/
Line 34... Line 34...
34
 
34
 
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
Line 638... Line 638...
638
				$xml .= $ligne['bf_description'] ;
638
				$xml .= $ligne['bf_description'] ;
639
			}
639
			}
640
			$xml .= ']]>'."\n".'</description>'."\n";
640
			$xml .= ']]>'."\n".'</description>'."\n";
641
			if ($ligne['bf_date_debut_validite_fiche'] == '0000-00-00') $date_pub = $ligne[' bf_date_creation_fiche'] ; else 
641
			if ($ligne['bf_date_debut_validite_fiche'] == '0000-00-00') $date_pub = $ligne[' bf_date_creation_fiche'] ; else 
642
					$date_pub =  $ligne['bf_date_debut_validite_fiche'];
642
					$date_pub =  $ligne['bf_date_debut_validite_fiche'];
643
			$xml .= '<pubDate>'.strftime('%d %b %Y %H:%M:%S GMT',strtotime($ligne['bf_date_debut_validite_fiche'])).'</pubDate>'."\n";
643
			$xml .= '<pubDate>'.strftime('%d %b %Y %H:%M:%S GMT',strtotime($date_pub)).'</pubDate>'."\n";
644
			$xml .= '</item>'."\n";
644
			$xml .= '</item>'."\n";
645
		}
645
		}
646
	}
646
	}
647
	else {//pas d'annonces
647
	else {//pas d'annonces
648
		$xml .= '<item>'."\n";
648
		$xml .= '<item>'."\n";
Line 999... Line 999...
999
		$GLOBALS['_BAZAR_']['url']->addQueryString('id_fiche', $valeur[0]) ;
999
		$GLOBALS['_BAZAR_']['url']->addQueryString('id_fiche', $valeur[0]) ;
1000
		$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_VOIR_FICHE) ;
1000
		$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_VOIR_FICHE) ;
1001
		$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.$valeur[1].'</a>'."\n" ;
1001
		$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.$valeur[1].'</a>'."\n" ;
1002
		if ($utilisateur->isSuperAdmin() || $GLOBALS['id_user']==$valeur[2]) {
1002
		if ($utilisateur->isSuperAdmin() || $GLOBALS['id_user']==$valeur[2]) {
1003
			$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_ACTION_MODIFIER);
1003
			$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_ACTION_MODIFIER);
-
 
1004
			$GLOBALS['_BAZAR_']['url']->addQueryString('typeannonce', $GLOBALS['_BAZAR_']['id_typeannonce']);
-
 
1005
			$GLOBALS['_BAZAR_']['url']->removeQueryString('personnes');
-
 
1006
			$GLOBALS['_BAZAR_']['url']->removeQueryString('recherche_effectuee');
1004
			$res .= '<a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">('.BAZ_MODIFIER.')</a>&nbsp;' ;
1007
			$res .= '<a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">('.BAZ_MODIFIER.')</a>&nbsp;' ;
1005
			$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
1008
			$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
1006
			$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_ACTION_SUPPRESSION);
1009
			$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_ACTION_SUPPRESSION);
1007
			$res .= '<a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'" onclick="javascript:return confirm(\''.BAZ_SUPPRIMER.'\');">('.BAZ_SUPPRIMER.')</a>' ;
1010
			$res .= '<a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'" onclick="javascript:return confirm(\''.BAZ_SUPPRIMER.'\');">('.BAZ_SUPPRIMER.')</a>' ;
1008
			$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
1011
			$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
Line 1016... Line 1019...
1016
}
1019
}
Line 1017... Line 1020...
1017
 
1020
 
1018
/* +--Fin du code ----------------------------------------------------------------------------------------+
1021
/* +--Fin du code ----------------------------------------------------------------------------------------+
1019
*
1022
*
-
 
1023
* $Log: not supported by cvs2svn $
-
 
1024
* Revision 1.60.2.4  2007/01/30 15:45:01  alexandre_tb
-
 
1025
* affichage de la date de création e la fiche lorsque la date de début de validité n'est plus bonne
1020
* $Log: not supported by cvs2svn $
1026
*
1021
* Revision 1.60.2.3  2007/01/29 10:53:46  alexandre_tb
1027
* Revision 1.60.2.3  2007/01/29 10:53:46  alexandre_tb
1022
* Mise en place de la constante BAZ_DERNIERES_FICHES pour remplacer le label en francais dans baz_liste
1028
* Mise en place de la constante BAZ_DERNIERES_FICHES pour remplacer le label en francais dans baz_liste
1023
*
1029
*
1024
* Revision 1.60.2.2  2007/01/17 16:01:27  alexandre_tb
1030
* Revision 1.60.2.2  2007/01/17 16:01:27  alexandre_tb