/[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.3 by rodolphe, Sat Aug 6 23:19:54 2005 UTC revision 1.4 by rodolphe, Wed Aug 10 10:08:59 2005 UTC
# Line 21  Line 21 
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");
# Line 51  if ($account > 0) Line 51  if ($account > 0)
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    
# Line 68  if ($account > 0) Line 68  if ($account > 0)
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  ?>  ?>

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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