diff --git a/ChangeLog b/ChangeLog index f8308852249..aa606b7c765 100644 --- a/ChangeLog +++ b/ChangeLog @@ -24,6 +24,7 @@ For users: - New: Can search on part of barcode into POS module. For developers: +- New: Add hooks to change way of showing/editing lines into dictionnaries. - New: Add webservice to get or create a prodcut or service. - New: Log module outputs can be setup with "or" rule (not only "xor"). - New: Add FirePHP output for logging module. diff --git a/htdocs/admin/dict.php b/htdocs/admin/dict.php index 92f94c7bf8c..138fad9eec5 100644 --- a/htdocs/admin/dict.php +++ b/htdocs/admin/dict.php @@ -36,17 +36,12 @@ $langs->load("other"); $langs->load("admin"); $langs->load("companies"); -if (!$user->admin) accessforbidden(); +$action=GETPOST('action'); -// Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array -include_once(DOL_DOCUMENT_ROOT.'/core/class/hookmanager.class.php'); -$hookmanager=new HookManager($db); -$hookmanager->callHooks(array('dict')); +if (!$user->admin) accessforbidden(); $acts[0] = "activate"; $acts[1] = "disable"; -//$actl[0] = $langs->trans("Activate"); -//$actl[1] = $langs->trans("Disable"); $actl[0] = img_picto($langs->trans("Disabled"),'switch_off'); $actl[1] = img_picto($langs->trans("Activated"),'switch_on'); @@ -62,14 +57,19 @@ $offset = $listlimit * $page ; $pageprev = $page - 1; $pagenext = $page + 1; +// Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array +include_once(DOL_DOCUMENT_ROOT.'/core/class/hookmanager.class.php'); +$hookmanager=new HookManager($db); +$hookmanager->callHooks(array('admin')); -// Cette page est une page d'edition generique des dictionnaires de donnees -// Mettre ici tous les caracteristiques des dictionnaires -// Ordres d'affichage des dictionnaires (0 pour espace) +// Thi page is a generic page to edit dictionnaries +// Put here delacaration of dictionnaries properties + +// Sort order to show dictionnary (0 is space). All other dictionnaries (added by modules) will be at end of this. $taborder=array(9,0,4,3,2,0,1,8,19,16,0,5,11,0,6,0,10,12,13,0,14,0,7,17,0,22,20,18,21,0,15); -// Nom des tables des dictionnaires +// Name of SQL tables of dictionnaries $tabname[1] = MAIN_DB_PREFIX."c_forme_juridique"; $tabname[2] = MAIN_DB_PREFIX."c_departements"; $tabname[3] = MAIN_DB_PREFIX."c_regions"; @@ -601,7 +601,7 @@ if ($_GET["id"]) $fieldlist=explode(',',$tabfield[$_GET["id"]]); - print '