25 require
'../main.inc.php';
26 require_once DOL_DOCUMENT_ROOT.
"/core/lib/admin.lib.php";
27 require_once DOL_DOCUMENT_ROOT.
"/ticket/class/ticket.class.php";
28 require_once DOL_DOCUMENT_ROOT.
"/core/lib/ticket.lib.php";
29 require_once DOL_DOCUMENT_ROOT.
"/core/class/html.formcategory.class.php";
32 $langs->loadLangs(array(
"admin",
"ticket"));
40 $value =
GETPOST(
'value',
'alpha');
41 $action =
GETPOST(
'action',
'aZ09');
42 $modulepart =
GETPOST(
'modulepart',
'aZ09');
44 $label =
GETPOST(
'label',
'alpha');
45 $scandir =
GETPOST(
'scandir',
'alpha');
55 include DOL_DOCUMENT_ROOT.
'/core/actions_setmoduleoptions.inc.php';
57 if ($action ==
'updateMask') {
58 $maskconstticket =
GETPOST(
'maskconstticket',
'alpha');
59 $maskticket =
GETPOST(
'maskticket',
'alpha');
61 if ($maskconstticket) {
62 $res =
dolibarr_set_const($db, $maskconstticket, $maskticket,
'chaine', 0,
'', $conf->entity);
74 } elseif ($action ==
'set') {
77 } elseif ($action ==
'del') {
80 if ($conf->global->TICKET_ADDON_PDF ==
"$value") {
84 } elseif (preg_match(
'/set_(.*)/', $action, $reg)) {
87 if ($code ==
'TICKET_NOTIFICATION_ALSO_MAIN_ADDRESS' && $conf->global->MAIN_FEATURES_LEVEL >= 2) {
88 $param_notification_also_main_addressemail =
GETPOST(
'TICKET_NOTIFICATION_ALSO_MAIN_ADDRESS',
'alpha');
89 $res =
dolibarr_set_const($db,
'TICKET_NOTIFICATION_ALSO_MAIN_ADDRESS', $param_notification_also_main_addressemail,
'chaine', 0,
'', $conf->entity);
99 } elseif (preg_match(
'/del_(.*)/', $action, $reg)) {
105 } elseif ($action ==
'setdoc') {
107 if (
dolibarr_set_const($db,
"TICKET_ADDON_PDF", $value,
'chaine', 0,
'', $conf->entity)) {
110 $conf->global->TICKET_ADDON_PDF = $value;
118 } elseif ($action ==
'setmod') {
123 } elseif ($action ==
'setvarworkflow') {
125 if (empty($conf->use_javascript_ajax)) {
126 $param_auto_read =
GETPOST(
'TICKET_AUTO_READ_WHEN_CREATED_FROM_BACKEND',
'alpha');
127 $res =
dolibarr_set_const($db,
'TICKET_AUTO_READ_WHEN_CREATED_FROM_BACKEND', $param_auto_read,
'chaine', 0,
'', $conf->entity);
132 $param_auto_assign =
GETPOST(
'TICKET_AUTO_ASSIGN_USER_CREATE',
'alpha');
133 $res =
dolibarr_set_const($db,
'TICKET_AUTO_ASSIGN_USER_CREATE', $param_auto_assign,
'chaine', 0,
'', $conf->entity);
138 $param_auto_notify_close =
GETPOST(
'TICKET_NOTIFY_AT_CLOSING',
'alpha');
139 $res =
dolibarr_set_const($db,
'TICKET_NOTIFY_AT_CLOSING', $param_auto_notify_close,
'chaine', 0,
'', $conf->entity);
145 $param_limit_view =
GETPOST(
'TICKET_LIMIT_VIEW_ASSIGNED_ONLY',
'alpha');
146 $res =
dolibarr_set_const($db,
'TICKET_LIMIT_VIEW_ASSIGNED_ONLY', $param_limit_view,
'chaine', 0,
'', $conf->entity);
152 $param_ticket_product_category =
GETPOST(
'product_category_id',
'int');
153 $res =
dolibarr_set_const($db,
'TICKET_PRODUCT_CATEGORY', $param_ticket_product_category,
'chaine', 0,
'', $conf->entity);
159 $param_delay_first_response =
GETPOST(
'delay_first_response',
'int');
160 $res =
dolibarr_set_const($db,
'TICKET_DELAY_BEFORE_FIRST_RESPONSE', $param_delay_first_response,
'chaine', 0,
'', $conf->entity);
165 $param_delay_between_responses =
GETPOST(
'delay_between_responses',
'int');
166 $res =
dolibarr_set_const($db,
'TICKET_DELAY_SINCE_LAST_RESPONSE', $param_delay_between_responses,
'chaine', 0,
'', $conf->entity);
170 } elseif ($action ==
'setvar') {
171 include_once DOL_DOCUMENT_ROOT.
"/core/lib/files.lib.php";
173 $notification_email =
GETPOST(
'TICKET_NOTIFICATION_EMAIL_FROM',
'alpha');
174 $notification_email_description =
"Sender of ticket replies sent from Dolibarr";
175 if (!empty($notification_email)) {
176 $res =
dolibarr_set_const($db,
'TICKET_NOTIFICATION_EMAIL_FROM', $notification_email,
'chaine', 0, $notification_email_description, $conf->entity);
178 $res =
dolibarr_set_const($db,
'TICKET_NOTIFICATION_EMAIL_FROM', $conf->global->MAIN_MAIL_EMAIL_FROM,
'chaine', 0, $notification_email_description, $conf->entity);
185 $notification_email_to =
GETPOST(
'TICKET_NOTIFICATION_EMAIL_TO',
'alpha');
186 $notification_email_to_description =
"Notified e-mail for ticket replies sent from Dolibarr";
187 if (!empty($notification_email_to)) {
188 $res =
dolibarr_set_const($db,
'TICKET_NOTIFICATION_EMAIL_TO', $notification_email_to,
'chaine', 0, $notification_email_to_description, $conf->entity);
190 $res =
dolibarr_set_const($db,
'TICKET_NOTIFICATION_EMAIL_TO',
'',
'chaine', 0, $notification_email_to_description, $conf->entity);
196 $mail_intro =
GETPOST(
'TICKET_MESSAGE_MAIL_INTRO',
'restricthtml');
197 $mail_intro_description =
"Introduction text of ticket replies sent from Dolibarr";
198 if (!empty($mail_intro)) {
199 $res =
dolibarr_set_const($db,
'TICKET_MESSAGE_MAIL_INTRO', $mail_intro,
'chaine', 0, $mail_intro_description, $conf->entity);
201 $res =
dolibarr_set_const($db,
'TICKET_MESSAGE_MAIL_INTRO',
'',
'chaine', 0, $mail_intro_description, $conf->entity);
207 $mail_signature =
GETPOST(
'TICKET_MESSAGE_MAIL_SIGNATURE',
'restricthtml');
208 $signature_description =
"Signature of ticket replies sent from Dolibarr";
209 if (!empty($mail_signature)) {
210 $res =
dolibarr_set_const($db,
'TICKET_MESSAGE_MAIL_SIGNATURE', $mail_signature,
'chaine', 0, $signature_description, $conf->entity);
212 $res =
dolibarr_set_const($db,
'TICKET_MESSAGE_MAIL_SIGNATURE',
'',
'chaine', 0, $signature_description, $conf->entity);
219 if ($conf->global->MAIN_FEATURES_LEVEL >= 2 && empty($conf->use_javascript_ajax)) {
220 $param_notification_also_main_addressemail =
GETPOST(
'TICKET_NOTIFICATION_ALSO_MAIN_ADDRESS',
'alpha');
221 $res =
dolibarr_set_const($db,
'TICKET_NOTIFICATION_ALSO_MAIN_ADDRESS', $param_notification_also_main_addressemail,
'chaine', 0,
'', $conf->entity);
233 $dirmodels = array_merge(array(
'/'), (array) $conf->modules_parts[
'models']);
238 $page_name =
"TicketSetup";
242 $linkback =
'<a href="'.DOL_URL_ROOT.
'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToModuleList").
'</a>';
244 print
load_fiche_titre($langs->trans($page_name), $linkback,
'title_setup');
249 print
dol_get_fiche_head($head,
'settings', $langs->trans(
"Module56000Name"), -1,
"ticket");
251 print
'<span class="opacitymedium">'.$langs->trans(
"TicketSetupDictionaries").
'</span> : <a href="'.DOL_URL_ROOT.
'/admin/dict.php">'.$langs->trans(
"ClickHereToGoTo", $langs->transnoentitiesnoconv(
"DictionarySetup")).
'</a><br>';
262 print
'<div class="div-table-responsive-no-min">';
263 print
'<table class="noborder centpercent">';
264 print
'<tr class="liste_titre">';
265 print
'<td width="100">'.$langs->trans(
"Name").
'</td>';
266 print
'<td>'.$langs->trans(
"Description").
'</td>';
267 print
'<td>'.$langs->trans(
"Example").
'</td>';
268 print
'<td align="center" width="60">'.$langs->trans(
"Activated").
'</td>';
269 print
'<td align="center" width="80">'.$langs->trans(
"ShortInfo").
'</td>';
274 foreach ($dirmodels as $reldir) {
278 $handle = opendir($dir);
279 if (is_resource($handle)) {
280 while (($file = readdir($handle)) !==
false) {
281 if (preg_match(
'/^(mod_.*)\.php$/i', $file, $reg)) {
283 $classname = substr($file, 4);
285 include_once $dir.
'/'.$file.
'.php';
290 if ($module->version ==
'development' && $conf->global->MAIN_FEATURES_LEVEL < 2) {
294 if ($module->version ==
'experimental' && $conf->global->MAIN_FEATURES_LEVEL < 1) {
298 if ($module->isEnabled()) {
299 print
'<tr class="oddeven"><td>'.$module->name.
"</td><td>\n";
300 print $module->info();
304 print
'<td class="nowrap">';
305 $tmp = $module->getExample();
306 if (preg_match(
'/^Error/', $tmp)) {
307 $langs->load(
"errors");
308 print
'<div class="error">'.$langs->trans($tmp).
'</div>';
309 } elseif ($tmp ==
'NotConfigured') {
310 print
'<span class="opacitymedium">'.$langs->trans($tmp).
'</span>';
317 print
'<td class="center">';
318 if ($conf->global->TICKET_ADDON ==
'mod_'.$classname) {
319 print
img_picto($langs->trans(
"Activated"),
'switch_on');
321 print
'<a class="reposition" href="'.$_SERVER[
"PHP_SELF"].
'?action=setmod&token='.
newToken().
'&value=mod_'.$classname.
'" alt="'.$langs->trans(
"Default").
'">'.
img_picto($langs->trans(
"Disabled"),
'switch_off').
'</a>';
325 $ticket =
new Ticket($db);
326 $ticket->initAsSpecimen();
330 $htmltooltip .=
''.$langs->trans(
"Version").
': <b>'.$module->getVersion().
'</b><br>';
331 $nextval = $module->getNextValue($mysoc, $ticket);
332 if (
"$nextval" != $langs->trans(
"NotAvailable")) {
333 $htmltooltip .=
''.$langs->trans(
"NextValue").
': ';
335 $htmltooltip .= $nextval.
'<br>';
337 $htmltooltip .= $langs->trans($module->error).
'<br>';
341 print
'<td class="center">';
342 print $formcategory->textwithpicto(
'', $htmltooltip, 1, 0);
369 $sql .=
" FROM ".MAIN_DB_PREFIX.
"document_model";
370 $sql .=
" WHERE type = '".$db->escape($type).
"'";
371 $sql .=
" AND entity = ".$conf->entity;
372 $resql = $db->query($sql);
375 $num_rows = $db->num_rows(
$resql);
376 while ($i < $num_rows) {
377 $array = $db->fetch_array(
$resql);
378 array_push($def, $array[0]);
386 print
'<div class="div-table-responsive-no-min">';
387 print
'<table class="noborder cenpercent">'.
"\n";
388 print
'<tr class="liste_titre">'.
"\n";
389 print
'<td>'.$langs->trans(
"Name").
'</td>';
390 print
'<td>'.$langs->trans(
"Description").
'</td>';
391 print
'<td class="center" width="60">'.$langs->trans(
"Status").
"</td>\n";
392 print
'<td class="center" width="60">'.$langs->trans(
"Default").
"</td>\n";
393 print
'<td class="center" width="38">'.$langs->trans(
"ShortInfo").
'</td>';
394 print
'<td class="center" width="38">'.$langs->trans(
"Preview").
'</td>';
399 foreach ($dirmodels as $reldir) {
400 foreach (array(
'',
'/doc') as $valdir) {
401 $realpath = $reldir.
"core/modules/ticket".$valdir;
405 $handle = opendir($dir);
406 if (is_resource($handle)) {
407 while (($file = readdir($handle)) !==
false) {
413 foreach ($filelist as $file) {
414 if (preg_match(
'/\.modules\.php$/i', $file) && preg_match(
'/^(pdf_|doc_)/', $file)) {
415 if (file_exists($dir.
'/'.$file)) {
416 $name = substr($file, 4,
dol_strlen($file) - 16);
417 $classname = substr($file, 0,
dol_strlen($file) - 12);
419 require_once $dir.
'/'.$file;
420 $module =
new $classname($db);
422 $modulequalified = 1;
423 if ($module->version ==
'development' && $conf->global->MAIN_FEATURES_LEVEL < 2) {
424 $modulequalified = 0;
426 if ($module->version ==
'experimental' && $conf->global->MAIN_FEATURES_LEVEL < 1) {
427 $modulequalified = 0;
430 if ($modulequalified) {
431 print
'<tr class="oddeven"><td width="100">';
432 print (empty($module->name) ? $name : $module->name);
434 if (method_exists($module,
'info')) {
435 print $module->info($langs);
437 print $module->description;
442 if (in_array($name, $def)) {
443 print
'<td class="center">'.
"\n";
444 print
'<a class="reposition" href="'.$_SERVER[
"PHP_SELF"].
'?action=del&token='.
newToken().
'&value='.urlencode($name).
'">';
445 print
img_picto($langs->trans(
"Enabled"),
'switch_on');
449 print
'<td class="center">'.
"\n";
450 print
'<a class="reposition" href="'.$_SERVER[
"PHP_SELF"].
'?action=set&token='.
newToken().
'&value='.urlencode($name).
'&scan_dir='.urlencode($module->scandir).
'&label='.urlencode($module->name).
'">'.
img_picto($langs->trans(
"Disabled"),
'switch_off').
'</a>';
455 print
'<td class="center">';
456 if ($conf->global->TICKET_ADDON_PDF == $name) {
457 print
img_picto($langs->trans(
"Default"),
'on');
459 print
'<a class="reposition" href="'.$_SERVER[
"PHP_SELF"].
'?action=setdoc&token='.
newToken().
'&value='.$name.
'&scan_dir='.$module->scandir.
'&label='.urlencode($module->name).
'" alt="'.$langs->trans(
"Default").
'">'.
img_picto($langs->trans(
"Disabled"),
'off').
'</a>';
464 $htmltooltip =
''.$langs->trans(
"Name").
': '.$module->name;
465 $htmltooltip .=
'<br>'.$langs->trans(
"Type").
': '.($module->type ? $module->type : $langs->trans(
"Unknown"));
466 if ($module->type ==
'pdf') {
467 $htmltooltip .=
'<br>'.$langs->trans(
"Width").
'/'.$langs->trans(
"Height").
': '.$module->page_largeur.
'/'.$module->page_hauteur;
469 $htmltooltip .=
'<br>'.$langs->trans(
"Path").
': '.preg_replace(
'/^\//',
'', $realpath).
'/'.$file;
471 $htmltooltip .=
'<br><br><u>'.$langs->trans(
"FeaturesSupported").
':</u>';
472 $htmltooltip .=
'<br>'.$langs->trans(
"Logo").
': '.
yn($module->option_logo, 1, 1);
473 $htmltooltip .=
'<br>'.$langs->trans(
"MultiLanguage").
': '.
yn($module->option_multilang, 1, 1);
479 print
'<td class="center">';
480 print $formcategory->textwithpicto(
'', $htmltooltip, 1, 0);
484 print
'<td class="center">';
485 if ($module->type ==
'pdf') {
486 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=specimen&module='.$name.
'">'.
img_object($langs->trans(
"Preview"),
'pdf').
'</a>';
488 print
img_object($langs->trans(
"PreviewNotAvailable"),
'generic');
506 print
'<form method="POST" action="'.$_SERVER[
'PHP_SELF'].
'" enctype="multipart/form-data" >';
507 print
'<input type="hidden" name="token" value="'.newToken().
'">';
508 print
'<input type="hidden" name="action" value="setvarworkflow">';
509 print
'<input type="hidden" name="page_y" value="">';
512 print
'<div class="div-table-responsive-no-min">';
513 print
'<table class="noborder centpercent">';
515 print
'<tr class="liste_titre">';
516 print
'<td>'.$langs->trans(
"Parameter").
'</td>';
522 print
'<tr class="oddeven"><td>'.$langs->trans(
"TicketsAutoReadTicket").
'</td>';
523 print
'<td class="left">';
524 if ($conf->use_javascript_ajax) {
527 $arrval = array(
'0' => $langs->trans(
"No"),
'1' => $langs->trans(
"Yes"));
528 print $formcategory->selectarray(
"TICKET_AUTO_READ_WHEN_CREATED_FROM_BACKEND", $arrval, $conf->global->TICKET_AUTO_READ_WHEN_CREATED_FROM_BACKEND);
531 print
'<td class="center">';
532 print $formcategory->textwithpicto(
'', $langs->trans(
"TicketsAutoReadTicketHelp"), 1,
'help');
537 print
'<tr class="oddeven">';
538 print
'<td>'.$langs->trans(
"TicketsAutoAssignTicket").
'</td>';
539 print
'<td class="left">';
540 if ($conf->use_javascript_ajax) {
543 $arrval = array(
'0' => $langs->trans(
"No"),
'1' => $langs->trans(
"Yes"));
544 print $formcategory->selectarray(
"TICKET_AUTO_ASSIGN_USER_CREATE", $arrval, $conf->global->TICKET_AUTO_ASSIGN_USER_CREATE);
547 print
'<td class="center">';
548 print $formcategory->textwithpicto(
'', $langs->trans(
"TicketsAutoAssignTicketHelp"), 1,
'help');
553 print
'<tr class="oddeven"><td>'.$langs->trans(
"TicketsAutoNotifyClose").
'</td>';
554 print
'<td class="left">';
555 if ($conf->use_javascript_ajax) {
558 $arrval = array(
'0' => $langs->trans(
"No"),
'1' => $langs->trans(
"Yes"));
559 print $formcategory->selectarray(
"TICKET_NOTIFY_AT_CLOSING", $arrval, $conf->global->TICKET_NOTIFY_AT_CLOSING);
562 print
'<td class="center">';
563 print $formcategory->textwithpicto(
'', $langs->trans(
"TicketsAutoNotifyCloseHelp"), 1,
'help');
567 if (! empty($conf->product->enabled)) {
568 print
'<tr class="oddeven"><td>'.$langs->trans(
"TicketChooseProductCategory").
'</td>';
569 print
'<td class="left">';
570 $formcategory->selectProductCategory($conf->global->TICKET_PRODUCT_CATEGORY,
'product_category_id');
571 if ($conf->use_javascript_ajax) {
575 print
'<td class="center">';
576 print $formcategory->textwithpicto(
'', $langs->trans(
"TicketChooseProductCategoryHelp"), 1,
'help');
581 print
'<tr class="oddeven">';
582 print
'<td>'.$langs->trans(
"TicketsDelayBeforeFirstAnswer").
"</td>";
583 print
'<td class="left">
584 <input type="number" value="'.$conf->global->TICKET_DELAY_BEFORE_FIRST_RESPONSE.
'" name="delay_first_response" class="width50">
586 print
'<td class="center">';
587 print $formcategory->textwithpicto(
'', $langs->trans(
"TicketsDelayBeforeFirstAnswerHelp"), 1,
'help');
591 print
'<tr class="oddeven">';
592 print
'<td>'.$langs->trans(
"TicketsDelayBetweenAnswers").
"</td>";
593 print
'<td class="left">
594 <input type="number" value="'.$conf->global->TICKET_DELAY_SINCE_LAST_RESPONSE.
'" name="delay_between_responses" class="width50">
596 print
'<td class="center">';
597 print $formcategory->textwithpicto(
'', $langs->trans(
"TicketsDelayBetweenAnswersHelp"), 1,
'help');
601 print
'</table><br>';
603 print $formcategory->buttonsSaveCancel(
"Save",
'', array(), 0,
'reposition');
611 print
'<table class="noborder centpercent">';
613 print
'<form method="POST" action="'.$_SERVER[
'PHP_SELF'].
'" enctype="multipart/form-data" >';
614 print
'<input type="hidden" name="token" value="'.newToken().
'">';
615 print
'<input type="hidden" name="action" value="setvar">';
616 print
'<input type="hidden" name="page_y" value="">';
618 print
'<tr class="liste_titre">';
619 print
'<td colspan="3">'.$langs->trans(
"Email").
'</td>';
622 if (empty($conf->global->FCKEDITOR_ENABLE_MAIL)) {
624 print
'<td colspan="3"><div class="info">'.$langs->trans(
"TicketCkEditorEmailNotActivated").
'</div></td>';
631 print
'<tr class="oddeven"><td>'.$langs->trans(
"TicketEmailNotificationFrom").
'</td>';
632 print
'<td class="left">';
633 print
'<input type="text" class="minwidth200" name="TICKET_NOTIFICATION_EMAIL_FROM" value="'.$conf->global->TICKET_NOTIFICATION_EMAIL_FROM.
'"></td>';
634 print
'<td class="center">';
635 print $formcategory->textwithpicto(
'', $langs->trans(
"TicketEmailNotificationFromHelp"), 1,
'help');
640 print
'<tr class="oddeven"><td>'.$langs->trans(
"TicketEmailNotificationTo").
'</td>';
641 print
'<td class="left">';
642 print
'<input type="text" name="TICKET_NOTIFICATION_EMAIL_TO" value="'.(!empty($conf->global->TICKET_NOTIFICATION_EMAIL_TO) ? $conf->global->TICKET_NOTIFICATION_EMAIL_TO :
'').
'"></td>';
643 print
'<td class="center">';
644 print $formcategory->textwithpicto(
'', $langs->trans(
"TicketEmailNotificationToHelp"), 1,
'help');
649 if ($conf->global->MAIN_FEATURES_LEVEL >= 2) {
650 print
'<tr class="oddeven"><td>'.$langs->trans(
"TicketsEmailAlsoSendToMainAddress").
'</td>';
651 print
'<td class="left">';
652 if ($conf->use_javascript_ajax) {
655 $arrval = array(
'0' => $langs->trans(
"No"),
'1' => $langs->trans(
"Yes"));
656 print $formcategory->selectarray(
"TICKET_NOTIFICATION_ALSO_MAIN_ADDRESS", $arrval, $conf->global->TICKET_NOTIFICATION_ALSO_MAIN_ADDRESS);
659 print
'<td class="center">';
660 print $formcategory->textwithpicto(
'', $langs->trans(
"TicketsEmailAlsoSendToMainAddressHelp"), 1,
'help');
666 $mail_intro = $conf->global->TICKET_MESSAGE_MAIL_INTRO ? $conf->global->TICKET_MESSAGE_MAIL_INTRO : $langs->trans(
'TicketMessageMailIntroText');
667 print
'<tr class="oddeven"><td>'.$langs->trans(
"TicketMessageMailIntroLabelAdmin");
669 require_once DOL_DOCUMENT_ROOT.
'/core/class/doleditor.class.php';
670 $doleditor =
new DolEditor(
'TICKET_MESSAGE_MAIL_INTRO', $mail_intro,
'100%', 120,
'dolibarr_mailings',
'',
false,
true,
getDolGlobalInt(
'FCKEDITOR_ENABLE_MAIL'), ROWS_2, 70);
671 $doleditor->Create();
673 print
'<td class="center">';
674 print $formcategory->textwithpicto(
'', $langs->trans(
"TicketMessageMailIntroHelpAdmin"), 1,
'help');
678 $mail_signature = $conf->global->TICKET_MESSAGE_MAIL_SIGNATURE ? $conf->global->TICKET_MESSAGE_MAIL_SIGNATURE : $langs->trans(
'TicketMessageMailSignatureText');
679 print
'<tr class="oddeven"><td>'.$langs->trans(
"TicketMessageMailSignatureLabelAdmin").
'</label>';
681 require_once DOL_DOCUMENT_ROOT.
'/core/class/doleditor.class.php';
682 $doleditor =
new DolEditor(
'TICKET_MESSAGE_MAIL_SIGNATURE', $mail_signature,
'100%', 120,
'dolibarr_mailings',
'',
false,
true,
getDolGlobalInt(
'FCKEDITOR_ENABLE_MAIL'), ROWS_2, 70);
683 $doleditor->Create();
685 print
'<td class="center">';
686 print $formcategory->textwithpicto(
'', $langs->trans(
"TicketMessageMailSignatureHelpAdmin"), 1,
'help');
691 print $formcategory->buttonsSaveCancel(
"Save",
'', array(), 0,
'reposition');