mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 02:46:30 +00:00
105 lines
3.2 KiB
PHP
105 lines
3.2 KiB
PHP
<?
|
|
enforce_login();
|
|
View::show_header('Staff');
|
|
|
|
include(SERVER_ROOT.'/sections/staff/functions.php');
|
|
|
|
$SupportStaff = get_support();
|
|
|
|
list($FrontLineSupport, $ForumStaff, $Staff) = $SupportStaff;
|
|
|
|
?>
|
|
<div class="thin">
|
|
<div class="header">
|
|
<h2><?=SITE_NAME?> Staff</h2>
|
|
</div>
|
|
<div class="box pad" style="padding: 0px 10px 10px 10px;">
|
|
<br />
|
|
<h3>Contact Staff</h3>
|
|
<div id="below_box">
|
|
<p>If you are looking for help with a general question, we appreciate it if you would only message through the staff inbox, where we can all help you.</p>
|
|
<p>You can do that by <strong><a href="#" onclick="$('#compose').gtoggle(); return false;">sending a message to the Staff Inbox</a></strong>.</p>
|
|
</div>
|
|
<? View::parse('generic/reply/staffpm.php', array('Hidden' => true)); ?>
|
|
<br />
|
|
<h3>First-line Support</h3>
|
|
<p><strong>These users are not official staff members.</strong> They are users who have volunteered their time to help people in need. Please treat them with respect, and read <a href="wiki.php?action=article&id=260">this</a> before contacting them.</p>
|
|
<table class="staff" width="100%">
|
|
<tr class="colhead">
|
|
<td style="width: 130px;">Username</td>
|
|
<td style="width: 130px;">Last seen</td>
|
|
<td><strong>Support for</strong></td>
|
|
</tr>
|
|
<?
|
|
$Row = 'a';
|
|
foreach ($FrontLineSupport as $Support) {
|
|
list($ID, $Class, $Username, $Paranoia, $LastAccess, $SupportFor) = $Support;
|
|
|
|
$Row = make_staff_row($Row, $ID, $Paranoia, $Class, $LastAccess, $SupportFor);
|
|
|
|
} ?>
|
|
</table>
|
|
</div>
|
|
<br />
|
|
<div class="box pad" style="padding: 0px 10px 10px 10px;">
|
|
<br />
|
|
<h3>Forum Moderators</h3>
|
|
<p>Forum Moderators are users who have been promoted to help moderate the forums. They can only help with forum-oriented questions.</p>
|
|
<table class="staff" width="100%">
|
|
<tr class="colhead">
|
|
<td style="width: 130px;">Username</td>
|
|
<td style="width: 130px;">Last seen</td>
|
|
<td><strong>Remark</strong></td>
|
|
</tr>
|
|
<?
|
|
$Row = 'a';
|
|
foreach ($ForumStaff as $Support) {
|
|
list($ID, $Class, $Username, $Paranoia, $LastAccess, $SupportFor) = $Support;
|
|
|
|
$Row = make_staff_row($Row, $ID, $Paranoia, $Class, $LastAccess, $SupportFor);
|
|
|
|
} ?>
|
|
</table>
|
|
</div>
|
|
<br />
|
|
<div class="box pad" style="padding: 0px 10px 10px 10px;">
|
|
<br />
|
|
<?
|
|
$CurClass = 0;
|
|
$CloseTable = false;
|
|
foreach ($Staff as $StaffMember) {
|
|
list($ID, $Class, $ClassName, $Username, $Paranoia, $LastAccess, $Remark) = $StaffMember;
|
|
if ($Class != $CurClass) { // Start new class of staff members
|
|
$Row = 'a';
|
|
if ($CloseTable) {
|
|
$CloseTable = false;
|
|
// the "\t" and "\n" are used here to make the HTML look pretty
|
|
echo "\t\t</table>\n\t\t<br />\n";
|
|
}
|
|
$CurClass = $Class;
|
|
$CloseTable = true;
|
|
echo "\t\t<h3>".$ClassName."s</h3>\n";
|
|
?>
|
|
<table class="staff" width="100%">
|
|
<tr class="colhead">
|
|
<td style="width: 130px;">Username</td>
|
|
<td style="width: 130px;">Last seen</td>
|
|
<td><strong>Remark</strong></td>
|
|
</tr>
|
|
<?
|
|
} // End new class header
|
|
|
|
$HiddenBy = 'Hidden by staff member';
|
|
|
|
// Display staff members for this class
|
|
$Row = make_staff_row($Row, $ID, $Paranoia, $Class, $LastAccess, $Remark, $HiddenBy);
|
|
|
|
} ?>
|
|
</table>
|
|
|
|
</div>
|
|
</div>
|
|
<?
|
|
View::show_footer();
|
|
?>
|