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.85 2007-06-25 12:15:06 alexandre_tb Exp $
|
22 |
// CVS : $Id: bazar.fonct.rss.php,v 1.86 2007-07-04 10:02:42 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.85 $
|
31 |
*@version $Revision: 1.86 $
|
32 |
// +------------------------------------------------------------------------------------------------------+
|
32 |
// +------------------------------------------------------------------------------------------------------+
|
33 |
*/
|
33 |
*/
|
Line 34... |
Line 34... |
34 |
|
34 |
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
Line 1034... |
Line 1034... |
1034 |
return ($resultat->getMessage().$resultat->getDebugInfo()) ;
|
1034 |
return ($resultat->getMessage().$resultat->getDebugInfo()) ;
|
1035 |
}
|
1035 |
}
|
1036 |
if($resultat->numRows() != 0) {
|
1036 |
if($resultat->numRows() != 0) {
|
1037 |
$res .= '<h2>'.BAZ_DERNIERES_FICHES.'</h2>';
|
1037 |
$res .= '<h2>'.BAZ_DERNIERES_FICHES.'</h2>';
|
1038 |
$res .= '<ul class="liste_rss">';
|
1038 |
$res .= '<ul class="liste_rss">';
|
1039 |
while($ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC))
|
1039 |
while($ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC)) {
|
1040 |
{
|
- |
|
1041 |
$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_VOIR_FICHE);
|
1040 |
$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_VOIR_FICHE);
|
1042 |
$GLOBALS['_BAZAR_']['url']->addQueryString('id_fiche', $ligne['bf_id_fiche']);
|
1041 |
$GLOBALS['_BAZAR_']['url']->addQueryString('id_fiche', $ligne['bf_id_fiche']);
|
1043 |
$res .= '<li class="titre_rss"><a class="lien_rss" href="'. $GLOBALS['_BAZAR_']['url']->getURL() .'" alt="lire la fiche">'. $ligne['bf_titre'].'</a></li>';
|
1042 |
$res .= '<li class="titre_rss"><a class="lien_rss" href="'. $GLOBALS['_BAZAR_']['url']->getURL() .'" alt="lire la fiche">'. $ligne['bf_titre'].'</a></li>';
|
- |
|
1043 |
}
|
- |
|
1044 |
$res .= '</ul>';
|
1044 |
}
|
1045 |
}
|
1045 |
$res .= '</ul>';
|
- |
|
1046 |
}
|
- |
|
1047 |
}
|
1046 |
}
|
1048 |
}
|
1047 |
}
|
Line 1130... |
Line 1129... |
1130 |
if (DB::isError($resultat)) {
|
1129 |
if (DB::isError($resultat)) {
|
1131 |
return $resultat->getMessage().'<br /><br />'.$resultat->getDebugInfo() ;
|
1130 |
return $resultat->getMessage().'<br /><br />'.$resultat->getDebugInfo() ;
|
1132 |
}
|
1131 |
}
|
1133 |
$res = '<br /><h4>'.BAZ_IL_Y_A.($resultat->numRows()).' '.BAZ_FICHES_CORRESPONDANTES.'</h4><br />'."\n";
|
1132 |
$res = '<br /><h4>'.BAZ_IL_Y_A.($resultat->numRows()).' '.BAZ_FICHES_CORRESPONDANTES.'</h4><br />'."\n";
|
1134 |
//$res .= 'requete: '. $requete. '<br />';
|
1133 |
//$res .= 'requete: '. $requete. '<br />';
|
1135 |
$res .= '<ul>' ;
|
- |
|
- |
|
1134 |
|
1136 |
$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_VOIR_FICHE);
|
1135 |
$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_VOIR_FICHE);
|
Line 1137... |
Line 1136... |
1137 |
|
1136 |
|
1138 |
$donnees = array();
|
1137 |
$donnees = array();
|
1139 |
while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC)) {
|
1138 |
while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC)) {
|
Line 1167... |
Line 1166... |
1167 |
ob_start();
|
1166 |
ob_start();
|
1168 |
eval ($chaine) ;
|
1167 |
eval ($chaine) ;
|
1169 |
$res .= ob_get_contents();
|
1168 |
$res .= ob_get_contents();
|
1170 |
ob_end_clean() ;
|
1169 |
ob_end_clean() ;
|
1171 |
} else {
|
1170 |
} else {
|
- |
|
1171 |
$res .= '<ul>' ;
|
1172 |
$res .= '<div class="bazar_numero">'.$pager->links.'</div>'."\n";
|
1172 |
$res .= '<div class="bazar_numero">'.$pager->links.'</div>'."\n";
|
1173 |
foreach ($data as $valeur) {
|
1173 |
foreach ($data as $valeur) {
|
1174 |
$res .='<li class="BAZ_'.$valeur['bn_label_class'].'">'."\n";
|
1174 |
$res .='<li class="BAZ_'.$valeur['bn_label_class'].'">'."\n";
|
1175 |
$GLOBALS['_BAZAR_']['url']->addQueryString('id_fiche', $valeur['bf_id_fiche']) ;
|
1175 |
$GLOBALS['_BAZAR_']['url']->addQueryString('id_fiche', $valeur['bf_id_fiche']) ;
|
1176 |
if ($utilisateur->isSuperAdmin() || $GLOBALS['id_user']==$valeur['bf_ce_utilisateur']) {
|
1176 |
if ($utilisateur->isSuperAdmin() || $GLOBALS['id_user']==$valeur['bf_ce_utilisateur']) {
|
Line 1202... |
Line 1202... |
1202 |
}
|
1202 |
}
|
Line 1203... |
Line 1203... |
1203 |
|
1203 |
|
1204 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1204 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1205 |
*
|
1205 |
*
|
- |
|
1206 |
* $Log: not supported by cvs2svn $
|
- |
|
1207 |
* Revision 1.85 2007-06-25 12:15:06 alexandre_tb
|
- |
|
1208 |
* merge from narmer
|
1206 |
* $Log: not supported by cvs2svn $
|
1209 |
*
|
1207 |
* Revision 1.84 2007-06-25 09:56:55 alexandre_tb
|
1210 |
* Revision 1.84 2007-06-25 09:56:55 alexandre_tb
|
1208 |
* correction de bug
|
1211 |
* correction de bug
|
1209 |
*
|
1212 |
*
|
1210 |
* Revision 1.83 2007-06-04 15:26:02 alexandre_tb
|
1213 |
* Revision 1.83 2007-06-04 15:26:02 alexandre_tb
|