From c62e77bce508c8a7c863969781977e41cdf23277 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 15 Apr 2011 14:45:41 +0000 Subject: [PATCH] Todo: using div instead of tables --- htdocs/core/ajaxrow.php | 2 +- htdocs/core/class/commonobject.class.php | 18 +++++++++++- htdocs/theme/auguria/style.css.php | 35 ++++++++++++++++++++++++ 3 files changed, 53 insertions(+), 2 deletions(-) diff --git a/htdocs/core/ajaxrow.php b/htdocs/core/ajaxrow.php index e4c2a8f992d..e421e2ee7de 100644 --- a/htdocs/core/ajaxrow.php +++ b/htdocs/core/ajaxrow.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2010-2011 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 33a1f873f6a..38ff1217df6 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -1463,10 +1463,26 @@ class CommonObject function printObjectLines($dateSelector=0,$seller,$buyer) { global $conf,$langs; + + // TODO: test using div instead of tables + /* + print '
'; + print '
'; + print '
'; + print '
'.$langs->trans('Description').'
'; + print '
'.$langs->trans('VAT').'
'; + print '
'.$langs->trans('PriceUHT').'
'; + print '
'.$langs->trans('Qty').'
'; + print '
'.$langs->trans('ReductionShort').'
'; + print '
'.$langs->trans('TotalHTShort').'
'; + print '
 
'; + print '
 
'; + print '
 
'; + print '
'; + */ print ''; print ''.$langs->trans('Description').''; - if ($conf->global->PRODUIT_USE_MARKUP) print ''.$langs->trans('Markup').''; print ''.$langs->trans('VAT').''; print ''.$langs->trans('PriceUHT').''; print ''.$langs->trans('Qty').''; diff --git a/htdocs/theme/auguria/style.css.php b/htdocs/theme/auguria/style.css.php index 6d2c574d602..4c27c916fc8 100644 --- a/htdocs/theme/auguria/style.css.php +++ b/htdocs/theme/auguria/style.css.php @@ -1863,3 +1863,38 @@ A.none, A.none:active, A.none:visited, A.none:hover { { border: 0px solid #FF0000 !important; } + +/* ============================================================================== */ +/* Test using div instead of tables */ +/* ============================================================================== */ + +div.table { + display:table; + /* Joindre les bords des cellules */ + border-collapse:collapse; + /* Forcer le tableau à prendre la largeur écran */ + width:100%; +} +/* tbody optionnel */ +div.tbody { + display:table-row-group; +} +div.tr { + height: 24px; + background: #7699A9; + background-image: url(); + background-repeat: repeat-x; + color: #FFFFFF; + font-family: ; + /* border-bottom: 1px solid #FDFFFF; */ + white-space: nowrap; + display:table-row; +} +div.td { + display:table-cell; + padding:5px; + width:24.5%; +} +div.end { + width:auto; +}