25 if (!defined(
'NOREQUIREMENU')) {
26 define(
'NOREQUIREMENU',
'1');
28 if (!defined(
'NOLOGIN')) {
29 define(
'NOLOGIN',
'1');
31 if (!defined(
'NOIPCHECK')) {
32 define(
'NOIPCHECK',
'1');
34 if (!defined(
'NOBROWSERNOTIF')) {
35 define(
'NOBROWSERNOTIF',
'1');
40 $entity = (!empty($_GET[
'entity']) ? (int) $_GET[
'entity'] : (!empty($_POST[
'entity']) ? (int) $_POST[
'entity'] : 1));
41 if (is_numeric($entity)) {
42 define(
"DOLENTITY", $entity);
46 require
'../../main.inc.php';
47 require_once DOL_DOCUMENT_ROOT.
'/ticket/class/actions_ticket.class.php';
48 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formticket.class.php';
49 require_once DOL_DOCUMENT_ROOT.
'/core/lib/ticket.lib.php';
50 require_once DOL_DOCUMENT_ROOT.
'/core/lib/security.lib.php';
51 require_once DOL_DOCUMENT_ROOT.
'/core/lib/company.lib.php';
52 require_once DOL_DOCUMENT_ROOT.
'/core/lib/payments.lib.php';
55 $langs->loadLangs(array(
'companies',
'other',
'ticket',
'errors'));
58 $track_id =
GETPOST(
'track_id',
'alpha');
59 $action =
GETPOST(
'action',
'aZ09');
74 if (empty($conf->global->TICKET_ENABLE_PUBLIC_INTERFACE)) {
75 print $langs->trans(
'TicketPublicInterfaceForbidden');
79 $arrayofcss = array(
'/ticket/css/styles.css.php');
81 llxHeaderTicket($langs->trans(
"Tickets"),
"", 0, 0, $arrayofjs, $arrayofcss);
83 print
'<div class="ticketpublicarea">';
85 print
'<p style="text-align: center">'.(getDolGlobalString(
"TICKET_PUBLIC_TEXT_HOME",
'<span class="opacitymedium">'.$langs->trans(
"TicketPublicDesc")).
'</span></p>').
'</p>';
88 print
'<div class="ticketform">';
89 print
'<a href="create_ticket.php?action=create'.(!empty($entity) &&
isModEnabled(
'multicompany')?
'&entity='.$entity:
'').
'" rel="nofollow noopener" class="butAction marginbottomonly"><div class="index_create bigrounded"><span class="fa fa-15 fa-plus-circle valignmiddle btnTitle-icon"></span><br>'.
dol_escape_htmltag($langs->trans(
"CreateTicket")).
'</div></a>';
90 print
'<a href="list.php'.(!empty($entity) &&
isModEnabled(
'multicompany')?
'?entity='.$entity:
'').
'" rel="nofollow noopener" class="butAction marginbottomonly"><div class="index_display bigrounded"><span class="fa fa-15 fa-list-alt valignmiddle btnTitle-icon"></span><br>'.
dol_escape_htmltag($langs->trans(
"ViewMyTicketList")).
'</div></a>';
91 print
'<a href="view.php'.(!empty($entity) &&
isModEnabled(
'multicompany')?
'?entity='.$entity:
'').
'" rel="nofollow noopener" class="butAction marginbottomonly"><div class="index_display bigrounded">'.
img_picto(
'',
'ticket',
'class="fa-15"').
'<br>'.
dol_escape_htmltag($langs->trans(
"ShowTicketWithTrackId")).
'</div></a>';
92 print
'<div style="clear:both;"></div>';
97 htmlPrintOnlinePaymentFooter($mysoc, $langs, 0, $suffix, $object);
if($cancel &&! $id) if($action=='add' &&! $cancel) if($action=='delete') if($id) $form
Actions.
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $noescapetags='', $escapeonlyhtmltags=0)
Returns text escaped for inclusion in HTML alt or title tags, or into values of HTML input fields.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
isModEnabled($module)
Is Dolibarr module enabled.
httponly_accessforbidden($message=1, $http_response_code=403, $stringalreadysanitized=0)
Show a message to say access is forbidden and stop program.
llxHeaderTicket($title, $head="", $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='')
Show header for public pages.