Subversion Repositories Applications.bazar

Rev

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

Rev 69 Rev 72
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.30 2006-01-16 09:42:57 alexandre_tb Exp $
22
// CVS : $Id: bazar.fonct.php,v 1.31 2006-01-17 10:07:08 alexandre_tb 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.30 $ $Date: 2006-01-16 09:42:57 $
34
*@version       $Revision: 1.31 $ $Date: 2006-01-17 10:07:08 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 1216... Line 1216...
1216
	if (DB::isError($resultat)) {
1216
	if (DB::isError($resultat)) {
1217
		die ($resultat->getMessage().'<br />'.$resultat->getDebugInfo()) ;
1217
		die ($resultat->getMessage().'<br />'.$resultat->getDebugInfo()) ;
1218
	}
1218
	}
1219
	$ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC) ;
1219
	$ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC) ;
1220
	$valeurs_fiche = array() ;
1220
	$valeurs_fiche = array() ;
1221
	$tableau=($GLOBALS['_BAZAR_']['typeannonce'].'.tpl');
1221
	$tableau = baz_valeurs_template($GLOBALS['_BAZAR_']['template']);
1222
	for ($i=0; $i<count($tableau); $i++) {
1222
	for ($i=0; $i<count($tableau); $i++) {
1223
	     if ($tableau[$i]['type']!='labelhtml') {
1223
	     if ($tableau[$i]['type']!='labelhtml') {
1224
		 $valeurs_fiche[$tableau[$i]['nom_bdd']] = stripslashes($ligne[$tableau[$i]['nom_bdd']]);
1224
		 $valeurs_fiche[$tableau[$i]['nom_bdd']] = stripslashes($ligne[$tableau[$i]['nom_bdd']]);
1225
	     }
1225
	     }
1226
	}
1226
	}
Line 1379... Line 1379...
1379
}
1379
}
Line 1380... Line 1380...
1380
 
1380
 
1381
/* +--Fin du code ----------------------------------------------------------------------------------------+
1381
/* +--Fin du code ----------------------------------------------------------------------------------------+
1382
*
1382
*
-
 
1383
* $Log: not supported by cvs2svn $
-
 
1384
* Revision 1.30  2006/01/16 09:42:57  alexandre_tb
-
 
1385
* en cours
1383
* $Log: not supported by cvs2svn $
1386
*
1384
* Revision 1.29  2006/01/13 14:12:51  florian
1387
* Revision 1.29  2006/01/13 14:12:51  florian
1385
* utilisation des temlates dans la table bazar_nature
1388
* utilisation des temlates dans la table bazar_nature
1386
*
1389
*
1387
* Revision 1.28  2006/01/05 16:28:24  alexandre_tb
1390
* Revision 1.28  2006/01/05 16:28:24  alexandre_tb