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']; $guids = $_REQUEST['srcGuids']; $libGuids = $_REQUEST['libGuids']; $srcGuids = split(':', $_REQUEST['srcGuids']); $srclibGuids = split(':', $_REQUEST['srclibGuids']); } // Get necessary data from the library $loglibs = get_logical_libraries($user, $sortCriteria); $numLogLibs = count($loglibs); $numGuids = count($srcGuids); $cartIndex = 0; for ($l = 0; $l < $numLogLibs; $l++) { $libGuid = $loglibs[$l]->guid; $tmp_carts = get_media_sources($user, $sortCriteria, $libGuid); $empty_slots = get_available_storage_slots($user, $libGuid); $loglibs[$l]->num_empty_slots = count($empty_slots); $numTmpCarts = count($tmp_carts); for ($tmpIndex = 0; $tmpIndex < $numTmpCarts; $tmpIndex++) { for ($guidIndex = 0; $guidIndex < $numGuids; $guidIndex++) { if ($srcGuids[$guidIndex] == $tmp_carts[$tmpIndex]->guid) { $carts[$cartIndex] = $tmp_carts[$tmpIndex]; $cartIndex++; } } } } //Store information for outgoing form $partitionName = ''; $barcode = ''; $elementAddress = ''; for($x = 0; $x < $cartIndex; $x++) { if($x == 0 ) { $partitionName = $carts[$x]->name; $barcode = $carts[$x]->barcode; $elementAddress = $carts[$x]->logicalAddress; } else{ $partitionName .= ":".$carts[$x]->name; $barcode .= ":".$carts[$x]->barcode; $elementAddress .= ":".$carts[$x]->logicalAddress; } } // store the number of rows to be displayed in the destination table $numRows = count($carts); // determine the attributes for the div that handles displaying and scrolling // for the main data table $divAttributes = calculateDivAttributes("All Logical Libraries", "All Enclosures", $carts, $numRows, MAX_ROWS_MOVE, MAX_SIZE_DATA_MOVE_LIST); ?>