Subversion Repositories Applications.bazar

Rev

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

Rev 136 Rev 138
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.54 2006-07-03 09:51:21 alexandre_tb Exp $
22
// CVS : $Id: bazar.fonct.rss.php,v 1.55 2006-07-04 14:29:18 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.54 $
31
*@version       $Revision: 1.55 $
32
// +------------------------------------------------------------------------------------------------------+
32
// +------------------------------------------------------------------------------------------------------+
33
*/
33
*/
Line 34... Line 34...
34
 
34
 
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
Line 981... Line 981...
981
	$data  = $pager->getPageData();
981
	$data  = $pager->getPageData();
982
	$links = $pager->getLinks();
982
	$links = $pager->getLinks();
983
    $res .= '<div class="bazar_numero">'.$pager->links.'</div>'."\n";
983
    $res .= '<div class="bazar_numero">'.$pager->links.'</div>'."\n";
984
	foreach ($data as $valeur) {
984
	foreach ($data as $valeur) {
985
		$GLOBALS['_BAZAR_']['url']->addQueryString('id_fiche', $valeur[0]) ;
985
		$GLOBALS['_BAZAR_']['url']->addQueryString('id_fiche', $valeur[0]) ;
986
		$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.$valeur[1].'</a></li>'."\n" ;
986
		$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.$valeur[1].'</a>'."\n" ;
-
 
987
		if ($utilisateur->isSuperAdmin()) {
-
 
988
			$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_ACTION_SUPPRESSION);
-
 
989
			$res .= '<a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'" onclick="javascript:return confirm(\''.BAZ_SUPPRIMER.'\');">('.BAZ_SUPPRIMER.')</a>' ;
-
 
990
		}
-
 
991
		$res .= '</li>';
987
	}
992
	}
988
	$res .= '</ul>';
993
	$res .= '</ul>';
989
	$res .= '<div class="bazar_numero">'.$pager->links.'</div>'."\n";
994
	$res .= '<div class="bazar_numero">'.$pager->links.'</div>'."\n";
Line 990... Line 995...
990
 
995
 
991
	return $res ;
996
	return $res ;
Line 992... Line 997...
992
}
997
}
993
 
998
 
994
/* +--Fin du code ----------------------------------------------------------------------------------------+
999
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
1000
*
-
 
1001
* $Log: not supported by cvs2svn $
-
 
1002
* Revision 1.54  2006/07/03 09:51:21  alexandre_tb
995
*
1003
* correction du bug recherche sur fiches validés et invalidés.
996
* $Log: not supported by cvs2svn $
1004
*
997
* Revision 1.53  2006/06/29 10:29:51  florian
1005
* Revision 1.53  2006/06/29 10:29:51  florian
998
* correction bug moteur de recherche
1006
* correction bug moteur de recherche
999
*
1007
*