From edf0e95424f343c1b3ec7441ca5babdb952cc65d Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 15 Apr 2011 15:47:42 +0000 Subject: [PATCH] Todo: using div instead of tables --- htdocs/comm/propal.php | 4 ++++ htdocs/core/class/commonobject.class.php | 7 +++---- htdocs/theme/auguria/style.css.php | 15 ++++++++++----- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index d79c3e2f43b..dc2d2f872c5 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -1424,6 +1424,8 @@ if ($id > 0 || ! empty($ref)) include(DOL_DOCUMENT_ROOT.'/core/tpl/ajaxrow.tpl.php'); } + // TODO test using div instead of tables + //print '
'; print ''; // Show object lines @@ -1460,6 +1462,8 @@ if ($id > 0 || ! empty($ref)) } } + // TODO test using div instead of tables + //print ''; print '
'; print '
'; diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 322ff61a868..37edc5f78d9 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -1464,10 +1464,9 @@ class CommonObject { global $conf,$langs; - // TODO: test using div instead of tables + // TODO test using div instead of tables /* - print '
'; - print '
'; + print '
'; print '
'; print '
'.$langs->trans('Description').'
'; print '
'.$langs->trans('VAT').'
'; @@ -1478,7 +1477,7 @@ class CommonObject print '
 
'; print '
 
'; print '
 
'; - print '
'; + print '
'; */ print ''; diff --git a/htdocs/theme/auguria/style.css.php b/htdocs/theme/auguria/style.css.php index d877d186983..bdd3e7d62e0 100644 --- a/htdocs/theme/auguria/style.css.php +++ b/htdocs/theme/auguria/style.css.php @@ -1875,11 +1875,7 @@ div.table { /* Forcer le tableau à prendre la largeur écran */ width:100%; } -/* tbody optionnel */ -div.tbody { - display:table-row-group; -} -div.tr { +div.thead { height: 24px; background: #7699A9; background-image: url(); @@ -1888,6 +1884,15 @@ div.tr { font-family: ; /* border-bottom: 1px solid #FDFFFF; */ white-space: nowrap; + display:table-row-group; +} +div.tfoot { + display:table-row-group; +} +div.tbody { + display:table-row-group; +} +div.tr { display:table-row; } div.td {