From a6cdcba926bbcaea792f4cee0444c5bf95247088 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 18 Jan 2006 20:10:08 +0000 Subject: [PATCH] Fix: Pb insertion devise --- htdocs/admin/dict.php | 14 +++++++++----- htdocs/langs/en_US/other.lang | 1 + htdocs/langs/fr_FR/other.lang | 1 + 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/htdocs/admin/dict.php b/htdocs/admin/dict.php index 44836f4ce77..fd82f087fce 100644 --- a/htdocs/admin/dict.php +++ b/htdocs/admin/dict.php @@ -31,6 +31,7 @@ require("./pre.inc.php"); $langs->load("main"); +$langs->load("other"); $langs->load("admin"); $langs->load("companies"); @@ -89,7 +90,7 @@ $tabsql[5] = "SELECT c.rowid as rowid, c.code as code, c.civilite AS libelle, c. $tabsql[6] = "SELECT a.id as rowid, a.code as code, a.libelle AS libelle, a.type, a.active FROM ".MAIN_DB_PREFIX."c_actioncomm AS a"; $tabsql[7] = "SELECT a.id as rowid, a.id as code, a.libelle AS libelle, a.deductible, a.active FROM ".MAIN_DB_PREFIX."c_chargesociales AS a"; $tabsql[8] = "SELECT id as rowid, code, libelle, active FROM ".MAIN_DB_PREFIX."c_typent"; -$tabsql[9] = "SELECT code as rowid, code, code_iso, label as libelle, active FROM ".MAIN_DB_PREFIX."c_currencies"; +$tabsql[9] = "SELECT code, code_iso, label as libelle, active FROM ".MAIN_DB_PREFIX."c_currencies"; $tabsql[10]= "SELECT t.rowid, t.taux, p.libelle as pays, t.recuperableonly, t.note, t.active FROM ".MAIN_DB_PREFIX."c_tva as t, llx_c_pays as p WHERE t.fk_pays=p.rowid"; $tabsql[11]= "SELECT t.rowid as rowid, element, source, code, libelle, active FROM ".MAIN_DB_PREFIX."c_type_contact AS t"; $tabsql[12]= "SELECT rowid as rowid, code, sortorder, c.libelle, c.libelle_facture, nbjour, fdm, active FROM ".MAIN_DB_PREFIX."cond_reglement AS c"; @@ -117,7 +118,7 @@ $tabfield[5] = "code,libelle"; $tabfield[6] = "code,libelle,type"; $tabfield[7] = "libelle,deductible"; $tabfield[8] = "code,libelle"; -$tabfield[9] = "code,code_iso,libelle"; +$tabfield[9] = "code,code_iso,label"; $tabfield[10]= "pays,taux,recuperableonly,note"; $tabfield[11]= "element,source,code,libelle"; $tabfield[12]= "code,libelle,libelle_facture,nbjour,fdm"; @@ -137,6 +138,7 @@ $tabfieldinsert[11]= "element,source,code,libelle"; $tabfieldinsert[12]= "code,libelle,libelle_facture,nbjour,fdm"; // Nom du rowid si le champ n'est pas de type autoincrément +// Vide si pas de rowid $tabrowid[1] = ""; $tabrowid[2] = ""; $tabrowid[3] = ""; @@ -145,7 +147,7 @@ $tabrowid[5] = "rowid"; $tabrowid[6] = "id"; $tabrowid[7] = "id"; $tabrowid[8] = "id"; -$tabrowid[9] = "code"; +$tabrowid[9] = ""; $tabrowid[10]= ""; $tabrowid[11]= "rowid"; $tabrowid[12]= "rowid"; @@ -531,9 +533,11 @@ else print ''; print ''; - foreach ($taborder as $i) { + foreach ($taborder as $i) + { $var=!$var; - if ($i) { + if ($i) + { $value=$tabname[$i]; print ''; diff --git a/htdocs/langs/en_US/other.lang b/htdocs/langs/en_US/other.lang index 8723149aa69..b558c2d71f5 100644 --- a/htdocs/langs/en_US/other.lang +++ b/htdocs/langs/en_US/other.lang @@ -5,6 +5,7 @@ ErrorForbidden=Access forbidden.
You try to access to a page, area or feature ErrorForbidden2=Permission for this login can be defined by your Dolibarr administrator from menu %s->%s. ErrorForbidden3=It seems that Dolibarr is not used through an authenticated session. Take a look at Dolibarr setup documentation to know how to manage authentications (htaccess, mod_auth or other...). ErrorNoImagickReadimage=Function imagick_readimage is not found in this PHP. No preview can be available. +ErrorRecordAlreadyExists=Record already exists AddTrip=Add trip Tools=Tools Birthday=Birthday diff --git a/htdocs/langs/fr_FR/other.lang b/htdocs/langs/fr_FR/other.lang index 5e51eb2792b..4cde87abba9 100644 --- a/htdocs/langs/fr_FR/other.lang +++ b/htdocs/langs/fr_FR/other.lang @@ -5,6 +5,7 @@ ErrorForbidden=Acc ErrorForbidden2=Les permissions pour ce login peuvent être attribuées par l'administrateur Dolibarr via le menu %s -> %s. ErrorForbidden3=Dolibarr ne semble pas fonctionner au sein d'une session authentifiée. Consultez la documentation d'installation de Dolibarr pour savoir comment gérer les authentifications (htaccess, mod_auth ou autre...). ErrorNoImagickReadimage=La fonction imagick_readimage n'est pas présente sur cette installation de PHP. L'aperçu n'est donc pas disponible. +ErrorRecordAlreadyExists=Enregistrement déjà existant AddTrip=Créer déplacement Tools=Outils Birthday=Anniversaire
'.$langs->trans("Dictionnary").''.$langs->trans("Table").'
'.$tablib[$i].''.$tabname[$i].'