support css stats

This commit is contained in:
beedauchon 2003-09-16 04:36:16 +00:00
parent beed87bd02
commit 2a3efde8a0
6 changed files with 35 additions and 24 deletions

View File

@ -55,7 +55,7 @@ if ($result)
}
}
print "<b>Total : ".price($catotal)."</b>";
print "<div class=\"titre\"><b>Total : ".price($catotal)."</b></div>";
if ($catotal == 0) { $catotal = 1; };

View File

@ -37,7 +37,7 @@ function propals ($db, $year, $month) {
$result = $db->query($sql);
$num = $db->num_rows();
$i = 0;
print "<p><TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
print "<TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
print "<TR bgcolor=\"#e0e0e0\"><td colspan=\"3\"><b>Propal</b></td></tr>";
$oldstatut = -1;
@ -109,7 +109,7 @@ function factures ($db, $year, $month, $paye) {
if ($num > 0)
{
$i = 0;
print "<p><TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\">";
print "<TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\">";
print "<TR bgcolor=\"orange\"><td colspan=\"3\"><b>Factures</b></td></tr>";
print "<TR bgcolor=\"orange\">";
print "<TD>Societe</td>";
@ -167,7 +167,7 @@ function pt ($db, $sql, $year) {
if ($result) {
$num = $db->num_rows();
$i = 0; $total = 0 ;
print "<p><TABLE border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\">";
print "<TABLE border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\">";
print "<TR class=\"liste_titre\">";
print "<TD>Mois</TD>";
print "<td align=\"right\">Montant</td></tr>\n";
@ -220,7 +220,7 @@ function pt ($db, $sql, $year) {
}
}
print "<tr><td align=\"right\">Total :</td><td align=\"right\"><b>".price($total)."</b></td></tr>";
print "<tr class=\"total\"><td align=\"right\">Total :</td><td align=\"right\"><b>".price($total)."</b></td></tr>";
print "</table>";
$db->free();
@ -235,7 +235,7 @@ function ppt ($db, $year, $socidp)
global $bc;
print "<table width=\"100%\">";
print "<tr><td valign=\"top\" width=\"30%\">";
print "<tr class=\"liste_titre\"><td valign=\"top\" width=\"30%\">";
print "CA Prévisionnel basé sur les propal $year";
print "</td><td valign=\"top\">CA Réalisé $year</td>";
@ -269,7 +269,7 @@ function ppt ($db, $year, $socidp)
print "</td><td valign=\"top\" width=\"30%\">";
print "<p><TABLE border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\">";
print "<TABLE border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\">";
print "<TR class=\"liste_titre\">";
print "<TD>Mois</TD>";
print "<TD align=\"right\">Montant</TD>";
@ -292,9 +292,9 @@ function ppt ($db, $year, $socidp)
$acat = get_ca($db, $ayear, $socidp) - get_ca_propal($db, $ayear, $socidp);
print "<tr><td align=\"right\">Total :</td><td align=\"right\">".price($deltat)."</td></tr>";
print "<tr><td align=\"right\">Rappel $ayear :</td><td align=\"right\">".price($acat)."</td></tr>";
print "<tr><td align=\"right\">Soit :</td><td align=\"right\"><b>".price($acat+$deltat)."</b></td></tr>";
print "<tr class=\"total\"><td align=\"right\">Total :</td><td align=\"right\">".price($deltat)."</td></tr>";
print "<tr class=\"total\"><td align=\"right\">Rappel $ayear :</td><td align=\"right\">".price($acat)."</td></tr>";
print "<tr class=\"total\"><td align=\"right\">Soit :</td><td align=\"right\"><b>".price($acat+$deltat)."</b></td></tr>";
print "</table>";
print "</td></tr></table>";

View File

@ -62,7 +62,7 @@ $sql .= " GROUP BY dm";
pt($db, $sql,"Mois cumulés");
print "<P>";
print "<br>";
$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 '<p><TABLE border="1" width="100%" cellspacing="0" cellpadding="3">';
print '<TABLE border="1" width="100%" cellspacing="0" cellpadding="3">';
print "<TR class=\"liste_titre\">";
print "<TD width=\"60%\">$date</TD>";
print "<TD align=\"right\">Montant</TD>";
@ -113,7 +113,7 @@ function pt ($db, $sql, $date)
$i++;
}
print '<tr><td align="right">Total :</td><td align="right"><b>'.price($total).'</b></td><td>euros&nbsp;HT</td></tr>';
print '<tr class="total"><td align="right">Total :</td><td align="right"><b>'.price($total).'</b></td><td>euros&nbsp;HT</td></tr>';
print "</TABLE>";
$db->free();

View File

@ -210,7 +210,7 @@ function pt ($db, $sql, $year) {
}
}
print "<tr><td align=\"right\">Total :</td><td align=\"right\"><b>".price($total)."</b></td></tr>";
print "<tr class=\"total\"><td align=\"right\">Total :</td><td align=\"right\"><b>".price($total)."</b></td></tr>";
print "</table>";
$db->free();
@ -225,7 +225,7 @@ function ppt ($db, $year, $socidp)
global $bc;
print "<table width=\"100%\">";
print "<tr><td align=\"center\" width=\"30%\">";
print "<tr class=\"liste_titre\"><td align=\"center\" width=\"30%\">";
print "CA ".($year - 1);
print "</td><td align=\"center\">CA $year</td>";
@ -279,7 +279,7 @@ function ppt ($db, $year, $socidp)
}
print '<tr><td align="right">Total :</td><td align="right"><b>'.price($deltat).'<b></td></tr>';
print '<tr class="total"><td align="right">Total :</td><td align="right"><b>'.price($deltat).'<b></td></tr>';
print '</table>';
print '</td></tr></table>';

View File

@ -33,7 +33,7 @@ if ($user->societe_id > 0)
function pt ($db, $sql, $title) {
global $bc;
print '<p><TABLE border="1" width="100%" cellspacing="0" cellpadding="4">';
print '<TABLE border="1" width="100%" cellspacing="0" cellpadding="4">';
print "<TR class=\"liste_titre\">";
print "<TD>$title</TD>";
print "<TD align=\"right\">Montant</TD>";
@ -58,7 +58,7 @@ function pt ($db, $sql, $title) {
$total = $total + $obj->amount;
$i++;
}
print "<tr><td colspan=\"2\" align=\"right\"><b>Total : ".price($total)."</b> euros HT</td></tr>";
print "<tr class=\"total\"><td colspan=\"2\" align=\"right\"><b>Total : ".price($total)."</b> euros HT</td></tr>";
$db->free();
}
@ -116,7 +116,7 @@ $sql .= " GROUP BY dm DESC";
pt($db, $sql, "Année");
print "<P>";
print "<br>";
$sql = "SELECT sum(f.price) as amount, month(f.datep) as dm";
$sql .= " FROM llx_propal as f WHERE fk_statut in $in";

View File

@ -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