@@ -127,12 +129,31 @@ This page is a sample of page using tables. It is designed to make test with
-
+
Example 1 : Standard table/thead/tbody/tr/th-td (no class pair/impair on td) => Use this if you need the drag and drop for lines or for long result tables
+
+
+
+
-
" id="tablelines3">
+
+" id="tablelines3">
+
trans('title1'),0,$_SERVER["PHP_SELF"],'aaa','','','align="left"',$sortfield,$sortorder); ?>
trans('title2'),0,$_SERVER["PHP_SELF"],'bbb','','','align="right"',$sortfield,$sortorder); ?>
trans('title3'),0,$_SERVER["PHP_SELF"],'ccc','','','align="center"',$sortfield,$sortorder); ?>
+
+
| getNomUrl(1); ?> | b1 | c1 |
-| a2 | b2 | c2 |
+| a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 | b2 | c2 |
| a3 | b3 | c3 |
+
+
+
@@ -323,7 +351,7 @@ $('xxxth').replaceWith(
| line2 |
dfsdf |
- xxx |
+ xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx |
| line3 |
diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php
index 52ee642719c..ca73d3d8bbc 100644
--- a/htdocs/theme/eldy/style.css.php
+++ b/htdocs/theme/eldy/style.css.php
@@ -569,6 +569,15 @@ div.myavailability {
margin-top: 25px !important;
}
+/* DOL_XXX for future usage (when left menu has been removed). If we do not use datatable */
+.table-responsive {
+ width: calc(100% - 330px);
+ margin-bottom: 15px;
+ overflow-y: hidden;
+ -ms-overflow-style: -ms-autohiding-scrollbar;
+}
+
+
/* ============================================================================== */
/* Styles to hide objects */
@@ -638,16 +647,14 @@ td.showDragHandle {
/* ============================================================================== */
#id-container {
- /* margin-top: 12px;
- margin-bottom: 8px; */
- display: table;
+ display: table; /* DOL_XXX Empeche fonctionnement correct du scroll horizontal sur tableau, avec datatable ou CSS */
table-layout: fixed;
}
#id-right, #id-left {
padding-top: 12px;
padding-bottom: 8px;
- display: table-cell;
+ display: table-cell; /* DOL_XXX Empeche fonctionnement correct du scroll horizontal sur tableau, avec datatable ou CSS */
float: none;
vertical-align: top;
}
diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php
index 559f464a6df..b42927e3ba8 100644
--- a/htdocs/theme/md/style.css.php
+++ b/htdocs/theme/md/style.css.php
@@ -568,6 +568,14 @@ div.myavailability {
margin-top: 25px !important;
}
+/* for future usage (when left menu has been removed) */
+.table-responsive {
+ width: calc(100% - 330px);
+ margin-bottom: 15px;
+ overflow-y: hidden;
+ -ms-overflow-style: -ms-autohiding-scrollbar;
+}
+
/* ============================================================================== */
/* Styles to hide objects */