Ajout d'un lien vers le dernier relevé
This commit is contained in:
parent
329f9befa9
commit
6e70a2fcf5
@ -1,5 +1,5 @@
|
|||||||
<?PHP
|
<?PHP
|
||||||
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -87,11 +87,13 @@ $sql .= " ORDER BY dateo ASC LIMIT 10";
|
|||||||
|
|
||||||
|
|
||||||
$result = $db->query($sql);
|
$result = $db->query($sql);
|
||||||
if ($result) {
|
if ($result)
|
||||||
|
{
|
||||||
$var=True;
|
$var=True;
|
||||||
$num = $db->num_rows();
|
$num = $db->num_rows();
|
||||||
$i = 0; $total = 0;
|
$i = 0; $total = 0;
|
||||||
while ($i < $num) {
|
while ($i < $num)
|
||||||
|
{
|
||||||
$objp = $db->fetch_object( $i);
|
$objp = $db->fetch_object( $i);
|
||||||
$total = $total + $objp->amount;
|
$total = $total + $objp->amount;
|
||||||
|
|
||||||
@ -103,9 +105,13 @@ if ($result) {
|
|||||||
|
|
||||||
print "<td>".strftime("%d %b %Y",$objp->do)."</TD>\n";
|
print "<td>".strftime("%d %b %Y",$objp->do)."</TD>\n";
|
||||||
print "<td>$objp->label</td>";
|
print "<td>$objp->label</td>";
|
||||||
if ($objp->amount < 0) {
|
|
||||||
|
if ($objp->amount < 0)
|
||||||
|
{
|
||||||
print "<td align=\"right\">".price($objp->amount * -1)."</TD><td> </td>\n";
|
print "<td align=\"right\">".price($objp->amount * -1)."</TD><td> </td>\n";
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
print "<td> </td><td align=\"right\">".price($objp->amount)."</TD>\n";
|
print "<td> </td><td align=\"right\">".price($objp->amount)."</TD>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -114,9 +120,12 @@ if ($result) {
|
|||||||
print "<td align=\"center\"><select name=\"rappro\"><option value=\"1\">oui</option><option value=\"0\" selected>non</option></select></td>";
|
print "<td align=\"center\"><select name=\"rappro\"><option value=\"1\">oui</option><option value=\"0\" selected>non</option></select></td>";
|
||||||
print "<td align=\"center\"><input type=\"submit\" value=\"do\"></td>";
|
print "<td align=\"center\"><input type=\"submit\" value=\"do\"></td>";
|
||||||
|
|
||||||
if ($objp->rappro) {
|
if ($objp->rappro)
|
||||||
|
{
|
||||||
print "<td align=\"center\"><a href=\"releve.php3?num=$objp->num_releve\">$objp->num_releve</a></td>";
|
print "<td align=\"center\"><a href=\"releve.php3?num=$objp->num_releve\">$objp->num_releve</a></td>";
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
print "<td align=\"center\"><a href=\"$PHP_SELF?account=$account&action=del&rowid=$objp->rowid\">[Del]</a></td>";
|
print "<td align=\"center\"><a href=\"$PHP_SELF?account=$account&action=del&rowid=$objp->rowid\">[Del]</a></td>";
|
||||||
}
|
}
|
||||||
print "</tr>";
|
print "</tr>";
|
||||||
@ -132,6 +141,8 @@ if ($result) {
|
|||||||
}
|
}
|
||||||
print "</table>";
|
print "</table>";
|
||||||
|
|
||||||
|
print '<br>Dernier relevé : <a href="releve.php3?account='.$account.'&num='.$last_releve.'">'.$last_releve.'</a>';
|
||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
llxFooter("<em>Dernière modification $Date$ révision $Revision$</em>");
|
llxFooter("<em>Dernière modification $Date$ révision $Revision$</em>");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user