ascending = true; $sortCriteria->sortColumn = LIB_SORT_DEFAULT; $numRows = 0; $numLogLibs = 0; $empty_cleaning = 0; $empty_data = 0; // Used for Filtering $llView = "All Logical Libraries"; $enclView = "All Enclosures"; // Used for Sorting $sortBy = "location"; $cartView = "Assigned"; // Used for Message box $errorCode = 0; $displayMessage = 0; if ($_SERVER['REQUEST_METHOD'] == "POST" ) { $cartView = $_REQUEST['cartView']; if ($cartView != "Unassigned") { $cartView = "Assigned"; //to ensure a default } $sortBy = $_REQUEST["sortBy"]; $errorCode= $_REQUEST["errorCode"]; $displayMessage = $_REQUEST["Message"]; $returnMessage = $_REQUEST["returnMessage"]; } // Get necessary data from the library $counts = get_library_summary_info($user); //error_log(print_r($counts, true)); $loglibs = get_logical_libraries($user, $sortCriteria); //error_log(print_r($loglibs, true)); $i = 0; $j = 0; $cartIndex = 0; $carts = get_physical_mailbox($user, $sortCriteria, (int)2); error_log(print_r($carts, true)); $tmp_carts = ""; $tempIndex = 0; $numLogLibs = count($loglibs); // traverse the logical libraries to get slot information for ($loglibIndex = 0; $loglibIndex < $numLogLibs; $loglibIndex++) { $libIndex[$loglibs[$loglibIndex]->name] = $loglibIndex; if ($loglibIndex == 0) { $allLibNames = $loglibs[$loglibIndex]->name; $allLibGuids = $loglibs[$loglibIndex]->guid; } else { $allLibNames = $allLibNames.":".$loglibs[$loglibIndex]->name; $allLibGuids = $allLibGuids.":".$loglibs[$loglibIndex]->guid; } $media_sources = get_mailbox($user, $sortCriteria, (int)2, $loglibs[$loglibIndex]->guid); error_log(print_r($media_sources, true)); $numMediaSources = count($media_sources); for ($i = 0; $i < $numMediaSources; $i++) { $duplicateFound = 0; $numCarts = count($carts); $j = 0; while (($j < $numCarts) && ($duplicateFound == 0)) { if (($media_sources[$i]->barcode == $carts[$j]->barcode) && $media_sources[$i]->barcode != "No_Label") { $carts[$j]->name = "Unassigned"; $duplicateFound = 1; } if (($media_sources[$i]->guid == $carts[$j]->guid) && $media_sources[$i]->barcode == "No_Label") { $carts[$j]->name = "Unassigned"; $duplicateFound = 1; } $j++; } if ($duplicateFound == 0) { array_push($carts, $media_sources[$i]); $cartIndex++; } } } // get the counts needed to display the main table $numRows = count($carts); $empty_cleaning = $counts->avail_cleaning_slot_count; // 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 counts table if ($numLogLibs >= MAX_ROWS_IO_LIB) { // table is big enough to require scrolling $div1Attributes['divClass'] = "table-scroll"; $div1Attributes['thClass'] = "table-noscroll"; $div1Attributes['divHeight'] = MAX_SIZE_IO_LIB; } else { // table does not require scrolling $div1Attributes['divClass'] = ""; $div1Attributes['thClass'] = ""; $div1Attributes['divHeight'] = ""; } // determine the attributes for the div that handles displaying and scrolling // for the main data table $divAttributes = calculateDivAttributes($llView, $enclView, $carts, $numRows, MAX_ROWS_IO_LIST, MAX_SIZE_IO_LIST); $numRowsDisplayed = $divAttributes['numDisplay']; ?> Input/Output Station
0) { ?>
Error Message Image Error Message

Error code:
Informational Message Image

Operation Complete

Close Message

I/O Station

  Last refresh:

Slot Availability:
totalSlots - $loglibs[$i]->fullSlots; ?>
Logical Library Available Slots
name;?>
Cleaning slots

Cartridges in I/O Station(s):
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]; } // 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($cartView, "Assigned") && $cart->assigned == 1)) || // (!strcmp($cartView, "Unassigned") && $cart->assigned == 0))) { // If this is a cleaning cartridge if ((strncmp($cart->barcode, "CLN", 3) == 0) && (($cart->name == "Physical Library") || ($cart->name == "Unassigned"))) { $q = "All"; $cart->name = "Cleaning Slot"; } else if ($cart->name == "" || $cart->name == "Unassigned") { $q = "Unassigned"; } else if ($cart->name == "Physical Library" && (strncmp($cart->barcode, "CLN", 3) != 0)) { $q = "System"; } else { // retrieve the correct index into the array of logical libraries // based on the library name $q = $libIndex[$cart->name]; } // store the Slot Id in the sourceSelect value ?>
Select Volume Serial NumberClick to Sort Ascending Logical LibraryClick to Sort Ascending Media TypeClick to Sort Ascending LocationClick to Sort Descending
barcode;?>   name, "") == 0) { print("Unassigned"); } else if(strcmp($cart->name, "Physical Library") == 0) { print("System"); } else { print($cart->name); } ?> mediaType;?> location;?>
Total: Selected:0