diff --git a/htdocs/ecm/index.php b/htdocs/ecm/index.php
index 1f402d9720c..48f5a32c099 100644
--- a/htdocs/ecm/index.php
+++ b/htdocs/ecm/index.php
@@ -90,12 +90,12 @@ if ( $_POST["sendit"] && ! empty($conf->global->MAIN_UPLOAD_DOC))
}
$relativepath=$ecmdir->getRelativePath();
$upload_dir = $conf->ecm->dir_output.'/'.$relativepath;
-
+
if (! is_dir($upload_dir))
{
$result=create_exdir($upload_dir);
}
-
+
if (is_dir($upload_dir))
{
$result = dol_move_uploaded_file($_FILES['userfile']['tmp_name'], $upload_dir . "/" . $_FILES['userfile']['name'],0);
@@ -261,20 +261,20 @@ if (eregi('search',$action))
foreach($sectionauto as $sectioncur)
{
if (! $sectioncur['test']) continue;
- //if ($butshown % 2 == 0)
+ //if ($butshown % 2 == 0)
print '
';
print "| ".$sectioncur['label'].': | ';
print '';
print '';
print ' | ';
- //if ($butshown % 2 == 1)
+ //if ($butshown % 2 == 1)
print '
';
$butshown++;
}
- //if ($butshown % 2 == 1)
+ //if ($butshown % 2 == 1)
// print ' | | ';
print ' |
';
@@ -339,13 +339,13 @@ if (empty($action) || $action == 'file_manager' || eregi('refresh',$action) || $
$var=false;
print '';
-
+
// Section
print '';
print '| ';
tree_showpad($sectionauto,$key);
print ' | ';
-
+
print '';
$n=3;
$ref=img_picto('',DOL_URL_ROOT.'/theme/common/treemenu/plustop'.$n.'.gif','',1);
@@ -355,13 +355,13 @@ if (empty($action) || $action == 'file_manager' || eregi('refresh',$action) || $
$ecmdirstatic->ref=$oldref;
print img_picto('',DOL_URL_ROOT.'/theme/common/treemenu/folder.gif','',1);
print ' | ';
-
+
print '';
print '';
print $val['label'];
print ' | ';
print " | \n";
-
+
// Nb of doc in dir
print ' | ';
@@ -457,14 +457,14 @@ if (empty($action) || $action == 'file_manager' || eregi('refresh',$action) || $
$_SESSION['expandedsectionarray']=join(',',$expandedsectionarray);
}
//print $_SESSION['expandedsectionarray'].'
';
-
+
$nbofentries=0;
$oldvallevel=0;
$var=true;
foreach($fulltree as $key => $val)
{
$var=false;
-
+
$ecmdirstatic->id=$val['id'];
$ecmdirstatic->ref=$val['label'];
@@ -479,10 +479,10 @@ if (empty($action) || $action == 'file_manager' || eregi('refresh',$action) || $
}
//$fullpathparent=eregi_replace('_[^_]+$','',$val['fullpath']);
-
+
// Define showline
$showline=0;
-
+
// If directory is son of expanded directory, we show line
if (in_array($val['id_mere'],$expandedsectionarray)) $showline=4;
// If directory is brother of selected directory, we show line
@@ -495,7 +495,7 @@ if (empty($action) || $action == 'file_manager' || eregi('refresh',$action) || $
if ($showline)
{
if (in_array($val['id'],$expandedsectionarray)) $option='indexexpanded';
- else $option='indexnotexpanded';
+ else $option='indexnotexpanded';
//print $option;
print '
';
@@ -541,14 +541,14 @@ if (empty($action) || $action == 'file_manager' || eregi('refresh',$action) || $
print '| ';
if ($nbofsubdir && $nboffilesinsubdir) print '+'.$nboffilesinsubdir.' ';
print ' | ';
-
+
// Edit link
print ''.img_edit().' | ';
-
+
// Add link
//print ''.img_edit_add().' | ';
print ' | ';
-
+
// Info
print '';
$userstatic->id=$val['fk_user_c'];
@@ -563,7 +563,7 @@ if (empty($action) || $action == 'file_manager' || eregi('refresh',$action) || $
else $htmltooltip.=''.$langs->trans("ECMNbOfSubDir").': '.$nbofsubdir.' ';
print $form->textwithhelp('',$htmltooltip,1,0);
print " | ";
-
+
print "
\n";
}
@@ -574,7 +574,16 @@ if (empty($action) || $action == 'file_manager' || eregi('refresh',$action) || $
// If nothing to show
if ($nbofentries == 0)
{
- print '| '.$langs->trans("ECMNoDirecotyYet").' |
';
+ print '';
+ print '| '.img_picto_common('','treemenu/branchbottom.gif').' | ';
+ print ''.img_picto('',DOL_URL_ROOT.'/theme/common/treemenu/minustop3.gif','',1).' | ';
+ print '';
+ print $langs->trans("ECMNoDirecotyYet");
+ print ' | ';
+ print ' | ';
+ print '
| ';
+ print ' | ';
+ print '
';
}
print "";