From b75f896b45dc24459ebf943784d8d680a713609b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 4 Mar 2016 11:25:54 +0100 Subject: [PATCH] NEW Into GED module, filename is truncated only if there is not enough space into table --- htdocs/core/class/html.formfile.class.php | 13 +++++++------ htdocs/theme/eldy/style.css.php | 7 +++++++ htdocs/theme/md/style.css.php | 6 ++++++ 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php index 1226d3b35ba..1b48d2789a8 100644 --- a/htdocs/core/class/html.formfile.class.php +++ b/htdocs/core/class/html.formfile.class.php @@ -796,6 +796,7 @@ class FormFile // Show list of existing files if (empty($useinecm)) print load_fiche_titre($title?$title:$langs->trans("AttachedFiles")); if (empty($url)) $url=$_SERVER["PHP_SELF"]; + print ''."\n"; print ''; print ''; print_liste_field_titre($langs->trans("Documents2"),$url,"name","",$param,'align="left"',$sortfield,$sortorder); @@ -829,10 +830,9 @@ class FormFile { $relativepath=preg_replace('/^.*\/produit\//','',$file['path']).'/'; } - $var=!$var; print ''; - print ''; - print ''; + print ''; + print ''; // Preview if (empty($useinecm)) { @@ -871,7 +872,7 @@ class FormFile } // Delete or view link // ($param must start with &) - print '
'; + print ''; //print "XX".$file['name']; //$file['name'] must be utf8 print '\n"; - print ''.dol_print_size($file['size'],1,1).''.dol_print_date($file['date'],"dayhour","tzuser").''.dol_print_size($file['size'],1,1).''.dol_print_date($file['date'],"dayhour","tzuser").''; + print ''; if ($useinecm) print ''.img_view().'   '; else { diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index ad72cd5f5ad..699563ffcfe 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -529,6 +529,13 @@ div.myavailability { .strikefordisabled { text-decoration: line-through; } +.tdoverflow { + max-width: 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + /* ============================================================================== */ /* Styles to hide objects */ diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php index 1266f5799a2..151029aa712 100644 --- a/htdocs/theme/md/style.css.php +++ b/htdocs/theme/md/style.css.php @@ -517,6 +517,12 @@ div.myavailability { .strikefordisabled { text-decoration: line-through; } +.tdoverflow { + max-width: 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} /* ============================================================================== */