From d64446e3008ccf09996208c5f3fd07522532a460 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 9 Sep 2008 00:09:56 +0000 Subject: [PATCH] New: Navigation in ECM module is done like in a file manager. --- htdocs/ecm/index.php | 47 +++++++++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 20 deletions(-) diff --git a/htdocs/ecm/index.php b/htdocs/ecm/index.php index 3394c571e45..3d525e3b8e9 100644 --- a/htdocs/ecm/index.php +++ b/htdocs/ecm/index.php @@ -232,7 +232,7 @@ dolibarr_fiche_head($head, $selected, '', 1); print '
'; // Left area -print ''; // Actions buttons print '
'; +print ''; $butshown=0; - foreach($sectionauto as $section) + foreach($sectionauto as $sectioncur) { - if (! $section['test']) continue; - if ($butshown % 2 == 0) print ''; - print "'; + if (! $sectioncur['test']) continue; + //if ($butshown % 2 == 0) + print ''; + print "'; print ''; - print ''; + print ''; print ''; - if ($butshown % 2 == 1) print ''; + //if ($butshown % 2 == 1) + print ''; $butshown++; } - if ($butshown % 2 == 1) print ''; + //if ($butshown % 2 == 1) + // print ''; print ''; print "
'; if (eregi('search',$action)) { @@ -241,11 +241,11 @@ if (eregi('search',$action)) print '
'; print ''; print ""; - print ''; - print "'; - print ''; - print "'; - print "'; + print ''; + print "'; + print "'; + print "'; + print "'; print "
'.$langs->trans("ECMSearchByKeywords").'
".$langs->trans("Ref").':
".$langs->trans("Title").':
".$langs->trans("Keyword").':
'.$langs->trans("ECMSearchByKeywords").'
".$langs->trans("Ref").':
".$langs->trans("Title").':
".$langs->trans("Keyword").':
"; //print $langs->trans("ECMManualOrgDesc"); @@ -258,20 +258,24 @@ if (eregi('search',$action)) $buthtml='
".$section['label'].':
".$sectioncur['label'].':
  
  
"; @@ -533,13 +537,16 @@ print '
'; -if ($user->rights->ecm->setup) +if (empty($action) || $action == 'file_manager') { - print ''.$langs->trans('ECMAddSection').''; -} -else -{ - print ''.$langs->trans('ECMAddSection').''; + if ($user->rights->ecm->setup) + { + print ''.$langs->trans('ECMAddSection').''; + } + else + { + print ''.$langs->trans('ECMAddSection').''; + } } print ''; if ($user->rights->ecm->create && ! empty($section))