= ".$Classes[MOD]['Level']." AND 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) = 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 = get_url(); if(empty($CurURL)) { $CurURL = "staffpm.php?"; } else { $CurURL = "staffpm.php?".$CurURL."&"; } $Pages=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 = user_info($UserID); $UserStr = format_username($UserID, $UserInfo['Username'], $UserInfo['Donor'], $UserInfo['Warned'], $UserInfo['Enabled'], $UserInfo['PermissionID']); // 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 = user_info($AssignedToUser); $Assigned = format_username($AssignedToUser, $UserInfo['Username'], $UserInfo['Donor'], $UserInfo['Warned'], $UserInfo['Enabled'], $UserInfo['PermissionID']); } // Get resolver if ($ViewString == 'Resolved') { $UserInfo = user_info($ResolverID); $ResolverStr = format_username($ResolverID, $UserInfo['Username'], $UserInfo['Donor'], $UserInfo['Warned'], $UserInfo['Enabled'], $UserInfo['PermissionID']); } // Table row ?> set_query_id($StaffPMs); } // Close table and multiresolve form ?>
Subject Sender Date Assigned to Resolved by