Subversion Repositories Applications.papyrus

Rev

Rev 679 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 679 Rev 826
Line 8... Line 8...
8
// | Les fonctions de annuaire_moteur.php                                           |
8
// | Les fonctions de annuaire_moteur.php                                           |
9
// +--------------------------------------------------------------------------------+
9
// +--------------------------------------------------------------------------------+
10
// | Auteur : Alexandre Granier <alexandre@tela-botanica.org> 		  		        |
10
// | Auteur : Alexandre Granier <alexandre@tela-botanica.org> 		  		        |
11
// +--------------------------------------------------------------------------------+
11
// +--------------------------------------------------------------------------------+
12
//
12
//
13
// $Id: annuaire_backoffice.fonct.php,v 1.2 2006-01-02 09:50:48 alexandre_tb Exp $
13
// $Id: annuaire_backoffice.fonct.php,v 1.3 2006-04-19 16:50:19 alexandre_tb Exp $
Line 14... Line 14...
14
 
14
 
15
 
15
 
16
/** function mkengine ()
16
/** function mkengine ()
Line 195... Line 195...
195
								
195
								
196
			// Pour la france on met le département, sinon on laisse le nom du pays
196
			// Pour la france on met le département, sinon on laisse le nom du pays
197
			if ($data[$i][INS_CHAMPS_PAYS] != 'fr') {
197
			if ($data[$i][INS_CHAMPS_PAYS] != 'fr') {
198
				array_push ($ligne_inscrit, $data[$i][INS_CHAMPS_LABEL_PAYS]);
198
				array_push ($ligne_inscrit, $data[$i][INS_CHAMPS_LABEL_PAYS]);
199
			} else {
199
			} else {
200
		        $req_dpt = 'select '.INS_CHAMPS_NOM_DEPARTEMENT.' from '.INS_TABLE_DEPARTEMENT.",".INS_ANNUAIRE.
200
		        $req_dpt = 'select '.INS_CHAMPS_NOM_DEPARTEMENT.' from '.INS_TABLE_DPT.",".INS_ANNUAIRE.
201
							" where ".INS_ANNUAIRE.'.'.INS_CHAMPS_ID.'='.$data[$i][INS_CHAMPS_ID] ;
201
							" where ".INS_ANNUAIRE.'.'.INS_CHAMPS_ID.'='.$data[$i][INS_CHAMPS_ID] ;
202
		        $req_dpt .= " and ".INS_ANNUAIRE.'.'.INS_CHAMPS_ID_DEPARTEMENT.'='.INS_TABLE_DEPARTEMENT.'.'
202
		        $req_dpt .= " and ".INS_ANNUAIRE.'.'.INS_CHAMPS_DEPARTEMENT.'='.INS_TABLE_DPT.'.'
203
		        					.INS_CHAMPS_ID_DEPARTEMENT ;
203
		        					.INS_CHAMPS_ID_DEPARTEMENT ;
-
 
204
		        $resultat_dpt = $GLOBALS['ins_db']->query($req_dpt) ;
-
 
205
		        if (DB::isError($resultat_dpt)) {
-
 
206
		        	echo $resultat_dpt->getMessage().$resultat_dpt->getDebugInfo();		        	
204
		        $resultat_dpt = $GLOBALS['ins_db']->query($req_dpt) ;
207
		        }
205
		        $ligne_dpt = $resultat_dpt->fetchRow(DB_FETCHMODE_ASSOC) ;
208
		        $ligne_dpt = $resultat_dpt->fetchRow(DB_FETCHMODE_ASSOC) ;
206
				array_push ($ligne_inscrit, $ligne_dpt[INS_CHAMPS_NOM_DEPARTEMENT]) ;
209
				array_push ($ligne_inscrit, $ligne_dpt[INS_CHAMPS_NOM_DEPARTEMENT]) ;
Line 207... Line 210...
207
			}
210
			}