Formatage html

This commit is contained in:
Rodolphe Quiedeville 2004-04-07 12:56:05 +00:00
parent 71e43ecdc2
commit 36a82f99d8

View File

@ -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 '&nbsp;'; } else { print '&nbsp;'; }
} }
@ -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>&nbsp;</td>'; print '<td>&nbsp;</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>&nbsp;</td>'; print '<td>&nbsp;</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>&nbsp;</td>'; print '<td>&nbsp;</td>';
} }
} }
} }
print "</tr>\n"; print "</tr>\n";
print "</table>"; print "</table>";
$db->close(); $db->close();