sortColumn = SLOT_SORT_DEFAULT; $sortCriteria->ascending = true; // Used for Filtering $llView = "All Logical Libraries"; $enclView = "All Enclosures"; // Used for Sorting $sortBy = "Index"; // Used for Message box $errorCode = 0; $displayMessage = 0; //no // Get necessary data from the library // $counts = get_all_resource_counts($user); $counts = get_library_summary_info($user); $enclosures = get_chassis($user); $loglibs = get_logical_libraries($user, $sortCriteria); $i = 0; $tmp_carts = get_physical_slots($user, $sortCriteria); // filter slots to only show carts in storage foreach ($tmp_carts as $tmp_cart) { // error_log('Here is a cart: '.$tmp_cart->barcode); if ($tmp_cart->barcode) { $tmp_cart->name = "Unassigned"; $carts[$i] = $tmp_cart; $i++; } } /* until we can see unassigned cartridges in I/O $tmp_carts = ""; $tmp_carts = get_physical_mailbox($user, $sortCriteria, (int)2); foreach ($tmp_carts as $tmp_cart) { // error_log('Here is a cart: '.$tmp_cart->barcode); // if ($tmp_cart->barcode) { // $tmp_cart->name = "Unassigned"; $carts[$i] = $tmp_cart; $i++; } } */ $tmp_carts = ""; // traverse the logical libraries to get slot information foreach ($loglibs as $loglib) { // store to a temporary array $tmp_carts = get_media_sources($user, $sortCriteria, $loglib->guid); // filter slots to only show carts in storage foreach ($tmp_carts as $tmp_cart) { // filter for only storage slots //if ($tmp_cart->slotType == "Storage") { $carts[$i] = $tmp_cart; $i++; } } $tmp_carts = ""; } // 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"]; $selectedGuids = split(":", $_REQUEST['srcGuid']); } // get the counts needed to display the main table $numEmptyIOs = $counts->avail_mailbox_count; $numRows = count($carts); $numlogLibs = count($loglibs); $numEnclosures = count($enclosures); $numSelectedGuids = count($selectedGuids); // sort the table data based on the sortBy value $oldi = sortSlots($carts, $sortBy); // determine the attributes for the div that handles displaying and scrolling // for the main data table $divAttributes = calculateDivAttributes($llView, $enclView, $carts, $numRows, MAX_ROWS, MAX_SIZE_DATA_LIST); $numRowsDisplayed = $divAttributes['numDisplay']; ?> Data Cartridges
0) { ?>
Error Message Image Error Message

Error code:
Informational Message Image

Operation Complete

Close Message

Data Cartridges

Last refresh:

Empty I/O station slots:



Data Cartridges:
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 = $cart->location[0].$cart->location[1]; } $isSelected = 0; for ($guiIndex=0; $guiIndex <$numSelectedGuids; $guiIndex++) { if ($selectedGuids[$guiIndex] == $cart->guid) { $isSelected = 1; return; } } // 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, $cart->name) && !strcmp($enclView , "All Enclosures")) || (!strcmp($llView, "All Logical Libraries") && !strcmp($enclView, $chass)) || (!strcmp($llView, $cart->name) && !strcmp($enclView, $chass))) { // get the logical library name in which this cartridge belongs $r = $cart->name; error_log('Cart['.$cart->location.'] Encryption returned by Lib: '.$cart->encryption); switch ($cart->encryption) { case 1: $method = "Not Encrypted"; break; case 2: $method = "Encrypted"; break; default: $method = "N/A"; break; } // store the cartridge id (Slot Id) in the id attribute of the sourceSelect checkbox // store the logical library id (Lib Id) in the value attribute of the sourceSelect checkbox ?> name == "Unassigned") { $unassignedCarts = 1; ?>
Select Volume Serial NumberClick to Sort Ascending Logical LibraryClick to Sort Ascending Media TypeClick to Sort Ascending Slot TypeClick to Sort Ascending LocationClick to Sort Ascending Element AddressClick to Sort Ascending Encryption
*
barcode;?> name;?> mediaType;?> slotType;?> location;?> logicalAddress;?>
Total: Filtered: Displayed: Selected: 0
*Cannot be selected for operations, because the cartridge is not assigned to a logical library.