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['dataGuids']; } error_log($url.",".$libGuid.",".$srcGuid); // Get necessary data from the library $carts = get_media_sources($user, $sortCriteria, $libGuid); 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; } } // get slot destinations from the library //$tmp_slots = get_media_destinations_by_type($user, $sortCriteria, $libGuid, $mediaTypeCode); $tmp_slots = get_media_destinations_by_type($user, $sortCriteria, $libGuid, (int)MEDIA_TYPE_ANY); $i = 0; // filter slots to only show storage and drive slots foreach ($tmp_slots as $tmp_slot) { if ($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); ?>