user_is_admin) { $q = mysql_query_wrapper("select ticket_auth from tickets where ticket_id='$ticket_id'"); $row = mysql_fetch_object($q); $ticket_auth = $row->ticket_auth; } else { header("Location: login.php?r=show.php%3fticket_id%3d$ticket_id"); exit; } } } include "top.php"; $myurl = ("http://" . $_SERVER['HTTP_HOST'] . "/" . $ticket_id . $ticket_auth); $q = mysql_query_wrapper("select *, users.user_name user_name, users.user_id user_id, assigned.user_name assigned_user_name, concat(lower(date_format(note_date_created, '%l:%i%p')),date_format(note_date_created, ' %M %e, %Y')) nice_note_date_created from tickets left join notes on ticket_id=note_ticket_id and ('$user->user_is_admin'>0 or note_is_public>0) left outer join users on note_user_id=users.user_id left join states on ticket_state_id=state_id left outer join users assigned on ticket_assigned_to=assigned.user_id where ticket_id='$ticket_id' and ticket_auth='$ticket_auth' order by note_date_created"); ?>

Ticket #

ticket_assigned_to) { ?> user_is_admin) { ?>
Ticket location
Bookmark this address, write it down, or add it to your Favourites folder. You can return to it any time to add notes and read our responses.
Status state_name?>
Assigned to assigned_user_name)?>
Contact name ticket_author_name)?> 
Contact email ticket_author_email,'author_email',32,128)?>
Email notify ticket_author_notify ? 'Yes' : 'No')?>
Phone number ticket_author_phone,'author_phone',32,64)?> 
Login user_is_admin) { echo "\n"; } ?>
ticket_account_login,'account_login',32,32)?> "; echo "ticket_account_login)."\">edit \"".htmlspecialchars($row->ticket_account_login)."\" account
\n"; echo "ticket_account_login)."\">other \"".htmlspecialchars($row->ticket_account_login)."\" tickets
\n"; echo "
Domain ticket_account_domain,'account_domain',32,128)?>  user_is_admin) { echo "ticket_account_domain)."\">visit http://".htmlspecialchars($row->ticket_account_domain).""; } ?>
nice_note_date_created . "
"; if (++$rownum == 1) { echo "Initial problem report"; } else if ($row->user_id) { echo "Note added by $row->user_name"; } else { echo "Additional comment"; } if (($user || !$row->note_user_id) && $row->note_remote_addr) echo "
" . $row->note_remote_addr; ?>
", hyperlinkurls(htmlspecialchars ($row->note_longtext))); ?>  
Add a note user_is_admin) { ?> Show this note to the submitter, not just other staff
Pretend this note was entered by the submitter (don't attach my name to it)
Reassign ticket
Change status