Subversion Repositories Applications.bazar

Rev

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

Rev 105 Rev 107
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.php,v 1.43 2006-03-02 20:36:52 florian Exp $
22
// CVS : $Id: bazar.fonct.php,v 1.44 2006-03-14 17:10:21 florian Exp $
23
/**
23
/**
24
*
24
*
25
* Fonctions du module bazar
25
* Fonctions du module bazar
26
* 
26
* 
27
*
27
*
Line 29... Line 29...
29
//Auteur original :
29
//Auteur original :
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
31
*@author        Florian Schmitt <florian@ecole-et-nature.org>
31
*@author        Florian Schmitt <florian@ecole-et-nature.org>
32
//Autres auteurs :
32
//Autres auteurs :
33
*@copyright     Tela-Botanica 2000-2004
33
*@copyright     Tela-Botanica 2000-2004
34
*@version       $Revision: 1.43 $ $Date: 2006-03-02 20:36:52 $
34
*@version       $Revision: 1.44 $ $Date: 2006-03-14 17:10:21 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 1166... Line 1166...
1166
			       'WHERE ba_id_utilisateur='.$GLOBALS['id_user'].' AND ba_id_rubrique='.$ligne['bn_id_nature'];
1166
			       'WHERE ba_id_utilisateur='.$GLOBALS['id_user'].' AND ba_id_rubrique='.$ligne['bn_id_nature'];
1167
	        $resultat2 = $GLOBALS['_BAZAR_']['db']->query($requete) ;
1167
	        $resultat2 = $GLOBALS['_BAZAR_']['db']->query($requete) ;
1168
		if (DB::isError($resultat2)) {
1168
		if (DB::isError($resultat2)) {
1169
			die ($resultat2->getMessage().$resultat2->getDebugInfo()) ;
1169
			die ($resultat2->getMessage().$resultat2->getDebugInfo()) ;
1170
		}
1170
		}
1171
		if (isset($ligne['bn_image_titre'])) {$titre='&nbsp;<img src="client/bazar/images/'.$ligne['bn_image_titre'].'" alt="'.constant($ligne['bn_label_nature']).'" />'."\n";}
1171
		if (isset($ligne['bn_image_titre'])) {$titre='&nbsp;<img src="client/bazar/images/'.$ligne['bn_image_titre'].'" alt="'.$ligne['bn_label_nature'].'" />'."\n";}
1172
		else {$titre='<strong>&nbsp;'.constant($ligne['bn_label_nature']).'</strong>'."\n";}
1172
		else {$titre='<strong>&nbsp;'.$ligne['bn_label_nature'].'</strong>'."\n";}
1173
		if ($resultat2->numRows()>0) {
1173
		if ($resultat2->numRows()>0) {
1174
			$lien_RSS->addQueryString('annonce', $ligne['bn_id_nature']);
1174
			$lien_RSS->addQueryString('annonce', $ligne['bn_id_nature']);
1175
			$table->addRow(array($titre,
1175
			$table->addRow(array($titre,
1176
					     BAZ_ABONNE,
1176
					     BAZ_ABONNE,
1177
					     '<a href='.$lien_se_desabonner->getURL().'>'.BAZ_SE_DESABONNER.'</a>',
1177
					     '<a href='.$lien_se_desabonner->getURL().'>'.BAZ_SE_DESABONNER.'</a>',
Line 1302... Line 1302...
1302
}
1302
}
Line 1303... Line 1303...
1303
 
1303
 
1304
/* +--Fin du code ----------------------------------------------------------------------------------------+
1304
/* +--Fin du code ----------------------------------------------------------------------------------------+
1305
*
1305
*
-
 
1306
* $Log: not supported by cvs2svn $
-
 
1307
* Revision 1.43  2006/03/02 20:36:52  florian
-
 
1308
* les entrees du formulaire de saisir ne sont plus dans les constantes mias dans des tables qui gerent le multilinguisme.
1306
* $Log: not supported by cvs2svn $
1309
*
1307
* Revision 1.42  2006/03/01 16:23:22  florian
1310
* Revision 1.42  2006/03/01 16:23:22  florian
1308
* modifs textes fr et correction bug "undefined index"
1311
* modifs textes fr et correction bug "undefined index"
1309
*
1312
*
1310
* Revision 1.41  2006/03/01 16:05:51  florian
1313
* Revision 1.41  2006/03/01 16:05:51  florian