From 3ad62bc7a1ce48279acc6b38fde7f95bd6fd27ae Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 4 Apr 2008 12:04:25 +0000 Subject: [PATCH] =?UTF-8?q?Look:=20Modif=20esth=E9tiques=20mineurs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/contact/fiche.php | 2 ++ htdocs/html.form.class.php | 25 +++++++++++++++++-------- htdocs/soc.php | 6 ++++++ 3 files changed, 25 insertions(+), 8 deletions(-) diff --git a/htdocs/contact/fiche.php b/htdocs/contact/fiche.php index 057f15b366e..4cd0c4d641f 100644 --- a/htdocs/contact/fiche.php +++ b/htdocs/contact/fiche.php @@ -301,6 +301,7 @@ if ($user->rights->societe->contact->creer) print ''.$langs->trans("Country").''; $form->select_pays($contact->fk_pays); + if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1); print ''; print ''.$langs->trans("PhonePro").''; @@ -382,6 +383,7 @@ if ($user->rights->societe->contact->creer) print ''.$langs->trans("Country").''; $form->select_pays($contact->fk_pays); + if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1); print ''; print ''.$langs->trans("PhonePro").''; diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 4dc6f68a8bf..6947aa326a3 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -182,9 +182,10 @@ class Form */ function select_departement($selected='',$pays_code=0) { - dolibarr_syslog("Form::select_departement selected=$selected, pays_code=$pays_code",LOG_DEBUG); + global $conf,$langs,$user; + + dolibarr_syslog("Form::select_departement selected=$selected, pays_code=$pays_code",LOG_DEBUG); - global $conf,$langs; $langs->load("dict"); $htmlname='departement_id'; @@ -243,6 +244,7 @@ class Form } } print ''; + if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1); } else { dolibarr_print_error($this->db); @@ -807,7 +809,10 @@ class Form $i++; } } - if ($htmlname != 'none') print ''; + if ($htmlname != 'none') + { + print ''; + } return $num; } else @@ -1414,7 +1419,7 @@ class Form */ function select_conditions_paiements($selected='',$htmlname='condid',$filtertype=-1,$addempty=0) { - global $langs; + global $langs,$user; $this->load_cache_conditions_paiements(); @@ -1434,6 +1439,7 @@ class Form print ''; } print ''; + if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1); } @@ -1658,7 +1664,7 @@ class Form */ function select_civilite($selected='') { - global $conf,$langs; + global $conf,$langs,$user; $langs->load("dict"); $sql = "SELECT rowid, code, civilite, active FROM ".MAIN_DB_PREFIX."c_civilite"; @@ -1691,6 +1697,7 @@ class Form } } print ''; + if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1); } else { @@ -1707,7 +1714,7 @@ class Form */ function select_forme_juridique($selected='',$pays_code=0) { - global $conf,$langs; + global $conf,$langs,$user; $langs->load("dict"); // On recherche les formes juridiques actives des pays actifs @@ -1761,6 +1768,7 @@ class Form } } print ''; + if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1); print ''; } else @@ -2218,7 +2226,7 @@ class Form */ function select_currency($selected='',$htmlname='currency_id') { - global $conf,$langs; + global $conf,$langs,$user; $langs->load("dict"); if ($selected=='euro' || $selected=='euros') $selected='EUR'; // Pour compatibilité @@ -2257,6 +2265,7 @@ class Form } } print ''; + if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1); return 0; } else { @@ -2767,7 +2776,7 @@ class Form print "\n"; } - print "\n"; + print ""; } diff --git a/htdocs/soc.php b/htdocs/soc.php index 57cac32347c..4bf41cc1e26 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -431,6 +431,7 @@ if ($_POST["getcustomercode"] || $_POST["getsuppliercode"] || print ''.$langs->trans('Country').''; $form->select_pays($soc->pays_id,'pays_id',$conf->use_javascript_ajax?' onChange="autofilltownfromzip_save_refresh_create()"':''); + if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1); print ''; print ''.$langs->trans('State').''; @@ -522,9 +523,11 @@ if ($_POST["getcustomercode"] || $_POST["getsuppliercode"] || print ''.$langs->trans("Type").''."\n"; $form->select_array("typent_id",$soc->typent_array(0), $soc->typent_id); + if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1); print ''; print ''.$langs->trans("Staff").''; $form->select_array("effectif_id",$soc->effectif_array(0), $soc->effectif_id); + if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1); print ''; // Assujeti TVA @@ -786,6 +789,7 @@ elseif ($_GET["action"] == 'edit' || $_POST["action"] == 'edit') print ''.$langs->trans('Country').''; $form->select_pays($soc->pays_id,'pays_id',$conf->use_javascript_ajax?' onChange="autofilltownfromzip_save_refresh_edit()"':''); + if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1); print ''; print ''.$langs->trans('State').''; @@ -880,9 +884,11 @@ elseif ($_GET["action"] == 'edit' || $_POST["action"] == 'edit') print ''.$langs->trans("Type").''; $form->select_array("typent_id",$soc->typent_array(0), $soc->typent_id); + if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1); print ''; print ''.$langs->trans("Staff").''; $form->select_array("effectif_id",$soc->effectif_array(0), $soc->effectif_id); + if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1); print ''; print '';