Utilisation du style liste_total pour les totaux.

This commit is contained in:
Laurent Destailleur 2005-05-03 00:57:27 +00:00
parent 459e1a60c2
commit 02591ee6dc
6 changed files with 141 additions and 99 deletions

View File

@ -129,6 +129,7 @@ if ($result) {
} else { } else {
dolibarr_print_error($db); dolibarr_print_error($db);
} }
// Ajoute paiements anciennes version non liés par paiement_facture // Ajoute paiements anciennes version non liés par paiement_facture
if ($modecompta != 'CREANCES-DETTES') { if ($modecompta != 'CREANCES-DETTES') {
$sql = "SELECT 'Autres' as nom, '0' as idp, sum(p.amount) as amount_ttc, date_format(p.datep,'%Y-%m') as dm"; $sql = "SELECT 'Autres' as nom, '0' as idp, sum(p.amount) as amount_ttc, date_format(p.datep,'%Y-%m') as dm";
@ -145,7 +146,6 @@ if ($modecompta != 'CREANCES-DETTES') {
if ($result) { if ($result) {
$num = $db->num_rows($result); $num = $db->num_rows($result);
$i = 0; $i = 0;
$var=true;
if ($num) { if ($num) {
while ($i < $num) while ($i < $num)
{ {

View File

@ -380,17 +380,28 @@ tr.liste_titre {
border: 1px solid #000000; border: 1px solid #000000;
font-weight: bold; font-weight: bold;
text-decoration: none; text-decoration: none;
white-space: nowrap } white-space: nowrap
}
tr.liste_total {
background: #F0F0F0;
font-weight: bold;
white-space: nowrap;
border-top: 1px solid #888888;
}
tr.pair { tr.pair {
background: #dfdfdf; background: #dfdfdf;
border-bottom: 1px solid #000000; border-bottom: 1px solid #000000;
text-decoration: none } text-decoration: none
}
tr.impair { tr.impair {
background: #dfdfdf; background: #dfdfdf;
border-bottom: 1px solid #000000; border-bottom: 1px solid #000000;
text-decoration: none } text-decoration: none
}
/* /*
* *
*/ */

View File

@ -376,6 +376,7 @@ div.titre {
font-weight: bold; font-weight: bold;
color: #336666; color: #336666;
text-decoration: none } text-decoration: none }
/* /*
* *
*/ */
@ -388,6 +389,13 @@ tr.liste_titre {
white-space: nowrap; white-space: nowrap;
} }
tr.liste_total {
background: #F0F0F0;
font-weight: bold;
white-space: nowrap;
border-top: 1px solid #888888;
}
tr.pair { tr.pair {
background: #b3cccc; background: #b3cccc;
font-family: Helvetica, Verdana; font-family: Helvetica, Verdana;

View File

@ -537,6 +537,13 @@ border-bottom: 1px solid #FFFFFF;
white-space: nowrap; white-space: nowrap;
} }
tr.liste_total {
background: #F0F0F0;
font-weight: bold;
white-space: nowrap;
border-top: 1px solid #888888;
}
th { th {
background: #7699A9; background: #7699A9;
color: #334444; color: #334444;

View File

@ -590,7 +590,9 @@ div.titre {
font: helvetica, verdana, arial, sans-serif; font: helvetica, verdana, arial, sans-serif;
font-weight: bold; font-weight: bold;
color: #777799; color: #777799;
text-decoration: none } text-decoration: none
}
/* /*
* *
*/ */
@ -607,6 +609,13 @@ white-space: nowrap;
font-size: 1.0em; font-size: 1.0em;
} }
tr.liste_total {
background: #F0F0F0;
font-weight: bold;
white-space: nowrap;
border-top: 1px solid #888888;
}
th { th {
color: #FFFFFF; color: #FFFFFF;
background: #777799; background: #777799;

View File

@ -584,6 +584,13 @@ white-space: nowrap;
font-size: 1.0em; font-size: 1.0em;
} }
tr.liste_total {
background: #F0F0F0;
font-weight: bold;
white-space: nowrap;
border-top: 1px solid #888888;
}
th { th {
background: #BBBB88; background: #BBBB88;
font: helvetica, verdana, arial, sans-serif; font: helvetica, verdana, arial, sans-serif;