From 027befeb85bbcde628a28a092a1f802d2a2956d8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 8 Aug 2004 19:23:55 +0000 Subject: [PATCH] =?UTF-8?q?Trad:=20La=20liste=20des=20civilit=E9s=20s'affi?= =?UTF-8?q?che=20en=20fonction=20de=20la=20langue=20choisie.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/html.form.class.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index c3e90997a1f..bdc8cba26df 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -320,15 +320,18 @@ class Form -/* + /* * Retourne la liste déroulante des civilite actives * */ function select_civilite($selected='') { - $sql = "SELECT rowid, civilite, active FROM ".MAIN_DB_PREFIX."c_civilite"; + global $conf; + + $sql = "SELECT rowid, code, civilite, active FROM ".MAIN_DB_PREFIX."c_civilite"; $sql .= " WHERE active = 1"; + $sql .= " AND lang='".$conf->langage."'"; if ($this->db->query($sql)) { @@ -342,11 +345,11 @@ class Form $obj = $this->db->fetch_object( $i); if ($selected == $obj->rowid) { - print ''; + print ''; } else { - print ''; + print ''; } $i++; }