17 |
* |
* |
18 |
* $Id$ |
* $Id$ |
19 |
* $Source$ |
* $Source$ |
|
* |
|
20 |
*/ |
*/ |
21 |
|
|
22 |
/** \file htdocs/compta/bank/graph.php |
/** \file htdocs/compta/bank/graph.php |
37 |
|
|
38 |
if ($account > 0) |
if ($account > 0) |
39 |
{ |
{ |
40 |
$datetime = time(); |
$datetime = time(); |
41 |
$month = strftime("%m", $datetime); |
$month = strftime("%m", $datetime); |
42 |
$year = strftime("%Y", $datetime); |
$year = strftime("%Y", $datetime); |
43 |
|
|
44 |
$acct = new Account($db); |
$acct = new Account($db); |
45 |
$acct->fetch($account); |
$acct->fetch($account); |
46 |
|
|
47 |
print_fiche_titre("Journal de trésorerie du compte : " .$acct->label,$mesg); |
print_fiche_titre("Journal de trésorerie du compte : " .$acct->label,$mesg); |
48 |
|
|
49 |
print '<table class="noborder" width="100%">'; |
|
50 |
|
print '<table class="notopnoleftnoright" width="100%">'; |
51 |
print '<tr><td>'; |
|
52 |
|
print '<tr><td>'; |
53 |
$file = "solde.$account.$year.png"; |
|
54 |
|
$file = "solde.$account.$year.png"; |
55 |
print '<img src="'.DOL_URL_ROOT.'/viewimage.php?modulepart=bank&file='.$file.'" alt="" title="">'; |
if (! file_exists($file)) |
56 |
|
{ |
57 |
print '</td></tr><tr><td>'; |
print "Pour générer ou regénérer les graphiques, lancer le script scripts/banque/graph-solde.php en ligne de commande.<br>"; |
58 |
|
print '<br>'; |
59 |
$file = "solde.$account.png"; |
} |
60 |
|
else |
61 |
print '<img src="'.DOL_URL_ROOT.'/viewimage.php?modulepart=bank&file='.$file.'" alt="" title="">'; |
{ |
62 |
|
print '<img src="'.DOL_URL_ROOT.'/viewimage.php?modulepart=bank&file='.$file.'" alt="" title="">'; |
63 |
print '</td></tr></table>'; |
} |
64 |
|
print '</td></tr><tr><td>'; |
65 |
|
|
66 |
|
$file = "solde.$account.png"; |
67 |
|
|
68 |
|
print '<img src="'.DOL_URL_ROOT.'/viewimage.php?modulepart=bank&file='.$file.'" alt="" title="">'; |
69 |
|
|
70 |
|
print '</td></tr></table>'; |
71 |
} |
} |
72 |
?> |
?> |