Subversion Repositories Applications.papyrus

Rev

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

Rev 673 Rev 776
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: inscription.class.php,v 1.8 2005-12-19 13:17:53 alexandre_tb Exp $
22
// CVS : $Id: inscription.class.php,v 1.9 2006-03-15 11:01:58 alexandre_tb Exp $
23
/**
23
/**
24
* Inscription
24
* Inscription
25
*
25
*
26
* Un module d'inscription, en général ce code est spécifique à
26
* Un module d'inscription, en général ce code est spécifique à
27
* un site web
27
* un site web
Line 29... Line 29...
29
*@package inscription
29
*@package inscription
30
//Auteur original :
30
//Auteur original :
31
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
31
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
32
//Autres auteurs :
32
//Autres auteurs :
33
*@copyright     Tela-Botanica 2000-2004
33
*@copyright     Tela-Botanica 2000-2004
34
*@version       $Revision: 1.8 $ $Date: 2005-12-19 13:17:53 $
34
*@version       $Revision: 1.9 $ $Date: 2006-03-15 11:01:58 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 73... Line 73...
73
     */
73
     */
74
    function getListePays($i18n) {
74
    function getListePays($i18n) {
75
	    if (strlen($i18n) == 2) {
75
	    if (strlen($i18n) == 2) {
76
		    $i18n = strtolower($i18n)."-".strtoupper($i18n) ;
76
		    $i18n = strtolower($i18n)."-".strtoupper($i18n) ;
77
	    }
77
	    }
78
	    $requete = 'select '.INS_CHAMPS_ID_PAYS.', '.INS_CHAMPS_LABEL_PAYS.' from '.INS_TABLE_PAYS;
78
	    $requete = 'select '.INS_CHAMPS_ID_PAYS.', '.INS_CHAMPS_LABEL_PAYS.' from '.INS_TABLE_PAYS
79
							//' where '.INS_CHAMPS_ID_PAYS.'="'.$i18n.'"';
79
							.' where '.INS_CHAMPS_I18N_PAYS.'="'.$i18n.'"';
80
	    $resultat = $this->_db->query($requete) ;
80
	    $resultat = $this->_db->query($requete) ;
Line 81... Line 81...
81
	    
81
	    
82
	    if (DB::isError($resultat)) {
82
	    if (DB::isError($resultat)) {
83
		    die ("Echec de la requete : $requete<br />".$resultat->getMessage()) ;
83
		    die ("Echec de la requete : $requete<br />".$resultat->getMessage()) ;