sortColumn = SLOT_SORT_DEFAULT; $sortCriteria->ascending = true; // if this is a post, this is a request to move data // retrieve the source information for this move // from the post values if ($_SERVER['REQUEST_METHOD'] == "POST") { $url = $_REQUEST['url']; $libGuid = $_REQUEST['libGuids']; $srcGuid = $_REQUEST['srcGuids']; } // Get necessary data from the library $carts = get_media_sources($user, $sortCriteria, $libGuid); $loglibs = get_logical_libraries($user, $sortCriteria); foreach ($carts as $cart) { if ($cart->guid == $srcGuid) { $srcBarcode = $cart->barcode; $srcLib = $cart->name; $srcMediaType = $cart->mediaType; $srcSlotType = $cart->slotType; $srcLoc = $cart->location; $mediaTypeCode = $cart->mediaTypeCode; $srcLogicalAddress = $cart->logicalAddress; } } $i = 0; foreach ($loglibs as $loglib) { $r = $loglib->name; $libraryGuids[$r] = $loglib->guid; $empty_slots = get_available_storage_slots($user, $loglib->guid); $num_empty_slots = count($empty_slots); // get slot destinations from the library //$temp_slots = get_media_destinations_by_type($user, $sortCriteria, $loglib->guid, $mediaTypeCode); $temp_slots = get_media_destinations_by_type($user, $sortCriteria, $loglib->guid, (int)MEDIA_TYPE_ANY); $numTemp_Slots = count($temp_slots); for ($j = 0; $j < $numTemp_Slots; $j++) { for ($eIndex=0; $eIndex<$num_empty_slots; $eIndex++) { if ($empty_slots[$eIndex]->location == $temp_slots[$j]->location) { $tmp_slots[$i] = $temp_slots[$j]; $i++; } } } } $i = 0; // filter slots to only show storage and drive slots foreach ($tmp_slots as $tmp_slot) { if ($tmp_slot->slotType == "Storage" /*|| $tmp_slot->slotType == "Drive"*/) { $slots[$i] = $tmp_slot; $i++; } } // store the number of rows to be displayed in the destination table $numRows = count($slots); // determine the attributes for the div that handles displaying and scrolling // for the main data table $divAttributes = calculateDivAttributes("All Logical Libraries", "All Enclosures", $slots, $numRows, MAX_ROWS_MOVE, MAX_SIZE_DATA_MOVE_LIST); ?>