include('user_inc.htm'); if (isset($_GET['libGUID'])) { $libGUID = $_GET['libGUID']; $sortCriteria = new SortCriteria(); $sortCriteria->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 ) ); $commandPathDrives = get_command_path_drives($user, $libGUID); error_log("get_command_path_drives returned:\n". print_r( $commandPathDrives, true ) ); // 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, 1); error_log("get_available_drives_by_type returned:\n". print_r( $unassignedDrives, true ) ); $drives = array_merge($assignedDrives, $unassignedDrives); error_log("All drives merged togather are:\n". print_r( $drives, true ) ); error_log("==========================================================================="); } ?>
// If the Drive is NOT Ready and NOT part of the partition don't let them add it if( $drive->isReady || !$checked == "" ) { ?> value="= $drive->guid ?>" = $disabled ?>> } ?> | = $drive->location ?> | = $drive->interfaceType ?> | = $drive->driveType ?> | = $drive->status ?> | = $drive->isReady == '1' ? "Ready" : "Not-Ready" ?> |