From 2a3efde8a0737265a34452eea4af31d72584597b Mon Sep 17 00:00:00 2001 From: beedauchon Date: Tue, 16 Sep 2003 04:36:16 +0000 Subject: [PATCH] support css stats --- htdocs/compta/stats/casoc.php | 2 +- htdocs/compta/stats/comp.php | 18 +++++++++--------- htdocs/compta/stats/cumul.php | 6 +++--- htdocs/compta/stats/exercices.php | 6 +++--- htdocs/compta/stats/prev.php | 6 +++--- htdocs/theme/monochrome/monochrome.css | 21 ++++++++++++++++----- 6 files changed, 35 insertions(+), 24 deletions(-) diff --git a/htdocs/compta/stats/casoc.php b/htdocs/compta/stats/casoc.php index d76e4dad6d8..2caeffb8ba0 100644 --- a/htdocs/compta/stats/casoc.php +++ b/htdocs/compta/stats/casoc.php @@ -55,7 +55,7 @@ if ($result) } } -print "Total : ".price($catotal).""; +print "
Total : ".price($catotal)."
"; if ($catotal == 0) { $catotal = 1; }; diff --git a/htdocs/compta/stats/comp.php b/htdocs/compta/stats/comp.php index af0aa022611..0515120b823 100644 --- a/htdocs/compta/stats/comp.php +++ b/htdocs/compta/stats/comp.php @@ -37,7 +37,7 @@ function propals ($db, $year, $month) { $result = $db->query($sql); $num = $db->num_rows(); $i = 0; - print "

"; + print "
"; print ""; $oldstatut = -1; @@ -109,7 +109,7 @@ function factures ($db, $year, $month, $paye) { if ($num > 0) { $i = 0; - print "

Propal
"; + print "
"; print ""; print ""; print ""; @@ -167,7 +167,7 @@ function pt ($db, $sql, $year) { if ($result) { $num = $db->num_rows(); $i = 0; $total = 0 ; - print "

Factures
Societe
"; + print "
"; print ""; print ""; print "\n"; @@ -220,7 +220,7 @@ function pt ($db, $sql, $year) { } } - print ""; + print ""; print "
MoisMontant
Total :".price($total)."
Total :".price($total)."
"; $db->free(); @@ -235,7 +235,7 @@ function ppt ($db, $year, $socidp) global $bc; print ""; - print ""; @@ -269,7 +269,7 @@ function ppt ($db, $year, $socidp) print "
"; + print "
"; print "CA Prévisionnel basé sur les propal $year"; print "CA Réalisé $year"; - print "

"; + print "
"; print ""; print ""; print ""; @@ -292,9 +292,9 @@ function ppt ($db, $year, $socidp) $acat = get_ca($db, $ayear, $socidp) - get_ca_propal($db, $ayear, $socidp); - print ""; - print ""; - print ""; + print ""; + print ""; + print ""; print "
MoisMontant
Total :".price($deltat)."
Rappel $ayear :".price($acat)."
Soit :".price($acat+$deltat)."
Total :".price($deltat)."
Rappel $ayear :".price($acat)."
Soit :".price($acat+$deltat)."
"; print "

"; diff --git a/htdocs/compta/stats/cumul.php b/htdocs/compta/stats/cumul.php index 6a825c5c878..d06b7ac3dd0 100644 --- a/htdocs/compta/stats/cumul.php +++ b/htdocs/compta/stats/cumul.php @@ -62,7 +62,7 @@ $sql .= " GROUP BY dm"; pt($db, $sql,"Mois cumulés"); -print "

"; +print "
"; $sql = "SELECT sum(f.total) as amount, year(f.datef) as dm"; $sql .= " FROM llx_facture as f WHERE f.paye = 1"; @@ -94,7 +94,7 @@ function pt ($db, $sql, $date) if ($result) { $num = $db->num_rows(); $i = 0; $total = 0 ; - print '

'; + print '
'; print ""; print ""; print ""; @@ -113,7 +113,7 @@ function pt ($db, $sql, $date) $i++; } - print ''; + print ''; print "
$dateMontant
Total :'.price($total).'euros HT
Total :'.price($total).'euros HT
"; $db->free(); diff --git a/htdocs/compta/stats/exercices.php b/htdocs/compta/stats/exercices.php index 2e0665b0c21..b576d8dd072 100644 --- a/htdocs/compta/stats/exercices.php +++ b/htdocs/compta/stats/exercices.php @@ -210,7 +210,7 @@ function pt ($db, $sql, $year) { } } - print "Total :".price($total).""; + print "Total :".price($total).""; print ""; $db->free(); @@ -225,7 +225,7 @@ function ppt ($db, $year, $socidp) global $bc; print ""; - print ""; @@ -279,7 +279,7 @@ function ppt ($db, $year, $socidp) } - print ''; + print ''; print '
"; + print "
"; print "CA ".($year - 1); print "CA $year
Total :'.price($deltat).'
Total :'.price($deltat).'
'; print ''; diff --git a/htdocs/compta/stats/prev.php b/htdocs/compta/stats/prev.php index 0931b9413b4..e13bebcd7eb 100644 --- a/htdocs/compta/stats/prev.php +++ b/htdocs/compta/stats/prev.php @@ -33,7 +33,7 @@ if ($user->societe_id > 0) function pt ($db, $sql, $title) { global $bc; - print '

'; + print '
'; print ""; print ""; print ""; @@ -58,7 +58,7 @@ function pt ($db, $sql, $title) { $total = $total + $obj->amount; $i++; } - print ""; + print ""; $db->free(); } @@ -116,7 +116,7 @@ $sql .= " GROUP BY dm DESC"; pt($db, $sql, "Année"); -print "

"; +print "
"; $sql = "SELECT sum(f.price) as amount, month(f.datep) as dm"; $sql .= " FROM llx_propal as f WHERE fk_statut in $in"; diff --git a/htdocs/theme/monochrome/monochrome.css b/htdocs/theme/monochrome/monochrome.css index a950364a07e..342f4944576 100755 --- a/htdocs/theme/monochrome/monochrome.css +++ b/htdocs/theme/monochrome/monochrome.css @@ -179,7 +179,7 @@ tr.impair { } /* - * + * Classes TABLE */ .tablefprod { @@ -228,10 +228,8 @@ tr.impair { } - - /* - * + * Classes TR */ tr.box_titre { @@ -260,8 +258,21 @@ tr.fiche { font-size: 0.6em; } +/* stats */ +tr.total { + background: #444444; + font-family: Helvetica, Verdana; + font-size: 1.0em; + color: #eeeeee; + border-top: 1px dashed #555555; + border-right: 1px dashed #888888; + border-bottom: 1px dashed #777777; + border-left: 1px dashed #666666; + } + + /* - * + * Classes TD */ input.flat

$titleMontant
Total : ".price($total)." euros HT
Total : ".price($total)." euros HT