25 if (!defined(
'NOCSRFCHECK')) define(
'NOCSRFCHECK',
'1');
26 if (!defined(
'NOREQUIREMENU')) define(
'NOREQUIREMENU',
'1');
27 if (!defined(
"NOLOGIN")) define(
"NOLOGIN",
'1');
28 if (!defined(
'NOIPCHECK')) define(
'NOIPCHECK',
'1');
29 if (!defined(
'NOBROWSERNOTIF')) define(
'NOBROWSERNOTIF',
'1');
34 $entity = (!empty($_GET[
'entity']) ? (int) $_GET[
'entity'] : (!empty($_POST[
'entity']) ? (int) $_POST[
'entity'] : 1));
35 if (is_numeric($entity)) define(
"DOLENTITY", $entity);
37 require
'../../main.inc.php';
38 require_once DOL_DOCUMENT_ROOT.
'/ticket/class/actions_ticket.class.php';
39 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formticket.class.php';
40 require_once DOL_DOCUMENT_ROOT.
'/core/lib/ticket.lib.php';
41 require_once DOL_DOCUMENT_ROOT.
'/core/lib/security.lib.php';
42 require_once DOL_DOCUMENT_ROOT.
'/core/lib/company.lib.php';
43 require_once DOL_DOCUMENT_ROOT.
'/core/lib/payments.lib.php';
46 $langs->loadLangs(array(
'companies',
'other',
'ticket',
'errors'));
49 $track_id =
GETPOST(
'track_id',
'alpha');
50 $action =
GETPOST(
'action',
'aZ09');
57 $form =
new Form($db);
60 if (empty($conf->global->TICKET_ENABLE_PUBLIC_INTERFACE))
62 print $langs->trans(
'TicketPublicInterfaceForbidden');
67 $arrayofcss = array(
'/ticket/css/styles.css.php');
69 llxHeaderTicket($langs->trans(
"Tickets"),
"", 0, 0, $arrayofjs, $arrayofcss);
71 print '<div class="ticketpublicarea">';
72 print
'<p style="text-align: center">'.($conf->global->TICKET_PUBLIC_TEXT_HOME ? $conf->global->TICKET_PUBLIC_TEXT_HOME : $langs->trans(
"TicketPublicDesc")).
'</p>';
73 print
'<div class="ticketform">';
74 print
'<a href="create_ticket.php" rel="nofollow noopener" class="butAction marginbottomonly"><div class="index_create bigrounded"><span class="fa fa-plus-circle valignmiddle btnTitle-icon"></span><br>'.dol_escape_htmltag($langs->trans(
"CreateTicket")).
'</div></a>';
75 print
'<a href="list.php" rel="nofollow noopener" class="butAction marginbottomonly"><div class="index_display bigrounded"><span class="fa fa-list-alt valignmiddle btnTitle-icon"></span><br>'.dol_escape_htmltag($langs->trans(
"ViewMyTicketList")).
'</div></a>';
76 print
'<a href="view.php" rel="nofollow noopener" class="butAction marginbottomonly"><div class="index_display bigrounded">'.img_picto(
'',
'ticket').
'<br>'.
dol_escape_htmltag($langs->trans(
"ShowTicketWithTrackId")).
'</div></a>';
77 print
'<div style="clear:both;"></div>';
82 htmlPrintOnlinePaymentFooter($mysoc, $langs, 0, $suffix, $object);
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
llxHeaderTicket($title, $head="", $disablejs=0, $disablehead=0, $arrayofjs= '', $arrayofcss= '')
Show header for public pages.
print
Draft customers invoices.
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $keepmoretags= '', $escapeonlyhtmltags=0)
Returns text escaped for inclusion in HTML alt or title tags, or into values of HTML input fields...