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 |
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 |
|
|