dolibarr/htdocs/compta/bank/graph.php

82 lines
2.3 KiB
PHP
Raw Normal View History

2005-07-31 19:15:34 +02:00
<?php
/* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
2005-07-31 19:15:34 +02:00
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
* $Source$
*/
2005-09-02 23:56:45 +02:00
/** \file htdocs/compta/bank/graph.php
2005-08-10 12:08:59 +02:00
\ingroup banque
\brief Page de d<EFBFBD>tail des transactions bancaires
\version $Revision$
2005-07-31 19:15:34 +02:00
*/
require("./pre.inc.php");
if (!$user->rights->banque->lire)
accessforbidden();
llxHeader();
$account = $_GET["id"];
if ($account > 0)
{
2005-11-13 18:15:45 +01:00
$datetime = time();
$month = strftime("%m", $datetime);
$year = strftime("%Y", $datetime);
$acct = new Account($db);
$acct->fetch($account);
print_fiche_titre("Journal de tr<74>sorerie du compte : " .$acct->label,$mesg);
print '<table class="notopnoleftnoright" width="100%">';
print '<tr><td>';
$file = "solde.$account.$year.png";
2005-11-13 18:15:45 +01:00
/* Bug
if (! file_exists($file))
2005-11-13 18:15:45 +01:00
{
print "Pour g<>n<EFBFBD>rer ou reg<65>n<EFBFBD>rer les graphiques, lancer le script scripts/banque/graph-solde.php en ligne de commande.<br>";
print '<br>';
}
else
2005-11-13 18:15:45 +01:00
{
print '<img src="'.DOL_URL_ROOT.'/viewimage.php?modulepart=bank&file='.$file.'" alt="" title="">';
2005-11-13 18:15:45 +01:00
}
*/
print '<img src="'.DOL_URL_ROOT.'/viewimage.php?modulepart=bank&file='.$file.'" alt="" title="">';
print '</td></tr><tr><td>';
$file = "mouvement.$account.$year.png";
print '<img src="'.DOL_URL_ROOT.'/viewimage.php?modulepart=bank&file='.$file.'" alt="" title="">';
print '</td></tr><tr><td>';
$file = "solde.$account.png";
print '<img src="'.DOL_URL_ROOT.'/viewimage.php?modulepart=bank&file='.$file.'" alt="" title="">';
2005-11-13 18:15:45 +01:00
print '</td></tr></table>';
2005-07-31 19:15:34 +02:00
}
?>