helpdesk_ticket.php

main 70 lines · 1.5 KB Raw
Alex Alex Commit Initial commit 01/10/2026 09:20
1<?php
2?>
3<div class="znx-acct">
4
5<div class="znx-acct-head"><?= t('helpdesk.view_ticket') ?>
6<?php
7 echo $ticketData['id'];
8 if ($ticketData['status'] === 'CLOSED') {
9 echo '<span style="color:red">[' . t('helpdesk.closed') . ']</span>';
10 }
11?></div>
12<div class="znx-acct-table-wrap">
13<table class="znx-acct-table">
14 <tr class="yellow">
15 <th>
16 <?php
17 echo getClock($ticketData['creation'], true);
18 ?>
19 - <?= t('helpdesk.created_by') ?>
20 <?php
21 echo $ticketData['username'];
22 ?>
23 </th>
24 </tr>
25 <tr>
26 <td>
27 <p><?php echo nl2br($ticketData['message']); ?></p>
28 </td>
29 </tr>
30</table>
31</div>
32<?php
33if ($replies !== false) {
34 foreach($replies as $reply) {
35 ?>
36 <div class="znx-acct-table-wrap">
37 <table class="znx-acct-table">
38 <tr class="yellow">
39 <th>
40 <?php
41 echo getClock($reply['created'], true);
42 ?>
43 - <?= t('helpdesk.posted_by') ?>
44 <?php
45 echo $reply['username'];
46 ?>
47 </th>
48 </tr>
49 <tr>
50 <td>
51 <p><?php echo nl2br($reply['message']); ?></p>
52 </td>
53 </tr>
54 </table>
55 </div>
56 <?php
57 }
58}
59?>
60
61<?php if ($ticketData['status'] !== 'CLOSED') { ?>
62 <form action="" method="post" class="znx-editchar-box">
63 <input type="hidden" name="username" value="<?php echo $ticketData['username']; ?>">
64 <textarea class="znx-editchar-textarea forumReply" name="reply_text"></textarea>
65 <button type="submit" class="znx-acct-btn"><?= t('helpdesk.reply') ?></button>
66 </form>
67<?php } ?>
68
69</div><!-- .znx-acct -->
70
Top