21 |
*/ |
*/ |
22 |
|
|
23 |
/** \file htdocs/compta/bank/account.php |
/** \file htdocs/compta/bank/account.php |
24 |
\ingroup banque |
\ingroup banque |
25 |
\brief Page de détail des transactions bancaires |
\brief Page de détail des transactions bancaires |
26 |
\version $Revision$ |
\version $Revision$ |
27 |
*/ |
*/ |
28 |
|
|
29 |
require("./pre.inc.php"); |
require("./pre.inc.php"); |
51 |
|
|
52 |
print '<tr><td>'; |
print '<tr><td>'; |
53 |
|
|
54 |
$file = "solde.$account.$year.$month.png"; |
$file = "solde.$account.$year.png"; |
55 |
|
|
56 |
print '<img src="'.DOL_URL_ROOT.'/viewimage.php?modulepart=bank&file='.$file.'" alt="" title="">'; |
print '<img src="'.DOL_URL_ROOT.'/viewimage.php?modulepart=bank&file='.$file.'" alt="" title="">'; |
57 |
|
|
68 |
$yearprev = $year ; |
$yearprev = $year ; |
69 |
} |
} |
70 |
|
|
71 |
|
$file = "solde.$account.$yearprev.png"; |
|
$file = "solde.$account.$yearprev.$monthprev.png"; |
|
|
|
|
|
print '<img src="'.DOL_URL_ROOT.'/viewimage.php?modulepart=bank&file='.$file.'" alt="" title="">'; |
|
|
|
|
|
print '</td></tr><tr><td>'; |
|
|
|
|
|
$month = $monthprev; |
|
|
$year = $yearprev; |
|
|
|
|
|
if ($month == 1) |
|
|
{ |
|
|
$monthprev = "12"; |
|
|
$yearprev = $year - 1; |
|
|
} |
|
|
else |
|
|
{ |
|
|
$monthprev = substr("00".($month - 1), -2) ; |
|
|
$yearprev = $year ; |
|
|
} |
|
|
|
|
|
|
|
|
$file = "solde.$account.$yearprev.$monthprev.png"; |
|
72 |
|
|
73 |
print '<img src="'.DOL_URL_ROOT.'/viewimage.php?modulepart=bank&file='.$file.'" alt="" title="">'; |
print '<img src="'.DOL_URL_ROOT.'/viewimage.php?modulepart=bank&file='.$file.'" alt="" title="">'; |
74 |
|
|
75 |
print '</td></tr></table>'; |
print '</td></tr></table>'; |
|
|
|
|
|
|
76 |
} |
} |
77 |
?> |
?> |