Gazelle/sections/staff/index.php
2013-11-12 08:00:58 +00:00

126 lines
3.6 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 id="fls">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&amp;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 id="forum_mods">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;
$HTMLID = '';
switch ($ClassName) {
case 'Moderator':
$HTMLID = 'mods';
break;
case 'Developer':
$HTMLID = 'devs';
break;
case 'Lead Developer':
$HTMLID = 'lead_devs';
break;
case 'Administrator':
$HTMLID = 'admins';
break;
case 'Sysop':
$HTMLID = 'sysops';
break;
default:
$HTMLID = '';
}
echo "\t\t<h3 id=\"$HTMLID\">".$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();
?>