diff --git a/htdocs/compta/bank/categ.php b/htdocs/compta/bank/categ.php index 027dcf630a0..33a6d907424 100644 --- a/htdocs/compta/bank/categ.php +++ b/htdocs/compta/bank/categ.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2006 Laurent Destailleur + * Copyright (C) 2004-2008 Laurent Destailleur * * 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 @@ -15,16 +15,13 @@ * 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$ */ /** \file htdocs/compta/bank/categ.php \ingroup compta \brief Page ajout de catégories bancaires - \version $Revision$ + \version $Id$ */ require("./pre.inc.php"); @@ -41,7 +38,7 @@ if ($_POST["action"] == 'add') { if ($_POST["label"]) { - $sql = "INSERT INTO ".MAIN_DB_PREFIX."bank_categ (label) VALUES ('".$_POST["label"]."')"; + $sql = "INSERT INTO ".MAIN_DB_PREFIX."bank_categ (label) VALUES ('".addslashes($_POST["label"])."')"; $result = $db->query($sql); if (!$result) diff --git a/htdocs/compta/bank/search.php b/htdocs/compta/bank/search.php index 5f290abb386..688f8ea279a 100644 --- a/htdocs/compta/bank/search.php +++ b/htdocs/compta/bank/search.php @@ -37,6 +37,10 @@ $type=$_POST["type"]; $account=$_POST["account"]; +/* + * View + */ + llxHeader(); $html = new Form($db); @@ -50,7 +54,7 @@ print '
'; print ''; print ''; -print ''; +print ''; print ''; print ''; print ''; @@ -161,7 +165,7 @@ if ($result) $var=!$var; print ""; - print '\n"; + print '\n"; print "
'.$langs->trans("Date").''.$langs->trans("Date").''.$langs->trans("Description").''.$langs->trans("Debit").''.$langs->trans("Credit").'
'.dolibarr_print_date($objp->do,"day")."'.dolibarr_print_date($objp->do,"day")."rowid&account=$objp->fk_account\">"; $reg=array();