filterColumn = 0; $sortCriteria->ascending = true; error_log("==========================================================================="); $assignedDrives = get_all_drives_by_library($user, $libGUID, $sortCriteria,(int)0,(int)MEDIA_TYPE_ANY); //error_log("get_all_drives_by_library returned:\n". print_r( $assignedDrives, true ) ); $driveCnt = sizeof($assignedDrives); $libname = $assignedDrives[0]->name; error_log("The current Library name is ". $libname); // TODO: do we need to get by media type? // For now passing in LTO_1 (1) as the media type will get all drives // that support LTO1 drives. $unassignedDrives = get_available_drives_by_type($user, $sortCriteria, (int)MEDIA_TYPE_ANY); //error_log("get_available_drives_by_type returned:\n". print_r( $unassignedDrives, true ) ); $drives = array_merge($assignedDrives, $unassignedDrives); error_log("All drives merged together are:\n". print_r( $drives, true ) ); error_log("==========================================================================="); } ?> Drive Report List encryptionMethod == 4) { $encryptionEnabled = 1; } if($drive->encryptionSupported == 1) { error_log("+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ". $drive->location . "= \n". print_r($drive,true) ); $EncryptCnt++; $encryptedDrives .= $drive->guid . ":"; } } $idx - 0; foreach ($drives as $drive) { // only check the assigned drives $checked = $drive->libGuid == $libGUID ? "checked" : ""; if ($checked) $checkedDrives .= $drive->guid . ":"; $disabled = ""; if ($drive->controlPath == 1) { $disabled = "disabled"; } ?>