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

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

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

revision 1.8 by hregis, Wed Jul 27 16:01:33 2005 UTC revision 1.9 by rodolphe, Sun Aug 21 18:46:50 2005 UTC
# Line 1  Line 1 
1  <?php  <?php
2  /* Copyright (C) 2004-2005 Laurent Destailleur  <eldy@users.sourceforge.net>  /* Copyright (C) 2005      Rodolphe Quiedeville <rodolphe@quiedeville.org>
3     * Copyright (C) 2004-2005 Laurent Destailleur  <eldy@users.sourceforge.net>
4   *   *
5   * This program is free software; you can redistribute it and/or modify   * This program is free software; you can redistribute it and/or modify
6   * 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
# Line 21  Line 22 
22   */   */
23    
24  /**  /**
25          \file        htdocs/compta/bank/annuel.php     \file        htdocs/compta/bank/annuel.php
26          \ingroup     banque     \ingroup     banque
27          \brief       Page reporting mensuel Entrées/Sorties d'un compte bancaire     \brief       Page reporting mensuel Entrées/Sorties d'un compte bancaire
28          \version     $Revision$     \version     $Revision$
29  */  */
30    
31  require("./pre.inc.php");  require("./pre.inc.php");
32    
33  if (!$user->admin && !$user->rights->banque->lire)  if (!$user->rights->banque->lire) accessforbidden();
   accessforbidden();  
34    
35  $year_start=isset($_GET["year_start"])?$_GET["year_start"]:$_POST["year_start"];  $year_start=isset($_GET["year_start"])?$_GET["year_start"]:$_POST["year_start"];
36  $year_current = strftime("%Y",time());  $year_current = strftime("%Y",time());
37  if (! $year_start) {  if (! $year_start)
38      $year_start = $year_current - 2;  {
39      $year_end = $year_current;    $year_start = $year_current - 2;
40      $year_end = $year_current;
41  }  }
42  else {  else
43      $year_end=$year_start+2;    {
44      $year_end=$year_start+2;  
45  }  }
46    
47    

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

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