1, "s_vendor" => 13, "s_serial" => 15, "s_fwVersion" => 16, "s_status" => 17, "s_mediaType" => 19, "s_protocol" => 21); if ($_SERVER[REQUEST_METHOD] == "POST") { $sortCriteria->sortColumn = $columnMap[$_POST['orderOn']]; $sortCriteria->ascending =(($_POST['orderBy']=="ASC")?(1):(0)); $sortCriteria->filterPattern = $_POST['filterPattern']; $libraryGUID = $_POST['libraryGUID']; $mediaTypeCode = (int)$_POST['mediaTypeCode']; } else { $sortCriteria->sortColumn = $columnMap['s_location']; $sortCriteria->ascending = 1; $sortCriteria->filterPattern = "*"; $libraryGUID = $_GET['libraryGUID']; $mediaTypeCode = (int)$_GET['mediaTypeCode']; } if( $libraryGUID == 'unassigned') { $drives = get_available_drives_by_type($user, $sortCriteria, 1); } else if ( $libraryGUID == 'all' ) { $drives = get_all_drives($user, $sortCriteria); $libs = get_logical_libraries($user, $sortCriteria); foreach( $libs as $partition) { $libraryCommandPathDrives = get_command_path_drives($user, $partition->guid); if( $commandPathDrives ) { $commandPathDrives = array_merge($commandPathDrives, $libraryCommandPathDrives); } else { $commandPathDrives = $libraryCommandPathDrives; } } } else { $drives = get_all_drives_by_library($user, $libraryGUID, $sortCriteria, (int)0,(int)MEDIA_TYPE_ANY); $commandPathDrives = get_command_path_drives($user, $libraryGUID); } $numRows = count($drives); $numPages = ceil($numRows / ITEMS_PER_PAGE); $lowPageList = 1; $highPageList = min($numRows, ITEMS_PER_PAGE); ?> Drive Unload List
wwnn; if ($drive->wwnn == "") { $deviceId = $drive->scsiId; } $commandPath = "No"; if( $drive->name != 'Physical Library' && $commandPathDrives) { foreach($commandPathDrives as $commandPathDrive) { if( $drive->guid == $commandPathDrive) { $commandPath = "Yes"; break; } } } ?>