diff --git a/htdocs/ecm/index.php b/htdocs/ecm/index.php index 0fd9f726f2b..661a6ad0dae 100644 --- a/htdocs/ecm/index.php +++ b/htdocs/ecm/index.php @@ -143,13 +143,11 @@ print "
\n"; // Tool bar $colspan=3; -print ''; +print '
'; -print $langs->trans("Toolbar").'
'; print ''; print ''; print ''; print '
'.img_picto('','object_list').' '.$langs->trans("ECMFileManager").''.img_picto('','search').' '.$langs->trans("Search").'
'; -print '
'; if (eregi('search',$action)) @@ -226,7 +224,7 @@ if (empty($action) || $action == 'refresh') print ''.$langs->trans("ECMSectionOfDocuments").''; print ''.$langs->trans("Type").''; print ''.$langs->trans("ECMNbOfDocsSmall").' '.img_picto($langs->trans("Refresh"),'refresh').''; - print ''; + print ''; if ($user->rights->ecm->setup) { print ''.img_picto($langs->trans("ECMNewSection"),'edit_add').''; @@ -261,6 +259,10 @@ if (empty($action) || $action == 'refresh') // Type print ''.$langs->trans('ECMTypeAuto').''; print '?'; + + // Edit link + print ' '; + print ''; $htmltooltip=''.$langs->trans("ECMSection").': '.$val['label'].'
'; $htmltooltip=''.$langs->trans("Type").': '.$langs->trans("ECMAutoOrg").'
'; @@ -269,9 +271,6 @@ if (empty($action) || $action == 'refresh') print $form->textwithhelp('',$htmltooltip,1,0); print ''; - // Edit link - print ' '; - print "\n"; } } @@ -319,6 +318,9 @@ if (empty($action) || $action == 'refresh') //print ''.$obj->cachenbofdoc.''; print ''.$val['cachenbofdoc'].''; + // Edit link + print ''.img_edit().''; + print ''; $userstatic->id=$val['fk_user_c']; $userstatic->nom=$val['login_c']; @@ -330,9 +332,6 @@ if (empty($action) || $action == 'refresh') print $form->textwithhelp('',$htmltooltip,1,0); print ""; - // Edit link - print ''.img_edit().''; - print "\n"; $nbofentries++; diff --git a/htdocs/includes/modules/modECM.class.php b/htdocs/includes/modules/modECM.class.php index 30be1ae9714..a6f7d370bd1 100644 --- a/htdocs/includes/modules/modECM.class.php +++ b/htdocs/includes/modules/modECM.class.php @@ -161,6 +161,18 @@ class modECM extends DolibarrModules 'user'=>0); $r++; + $this->menu[$r]=array('fk_menu'=>'r=1', + 'type'=>'left', + 'titre'=>'Search', + 'mainmenu'=>'ecm', + 'url'=>'/ecm/index.php?action=search_form', + 'langs'=>'ecm', + 'position'=>100, + 'perms'=>'$user->rights->ecm->read', + 'target'=>'', + 'user'=>0); + $r++; + $this->menu[$r]=array('fk_menu'=>'r=1', 'type'=>'left', 'titre'=>'ECMNewSection',