31require
'../main.inc.php';
32require_once DOL_DOCUMENT_ROOT.
"/core/class/html.formcategory.class.php";
33require_once DOL_DOCUMENT_ROOT.
"/core/lib/admin.lib.php";
34require_once DOL_DOCUMENT_ROOT.
"/core/lib/ticket.lib.php";
35require_once DOL_DOCUMENT_ROOT.
"/ticket/class/ticket.class.php";
47$langs->loadLangs(array(
"admin",
"ticket"));
55$value =
GETPOST(
'value',
'alpha');
56$action =
GETPOST(
'action',
'aZ09');
57$modulepart =
GETPOST(
'modulepart',
'aZ09');
59$label =
GETPOST(
'label',
'alpha');
60$scandir =
GETPOST(
'scan_dir',
'alpha');
68 Ticket::STATUS_IN_PROGRESS => $langs->trans(
"InProgress"),
69 Ticket::STATUS_NOT_READ => $langs->trans(
"NotRead"),
70 Ticket::STATUS_READ => $langs->trans(
"Read"),
71 Ticket::STATUS_ASSIGNED => $langs->trans(
"Assigned"),
72 Ticket::STATUS_NEED_MORE_INFO => $langs->trans(
"NeedMoreInformationShort"),
73 Ticket::STATUS_WAITING => $langs->trans(
"Waiting"),
74 Ticket::STATUS_CLOSED => $langs->trans(
"SolvedClosed")
81include DOL_DOCUMENT_ROOT.
'/core/actions_setmoduleoptions.inc.php';
83if (
GETPOSTISSET(
'TICKET_CHECK_NOTIFY_THIRDPARTY_AT_CREATION')) {
84 $param_disable_email =
GETPOST(
'TICKET_CHECK_NOTIFY_THIRDPARTY_AT_CREATION',
'alpha');
85 $res =
dolibarr_set_const($db,
'TICKET_CHECK_NOTIFY_THIRDPARTY_AT_CREATION', $param_disable_email,
'chaine', 0,
'',
$conf->entity);
88 setEventMessages($db->lasterror(),
null,
'errors');
92if ($action ==
'updateMask') {
93 $maskconstticket =
GETPOST(
'maskconstticket',
'aZ09');
94 $maskticket =
GETPOST(
'maskticket',
'alpha');
98 if ($maskconstticket && preg_match(
'/_MASK$/', $maskconstticket)) {
107 setEventMessages($langs->trans(
"SetupSaved"),
null,
'mesgs');
109 setEventMessages($langs->trans(
"Error"),
null,
'errors');
111} elseif ($action ==
'set') {
114} elseif ($action ==
'del') {
121} elseif (preg_match(
'/set_(.*)/', $action, $reg)) {
128} elseif (preg_match(
'/del_(.*)/', $action, $reg)) {
134} elseif ($action ==
'setdoc') {
139 $conf->global->TICKET_ADDON_PDF = $value;
147} elseif ($action ==
'setmod') {
152} elseif ($action ==
'setvarworkflow') {
154 if (empty(
$conf->use_javascript_ajax)) {
155 $param_auto_read =
GETPOST(
'TICKET_AUTO_READ_WHEN_CREATED_FROM_BACKEND',
'alpha');
156 $res =
dolibarr_set_const($db,
'TICKET_AUTO_READ_WHEN_CREATED_FROM_BACKEND', $param_auto_read,
'chaine', 0,
'',
$conf->entity);
161 $param_auto_assign =
GETPOST(
'TICKET_AUTO_ASSIGN_USER_CREATE',
'alpha');
162 $res =
dolibarr_set_const($db,
'TICKET_AUTO_ASSIGN_USER_CREATE', $param_auto_assign,
'chaine', 0,
'',
$conf->entity);
167 $param_auto_notify_close =
GETPOST(
'TICKET_NOTIFY_AT_CLOSING',
'alpha');
168 $res =
dolibarr_set_const($db,
'TICKET_NOTIFY_AT_CLOSING', $param_auto_notify_close,
'chaine', 0,
'',
$conf->entity);
174 $param_limit_view =
GETPOST(
'TICKET_LIMIT_VIEW_ASSIGNED_ONLY',
'alpha');
175 $res =
dolibarr_set_const($db,
'TICKET_LIMIT_VIEW_ASSIGNED_ONLY', $param_limit_view,
'chaine', 0,
'',
$conf->entity);
180 $param_status =
GETPOST(
'TICKET_SET_STATUS_ON_ANSWER');
186 $param_delay_first_response =
GETPOSTINT(
'delay_first_response');
187 $res =
dolibarr_set_const($db,
'TICKET_DELAY_BEFORE_FIRST_RESPONSE', $param_delay_first_response,
'chaine', 0,
'',
$conf->entity);
192 $param_delay_between_responses =
GETPOSTINT(
'delay_between_responses');
193 $res =
dolibarr_set_const($db,
'TICKET_DELAY_SINCE_LAST_RESPONSE', $param_delay_between_responses,
'chaine', 0,
'',
$conf->entity);
197} elseif ($action ==
'setvar') {
198 include_once DOL_DOCUMENT_ROOT.
"/core/lib/files.lib.php";
200 $notification_email =
GETPOST(
'TICKET_NOTIFICATION_EMAIL_FROM',
'alpha');
201 $notification_email_description =
"Email of user allowed to send ticket replies from Dolibarr";
202 if (!empty($notification_email)) {
203 $res =
dolibarr_set_const($db,
'TICKET_NOTIFICATION_EMAIL_FROM', $notification_email,
'chaine', 0, $notification_email_description,
$conf->entity);
211 $notification_email_replyto =
GETPOST(
'TICKET_NOTIFICATION_EMAIL_REPLYTO',
'alpha');
212 $notification_email_replyto_description =
"Email that must appears as the sender of ticket replies sent from Dolibarr";
213 if (!empty($notification_email)) {
214 $res =
dolibarr_set_const($db,
'TICKET_NOTIFICATION_EMAIL_REPLYTO', $notification_email_replyto,
'chaine', 0, $notification_email_replyto_description,
$conf->entity);
223 $notification_email_to =
GETPOST(
'TICKET_NOTIFICATION_EMAIL_TO',
'alpha');
224 $notification_email_to_description =
"Notified e-mail for ticket replies sent from Dolibarr";
225 if (!empty($notification_email_to)) {
226 $res =
dolibarr_set_const($db,
'TICKET_NOTIFICATION_EMAIL_TO', $notification_email_to,
'chaine', 0, $notification_email_to_description,
$conf->entity);
228 $res =
dolibarr_set_const($db,
'TICKET_NOTIFICATION_EMAIL_TO',
'',
'chaine', 0, $notification_email_to_description,
$conf->entity);
234 $notification_email_template =
GETPOST(
'TICKET_NOTIFICATION_EMAIL_TEMPLATE',
'alpha');
235 $notification_email_template_description =
'Template email for ticket create notification';
236 if (!empty($notification_email_template)) {
237 $res =
dolibarr_set_const($db,
'TICKET_NOTIFICATION_EMAIL_TEMPLATE', $notification_email_template,
'chaine', 0, $notification_email_template_description,
$conf->entity);
239 $res =
dolibarr_set_const($db,
'TICKET_NOTIFICATION_EMAIL_TEMPLATE',
'',
'chaine', 0, $notification_email_template_description,
$conf->entity);
245 $mail_intro =
GETPOST(
'TICKET_MESSAGE_MAIL_INTRO',
'restricthtml');
246 $mail_intro_description =
"Introduction text of ticket replies sent from Dolibarr";
247 if (!empty($mail_intro)) {
248 $res =
dolibarr_set_const($db,
'TICKET_MESSAGE_MAIL_INTRO', $mail_intro,
'chaine', 0, $mail_intro_description,
$conf->entity);
250 $res =
dolibarr_set_const($db,
'TICKET_MESSAGE_MAIL_INTRO',
'',
'chaine', 0, $mail_intro_description,
$conf->entity);
256 $mail_signature =
GETPOST(
'TICKET_MESSAGE_MAIL_SIGNATURE',
'restricthtml');
257 $signature_description =
"Signature of ticket replies sent from Dolibarr";
258 if (!empty($mail_signature)) {
259 $res =
dolibarr_set_const($db,
'TICKET_MESSAGE_MAIL_SIGNATURE', $mail_signature,
'chaine', 0, $signature_description,
$conf->entity);
261 $res =
dolibarr_set_const($db,
'TICKET_MESSAGE_MAIL_SIGNATURE',
'',
'chaine', 0, $signature_description,
$conf->entity);
278$dirmodels = array_merge(array(
'/'), (array)
$conf->modules_parts[
'models']);
281$form =
new Form($db);
284$help_url =
'EN:Module_Ticket|FR:Module_Ticket_FR';
285$page_name =
'TicketSetup';
286llxHeader(
'', $langs->trans($page_name), $help_url,
'', 0, 0,
'',
'',
'',
'mod-admin page-ticket');
289$linkback =
'<a href="'.dolBuildUrl(DOL_URL_ROOT.
'/admin/modules.php', [
'restore_lastsearch_values' => 1]).
'">'.img_picto($langs->trans(
"BackToModuleList"),
'back',
'class="pictofixedwidth"').
'<span class="hideonsmartphone">'.$langs->trans(
"BackToModuleList").
'</span></a>';
296print
dol_get_fiche_head($head,
'settings', $langs->trans(
"Module56000Name"), -1,
"ticket");
298print
'<span class="opacitymedium">'.$langs->trans(
"TicketSetupDictionaries").
'</span> : <a href="'.DOL_URL_ROOT.
'/admin/dict.php">'.$langs->trans(
"ClickHereToGoTo", $langs->transnoentitiesnoconv(
"DictionarySetup")).
'</a><br>';
308$ticket->initAsSpecimen();
310printNumberingModuleList(
'ticket',
'mod_ticket_',
'TICKET_ADDON', $langs->trans(
"TicketNumberingModules"), $ticket);
318printDocumentModelList($type,
'ticket',
'TICKET_ADDON_PDF', $langs->trans(
"TicketsModelModule"), array(
319 'Logo' =>
'option_logo',
320 'MultiLanguage' =>
'option_multilang',
325print
'<form method="POST" action="'.$_SERVER[
'PHP_SELF'].
'" enctype="multipart/form-data" spellcheck="false">';
326print
'<input type="hidden" name="token" value="'.newToken().
'">';
327print
'<input type="hidden" name="action" value="setvarworkflow">';
328print
'<input type="hidden" name="page_y" value="">';
335print
'<div class="div-table-responsive-no-min">';
336print
'<table class="noborder centpercent">';
338print
'<tr class="liste_titre">';
339print
'<td class="titlefieldmiddle">'.$langs->trans(
"Parameter").
'</td>';
340print
'<td></td>'.
"\n";
341print
'<td class="center" width="40"></td>';
345print
'<tr class="oddeven"><td>'.$langs->trans(
"TicketsAutoReadTicket").
'</td>';
346print
'<td class="left">';
347if (
$conf->use_javascript_ajax) {
348 print ajax_constantonoff(
'TICKET_AUTO_READ_WHEN_CREATED_FROM_BACKEND');
350 $arrval = array(
'0' => $langs->trans(
"No"),
'1' => $langs->trans(
"Yes"));
351 print $formcategory->selectarray(
"TICKET_AUTO_READ_WHEN_CREATED_FROM_BACKEND", $arrval,
getDolGlobalString(
'TICKET_AUTO_READ_WHEN_CREATED_FROM_BACKEND'));
354print
'<td class="center">';
355print $formcategory->textwithpicto(
'', $langs->trans(
"TicketsAutoReadTicketHelp"), 1,
'help');
360print
'<tr class="oddeven"><td>'.$langs->trans(
"TicketsAutoReadTicketWhenAssign").
'</td>';
361print
'<td class="left">';
362if (
$conf->use_javascript_ajax) {
363 print ajax_constantonoff(
'TICKET_AUTO_READ_WHEN_ASSIGN');
365 $arrval = array(
'0' => $langs->trans(
"No"),
'1' => $langs->trans(
"Yes"));
366 print $formcategory->selectarray(
"TICKET_AUTO_READ_WHEN_ASSIGN", $arrval,
getDolGlobalString(
'TICKET_AUTO_READ_WHEN_ASSIGN'));
369print
'<td class="center">';
370print $formcategory->textwithpicto(
'', $langs->trans(
"TicketsAutoReadTicketWhenAssignHelp"), 1,
'help');
376print
'<tr class="oddeven">';
377print
'<td><label for="TICKET_AUTO_ASSIGN_USER_CREATE" class="block">'.$langs->trans(
"TicketsAutoAssignTicket").
'</label></td>';
378print
'<td class="left">';
379print
'<input class="maxwidth50" type="text" id="TICKET_AUTO_ASSIGN_USER_CREATE" name="TICKET_AUTO_ASSIGN_USER_CREATE" value="'.getDolGlobalInt(
'TICKET_AUTO_ASSIGN_USER_CREATE').
'">';
381print
'<td class="center">';
382print $formcategory->textwithpicto(
'', $langs->trans(
"TicketsAutoAssignTicketHelp"), 1,
'help');
387print
'<tr class="oddeven"><td>'.$langs->trans(
"TicketAutoChangeStatusOnAnswer").
'</td>';
388print
'<td class="left">';
389print $formcategory->selectarray(
"TICKET_SET_STATUS_ON_ANSWER", $statuslist,
getDolGlobalString(
'TICKET_SET_STATUS_ON_ANSWER'), 1);
391print
'<td class="center">';
392print $formcategory->textwithpicto(
'', $langs->trans(
"TicketAutoChangeStatusOnAnswerHelp"), 1,
'help');
396print
'<tr class="oddeven">';
397print
'<td><label for="delay_first_response" class="block">'.$langs->trans(
"TicketsDelayBeforeFirstAnswer").
"</label></td>";
398print
'<td class="left">
399 <input type="number" value="'.getDolGlobalString(
'TICKET_DELAY_BEFORE_FIRST_RESPONSE').
'" id="delay_first_response" name="delay_first_response" class="width50">
401print
'<td class="center">';
402print $formcategory->textwithpicto(
'', $langs->trans(
"TicketsDelayBeforeFirstAnswerHelp"), 1,
'help');
406print
'<tr class="oddeven">';
407print
'<td><label for="delay_between_responses" class="block">'.$langs->trans(
"TicketsDelayBetweenAnswers").
"</label></td>";
408print
'<td class="left">
409 <input type="number" value="'.getDolGlobalString(
'TICKET_DELAY_SINCE_LAST_RESPONSE').
'" id="delay_between_responses" name="delay_between_responses" class="width50">
411print
'<td class="center">';
412print $formcategory->textwithpicto(
'', $langs->trans(
"TicketsDelayBetweenAnswersHelp"), 1,
'help');
418print $formcategory->buttonsSaveCancel(
"Save",
'', array(), 0,
'reposition');
433print
'<table class="noborder centpercent">';
435print
'<form method="POST" action="'.$_SERVER[
'PHP_SELF'].
'" enctype="multipart/form-data" spellcheck="false">';
436print
'<input type="hidden" name="token" value="'.newToken().
'">';
437print
'<input type="hidden" name="action" value="setvar">';
438print
'<input type="hidden" name="page_y" value="">';
440print
'<tr class="liste_titre">';
441print
'<td>'.$langs->trans(
"Parameter").
'</td>';
443print
'<td class="center" width="40"></td>';
448 print
'<td colspan="2"><div class="info">'.$langs->trans(
"TicketCkEditorEmailNotActivated").
'</div></td>';
449 print
'<td class="center" width="40"></td>';
454print
'<tr class="oddeven"><td><label for="TICKET_NOTIFICATION_EMAIL_FROM" class="block">'.$langs->trans(
"TicketEmailNotificationFrom").
'</label></td>';
455print
'<td class="left">';
456print img_picto(
'',
'email',
'class="pictofixedwidth"');
457print
'<input type="text" class="minwidth200" id="TICKET_NOTIFICATION_EMAIL_FROM" name="TICKET_NOTIFICATION_EMAIL_FROM" value="' .
getDolGlobalString(
'TICKET_NOTIFICATION_EMAIL_FROM').
'"></td>';
458print
'<td class="center">';
459print $formcategory->textwithpicto(
'', $langs->trans(
"TicketEmailNotificationFromHelp"), 1,
'help');
464print
'<tr class="oddeven"><td><label for="TICKET_NOTIFICATION_EMAIL_REPLYTO" class="block">'.$langs->trans(
"TicketEmailNotificationReplyTo").
'</label></td>';
465print
'<td class="left">';
466print img_picto(
'',
'email',
'class="pictofixedwidth"');
467print
'<input type="text" class="minwidth200" id="TICKET_NOTIFICATION_EMAIL_REPLYTO" name="TICKET_NOTIFICATION_EMAIL_REPLYTO" value="' .
getDolGlobalString(
'TICKET_NOTIFICATION_EMAIL_REPLYTO').
'"></td>';
468print
'<td class="center">';
469print $formcategory->textwithpicto(
'', $langs->trans(
"TicketEmailNotificationReplyToHelp"), 1,
'help');
473print
'<tr class="oddeven"><td class="titlefieldmiddle"><label for="TICKET_SEND_INTERNAL_CC" class="block">';
474print $form->textwithpicto($langs->trans(
"TicketSendToInternalCC"), $langs->trans(
"TicketSendToInternalCCHelp")).
'</label></td>';
476print img_picto(
'',
'email',
'class="pictofixedwidth"');
477print
'<input class="minwidth200" name="TICKET_SEND_INTERNAL_CC" value="'.getDolGlobalString(
'TICKET_SEND_INTERNAL_CC').
'">';
486print
'<tr class="oddeven"><td><label for="TICKET_NOTIFICATION_EMAIL_TO" class="block">'.$langs->trans(
"TicketEmailNotificationTo").
'</label></td>';
487print
'<td class="left">';
488print img_picto(
'',
'email',
'class="pictofixedwidth"');
489print
'<input type="text" class="minwidth200" id="TICKET_NOTIFICATION_EMAIL_TO" name="TICKET_NOTIFICATION_EMAIL_TO" value="'.getDolGlobalString(
'TICKET_NOTIFICATION_EMAIL_TO').
'"></td>';
490print
'<td class="center">';
491print $formcategory->textwithpicto(
'', $langs->trans(
"TicketEmailNotificationToHelp"), 1,
'help');
495include_once DOL_DOCUMENT_ROOT.
'/core/class/html.formmail.class.php';
498$formmail->fetchAllEMailTemplate(
'ticket_send', $user,
null, -1);
499$arrayofmessagename = array();
500if (is_array($formmail->lines_model)) {
501 foreach ($formmail->lines_model as $modelmail) {
504 if (!empty($arrayofmessagename[$modelmail->label])) {
505 $moreonlabel =
' <span class="opacitymedium">('.$langs->trans(
"SeveralLangugeVariatFound").
')</span>';
508 $arrayofmessagename[$modelmail->label.
':ticket_send'] = $langs->trans(preg_replace(
'/\(|\)/',
'', $modelmail->label)).$moreonlabel;
513print
'<tr class="oddeven"><td><label for="TICKET_NOTIFICATION_EMAIL_TEMPLATE" class="block">'.$langs->trans(
'TicketEmailNotificationTemplate').
'</label></td>';
514print
'<td class="left">';
515print $form->selectarray(
'TICKET_NOTIFICATION_EMAIL_TEMPLATE', $arrayofmessagename,
getDolGlobalString(
'TICKET_NOTIFICATION_EMAIL_TEMPLATE'),
'None', 0, 0,
'', 0, 0, 0,
'',
'', 1);
516print
'<td class="center">';
517print $formcategory->textwithpicto(
'', $langs->trans(
'TicketEmailNotificationTemplateHelp'), 1,
'help');
522print
'<tr class="oddeven"><td>'.$langs->trans(
"TicketAutoCheckNotifyThirdParty").
'</td>';
523print
'<td class="left">';
524if (
$conf->use_javascript_ajax) {
525 print ajax_constantonoff(
'TICKET_CHECK_NOTIFY_THIRDPARTY_AT_CREATION');
527 $arrval = array(
'0' => $langs->trans(
"No"),
'1' => $langs->trans(
"Yes"));
528 print $formcategory->selectarray(
"TICKET_CHECK_NOTIFY_THIRDPARTY_AT_CREATION", $arrval,
getDolGlobalString(
'TICKET_CHECK_NOTIFY_THIRDPARTY_AT_CREATION'));
531print
'<td class="center">';
532print $formcategory->textwithpicto(
'', $langs->trans(
"TicketAutoCheckNotifyThirdPartyHelp"), 1,
'help');
537print
'<tr class="oddeven"><td>'.$langs->trans(
"TicketsAutoNotifyClose").
'</td>';
538print
'<td class="left">';
539if (
$conf->use_javascript_ajax) {
540 print ajax_constantonoff(
'TICKET_NOTIFY_AT_CLOSING');
542 $arrval = array(
'0' => $langs->trans(
"No"),
'1' => $langs->trans(
"Yes"));
543 print $formcategory->selectarray(
"TICKET_NOTIFY_AT_CLOSING", $arrval,
getDolGlobalString(
'TICKET_NOTIFY_AT_CLOSING'));
546print
'<td class="center">';
547print $formcategory->textwithpicto(
'', $langs->trans(
"TicketsAutoNotifyCloseHelp"), 1,
'help');
553print
'<tr class="oddeven"><td>'.$langs->trans(
"TicketMessageMailIntro");
555require_once DOL_DOCUMENT_ROOT.
'/core/class/doleditor.class.php';
556$doleditor =
new DolEditor(
'TICKET_MESSAGE_MAIL_INTRO', $mail_intro,
'100%', 90,
'dolibarr_mailings',
'',
false,
true,
getDolGlobalInt(
'FCKEDITOR_ENABLE_MAIL'), ROWS_2,
'70');
559print
'<td class="center">';
560print $formcategory->textwithpicto(
'', $langs->trans(
"TicketMessageMailIntroHelpAdmin"), 1,
'help');
565print
'<tr class="oddeven"><td>'.$langs->trans(
"TicketMessageMailFooter").
'</label>';
567require_once DOL_DOCUMENT_ROOT.
'/core/class/doleditor.class.php';
568$doleditor =
new DolEditor(
'TICKET_MESSAGE_MAIL_SIGNATURE', $mail_signature,
'100%', 90,
'dolibarr_mailings',
'',
false,
true,
getDolGlobalInt(
'FCKEDITOR_ENABLE_MAIL'), ROWS_2,
'70');
571print
'<td class="center">';
572print $formcategory->textwithpicto(
'', $langs->trans(
"TicketMessageMailFooterHelpAdmin"), 1,
'help');
577print $formcategory->buttonsSaveCancel(
"Save",
'', array(), 0,
'reposition');
addDocumentModel($name, $type, $label='', $description='')
Add document model used by doc generator.
dolibarr_set_const($db, $name, $value, $type='chaine', $visible=0, $note='', $entity=1)
Insert a parameter (key,value) into database (delete old key then insert it again).
dolibarr_del_const($db, $name, $entity=1)
Delete a constant.
delDocumentModel($name, $type)
Delete document model used by doc generator.
llxFooter($comment='', $zone='private', $disabledoutputofmessages=0)
Empty footer.
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader($head='', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='', $morequerystring='', $morecssonbody='', $replacemainareaby='', $disablenofollow=0, $disablenoindex=0)
Empty header.
Class to manage a WYSIWYG editor.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0, $nodefault=0)
Return value of a param into GET or POST supervariable.
GETPOSTINT($paramname, $method=0, $nodefault=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
GETPOSTISSET($paramname)
Return true if we are in a context of submitting the parameter $paramname from a POST of a form.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0, $morecssdiv='')
Show tabs of a record.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='', $morecssonpicto='widthpictotitle')
Load a title with picto.
Class to generate the form for creating a new ticket.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.
ticketAdminPrepareHead()
Build tabs for admin page.