sortColumn = SLOT_SORT_DEFAULT; $sortCriteria->ascending = true; // Used for Filtering $llView = "All Logical Libraries"; $enclView = "All Enclosures"; // Used for Sorting $sortBy = "Index"; // Used for Message box $errorCode = 0; $displayMessage = 0; //no // Get necessary data from the library // $counts = get_all_resource_counts($user); $counts = get_library_summary_info($user); $enclosures = get_chassis($user); $loglibs = get_logical_libraries($user, $sortCriteria); $i = 0; $tmp_carts = get_physical_slots($user, $sortCriteria); // filter slots to only show carts in storage foreach ($tmp_carts as $tmp_cart) { // error_log('Here is a cart: '.$tmp_cart->barcode); if ($tmp_cart->barcode) { $tmp_cart->name = "Unassigned"; $carts[$i] = $tmp_cart; $i++; } } /* until we can see unassigned cartridges in I/O $tmp_carts = ""; $tmp_carts = get_physical_mailbox($user, $sortCriteria, (int)2); foreach ($tmp_carts as $tmp_cart) { // error_log('Here is a cart: '.$tmp_cart->barcode); // if ($tmp_cart->barcode) { // $tmp_cart->name = "Unassigned"; $carts[$i] = $tmp_cart; $i++; } } */ $tmp_carts = ""; // traverse the logical libraries to get slot information foreach ($loglibs as $loglib) { // store to a temporary array $tmp_carts = get_media_sources($user, $sortCriteria, $loglib->guid); // filter slots to only show carts in storage foreach ($tmp_carts as $tmp_cart) { // filter for only storage slots //if ($tmp_cart->slotType == "Storage") { $carts[$i] = $tmp_cart; $i++; } } $tmp_carts = ""; } // If a post, then this is a return from an operation // retrieve the results of the operation if ($_SERVER['REQUEST_METHOD'] == "POST") { $llView = $_REQUEST["llView"]; $enclView = $_REQUEST["enclView"]; $sortBy = $_REQUEST["sortBy"]; $errorCode= $_REQUEST["errorCode"]; $displayMessage = $_REQUEST["Message"]; $returnMessage = $_REQUEST["returnMessage"]; $selectedGuids = split(":", $_REQUEST['srcGuid']); } // get the counts needed to display the main table $numEmptyIOs = $counts->avail_mailbox_count; $numRows = count($carts); $numlogLibs = count($loglibs); $numEnclosures = count($enclosures); $numSelectedGuids = count($selectedGuids); // 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 main data table $divAttributes = calculateDivAttributes($llView, $enclView, $carts, $numRows, MAX_ROWS, MAX_SIZE_DATA_LIST); $numRowsDisplayed = $divAttributes['numDisplay']; ?>