From 34bf93d4898a2a20be7ea0e0b173735fd585bafa Mon Sep 17 00:00:00 2001 From: opensides Date: Thu, 17 Jun 2004 16:48:41 +0000 Subject: [PATCH] rajout de l'edition du dictionnaire civilite --- htdocs/admin/dict.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/htdocs/admin/dict.php b/htdocs/admin/dict.php index b2ffc356700..9014bed0026 100644 --- a/htdocs/admin/dict.php +++ b/htdocs/admin/dict.php @@ -1,6 +1,7 @@ * Copyright (C) 2004 Laurent Destailleur + * Copyright (C) 2004 Benoit Mortier * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -33,22 +34,30 @@ $tabid[1] = "llx_c_forme_juridique"; $tabid[2] = "llx_c_departements"; $tabid[3] = "llx_c_regions"; $tabid[4] = "llx_c_pays"; +$tabid[5] = "llx_c_civilite"; $tabnom[1] = "Formes juridiques"; $tabnom[2] = "Départements/Provinces/Cantons"; $tabnom[3] = "Régions"; $tabnom[4] = "Pays"; +$tabnom[5] = "Formules de Politesses"; $tabsql[1] = "SELECT f.code, f.libelle, p.libelle as pays, f.active FROM llx_c_forme_juridique as f, llx_c_pays as p WHERE f.fk_pays=p.rowid ORDER BY p.rowid, f.active DESC, code ASC"; $tabsql[2] = "SELECT d.rowid as rowid, d.code_departement as code , d.nom as libelle, p.libelle as pays, d.active FROM llx_c_departements as d, llx_c_regions as r, llx_c_pays as p WHERE d.fk_region=r.code_region and r.fk_pays=p.rowid ORDER BY p.rowid, d.active DESC, code ASC"; $tabsql[3] = "SELECT r.rowid as rowid, code_region as code , nom as libelle, p.libelle as pays, r.active FROM llx_c_regions as r, llx_c_pays as p WHERE r.fk_pays=p.rowid ORDER BY p.rowid, r.active DESC, code ASC"; $tabsql[4] = "SELECT rowid, code, libelle, active FROM llx_c_pays ORDER BY active DESC, code ASC"; +$tabsql[5] = "SELECT c.rowid AS rowid, c.civilite AS libelle, c.active +FROM llx_c_civilite AS c, llx_c_pays AS p +WHERE c.fk_pays = p.rowid"; + + // Champs à afficher $tabfield[1] = "code,libelle,pays"; $tabfield[2] = "code,libelle,pays"; $tabfield[3] = "code,libelle,pays"; $tabfield[4] = "code,libelle"; +$tabfield[5] = "libelle"; if (! $user->admin) accessforbidden();