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); $inuse_edlm_drives=edlm_get_sessiondrives($user); error_log("inuse edlm drives: ".print_r($inuse_edlm_drives,true)); $numRows = count($drives); $numPages = ceil($numRows / ITEMS_PER_PAGE); $lowPageList = 1; $highPageList = min($numRows, ITEMS_PER_PAGE); ?> ');">
vendor == "HP") $fExt = ".ltd"; else $fExt = ".dmp"; } // // Mark inuse edlm drives // if ($inuse_edlm_drives->total_drive_count > 0) { error_log("logicalSerialNumber: ".$drive->logicalSerialNumber); for ($i=0;$i<$inuse_edlm_drives->total_drive_count;$i++) { error_log("serial_number: ".$inuse_edlm_drives->sessiondrives[$i]->serial_number); if ($drive->logicalSerialNumber == $inuse_edlm_drives->sessiondrives[$i]->serial_number) { $drive->inuseEdlm=true; } else { $drive->inuseEdlm=false; } } } else { $drive->inuseEdlm=false; } error_log("Drive = ". print_r($drive, true)); // Create a the Firmware filename $typeArray = split("-", $drive->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.":".$drive->isEDLM.":".$drive->inuseEdlm; // 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 = ""; if( $drive->isReady != '1' ) $disabled = "disabled"; $status = $drive->mediaPresent == "1" ? "Full" : "Empty"; ?>