sortColumn = DRV_SORT_LOC; $sortCriteria->ascending = true; // For filtering the drives $llView = "All Logical Libraries"; $enclView = "All Enclosures"; // for displaying message box $errorCode = 0; $displayMessage = 0; // get all the information from the library we will need $temp_drives = get_all_drives($user, $sortCriteria); $counts = get_library_summary_info($user); $loglibs = get_logical_libraries($user, $sortCriteria); //gets logical libraries for user $enclosures = get_chassis($user); //Create array of logical library names that user has access to $names_of_loglibs = array(); $drives = array(); foreach($loglibs as $temp_lib) { $names_of_loglibs[] = $temp_lib->name; } error_log("\nNames of logical library user has access: \n".print_r($names_of_loglibs, true)); foreach($temp_drives as $drive) { if(in_array($drive->name, $names_of_loglibs)) { $drives[] = $drive; } } //error_log("Drives user has access to:".print_r($drives, true)); //error_log("LogLibs :".print_r($loglibs, true)); // If a post, then this is a return from an operation // retrieve the results of the operation if ($_SERVER['REQUEST_METHOD'] == "POST") { $llView = $_REQUEST["llView"]; $enclView = $_REQUEST["enclView"]; $errorCode = $_REQUEST["errorCode"]; $displayMessage = $_REQUEST["Message"]; $returnMessage = $_REQUEST["returnMessage"]; } // get the counts needed to display the main table $numEmptyIOs = $counts->avail_mailbox_count; $numCleans = $counts->full_cleaning_slot_count; $numRows = count($drives); $numlogLibs = count($loglibs); $numEnclosures = count($enclosures); // determine the attributes for the div that handles displaying and scrolling // for the main data table $divAttributes = calculateDivAttributes($llView, $enclView, $drives, $numRows, MAX_ROWS, MAX_SIZE_DRIVE_LIST); // how many rows are being displayed after filters are being applied $numRowsDisplayed = $divAttributes['numDisplay']; ?>