/[dolibarr]/dolibarr/htdocs/compta/bank/graph.php
ViewVC logotype

Diff of /dolibarr/htdocs/compta/bank/graph.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by eldy, Fri Sep 2 22:03:46 2005 UTC revision 1.8 by eldy, Sat Sep 17 00:14:36 2005 UTC
# Line 17  Line 17 
17   *   *
18   * $Id$   * $Id$
19   * $Source$   * $Source$
  *  
20   */   */
21    
22  /**       \file       htdocs/compta/bank/graph.php  /**       \file       htdocs/compta/bank/graph.php
# Line 38  $account = $_GET["id"]; Line 37  $account = $_GET["id"];
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  ?>  ?>

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26