0, "c_location" => 1, "c_firmwareVersion" => 16, "c_status" => 17); if ($_SERVER[REQUEST_METHOD] == "POST") { $sortCriteria->sortColumn = $columnMap[$_POST['orderOn']]; $sortCriteria->ascending = $_POST['orderBy'] == "ASC"; $selectedDriveInfo = $_POST['selectedDrivesInfo']; } else { $sortCriteria->sortColumn = $columnMap['c_partitionName']; $sortCriteria->ascending = true; } $driveType = explode(":", $_GET['driveType']); $drives = get_all_drives_by_type($user, (int)$driveType[0], (int)$driveType[1], $sortCriteria); $numRows = count($drives); $numPages = ceil($numRows / ITEMS_PER_PAGE); $lowPageList = 1; $highPageList = min($numRows, ITEMS_PER_PAGE); ?> ');">
driveType); // Strip the - from LTO-3 $driveType = $typeArray[0] . $typeArray[1]; $fwFile = $drive->vendor ."_". $driveType ."_". $drive->interfaceType ."_". $drive->firmwareLevel .".DRV"; error_log("=============== fwFile = " . $fwFile); // Create the Log Dump filename $locArray = split(",", $drive->location); // Strip the , from 0,1 $location = $locArray[0] . $locArray[1]; $ldFile = "UDS_". $location ."_". trim($drive->serialNumber) . $fExt; error_log("=============== ldFile = " . $ldFile); $driveInfo = $drive->slotID . ":" . $drive->libGuid . ":" . $drive->status . ":" . $drive->guid .":". $ldFile; // select the drive that was previously selected after sorting $checked = $driveInfo == $selectedDriveInfo ? "checked" : ""; if( !isset($_GET['fullOK']) ) { error_log("Looking at Full Drives"); $disabled = $drive->mediaPresent == "1" ? "disabled" : ""; } else $disabled = ""; $status = $drive->mediaPresent == "1" ? "Full" : "Empty"; ?>