dolibarr 25.0.0-alpha
view.php
Go to the documentation of this file.
1<?php
2/* Copyright (C) 2013-2016 Jean-François FERRY <hello@librethic.io>
3 * Copyright (C) 2018-2026 Frédéric France <frederic.france@free.fr>
4 * Copyright (C) 2023 Benjamin Falière <benjamin.faliere@altairis.fr>
5 * Copyright (C) 2025 MDW <mdeweerd@users.noreply.github.com>
6 * Copyright (C) 2026 Jon Bendtsen <jon.bendtsen.github@jonb.dk>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <https://www.gnu.org/licenses/>.
20 */
21
28if (!defined('NOREQUIREMENU')) {
29 define('NOREQUIREMENU', '1');
30}
31// If there is no need to load and show top and left menu
32if (!defined("NOLOGIN")) {
33 define("NOLOGIN", '1');
34}
35if (!defined('NOIPCHECK')) {
36 define('NOIPCHECK', '1'); // Do not check IP defined into conf $dolibarr_main_restrict_ip
37}
38if (!defined('NOBROWSERNOTIF')) {
39 define('NOBROWSERNOTIF', '1');
40}
41// If this page is public (can be called outside logged session)
42
43// For MultiCompany module.
44// Do not use GETPOST here, function is not defined and define must be done before including main.inc.php
45// Because 2 entities can have the same ref.
46$entity = (!empty($_GET['entity']) ? (int) $_GET['entity'] : (!empty($_POST['entity']) ? (int) $_POST['entity'] : 1));
47if (is_numeric($entity)) {
48 define("DOLENTITY", $entity);
49}
50
51// Load Dolibarr environment
52require '../../main.inc.php';
53require_once DOL_DOCUMENT_ROOT.'/ticket/class/actions_ticket.class.php';
54require_once DOL_DOCUMENT_ROOT.'/core/class/html.formticket.class.php';
55require_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php';
56require_once DOL_DOCUMENT_ROOT.'/core/lib/ticket.lib.php';
57require_once DOL_DOCUMENT_ROOT.'/core/lib/security.lib.php';
58require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
59require_once DOL_DOCUMENT_ROOT.'/core/lib/payments.lib.php';
60
70// Load translation files required by the page
71$langs->loadLangs(array("companies", "other", "ticket"));
72
73// Get parameters
74$action = GETPOST('action', 'aZ09');
75$cancel = GETPOST('cancel');
76
77$track_id = GETPOST('track_id', 'alpha');
78$email = GETPOST('email', 'email');
79$suffix = "";
80
81if (GETPOST('btn_view_ticket')) {
82 unset($_SESSION['email_customer']);
83}
84if (isset($_SESSION['email_customer'])) {
85 $email = $_SESSION['email_customer'];
86}
87
88$object = new ActionsTicket($db);
89
90if (!isModEnabled('ticket')) {
91 httponly_accessforbidden('Module Ticket not enabled');
92}
93
94
95/*
96 * Actions
97 */
98
99if ($cancel) {
100 $backtopage = getDolGlobalString('TICKET_URL_PUBLIC_INTERFACE', DOL_URL_ROOT.'/public/ticket/');
101
102 if (!empty($backtopage)) {
103 header("Location: ".$backtopage);
104 exit;
105 }
106 $action = 'view_ticket';
107}
108
109$display_ticket = false;
110if (in_array($action, array("view_ticket", "presend", "close", "confirm_public_close", "add_message", "add_contact"))) { // Test on permission not required here. Done later by using the $track_id + check email in session
111 $error = 0;
112 if (!strlen($track_id)) {
113 $error++;
114 array_push($object->errors, $langs->trans("ErrorFieldRequired", $langs->transnoentities("TicketTrackId")));
115 $action = '';
116 }
117 if (!strlen($email)) {
118 $error++;
119 array_push($object->errors, $langs->trans("ErrorFieldRequired", $langs->transnoentities("Email")));
120 $action = '';
121 } else {
122 if (!isValidEmail($email)) {
123 $error++;
124 array_push($object->errors, $langs->trans("ErrorEmailInvalid"));
125 $action = '';
126 }
127 }
128
129 if (!$error) {
130 $ret = $object->fetch(0, '', $track_id);
131 if ($ret && $object->dao->id > 0) {
132 // Check if emails provided is the one of author
133 $emailofticket = CMailFile::getValidAddress($object->dao->origin_email, 2);
134 if (strtolower($emailofticket) == strtolower($email)) {
135 $display_ticket = true;
136 $_SESSION['email_customer'] = $email;
137 } else {
138 // Check if emails provided is inside list of contacts
139 $contacts = $object->dao->liste_contact(-1, 'external');
140 foreach ($contacts as $contact) {
141 if (strtolower($contact['email']) == strtolower($email)) {
142 $display_ticket = true;
143 $_SESSION['email_customer'] = $email;
144 break;
145 } else {
146 $display_ticket = false;
147 }
148 }
149 }
150 // Check email of thirdparty of ticket
151 if ($object->dao->fk_soc > 0 || $object->dao->socid > 0) {
152 $object->dao->fetch_thirdparty();
153 if ($email == $object->dao->thirdparty->email) {
154 $display_ticket = true;
155 $_SESSION['email_customer'] = $email;
156 }
157 }
158 // Check if email is email of creator
159 if ($object->dao->fk_user_create > 0) {
160 $tmpuser = new User($db);
161 $tmpuser->fetch($object->dao->fk_user_create);
162 if (strtolower($email) == strtolower($tmpuser->email)) {
163 $display_ticket = true;
164 $_SESSION['email_customer'] = $email;
165 }
166 }
167 // Check if email is email of creator
168 if ($object->dao->fk_user_assign > 0 && $object->dao->fk_user_assign != $object->dao->fk_user_create) {
169 $tmpuser = new User($db);
170 $tmpuser->fetch($object->dao->fk_user_assign);
171 if (strtolower($email) == strtolower($tmpuser->email)) {
172 $display_ticket = true;
173 $_SESSION['email_customer'] = $email;
174 }
175 }
176 } else {
177 $error++;
178 array_push($object->errors, $langs->trans("ErrorTicketNotFound", $track_id));
179 $action = '';
180 }
181 }
182
183 if (!$error && $action == 'confirm_public_close' && $display_ticket) { // Test on permission already done
184 if ($object->dao->close($user)) {
185 setEventMessages($langs->trans('TicketMarkedAsClosed'), null, 'mesgs');
186
187 $url = 'view.php?action=view_ticket&track_id='.GETPOST('track_id', 'alpha').(!empty($entity) && isModEnabled('multicompany') ? '&entity='.$entity : '').'&token='.newToken();
188 header("Location: ".$url);
189 exit;
190 } else {
191 $action = '';
192 setEventMessages($object->error, $object->errors, 'errors');
193 }
194 }
195
196 if (!$error && $action == "add_message" && $display_ticket && GETPOSTISSET('btn_add_message')) { // Test on permission already done
197 $ret = $object->dao->newMessage($user, $action, 0, 1);
198 if ($ret < 0) {
199 $error++;
200 setEventMessages($object->dao->error, $object->dao->errors, 'errors');
201 }
202
203 if (!$error) {
204 $action = 'view_ticket';
205 }
206 }
207
208 // Add a new external contributor to a ticket
209 if (!$error && $action == "add_contact" && $display_ticket && GETPOSTISSET('btn_add_contact')) { // Test on permission already done
210 $ret = $object->dao->add_contact(GETPOSTINT('contactid'), 'CONTRIBUTOR');
211
212 if (!$error) {
213 $action = 'view_ticket';
214 }
215 }
216
217 if ($error || !empty($object->errors)) {
218 setEventMessages($object->error, $object->errors, 'errors');
219 if ($action == "add_message") { // Test on permission not required here
220 $action = 'presend';
221 } else {
222 $action = '';
223 }
224 }
225}
226
227
228// Actions to send emails (for ticket, we need to manage the addfile and removefile only)
229$triggersendname = 'TICKET_SENTBYMAIL';
230$paramname = 'id';
231$autocopy = 'MAIN_MAIL_AUTOCOPY_TICKET_TO'; // used to know the automatic BCC to add
232if (!empty($object->dao->id)) {
233 $trackid = 'tic'.$object->dao->id;
234}
235include DOL_DOCUMENT_ROOT.'/core/actions_sendmails.inc.php';
236
237
238
239/*
240 * View
241 */
242
243$form = new Form($db);
244$formticket = new FormTicket($db);
245
246// Initialize a technical object to manage hooks of page. Note that conf->hooks_modules contains an array of hook context
247$hookmanager->initHooks(array('ticketpublicview', 'globalcard'));
248
249if (!getDolGlobalString('TICKET_ENABLE_PUBLIC_INTERFACE')) {
250 print '<div class="error">'.$langs->trans('TicketPublicInterfaceForbidden').'</div>';
251 $db->close();
252 exit();
253}
254
255$arrayofjs = array();
256$arrayofcss = array(getDolGlobalString('TICKET_URL_PUBLIC_INTERFACE', '/public/ticket/').'css/styles.css.php');
257
258llxHeaderTicket($langs->trans("Tickets"), "", 0, 0, $arrayofjs, $arrayofcss);
259
260
261if ($action == "view_ticket" || $action == "presend" || $action == "close" || $action == "confirm_public_close") {
262 if ($display_ticket) {
263 print '<!-- public view ticket if if -->';
264 print '<div class="ticketpublicarea ticketlargemargin">';
265
266 // Confirmation close
267 if ($action == 'close') {
268 print $form->formconfirm($_SERVER["PHP_SELF"]."?track_id=".$track_id.(!empty($entity) && isModEnabled('multicompany') ? '&entity='.$entity : ''), $langs->trans("CloseATicket"), $langs->trans("ConfirmCloseAticket"), "confirm_public_close", '', '', 1);
269 }
270
271 print '<div id="form_view_ticket" class="margintoponly">';
272
273 print '<table class="ticketpublictable centpercent tableforfield">';
274
275 // Ref - Tracking ID
276 print '<tr><td class="titlefield">'.$langs->trans("Ref").' / '.$langs->trans("TicketTrackId").'</td><td>';
277 print img_picto('', 'ticket', 'class="pictofixedwidth"');
278 print dolPrintHTML($object->dao->ref);
279 print '<span class="opacitylow"> &nbsp; / &nbsp; '.dolPrintHTML($object->dao->track_id).'</span>';
280 print '</td></tr>';
281
282 // Subject
283 print '<tr><td>'.$langs->trans("Subject").'</td><td>';
284 print '<span class="bold large">';
285 print dol_escape_htmltag($object->dao->subject);
286 print '</span>';
287 print '</td></tr>';
288
289 // Statut
290 print '<tr><td>'.$langs->trans("Status").'</td><td>';
291 print $object->dao->getLibStatut(2);
292 print '</td></tr>';
293
294 // Type
295 print '<tr><td>'.$langs->trans("Type").'</td><td>';
296 print dol_escape_htmltag($object->dao->type_label);
297 print '</td></tr>';
298
299 // Category
300 print '<tr><td>'.$langs->trans("Category").'</td><td>';
301 if ($object->dao->category_label) {
302 print img_picto('', 'category', 'class="pictofixedwidth"');
303 print dol_escape_htmltag($object->dao->category_label);
304 }
305 print '</td></tr>';
306
307 // Severity
308 print '<tr><td>'.$langs->trans("Severity").'</td><td>';
309 print dol_escape_htmltag($object->dao->severity_label);
310 print '</td></tr>';
311
312 // Creation date
313 print '<tr><td>'.$langs->trans("DateCreation").'</td><td>';
314 print img_picto('', 'calendar', 'class="pictofixedwidth"');
315 print dol_print_date($object->dao->datec, 'dayhour');
316 print '</td></tr>';
317
318 // Author
319 print '<tr><td>'.$langs->trans("Author").'</td><td>';
320 if ($object->dao->fk_user_create > 0) {
321 $langs->load("users");
322 $fuser = new User($db);
323 $fuser->fetch($object->dao->fk_user_create);
324 print img_picto('', 'user', 'class="pictofixedwidth"');
325 print $fuser->getFullName($langs);
326 } else {
327 print img_picto('', 'email', 'class="pictofixedwidth"');
328 print dol_escape_htmltag($object->dao->origin_email);
329 }
330
331 print '</td></tr>';
332
333 // Read date
334 if (!empty($object->dao->date_read)) {
335 print '<tr><td>'.$langs->trans("TicketReadOn").'</td><td>';
336 print dol_print_date($object->dao->date_read, 'dayhour');
337 print '</td></tr>';
338 }
339
340 // Close date
341 if (!empty($object->dao->date_close)) {
342 print '<tr><td>'.$langs->trans("TicketCloseOn").'</td><td>';
343 print dol_print_date($object->dao->date_close, 'dayhour');
344 print '</td></tr>';
345 }
346
347 // User assigned
348 if ($object->dao->fk_user_assign > 0) {
349 print '<tr><td>'.$langs->trans("AssignedTo").'aaaa</td><td>';
350 $fuser = new User($db);
351 $fuser->fetch($object->dao->fk_user_assign);
352 print img_picto('', 'user', 'class="pictofixedwidth"');
353 print $fuser->getFullName($langs, 0);
354 print '</td></tr>';
355 }
356
357 // External contributors
358 if (getDolGlobalInt('TICKET_PUBLIC_DISPLAY_EXTERNAL_CONTRIBUTORS')) {
359 print '<tr><td>'.$langs->trans("ExternalContributors").'</td><td>';
360 if ($object->dao->id > 0) {
361 $contactlist = $object->dao->liste_contact(-1, 'external');
362 foreach ($contactlist as $externalContributor) {
363 print img_picto('', 'contact', 'class="pictofixedwidth"');
364 print $externalContributor["lastname"]." ".$externalContributor["firstname"]."<br>";
365 }
366 }
367 print '</td></tr>';
368 }
369
370 // Add new external contributor
371 if (getDolGlobalInt('TICKET_PUBLIC_SELECT_EXTERNAL_CONTRIBUTORS') && !empty($object->dao->fk_soc)) {
372 print '<form method="post" id="form_view_add_contact" name="form_view_add_contact" action="'.$_SERVER['PHP_SELF'].'?track_id='.$object->dao->track_id.'">';
373 print '<input type="hidden" name="token" value="'.newToken().'">';
374 print '<input type="hidden" name="action" value="add_contact">';
375 print '<input type="hidden" name="email" value="'.$_SESSION['email_customer'].'">';
376 print '<tr><td>'.$langs->trans("AddContributor").'</td><td>';
377 //print $form->selectcontacts($object->dao->fk_soc, '', 'contactid', 3, '', '', 1, 'minwidth100imp widthcentpercentminusxx maxwidth400');
378 print $form->select_contact($object->dao->fk_soc, '', 'contactid', 3, '', '', 1, 'minwidth100imp widthcentpercentminusxx maxwidth400', true);
379 print '<input type="submit" class="button smallpaddingimp reposition" name="btn_add_contact" value="'.$langs->trans('Add').'" />';
380 print '</td></tr></form>';
381 }
382
383 // Progression
384 if (getDolGlobalString('TICKET_SHOW_PROGRESSION')) {
385 print '<tr><td>'.$langs->trans("Progression").'</td><td>';
386 print($object->dao->progress > 0 ? dol_escape_htmltag((string) $object->dao->progress) : '0').'%';
387 print '</td></tr>';
388 }
389
390 // Other attributes
391 include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_view.tpl.php';
392
393 print '</table>';
394
395 print '</div>';
396
397 print '<div style="clear: both; margin-top: 1.5em;"></div>';
398
399 if ($action == 'presend') {
400 print '<br>';
401 print load_fiche_titre($langs->trans('TicketAddMessage'), '', 'conversation');
402
403 $formticket = new FormTicket($db);
404
405 $formticket->action = "add_message";
406 $formticket->track_id = $object->dao->track_id;
407 $formticket->trackid = 'tic'.$object->dao->id;
408
409 $baseurl = getDolGlobalString('TICKET_URL_PUBLIC_INTERFACE', DOL_URL_ROOT.'/public/ticket/');
410
411 $formticket->param = array('track_id' => $object->dao->track_id, 'fk_user_create' => '-1',
412 'returnurl' => $baseurl.'view.php'.(!empty($entity) && isModEnabled('multicompany') ? '?entity='.$entity : ''));
413
414 $formticket->withfile = 2;
415 $formticket->withcancel = 1;
416 $formticket->withtitletopic = 1;
417
418 $formticket->showMessageForm('100%', 1);
419 }
420
421 if ($action != 'presend') {
422 $baseurl = getDolGlobalString('TICKET_URL_PUBLIC_INTERFACE', DOL_URL_ROOT.'/public/ticket/');
423
424 print '<form method="POST" id="form_view_ticket_list" name="form_view_ticket_list" action="'.$baseurl.'list.php'.(!empty($entity) && isModEnabled('multicompany') ? '?entity='.$entity : '').'">';
425 print '<input type="hidden" name="token" value="'.newToken().'">';
426 print '<input type="hidden" name="action" value="view_ticketlist">';
427 print '<input type="hidden" name="track_id" value="'.$object->dao->track_id.'">';
428 print '<input type="hidden" name="email" value="'.$_SESSION['email_customer'].'">';
429 //print '<input type="hidden" name="search_fk_status" value="non_closed">';
430 print "</form>\n";
431
432 print '<div class="tabsAction">';
433
434 // List ticket
435 print '<div class="inline-block divButAction"><a class="left" style="padding-right: 50px" href="javascript:$(\'#form_view_ticket_list\').submit();">'.$langs->trans('ViewMyTicketList').'</a></div>';
436
437 if ($object->dao->status < Ticket::STATUS_CLOSED) {
438 // New message
439 print '<div class="inline-block divButAction"><a class="butAction" href="'.$_SERVER['PHP_SELF'].'?action=presend&mode=init&track_id='.$object->dao->track_id.(!empty($entity) && isModEnabled('multicompany') ? '&entity='.$entity : '').'&token='.newToken().'">'.$langs->trans('TicketAddMessage').'</a></div>';
440
441 // Close ticket
442 if ($object->dao->status >= Ticket::STATUS_NOT_READ && $object->dao->status < Ticket::STATUS_CLOSED) {
443 print '<div class="inline-block divButAction"><a class="butAction" href="'.$_SERVER['PHP_SELF'].'?action=close&track_id='.$object->dao->track_id.(!empty($entity) && isModEnabled('multicompany') ? '&entity='.$entity : '').'&token='.newToken().'">'.$langs->trans('CloseTicket').'</a></div>';
444 }
445 }
446
447 print '</div>';
448 }
449
450 print '</div>';
451
452 // Message list
453 print '<div class="ticketpublicarea ticketlargemargin">';
454 print '<h3>';
455 print load_fiche_titre($langs->trans('TicketMessagesList'), '', 'conversation');
456 print '</h3>';
457 print '</div>';
458
459 $object->viewTicketMessages(false, true, $object->dao);
460
461 print '<br>';
462 } else {
463 print '<!-- public view ticket if else -->';
464 print '<div class="ticketpublicarea ticketlargemargin">';
465
466 print '<div class="error">Not Allowed<br><a href="'.$_SERVER['PHP_SELF'].'?track_id='.$object->dao->track_id.(!empty($entity) && isModEnabled('multicompany') ? '?entity='.$entity : '').'" rel="nofollow noopener">'.$langs->trans("GoBack").'</a></div>';
467
468 print '</div>';
469 }
470} else {
471 print '<!-- public view ticket else -->';
472 print '<div class="ticketpublicarea ticketlargemargin">';
473
474 print '<div class="center opacitymedium margintoponly marginbottomonly ticketlargemargin">'.$langs->trans("TicketPublicMsgViewLogIn").'</div>';
475
476 print '<div id="form_view_ticket">';
477 print '<form method="POST" class="maxwidth1000 center" name="form_view_ticket" action="'.$_SERVER['PHP_SELF'].(!empty($entity) && isModEnabled('multicompany') ? '?entity='.$entity : '').'">';
478
479 print '<input type="hidden" name="token" value="'.newToken().'">';
480 print '<input type="hidden" name="action" value="view_ticket">';
481
482 print '<p><label for="track_id" style="display: inline-block;" class="titlefieldcreate left"><span class="fieldrequired">';
483 print img_picto($langs->trans("TicketTrackId"), 'generic', 'class="pictofixedwidth"');
484 print $langs->trans("TicketTrackId").'</span></label>';
485 print '<br class="showonsmartphone hidden">';
486 print '<input class="minwidth100" id="track_id" name="track_id" value="'.(GETPOST('track_id', 'alpha') ? GETPOST('track_id', 'alpha') : '').'" />';
487 print '</p>';
488
489 print '<p><label for="email" style="display: inline-block;" class="titlefieldcreate left"><span class="fieldrequired">';
490 print img_picto($langs->trans("Email"), 'email', 'class="pictofixedwidth"');
491 print $langs->trans('Email').'</span></label>';
492 print '<br class="showonsmartphone hidden">';
493 print '<input class="minwidth100" id="email" name="email" value="'.(GETPOST('email', 'alpha') ? GETPOST('email', 'alpha') : (!empty($_SESSION['customer_email']) ? $_SESSION['customer_email'] : "")).'" />';
494 print '</p>';
495
496 print '<p style="text-align: center; margin-top: 1.5em;">';
497 print '<input type="submit" class="button" name="btn_view_ticket" value="'.$langs->trans('ViewTicket').'" />';
498 print ' &nbsp; ';
499 print '<input type="submit" class="button button-cancel" name="cancel" value="'.$langs->trans("Cancel").'">';
500 print "</p>\n";
501
502 print "</form>\n";
503 print "</div>\n";
504
505 print '</div>';
506}
507
508if (getDolGlobalInt('TICKET_SHOW_COMPANY_FOOTER')) {
509 // End of page
510 htmlPrintOnlineFooter($mysoc, $langs, 0, $suffix, $object);
511}
512
513llxFooter('', 'public');
514
515$db->close();
if(! $sortfield) if(! $sortorder) $object
Definition account.php:100
llxFooter($comment='', $zone='private', $disabledoutputofmessages=0)
Empty footer.
Definition wrapper.php:91
Class Actions of the module ticket.
static getValidAddress($address, $format, $encode=0, $maxnumberofemail=0)
Return a formatted address string for SMTP protocol.
Class to manage generation of HTML components Only common components must be here.
Class to manage Dolibarr users.
htmlPrintOnlineFooter($fromcompany, $langs, $addformmessage=0, $suffix='', $object=null)
Show footer of company in HTML public pages.
global $mysoc
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
newToken()
Return the value of token currently saved into session with name 'newtoken'.
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.
dol_print_date($time, $format='', $tzoutput='auto', $outputlangs=null, $encodetooutput=false, $decorate=0)
Output date in a string format according to outputlangs (or langs if not defined).
GETPOSTISSET($paramname)
Return true if we are in a context of submitting the parameter $paramname from a POST of a form.
isValidEmail($address, $acceptsupervisorkey=0, $acceptuserkey=0)
Return true if email syntax is ok.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
isModEnabled($module)
Is Dolibarr module enabled.
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='', $morecssonpicto='widthpictotitle')
Load a title with picto.
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $noescapetags='', $escapeonlyhtmltags=0, $cleanalsojavascript=0)
Definition html.lib.php:181
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 http header, open body tag and show HTML header banner for public pages for tickets.