From 17277a3088cd03d74b03ffafd342d20fda9d4205 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 28 Feb 2007 23:06:29 +0000 Subject: [PATCH] Le champ mail est avec fckeditor aussi en creation --- htdocs/adherents/type.php | 67 ++++++++++++++++++++++----------------- 1 file changed, 38 insertions(+), 29 deletions(-) diff --git a/htdocs/adherents/type.php b/htdocs/adherents/type.php index 9e810f64780..f0f1e5a682a 100644 --- a/htdocs/adherents/type.php +++ b/htdocs/adherents/type.php @@ -189,41 +189,51 @@ if (! $rowid && $_GET["action"] != 'create' && $_GET["action"] != 'edit') /* ************************************************************************** */ if ($_GET["action"] == 'create') { - $htmls = new Form($db); + $htmls = new Form($db); - print_titre($langs->trans("NewMemberType")); - print '
'; - - if ($mesg) print '
'.$mesg.'
'; - - print "
"; - print ''; - - print ''; + print_titre($langs->trans("NewMemberType")); + print '
'; - print ''; + if ($mesg) print '
'.$mesg.'
'; - print ''; - - print ''; + print ""; + print '
'.$langs->trans("Label").'
'.$langs->trans("SubscriptionRequired").''; - $htmls->selectyesnonum("cotisation",1); - print '
'.$langs->trans("VoteAllowed").''; - $htmls->selectyesnonum("vote",0); - print '
'; - print '"; + print ''; - print '"; + print ''; - print ''; + print ''; - print "\n"; - print "
'.$langs->trans("Comments").''; - print "
'.$langs->trans("WelcomeEMail").''; - print "
'.$langs->trans("Label").'
 '; - print '
'.$langs->trans("SubscriptionRequired").''; + $htmls->selectyesnonum("cotisation",1); + print '
\n"; - - + print ''.$langs->trans("VoteAllowed").''; + $htmls->selectyesnonum("vote",0); + print ''; + + print ''.$langs->trans("Comments").''; + print ""; + + print ''.$langs->trans("WelcomeEMail").''; + if ($conf->fckeditor->enabled) + { + require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php"); + $doleditor=new DolEditor('mail_valid',$adht->mail_valid,280,'dolibarr_notes','',false); + $doleditor->Create(); + } + else + { + print ''; + } + print ''; + + print '  '; + print ''; + + print "\n"; + print "\n"; } /* ************************************************************************** */ /* */ @@ -348,7 +358,6 @@ if ($rowid > 0) print $adht->mail_valid; print ''; } - print ""; print '    ';