* * 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$ * * * $viewall * */ require("./pre.inc.php3"); require("./bank.lib.php3"); llxHeader(); $db = new Db(); if ($action == 'add') { $author = $GLOBALS["REMOTE_USER"]; $sql = "INSERT INTO llx_bank (datec, dateo, label, amount, author,fk_account)"; $sql .= " VALUES (now(), $dateo, '$label', (0 - $amount),'$author',$account_from)"; $result = $db->query($sql); if (!$result) { print $db->error(); print "

$sql"; } $sql = "INSERT INTO llx_bank (datec, dateo, label, amount, author,fk_account)"; $sql .= " VALUES (now(), $dateo, '$label', $amount,'$author',$account_to)"; $result = $db->query($sql); if (!$result) { print $db->error(); print "

$sql"; } } print_titre("Virement"); print "

"; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print ''; print "
DeVersDateLibelleMontant
"; print ""; print "
Format : YYYYMMDD - 200108260000.00
"; $db->close(); llxFooter(" - Dernière modification $Date$ révision $Revision$"); ?>