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); $loglibs = get_logical_libraries($user, $sortCriteria); $i = 0; $j = 0; $cartIndex = 0; $tmp_carts = get_physical_mailbox($user, $sortCriteria, (int)2); $numTmpCarts = count($tmp_carts); // filter slots to only show carts in storage for ($j = 0; $j < $numTmpCarts; $j++) { if (strncmp($tmp_carts[$j]->barcode, "CLN", 3) == 0) { $carts[$cartIndex] = $tmp_carts[$j]; //$carts[$cartIndex]->name = "Unassigned"; $cartIndex++; } } $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); $numMediaSources = count($media_sources); for ($mediaIndex = 0; $mediaIndex < $numMediaSources; $mediaIndex++) { $duplicateFound = 0; $numCarts = count($carts); $i = 0; while (($i < $numCarts) && ($duplicateFound == 0)) { if ($media_sources[$mediaIndex]->barcode == $carts[$i]->barcode) { $carts[$i]->name = "Unassigned"; $duplicateFound = 1; } $i++; } if ($duplicateFound == 0) { $carts[$cartIndex] = $media_sources[$mediaIndex]; $cartIndex++; } } } /* $sortCriteria->sortColumn = SLOT_SORT_DEFAULT; $temp_unassigned_carts = get_physical_mailbox($user, $sortCriteria, (int)2); $numTempUnassignedCarts = count($temp_unassigned_carts); $cartIndex = 0; for ($l = 0; $l < $numlogLibs; $l++) { if ($l == 0) { $allLibNames = $loglibs[$l]->name; $allLibGuids = $loglibs[$l]->guid; } else { $allLibNames = $allLibNames.":".$loglibs[$l]->name; $allLibGuids = $allLibGuids.":".$loglibs[$l]->guid; } // store the index of this logical library for later use $libIndex[$loglibs[$l]->name] = $l; $temp_carts = get_mailbox($user, $sortCriteria,(int)2, $loglibs[$l]->guid); $numTempCarts = count($temp_carts); for ($t = 0; $t < $numTempCarts; $t++) { $temp_assigned_carts[$cartIndex] = $temp_carts[$t]; $cartIndex++; } } $numTempAssignedCarts = count($temp_assigned_carts); $cartIndex = 0; for ($t = 0; $t < $numTempAssignedCarts; $t++) { $duplicateFound = 0; $IsAssigned = 1; for ($i = 0; $i < $numTempAssignedCarts; $i++) { if (($i != $t) && ($temp_assigned_carts[$i]->barcode == $temp_assigned_carts[$t]->barcode)) { $IsAssigned = 0; // this has either already been identified as an unassigned cartridge or we are viewing only Assigned cartridges if (($t > $i) || ($cartView == "Assigned")) { $duplicateFound = 1; } } } if ($duplicateFound == 0) { if ($cartView == "Assigned") { $carts[$cartIndex] = $temp_assigned_carts[$t]; $cartIndex++; } if (($cartView == "Unassigned") && ($IsAssigned == 0)) { $carts[$cartIndex] = $temp_assigned_carts[$t]; $carts[$cartIndex]->name = "Unassigned"; $cartIndex++; } } } for ($t = 0; $t < $numTempUnassignedCarts; $t++) { if (strncmp($temp_unassigned_carts[$t]->barcode, "CLN", 3) == 0) { $carts[$cartIndex] = $temp_unassigned_carts[$t]; $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

Input/Output 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"))) { $l = "All"; $cart->name = "Cleaning Slot"; } else if ($cart->name == "Unassigned") { $l = "Unassigned"; } else { // retrieve the correct index into the array of logical libraries // based on the library name $l = $libIndex[$cart->name]; } // store the Slot Id in the sourceSelect value ?>
Select Volume Serial Number Click to Sort Ascending Logical Library Click to Sort Ascending Media Type Click to Sort Ascending Location Click to Sort Descending
barcode;?>  name;?> mediaType;?> location;?>
Total: Selected: 0