Gazelle/sections/staff/index.php

152 lines
4.4 KiB
PHP
Raw Normal View History

2011-03-28 14:21:28 +00:00
<?
enforce_login();
2013-06-27 08:01:06 +00:00
View::show_header('Staff');
2011-03-28 14:21:28 +00:00
include(SERVER_ROOT.'/sections/staff/functions.php');
2013-02-13 08:00:35 +00:00
$SupportStaff = get_support();
2011-03-28 14:21:28 +00:00
list($FrontLineSupport, $ForumStaff, $Staff) = $SupportStaff;
2011-03-28 14:21:28 +00:00
?>
<div class="thin">
2012-08-19 08:00:19 +00:00
<div class="header">
<h2><?=SITE_NAME?> Staff</h2>
</div>
2013-04-13 08:00:19 +00:00
<div class="box pad" style="padding: 0px 10px 10px 10px;">
<br />
2011-03-28 14:21:28 +00:00
<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>
2013-06-27 08:01:06 +00:00
<p>You can do that by <strong><a href="#" onclick="$('#compose').gtoggle(); return false;">sending a message to the Staff Inbox</a></strong>.</p>
2011-03-28 14:21:28 +00:00
</div>
2015-10-31 08:00:29 +00:00
</div>
<div class="box pad" style="padding: 0px 10px 10px 10px;">
2013-02-13 08:00:35 +00:00
<? View::parse('generic/reply/staffpm.php', array('Hidden' => true)); ?>
<br />
2015-10-31 08:00:29 +00:00
<h2 style="text-align: left;">Community Help</h2>
<h3 style="font-size: 17px;" id="fls"><i>First-Line Support</i></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><br />
2011-03-28 14:21:28 +00:00
<table class="staff" width="100%">
<tr class="colhead">
2013-04-13 08:00:19 +00:00
<td style="width: 130px;">Username</td>
<td style="width: 130px;">Last seen</td>
2011-03-28 14:21:28 +00:00
<td><strong>Support for</strong></td>
</tr>
<?
$Row = 'a';
2013-04-13 08:00:19 +00:00
foreach ($FrontLineSupport as $Support) {
2011-03-28 14:21:28 +00:00
list($ID, $Class, $Username, $Paranoia, $LastAccess, $SupportFor) = $Support;
2013-05-05 08:00:31 +00:00
$Row = make_staff_row($Row, $ID, $Paranoia, $Class, $LastAccess, $SupportFor);
} ?>
</table>
2013-05-05 08:00:31 +00:00
<br />
2012-09-24 08:00:33 +00:00
<br />
2015-10-31 08:00:29 +00:00
<h3 style="font-size: 17px;" id="forum_mods"><i>Forum Moderators</i></h3>
<p>Forum Moderators are users who have been promoted to help moderate the forums. They can only help with forum-oriented questions.</p><br />
<table class="staff" width="100%">
<tr class="colhead">
2013-04-13 08:00:19 +00:00
<td style="width: 130px;">Username</td>
<td style="width: 130px;">Last seen</td>
<td><strong>Remark</strong></td>
</tr>
<?
$Row = 'a';
2013-04-13 08:00:19 +00:00
foreach ($ForumStaff as $Support) {
list($ID, $Class, $Username, $Paranoia, $LastAccess, $SupportFor) = $Support;
2013-05-05 08:00:31 +00:00
$Row = make_staff_row($Row, $ID, $Paranoia, $Class, $LastAccess, $SupportFor);
} ?>
2011-03-28 14:21:28 +00:00
</table>
</div>
<br />
2013-04-13 08:00:19 +00:00
<div class="box pad" style="padding: 0px 10px 10px 10px;">
2013-05-05 08:00:31 +00:00
<br />
2011-03-28 14:21:28 +00:00
<?
$CurClass = 0;
$CloseTable = false;
2015-10-31 08:00:29 +00:00
$DevDiv = false;
$AdminDiv = false;
foreach ($Staff as $StaffMember) {
2011-03-28 14:21:28 +00:00
list($ID, $Class, $ClassName, $Username, $Paranoia, $LastAccess, $Remark) = $StaffMember;
2013-04-13 08:00:19 +00:00
if ($Class != $CurClass) { // Start new class of staff members
2011-03-28 14:21:28 +00:00
$Row = 'a';
2013-04-13 08:00:19 +00:00
if ($CloseTable) {
2011-03-28 14:21:28 +00:00
$CloseTable = false;
2013-05-05 08:00:31 +00:00
// the "\t" and "\n" are used here to make the HTML look pretty
echo "\t\t</table>\n\t\t<br />\n";
2011-03-28 14:21:28 +00:00
}
$CurClass = $Class;
$CloseTable = true;
2013-11-12 08:00:58 +00:00
$HTMLID = '';
switch ($ClassName) {
case 'Moderator':
$HTMLID = 'mods';
break;
case 'Developer':
$HTMLID = 'devs';
break;
case 'Lead Developer':
$HTMLID = 'lead_devs';
break;
2016-03-09 08:00:27 +00:00
case 'System Administrator':
$HTMLID = 'sys_admins';
break;
2013-11-12 08:00:58 +00:00
case 'Administrator':
$HTMLID = 'admins';
break;
case 'Sysop':
$HTMLID = 'sysops';
break;
default:
$HTMLID = '';
}
2016-03-09 08:00:27 +00:00
switch ($ClassName) {
case 'Developer': // fall through
case 'Lead Developer':
if (!$DevDiv) {
printSectionDiv("Development");
$DevDiv = true;
}
break;
case 'System Administrator': // fall through
case 'Administrator': // fall through
case 'Sysop':
if (!$AdminDiv) {
printSectionDiv("Administration");
$AdminDiv = true;
}
}
2015-10-31 08:00:29 +00:00
if ($HTMLID != 'mods') {
echo "\t\t<h3 style=\"font-size: 17px;\" id=\"$HTMLID\"><i>".$ClassName."s</i></h3>\n";
} else {
echo "\t\t<h2 style='text-align: left'>" . $ClassName . "s</h2>\n";
}
2011-03-28 14:21:28 +00:00
?>
<table class="staff" width="100%">
<tr class="colhead">
2013-04-13 08:00:19 +00:00
<td style="width: 130px;">Username</td>
<td style="width: 130px;">Last seen</td>
2011-03-28 14:21:28 +00:00
<td><strong>Remark</strong></td>
</tr>
<?
} // End new class header
2013-02-22 08:00:24 +00:00
2013-05-05 08:00:31 +00:00
$HiddenBy = 'Hidden by staff member';
2011-03-28 14:21:28 +00:00
// Display staff members for this class
2013-05-05 08:00:31 +00:00
$Row = make_staff_row($Row, $ID, $Paranoia, $Class, $LastAccess, $Remark, $HiddenBy);
} ?>
2011-03-28 14:21:28 +00:00
</table>
2013-02-22 08:00:24 +00:00
2011-03-28 14:21:28 +00:00
</div>
</div>
<?
2012-10-11 08:00:15 +00:00
View::show_footer();
2011-03-28 14:21:28 +00:00
?>