sortColumn = LIB_SORT_DEFAULT; $sortCriteria->ascending = true; // For filtering $llView = "All Logical Libraries"; $enclView = "All Enclosures"; // for sorting $sortBy = "Index"; // for displaying message box $errorCode = 0; $displayMessage = 0; // 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"]; $sortBy = $_REQUEST["sortBy"]; $errorCode= $_REQUEST["errorCode"]; $displayMessage = $_REQUEST["Message"]; $returnMessage = $_REQUEST["returnMessage"]; } // Get necessary data from the library //$counts = get_all_resource_counts($user); $counts = get_library_summary_info($user); $loglibs = get_logical_libraries($user, $sortCriteria); $enclosures = get_chassis($user); $sortCriteria->sortColumn = DRV_SORT_DEFAULT; $status_drives = get_all_drives($user, $sortCriteria); $numStatusDrives = count($status_drives); $tempIndex = 0; $driveIndex = 0; $numlogLibs = count($loglibs); // for each logical library, get the drive Slot information for ($i = 0; $i <$numlogLibs; $i++) { // store the index of this logical library for later use $libIndex[$loglibs[$i]->name] = $i; //$drives = get_all_drives_by_library($user, $loglibs[$i]->guid, $sortCriteria, (int)2, $loglibs[$i]->mediaTypeCode); // store the returned array of slots to a temp array $temp_drives = get_media_sources($user, $sortCriteria, $loglibs[$i]->guid); $numTempDrives = count($temp_drives); // for all the destination slots available in this logical library for ($j = 0; $j < $numTempDrives; $j++) { if ($temp_drives[$j]->slotType == "Drive") { $drives[$driveIndex] = $temp_drives[$j]; error_log(print_r($drives[$driveIndex],true)); for ($s=0; $s < $numStatusDrives; $s++) { if ($status_drives[$s]->location == $drives[$driveIndex]->location) { $drives[$driveIndex]->status = $status_drives[$s]->status; $drives[$driveIndex]->mediaType = $status_drives[$s]->mediaType; } } $driveIndex++; } } $temp_drives = ""; } // get the counts needed to display the main table $numEmptyIOs = $counts->avail_mailbox_count; $numRows = count($drives); $numEnclosures = count($enclosures); // sort the table data based on the sortBy value $oldi = sortDrives($drives, $sortBy); // 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); $numRowsDisplayed = $divAttributes['numDisplay']; ?> Drives
0) { ?>
Error Message Image Error Message

Error code:
Informational Message Image

Operation Complete

Close Message

Unload Drives

Last refresh:

Empty I/O station slots:



Loaded Drives:
Select All Deselect All
location[0]; // if the enclosure (chassis) location is negative, append the numeric value to the // '-' to identify the enclosure if (!strcmp($chass, '-')) { $chass = $drive->location[0].$drive->location[1]; } // If this row item meets the filter requirements, build the row data // filter requirement: // The item is in both the selected logical library and the selected enclosure if ((!strcmp($llView, "All Logical Libraries") && !strcmp($enclView, "All Enclosures")) || (!strcmp($llView, $drive->name) && !strcmp($enclView, "All Enclosures")) || (!strcmp($llView, "All Logical Libraries") && !strcmp($enclView, $chass)) || (!strcmp($llView, $drive->name) && !strcmp($enclView, $chass))) { // retrieve the correct index into the array of logical libraries // based on the library name $llIndex = $libIndex[$drive->name]; // store the drive slot Id to the drive checkbox id attribute // store the id of the logical library in which the drive belongs to // in the value attribute of the drive checkbox ?>
Select LocationClick to Sort Ascending Logical LibraryClick to Sort Ascending Media TypeClick to Sort Ascending Volume Serial NumberClick to Sort Ascending Element AddressClick to Sort Ascending StatusClick to Sort Ascending
location;?> name;?> mediaType;?> barcode;?> logicalAddress;?> status;?>
Total: Filtered: Displayed: Selected: 0