diff --git a/htdocs/compta/bank/fiche.php b/htdocs/compta/bank/fiche.php index a97aa791f20..0a1724dcb43 100644 --- a/htdocs/compta/bank/fiche.php +++ b/htdocs/compta/bank/fiche.php @@ -1,7 +1,7 @@ * Copyright (C) 2003 Jean-Louis Bergamo - * Copyright (C) 2004-2006 Laurent Destailleur + * Copyright (C) 2004-2007 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 @@ -78,7 +78,7 @@ if ($_POST["action"] == 'add') $_GET["action"]='create'; // Force chargement page en mode creation } } else { - $message='
'.$langs->trans("ErrorFieldRequired",$langs->trans("LabelBankCashAccount")).'
'; + $message='
'.$langs->trans("ErrorFieldRequired",$langs->transnoentities("LabelBankCashAccount")).'
'; $_GET["action"]='create'; // Force chargement page en mode creation } } @@ -130,7 +130,7 @@ if ($_POST["action"] == 'update' && ! $_POST["cancel"]) $_GET["action"]='edit'; // Force chargement page edition } } else { - $message='
'.$langs->trans("ErrorFieldRequired",$langs->trans("LabelBankCashAccount")).'
'; + $message='
'.$langs->trans("ErrorFieldRequired",$langs->transnoentities("LabelBankCashAccount")).'
'; $_GET["action"]='create'; // Force chargement page en mode creation } } @@ -219,7 +219,18 @@ if ($_GET["action"] == 'create') // Comment print ''.$langs->trans("Comment").''; print ''; - print ''; + // éditeur wysiwyg + if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_MAILING) + { + require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php"); + $doleditor=new DolEditor('account_comment',$account->comment,200,'dolibarr_notes','',false); + $doleditor->Create(); + } + else + { + print ''; + } print ''; // Solde @@ -382,8 +393,8 @@ else print ''; print ''.$langs->trans("AccountType").''; - print ''.$account->type_lib[$account->type]; - print ''; + print ''; + print $form->select_type_comptes_financiers($account->type,"type"); print ''; print ''.$langs->trans("Status").''; @@ -435,7 +446,18 @@ else // Comment print ''.$langs->trans("Comment").''; print ''; - print ''; + // éditeur wysiwyg + if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_MAILING) + { + require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php"); + $doleditor=new DolEditor('account_comment',$account->comment,200,'dolibarr_notes','',false); + $doleditor->Create(); + } + else + { + print ''; + } print ''; print '';