From d2d0e66c5cdeee8176d817a8f058a3400cd99d2c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 13 Dec 2016 01:19:33 +0100 Subject: [PATCH] Fix style fo ECM module --- htdocs/core/ajax/ajaxdirpreview.php | 2 +- htdocs/core/class/html.formfile.class.php | 6 +++--- htdocs/ecm/docdir.php | 7 ++----- htdocs/ecm/index.php | 3 ++- htdocs/ecm/index_auto.php | 2 +- htdocs/theme/eldy/style.css.php | 1 + htdocs/theme/md/style.css.php | 1 + 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/htdocs/core/ajax/ajaxdirpreview.php b/htdocs/core/ajax/ajaxdirpreview.php index 4ff36a1e88b..28f78e22ef4 100644 --- a/htdocs/core/ajax/ajaxdirpreview.php +++ b/htdocs/core/ajax/ajaxdirpreview.php @@ -138,7 +138,7 @@ if (! dol_is_dir($upload_dir)) exit;*/ } -print ''."\n"; +print ''."\n"; print ''."\n"; $param=($sortfield?'&sortfield='.$sortfield:'').($sortorder?'&sortorder='.$sortorder:''); diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php index 60ed409fc7f..95b7b41da4d 100644 --- a/htdocs/core/class/html.formfile.class.php +++ b/htdocs/core/class/html.formfile.class.php @@ -932,7 +932,7 @@ class FormFile print ''; print ''; } - print ''."\n"; + print '
'."\n"; print ''; print_liste_field_titre($langs->trans("Documents2"),$url,"name","",$param,'align="left"',$sortfield,$sortorder); @@ -1087,7 +1087,7 @@ class FormFile } if ($nboffiles == 0) { - print ''; @@ -1130,7 +1130,7 @@ class FormFile // Show list of documents if (empty($useinecm)) print load_fiche_titre($langs->trans("AttachedFiles")); if (empty($url)) $url=$_SERVER["PHP_SELF"]; - print '
'; + print '
'; if (empty($textifempty)) print $langs->trans("NoFileFound"); else print $textifempty; print '
'."\n"; + print '
'."\n"; print ''; $sortref="fullname"; if ($modulepart == 'invoice_supplier') $sortref='level1name'; diff --git a/htdocs/ecm/docdir.php b/htdocs/ecm/docdir.php index 26372b7994d..1b36d0433d1 100644 --- a/htdocs/ecm/docdir.php +++ b/htdocs/ecm/docdir.php @@ -117,8 +117,7 @@ if ($action == 'add' && $user->rights->ecm->setup) else { $langs->load("errors"); - setEventMessages($langs->trans($ecmdir->error), null, 'errors'); - setEventMessages($ecmdir->error, $ecmdir->errors, 'errors'); + setEventMessages($langs->trans($ecmdir->error), $ecmdir->errors, 'errors'); $action = 'create'; } } @@ -173,9 +172,7 @@ if ($action == 'create') print ''; print ''."\n"; - print ''."\n"; - - print '

'; + print ''; dol_fiche_end(); diff --git a/htdocs/ecm/index.php b/htdocs/ecm/index.php index 8236693f37f..18157ee60ba 100644 --- a/htdocs/ecm/index.php +++ b/htdocs/ecm/index.php @@ -494,7 +494,7 @@ if ($action == 'delete_section') if (empty($action) || $action == 'file_manager' || preg_match('/refresh/i',$action) || $action == 'delete') { - print ''."\n"; + print '
'."\n"; print ''."\n"; print ''."\n"; @@ -721,6 +721,7 @@ if (empty($action) || $action == 'file_manager' || preg_match('/refresh/i',$acti $mode='noajax'; +$url=DOL_URL_ROOT.'/ecm/index.php'; include_once DOL_DOCUMENT_ROOT.'/core/ajax/ajaxdirpreview.php'; diff --git a/htdocs/ecm/index_auto.php b/htdocs/ecm/index_auto.php index 8964f3b0534..5119c66194a 100644 --- a/htdocs/ecm/index_auto.php +++ b/htdocs/ecm/index_auto.php @@ -480,7 +480,7 @@ if ($action == 'delete_section') if (empty($action) || $action == 'file_manager' || preg_match('/refresh/i',$action) || $action == 'delete') { - print '
'."\n"; + print '
'."\n"; print ''."\n"; print ''."\n"; diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index 9f101b43294..73015308521 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -1934,6 +1934,7 @@ img.toolbarbutton { } .ecm-in-layout-south { + border-top: 0px !important; border-left: 0px !important; border-right: 0px !important; border-bottom: 0px !important; diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php index 5a6b5a48297..fd22ef5520d 100644 --- a/htdocs/theme/md/style.css.php +++ b/htdocs/theme/md/style.css.php @@ -1946,6 +1946,7 @@ img.toolbarbutton { } .ecm-in-layout-south { + border-top: 0px !important; border-left: 0px !important; border-right: 0px !important; border-bottom: 0px !important;