Oppaitime's version of Gazelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.php 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <?
  2. enforce_login();
  3. View::show_header('Staff');
  4. include(SERVER_ROOT.'/sections/staff/functions.php');
  5. $SupportStaff = get_support();
  6. list($FrontLineSupport, $ForumStaff, $Staff) = $SupportStaff;
  7. ?>
  8. <div class="thin">
  9. <div class="header">
  10. <h2><?=SITE_NAME?> Staff</h2>
  11. </div>
  12. <div class="box pad" style="padding: 0px 10px 10px 10px;">
  13. <br />
  14. <h3>Contact Staff</h3>
  15. <div id="below_box">
  16. <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>
  17. <p>You can do that by <strong><a toggle-target="#compose">sending a message to the Staff Inbox</a></strong>.</p>
  18. </div>
  19. <? View::parse('generic/reply/staffpm.php', array('Hidden' => true)); ?>
  20. <? if ($FrontLineSupport) { ?>
  21. </div><br />
  22. <div class="box pad">
  23. <h3 id="fls">First-Line Support</h3>
  24. <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>
  25. <table class="staff" width="100%">
  26. <tr class="colhead">
  27. <td style="width: 130px;">Username</td>
  28. <td style="width: 130px;">Last seen</td>
  29. <td><strong>Support for</strong></td>
  30. </tr>
  31. <?
  32. foreach ($FrontLineSupport as $Support) {
  33. list($ID, $Class, $Username, $Paranoia, $LastAccess, $SupportFor) = $Support;
  34. make_staff_row($ID, $Paranoia, $Class, $LastAccess, $SupportFor);
  35. } ?>
  36. </table>
  37. <? }
  38. if ($ForumStaff) { ?>
  39. </div><br />
  40. <div class="box pad" style="padding: 0px 10px 10px 10px;">
  41. <br />
  42. <h3 id="forum_mods">Forum Moderators</h3>
  43. <p>Forum Moderators are users who have been promoted to help moderate the forums. They can only help with forum-oriented questions.</p>
  44. <table class="staff" width="100%">
  45. <tr class="colhead">
  46. <td style="width: 130px;">Username</td>
  47. <td style="width: 130px;">Last seen</td>
  48. <td><strong>Remark</strong></td>
  49. </tr>
  50. <?
  51. foreach ($ForumStaff as $Support) {
  52. list($ID, $Class, $Username, $Paranoia, $LastAccess, $SupportFor) = $Support;
  53. make_staff_row($ID, $Paranoia, $Class, $LastAccess, $SupportFor);
  54. } ?>
  55. </table>
  56. <?
  57. }
  58. $CurClass = 0;
  59. $CloseTable = false;
  60. foreach ($Staff as $StaffMember) {
  61. list($ID, $Class, $ClassName, $Username, $Paranoia, $LastAccess, $Remark) = $StaffMember;
  62. if ($Class != $CurClass) { // Start new class of staff members
  63. if ($CloseTable) {
  64. $CloseTable = false;
  65. // the "\t" and "\n" are used here to make the HTML look pretty
  66. echo "\t\t</table>\n\t\t<br />\n";
  67. }
  68. $CurClass = $Class;
  69. $CloseTable = true;
  70. $DevDiv = false;
  71. $AdminDiv = false;
  72. $HTMLID = '';
  73. switch ($ClassName) {
  74. case 'Moderator':
  75. printSectionDiv("Moderators");
  76. $HTMLID = 'mods';
  77. break;
  78. case 'Developer':
  79. $HTMLID = 'devs';
  80. break;
  81. case 'Lead Developer':
  82. $HTMLID = 'lead_devs';
  83. break;
  84. case 'System Administrator':
  85. $HTMLID = 'sys_admins';
  86. break;
  87. case 'Administrator':
  88. $HTMLID = 'admins';
  89. break;
  90. case 'Sysop':
  91. $HTMLID = 'sysops';
  92. break;
  93. default:
  94. $HTMLID = '';
  95. }
  96. switch ($ClassName) {
  97. case 'Developer':
  98. case 'Lead Developer':
  99. if (!$DevDiv) {
  100. printSectionDiv("Development");
  101. $DevDiv = true;
  102. }
  103. break;
  104. case 'System Administrator':
  105. case 'Administrator':
  106. case 'Sysop':
  107. if (!$AdminDiv) {
  108. printSectionDiv("Administration");
  109. $AdminDiv = true;
  110. }
  111. }
  112. if ($HTMLID != 'mods') {
  113. echo "\t\t<h3 style=\"font-size: 17px;\" id=\"$HTMLID\"><i>".$ClassName."s</i></h3>\n";
  114. } else {
  115. echo "\t\t<h2 style='text-align: left'>" . $ClassName . "s</h2>\n";
  116. }
  117. ?>
  118. <table class="staff" width="100%">
  119. <tr class="colhead">
  120. <td style="width: 130px;">Username</td>
  121. <td style="width: 130px;">Last seen</td>
  122. <td><strong>Remark</strong></td>
  123. </tr>
  124. <?
  125. } // End new class header
  126. $HiddenBy = 'Hidden by staff member';
  127. // Display staff members for this class
  128. make_staff_row($ID, $Paranoia, $Class, $LastAccess, $Remark, $HiddenBy);
  129. } ?>
  130. </table>
  131. </div>
  132. </div>
  133. <?
  134. View::show_footer();
  135. ?>