filterColumn = 0; $sortCriteria->ascending = true; // Find all drive in the system that are set for encryption. $eDrives = get_all_drives($user, $sortCriteria); //error_log("get_all_drives:\n". print_r( $eDrives, true ) ); foreach ($eDrives as $drive) { if($drive->encryptionMethod == 4) { $EncryptUsedCnt++; } if($drive->encryptionSupported == 1) { $EncryptCnt++; $encryptedDrives .= $drive->guid . ":"; } } error_log("There were $EncryptUsedCnt drives set to encryption found in the system."); if (isset($_GET['libGUID'])) { $libGUID = $_GET['libGUID']; 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("==========================================================================="); } ?>
isReady || !$checked == "" ) { ?> value="= $drive->guid ?>" = $disabled ?> onclick="deselectAllCheckbox(this, 'driveSelect', 3, 1)"> | = $drive->location ?> | = $drive->interfaceType ?> | = $drive->vendor ?> = $drive->driveType ?> | = $drive->status ?> | = $drive->isReady == '1' ? "Ready" : "Not-Ready" ?> |