From 8fb40f595e767aaf58fbe29b702911896d169c10 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 29 Mar 2007 18:55:36 +0000 Subject: [PATCH] =?UTF-8?q?Possibilit=E9=20de=20modifier=20le=20type=20de?= =?UTF-8?q?=20compte=20bancaire.=20Ajout=20zone=20de=20saisie=20du=20comme?= =?UTF-8?q?ntaire=20en=20fckeditor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/bank/fiche.php | 36 +++++++++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 7 deletions(-) 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 '';