Formatage html
This commit is contained in:
parent
71e43ecdc2
commit
36a82f99d8
@ -1,5 +1,5 @@
|
|||||||
<?PHP
|
<?PHP
|
||||||
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -109,13 +109,16 @@ for ($annee = $year_start ; $annee <= $year_end ; $annee++)
|
|||||||
$case = strftime("%Y-%m",mktime(1,1,1,$mois,1,$annee));
|
$case = strftime("%Y-%m",mktime(1,1,1,$mois,1,$annee));
|
||||||
$caseprev = strftime("%Y-%m",mktime(1,1,1,$mois,1,$annee-1));
|
$caseprev = strftime("%Y-%m",mktime(1,1,1,$mois,1,$annee-1));
|
||||||
|
|
||||||
// Montant CA
|
|
||||||
|
// Valeur CA
|
||||||
|
|
||||||
print '<td align="right">';
|
print '<td align="right">';
|
||||||
if ($cum[$case])
|
if ($cum[$case])
|
||||||
{
|
{
|
||||||
print price($cum[$case]);
|
print price($cum[$case],1);
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
if ($case <= $casenow) { print '0'; }
|
if ($case <= $casenow) { print '0'; }
|
||||||
else { print ' '; }
|
else { print ' '; }
|
||||||
}
|
}
|
||||||
@ -128,7 +131,8 @@ for ($annee = $year_start ; $annee <= $year_end ; $annee++)
|
|||||||
else
|
else
|
||||||
print '<td align="center">+Inf%</td>';
|
print '<td align="center">+Inf%</td>';
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
print '<td> </td>';
|
print '<td> </td>';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -160,22 +164,25 @@ for ($annee = $year_start ; $annee <= $year_end ; $annee++)
|
|||||||
else
|
else
|
||||||
print '<td align="center">+Inf%</td>';
|
print '<td align="center">+Inf%</td>';
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
print '<td> </td>';
|
print '<td> </td>';
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
if ($annee <= $year_current) {
|
else
|
||||||
|
{
|
||||||
|
if ($annee <= $year_current)
|
||||||
|
{
|
||||||
print '<td align="center">-</td>';
|
print '<td align="center">-</td>';
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
print '<td> </td>';
|
print '<td> </td>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
|
|
||||||
print "</table>";
|
print "</table>";
|
||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user