<td>' . __('Text') . '</td> </tr> '; if (!empty($allmessages)) { foreach ($allmessages as $io => $eachmessage) { $result .= ' <tr class="row3"> <td>' . $eachmessage['date'] . '</td> <td>' . $eachmessage['text'] . '</td> </tr> '; } } $result .= '</table>'; show_window(__('Previous messages'), $result); } if (isset($_GET['username'])) { $login = $_GET['username']; web_MessagesShowPrevious($login); if (isset($_POST['messagetext'])) { zb_TicketCreate('NULL', $login, $_POST['messagetext'], 'NULL', whoami()); $newid = simple_get_lastid('ticketing'); zb_TicketSetDone($newid); rcms_redirect("?module=pl_sendmessage&username=" . $login); } web_MessageSendForm(); show_window('', web_UserControls($login)); } } else { show_error(__('You cant control this module')); }
$viewControl = wf_Link('?module=ticketing&calendarview=true', wf_img('skins/icon_calendar.gif', __('As calendar')), false, ''); show_window($configControl . __('Available user tickets') . ' ' . $viewControl, web_TicketsShow()); } else { $viewControl = wf_Link('?module=ticketing', wf_img('skins/icon_table.png', __('Grid view')), false, ''); show_window($configControl . __('Available user tickets') . ' ' . $viewControl, web_TicketsCalendar()); } } else { //or view ticket data and replies $ticketid = vf($_GET['showticket']); show_window(__('Ticket') . ':' . $ticketid, web_TicketDialogue($ticketid)); // maybe someone want to post reply if (isset($_POST['postreply'])) { $originaladdress = zb_TicketGetData($_POST['postreply']); $originaladdress = $originaladdress['from']; $admin = whoami(); zb_TicketCreate('NULL', $originaladdress, $_POST['replytext'], $_POST['postreply'], $admin); rcms_redirect("?module=ticketing&showticket=" . $_POST['postreply']); } //maybe someone deleting reply if (isset($_GET['deletereply'])) { zb_TicketDeleteReply($_GET['deletereply']); rcms_redirect("?module=ticketing&showticket=" . $ticketid); } //reply editing sub if (isset($_POST['editreply'])) { zb_TicketUpdateReply($_POST['editreply'], $_POST['editreplytext']); rcms_redirect("?module=ticketing&showticket=" . $ticketid); } } } else { //Typical Answers Presets (TAP) configuration