Todo: using div instead of tables
This commit is contained in:
parent
66992ad45e
commit
c62e77bce5
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2010 Regis Houssin <regis@dolibarr.fr>
|
/* Copyright (C) 2010-2011 Regis Houssin <regis@dolibarr.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@ -1464,9 +1464,25 @@ class CommonObject
|
|||||||
{
|
{
|
||||||
global $conf,$langs;
|
global $conf,$langs;
|
||||||
|
|
||||||
|
// TODO: test using div instead of tables
|
||||||
|
/*
|
||||||
|
print '<div class="table">';
|
||||||
|
print '<div class="tbody">';
|
||||||
|
print '<div class="tr">';
|
||||||
|
print '<div class="td">'.$langs->trans('Description').'</div>';
|
||||||
|
print '<div class="td">'.$langs->trans('VAT').'</div>';
|
||||||
|
print '<div class="td">'.$langs->trans('PriceUHT').'</div>';
|
||||||
|
print '<div class="td">'.$langs->trans('Qty').'</div>';
|
||||||
|
print '<div class="td">'.$langs->trans('ReductionShort').'</div>';
|
||||||
|
print '<div class="td">'.$langs->trans('TotalHTShort').'</div>';
|
||||||
|
print '<div class="td"> </div>';
|
||||||
|
print '<div class="td"> </div>';
|
||||||
|
print '<div class="td end"> </div>';
|
||||||
|
print '</div></div></div>';
|
||||||
|
*/
|
||||||
|
|
||||||
print '<tr class="liste_titre nodrag nodrop">';
|
print '<tr class="liste_titre nodrag nodrop">';
|
||||||
print '<td>'.$langs->trans('Description').'</td>';
|
print '<td>'.$langs->trans('Description').'</td>';
|
||||||
if ($conf->global->PRODUIT_USE_MARKUP) print '<td align="right" width="80">'.$langs->trans('Markup').'</td>';
|
|
||||||
print '<td align="right" width="50">'.$langs->trans('VAT').'</td>';
|
print '<td align="right" width="50">'.$langs->trans('VAT').'</td>';
|
||||||
print '<td align="right" width="80">'.$langs->trans('PriceUHT').'</td>';
|
print '<td align="right" width="80">'.$langs->trans('PriceUHT').'</td>';
|
||||||
print '<td align="right" width="50">'.$langs->trans('Qty').'</td>';
|
print '<td align="right" width="50">'.$langs->trans('Qty').'</td>';
|
||||||
|
|||||||
@ -1863,3 +1863,38 @@ A.none, A.none:active, A.none:visited, A.none:hover {
|
|||||||
{
|
{
|
||||||
border: 0px solid #FF0000 !important;
|
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(<?php echo DOL_URL_ROOT.'/theme/auguria/img/menus/trtitle.png' ?>);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
color: #FFFFFF;
|
||||||
|
font-family: <?php print $fontlist ?>;
|
||||||
|
/* 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;
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user