support.php

main 44 lines · 1.1 KB Raw
Alex Alex Commit Initial commit 01/10/2026 09:20
1<?php
2/**
3 * Support list.
4 *
5 * Prepared by support.php: $srtGrp - staff grouped by in-game position.
6 */
7?>
8<div class="znx-acct">
9
10<div class="znx-acct-head"><?= t('support.title') ?></div>
11<div class="znx-acct-table-wrap">
12<?php
13$writeHeader = true;
14if (!empty($srtGrp)) {
15 foreach (array_reverse($srtGrp) as $grpName => $grpList) {
16 ?>
17 <table id="supportTable" class="znx-acct-table">
18 <?php if ($writeHeader) {
19 $writeHeader = false; ?>
20 <tr class="yellow">
21 <th width="30%"><?= t('common.group') ?></th>
22 <th width="40%"><?= t('common.name') ?></th>
23 <th width="30%"><?= t('common.status') ?></th>
24 </tr>
25 <?php
26 }
27 foreach ($grpList as $char) {
28 if ($char['name'] != $config['website_char']) {
29 echo '<tr>';
30 echo "<td width='30%'>". $grpName ."</td>";
31 echo '<td width="40%"><a href="characterprofile.php?name='. $char['name'] .'">'. $char['name'] .'</a></td>';
32 echo "<td width='30%'>". online_id_to_name($char['online']) ."</td>";
33 echo '</tr>';
34 }
35 }
36 ?>
37 </table>
38 <?php
39 }
40}
41?>
42</div>
43
44</div><!-- .znx-acct -->
Top