$rows = ceil($counter / $cols); $cols = $counter < $cols ? $counter : $cols; $r = 0; $htmlout .= "<div class='global_text'><div class='headline'>{$staffclass}</div><table width='100%' border='0' cellpadding='3'>"; for ($ia = 0; $ia < $rows; $ia++) { $htmlout .= "<tr>"; for ($i = 0; $i < $cols; $i++) { if (isset($staff[$r])) { $htmlout .= "<td class='staff_username'><a href='userdetails.php?id=" . (int) $staff[$r]['id'] . "'><font color='#" . get_user_class_color($staff[$r]['class']) . "'><b>" . htmlsafechars($staff[$r]['username']) . "</b></font></a></td>" . "\n <td class='staff_online'><img style='vertical-align: middle;' src='images/staff" . ($staff[$r]['last_access'] > $dt && $staff[$r]['perms'] < bt_options::PERMS_STEALTH ? "/online.png" : "/offline.png") . "' border='0' height='16' alt='' /></td>" . "\n <td class='staff_online'><a href='pm_system.php?action=send_message&receiver=" . (int) $staff[$r]['id'] . "&returnto=" . urlencode($_SERVER['REQUEST_URI']) . "'><img style='vertical-align: middle;' src='{$INSTALLER09['pic_base_url']}mailicon.png' border='0' title=\"Personal Message\" alt='' /></a></td>" . "\n <td class='staff_online'><img style='vertical-align: middle;' height='16' src='{$INSTALLER09['pic_base_url']}flag/" . htmlsafechars($staff[$r]['flagpic']) . "' border='0' alt='" . htmlsafechars($staff[$r]['name']) . "' /></td>"; $r++; } else { $htmlout .= "<td> </td>"; } } $htmlout .= "</tr>"; } $htmlout .= "</table></div>"; return $htmlout; } $htmlout .= DoStaff($sysop, "Sysops"); $htmlout .= isset($admin) ? DoStaff($admin, "Administrator") : DoStaff($admin = false, "Administrator"); $htmlout .= isset($mods) ? DoStaff($mods, "Moderators") : DoStaff($mods = false, "Moderators"); $dt = TIME_NOW - 180; if (!empty($support)) { foreach ($support as $a) { $firstline .= "<tr><td class='staff_username'><a href='userdetails.php?id=" . (int) $a['id'] . "'><font color='#" . get_user_class_color($a['class']) . "'><b>" . htmlsafechars($a['username']) . "</b></font></a></td>\n <td class='staff_online'><img style='vertical-align: middle;' src='{$INSTALLER09['pic_base_url']}" . ($a['last_access'] > $dt ? "online.png" : "offline.png") . "' border='0' alt='' /></td>" . "<td class='staff_online'><a href='pm_system.php?action=send_message&receiver=" . (int) $a['id'] . "'>" . "<img style='vertical-align: middle;' src='{$INSTALLER09['pic_base_url']}mailicon.png' border='0'title=\"{$lang['alt_pm']}\" alt='' /></a></td>" . "<td class='staff_online'><img style='vertical-align: middle;' src='{$INSTALLER09['pic_base_url']}flag/" . htmlsafechars($a['flagpic']) . "' border='0' alt='" . htmlsafechars($a['name']) . "' /></td>" . "<td class='staff_online'>" . htmlsafechars($a['supportfor']) . "</td></tr>"; } $htmlout .= "\n <div class='global_text'><div class='headline'>{$lang['header_fls']}</div><table width='100%' border='0' cellpadding='3'>\n <tr>\n <td class='staff_username' colspan='2'>{$lang['text_first']}<br /><br /></td>\n </tr>\n <tr>\n <td class='staff_username' align='left'><b>{$lang['first_name']} </b></td>\n <td class='staff_online'><b>{$lang['first_active']} </b></td>\n <td class='staff_online'><b>{$lang['first_contact']} </b></td>\n <td class='staff_online'><b>{$lang['first_lang']}</b></td>\n <td class='staff_online'><b>{$lang['first_supportfor']}</b></td>\n </tr>" . $firstline . ""; $htmlout .= "</table></div>"; } echo stdhead('Staff', true, $stdhead) . $htmlout . stdfoot();
$htmlout .= "<div class='global_text'><div class='headline'><h2>{$staffclass}</h2></div><div class='row'><div class='col-md-12'><table class='table table-bordered'>"; for ($ia = 0; $ia < $rows; $ia++) { $htmlout .= "<tr>"; for ($i = 0; $i < $cols; $i++) { if (isset($staff[$r])) { $htmlout .= "<td class='staff_username'><a href='userdetails.php?id=" . (int) $staff[$r]['id'] . "'><font color='#" . get_user_class_color($staff[$r]['class']) . "'><b>" . htmlsafechars($staff[$r]['username']) . "</b></font></a></td>" . "\n <td class='staff_online'><img style='vertical-align: middle;' src='images/staff" . ($staff[$r]['last_access'] > $dt && $staff[$r]['perms'] < bt_options::PERMS_STEALTH ? "/online.png" : "/offline.png") . "' border='0' height='16' alt='' /></td>" . "\n <td class='staff_online'><a href='pm_system.php?action=send_message&receiver=" . (int) $staff[$r]['id'] . "&returnto=" . urlencode($_SERVER['REQUEST_URI']) . "'><img style='vertical-align: middle;' src='{$INSTALLER09['pic_base_url']}mailicon.png' border='0' title=\"Personal Message\" alt='' /></a></td>" . "\n <td class='staff_online'><img style='vertical-align: middle;' height='16' src='{$INSTALLER09['pic_base_url']}flag/" . htmlsafechars($staff[$r]['flagpic']) . "' border='0' alt='" . htmlsafechars($staff[$r]['name']) . "' /></td>"; $r++; } else { $htmlout .= "<td> </td>"; } } $htmlout .= "</tr>"; } $htmlout .= "</table></div></div></div>"; return $htmlout; } $i = UC_MAX; while ($i >= UC_STAFF) { isset($staffs[$i]) ? DoStaff($staffs[$i], $class_names[$i]) : DoStaff($staffs[$i] = false, $class_names[$i]); $htmlout .= DoStaff($staffs[$i], $class_names[$i]); $i--; } $dt = TIME_NOW - 180; if (!empty($support)) { foreach ($support as $a) { $firstline .= "<tr><td class='staff_username'><a href='userdetails.php?id=" . (int) $a['id'] . "'><font color='#" . get_user_class_color($a['class']) . "'><b>" . htmlsafechars($a['username']) . "</b></font></a></td>\n <td class='staff_online'><img style='vertical-align: middle;' src='{$INSTALLER09['pic_base_url']}" . ($a['last_access'] > $dt ? "online.png" : "offline.png") . "' border='0' alt='' /></td>" . "<td class='staff_online'><a href='pm_system.php?action=send_message&receiver=" . (int) $a['id'] . "'>" . "<img style='vertical-align: middle;' src='{$INSTALLER09['pic_base_url']}mailicon.png' border='0' title=\"{$lang['alt_pm']}\" alt='' /></a></td>" . "<td class='staff_online'><img style='vertical-align: middle;' src='{$INSTALLER09['pic_base_url']}flag/" . htmlsafechars($a['flagpic']) . "' border='0' alt='" . htmlsafechars($a['name']) . "' /></td>" . "<td class='staff_online'>" . htmlsafechars($a['supportfor']) . "</td></tr>"; } $htmlout .= "\n <div class='global_text'><div class='headline'><h2>{$lang['header_fls']}</h2></div><div class='row'><div class='col-md-12'><table class='table table-bordered'><br>{$lang['text_first']}<br>\n <tr>\n <td class='staff_username' align='left'><b>{$lang['first_name']} </b></td>\n <td class='staff_online'><b>{$lang['first_active']} </b></td>\n <td class='staff_online'><b>{$lang['first_contact']} </b></td>\n <td class='staff_online'><b>{$lang['first_lang']}</b></td>\n <td class='staff_online'><b>{$lang['first_supportfor']}</b></td>\n </tr>" . $firstline . ""; $htmlout .= "</table></div></div></div>"; } echo stdhead('Staff', true, $stdhead) . $htmlout . stdfoot();
$htmlout .= "<br /><table width='75%' border='1' cellpadding='3'>"; $htmlout .= "<tr><td class='colhead' colspan='{$counter}'><h2>{$staffclass}</h2></td></tr>"; for ($ia = 0; $ia < $rows; $ia++) { $htmlout .= "<tr>"; for ($i = 0; $i < $cols; $i++) { if (isset($staff[$r])) { $htmlout .= "<td><a href='userdetails.php?id={$staff[$r]['id']}'>" . $staff[$r]["username"] . "</a>" . " <img style='vertical-align: middle;' src='{$TBDEV['pic_base_url']}staff" . ($staff[$r]['last_access'] > $dt ? "/online.gif" : "/offline.gif") . "' border='0' alt='' />" . "<a href='sendmessage.php?receiver={$staff[$r]['id']}'>" . " <img style='vertical-align: middle;' src='{$TBDEV['pic_base_url']}staff/users.png' border='0' title=\"{$lang['alt_pm']}\" alt='' /></a>" . "<a href='email-gateway.php?id={$staff[$r]['id']}'>" . " <img style='vertical-align: middle;' src='{$TBDEV['pic_base_url']}staff/mail.png' border='0' alt='{$staff[$r]['username']}' title=\"{$lang['alt_sm']}\" /></a>" . " <img style='vertical-align: middle;' src='{$TBDEV['pic_base_url']}flag/{$staff[$r]['flagpic']}' border='0' alt='{$staff[$r]['name']}' /></td>"; $r++; } else { $htmlout .= "<td> </td>"; } } $htmlout .= "</tr>"; } $htmlout .= "</table>"; /* print("</table>"); print("<br /><table border=1><tr>"); for ($i = 0; $i <= count($staff)-1; $i++) { print("<td>{$staff[$i]["username"]}</td>"); } print("</tr></table>"); */ return $htmlout; } $HTMLOUT .= "<h1>{$lang['text_staff']}</h1>"; $HTMLOUT .= DoStaff($sysops, "{$lang['header_sysops']}"); $HTMLOUT .= isset($admins) ? DoStaff($admins, "{$lang['header_admins']}") : DoStaff($admins = false, "{$lang['header_admins']}"); $HTMLOUT .= isset($mods) ? DoStaff($mods, "{$lang['header_mods']}") : DoStaff($mods = false, "{$lang['header_mods']}"); //$HTMLOUT .= isset($vips) ? DoStaff($vips, "{$lang['header_vips']}") : DoStaff($vips=false, "{$lang['header_vips']}"); print stdhead("{$lang['stdhead_staff']}") . $HTMLOUT . stdfoot();