';
+
+print '';
// Left area
@@ -251,14 +254,34 @@ if (empty($action) || $action == 'file_manager' || preg_match('/refresh/i',$acti
// Construit liste des repertoires
print '';
- //print '';
- print ' ';
- print '| '.$langs->trans("ECMSections").' | ';
- print '';
- print ''.img_picto($langs->trans("Refresh"),'refresh').'';
- print ' | ';
+ print ' ';
+ print '| ';
+ if (empty($action) || $action == 'file_manager' || preg_match('/refresh/i',$action))
+ {
+ if ($user->rights->ecm->setup)
+ {
+ print ''.$langs->trans('ECMAddSection').'';
+ }
+ else
+ {
+ print ''.$langs->trans('ECMAddSection').'';
+ }
+ }
+ //print ' | ';
+ //print '';
+ //print ''.img_picto($langs->trans("Refresh"),'refresh').'';
+ print ''.$langs->trans('Refresh').'';
+ print ' | ';
+
print ' ';
+ print '';
+ print ' '.$langs->trans("ECMSections");
+ print ' ';
+
+ $showonrightsize='';
+
if (sizeof($sectionauto))
{
// Root title line (Automatic section)
@@ -354,7 +377,7 @@ if (empty($action) || $action == 'file_manager' || preg_match('/refresh/i',$acti
}
else
{
- print '| '.$langs->trans("FeatureNotYetAvailable").' | ';
+ $showonrightsize='featurenotyetavailable';
}
}
@@ -572,15 +595,22 @@ if (empty($action) || $action == 'file_manager' || preg_match('/refresh/i',$acti
// ----- End of section -----
// --------------------------
-
print " ";
// Fin de zone Ajax
+
+
}
print ' | ';
+print '';
+print '| ';
+//print $langs->trans("Filter").': ';
+print ' | ';
+print ' ';
+
// Right area
$relativepath=$ecmdir->getRelativePath();
$upload_dir = $conf->ecm->dir_output.'/'.$relativepath;
@@ -588,7 +618,7 @@ $filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolowe
$formfile=new FormFile($db);
$param='§ion='.$section;
-$textifempty=($section?$langs->trans("NoFileFound"):$langs->trans("ECMSelectASection"));
+$textifempty=($section?$langs->trans("NoFileFound"):($showonrightsize=='featurenotyetavailable'?$langs->trans("FeatureNotYetAvailable"):$langs->trans("ECMSelectASection")));
$formfile->list_of_documents($filearray,'','ecm',$param,1,$relativepath,$user->rights->ecm->upload,1,$textifempty,40);
// print '';
@@ -601,22 +631,13 @@ print '';
// Actions buttons
-print '| ';
-if (empty($action) || $action == 'file_manager' || preg_match('/refresh/i',$action))
-{
- if ($user->rights->ecm->setup)
- {
- print ''.$langs->trans('ECMAddSection').'';
- }
- else
- {
- print ''.$langs->trans('ECMAddSection').'';
- }
-}
-print ' | ';
+print ' | ';
+//print '| ';
+//print ' | ';
+print '';
if (! empty($section))
{
- $formfile->form_attach_new_file(DOL_URL_ROOT.'/ecm/index.php','',0,$section,$user->rights->ecm->upload);
+ $formfile->form_attach_new_file(DOL_URL_ROOT.'/ecm/index.php','none',0,$section,$user->rights->ecm->upload);
}
else print ' ';
print ' | ';
|