= 700) { $ViewString = 'My unanswered'; $WhereCondition = "WHERE ((Level >= ".max($Classes[MOD]['Level'],700)." AND Level <= $UserLevel) OR AssignedToUser='".$LoggedUser['ID']."') AND Status='Unanswered'"; } elseif ($UserLevel == 650) { // Forum Mods $ViewString = 'My unanswered'; $WhereCondition = "WHERE (Level = $UserLevel OR AssignedToUser='".$LoggedUser['ID']."') AND Status='Unanswered'"; } else { // FLS $ViewString = 'Unanswered'; $WhereCondition = "WHERE (Level <= $UserLevel OR AssignedToUser='".$LoggedUser['ID']."') AND Status='Unanswered'"; } break; } list($Page, $Limit) = Format::page_limit(MESSAGES_PER_PAGE); // Get messages $StaffPMs = $DB->query(" SELECT SQL_CALC_FOUND_ROWS ID, Subject, UserID, Status, Level, AssignedToUser, Date, Unread, ResolverID FROM staff_pm_conversations $WhereCondition ORDER BY $SortStr Level DESC, Date DESC LIMIT $Limit "); $DB->query('SELECT FOUND_ROWS()'); list($NumResults) = $DB->next_record(); $DB->set_query_id($StaffPMs); $CurURL = Format::get_url(); if (empty($CurURL)) { $CurURL = 'staffpm.php?'; } else { $CurURL = 'staffpm.php?'.$CurURL.'&'; } $Pages = Format::get_pages($Page, $NumResults, MESSAGES_PER_PAGE, 9); $Row = 'a'; // Start page ?>

Staff PMs



record_count() == 0) : // No messages ?>

No messages

next_record()) : $Row = ($Row === 'a') ? 'b' : 'a'; $RowClass = 'row'.$Row; //$UserInfo = Users::user_info($UserID); $UserStr = Users::format_username($UserID, true, true, true, true); // Get assigned if ($AssignedToUser == '') { // Assigned to class $Assigned = ($Level == 0) ? 'First Line Support' : $ClassLevels[$Level]['Name']; // No + on Sysops if ($Assigned != 'Sysop') { $Assigned .= "+"; } } else { // Assigned to user // $UserInfo = Users::user_info($AssignedToUser); $Assigned = Users::format_username($AssignedToUser, true, true, true, true); } // Get resolver if ($ViewString == 'Resolved') { //$UserInfo = Users::user_info($ResolverID); $ResolverStr = Users::format_username($ResolverID, true, true, true, true); } // Table row ?> set_query_id($StaffPMs); endwhile; // Close table and multiresolve form ?>
Subject Sender Date Assigned to Resolved by