Todo: using div instead of tables

This commit is contained in:
Regis Houssin 2011-04-15 15:47:42 +00:00
parent 8fc49e00b1
commit edf0e95424
3 changed files with 17 additions and 9 deletions

View File

@ -1424,6 +1424,8 @@ if ($id > 0 || ! empty($ref))
include(DOL_DOCUMENT_ROOT.'/core/tpl/ajaxrow.tpl.php'); include(DOL_DOCUMENT_ROOT.'/core/tpl/ajaxrow.tpl.php');
} }
// TODO test using div instead of tables
//print '<div class="table">';
print '<table id="tablelines" class="noborder" width="100%">'; print '<table id="tablelines" class="noborder" width="100%">';
// Show object lines // Show object lines
@ -1460,6 +1462,8 @@ if ($id > 0 || ! empty($ref))
} }
} }
// TODO test using div instead of tables
//print '</div>';
print '</table>'; print '</table>';
print '</div>'; print '</div>';

View File

@ -1464,10 +1464,9 @@ class CommonObject
{ {
global $conf,$langs; global $conf,$langs;
// TODO: test using div instead of tables // TODO test using div instead of tables
/* /*
print '<div class="table">'; print '<div class="thead">';
print '<div class="tbody">';
print '<div class="tr">'; print '<div class="tr">';
print '<div class="td desc">'.$langs->trans('Description').'</div>'; print '<div class="td desc">'.$langs->trans('Description').'</div>';
print '<div class="td">'.$langs->trans('VAT').'</div>'; print '<div class="td">'.$langs->trans('VAT').'</div>';
@ -1478,7 +1477,7 @@ class CommonObject
print '<div class="td ten">&nbsp;</div>'; print '<div class="td ten">&nbsp;</div>';
print '<div class="td ten">&nbsp;</div>'; print '<div class="td ten">&nbsp;</div>';
print '<div class="td end">&nbsp;</div>'; print '<div class="td end">&nbsp;</div>';
print '</div></div></div>'; print '</div></div>';
*/ */
print '<tr class="liste_titre nodrag nodrop">'; print '<tr class="liste_titre nodrag nodrop">';

View File

@ -1875,11 +1875,7 @@ div.table {
/* Forcer le tableau à prendre la largeur écran */ /* Forcer le tableau à prendre la largeur écran */
width:100%; width:100%;
} }
/* tbody optionnel */ div.thead {
div.tbody {
display:table-row-group;
}
div.tr {
height: 24px; height: 24px;
background: #7699A9; background: #7699A9;
background-image: url(<?php echo DOL_URL_ROOT.'/theme/auguria/img/menus/trtitle.png' ?>); background-image: url(<?php echo DOL_URL_ROOT.'/theme/auguria/img/menus/trtitle.png' ?>);
@ -1888,6 +1884,15 @@ div.tr {
font-family: <?php print $fontlist ?>; font-family: <?php print $fontlist ?>;
/* border-bottom: 1px solid #FDFFFF; */ /* border-bottom: 1px solid #FDFFFF; */
white-space: nowrap; white-space: nowrap;
display:table-row-group;
}
div.tfoot {
display:table-row-group;
}
div.tbody {
display:table-row-group;
}
div.tr {
display:table-row; display:table-row;
} }
div.td { div.td {