1, "d_status" => 17, "d_part" => 0); if( $_SERVER[REQUEST_METHOD] == "POST" ) { error_log("POST = ". print_r($_POST, true ) ); $sortCriteria->sortColumn = $columnMap[$_POST['orderOn']]; $sortCriteria->ascending = $_POST['orderBy'] == "ASC"; } else { $sortCriteria->sortColumn = $columnMap['barcode']; $sortCriteria->ascending = true; } $drives = array(); //$FiberChannel = 1; // from CMI::ConnectionPointCode //$TapeDriveModel_LTO_5 = 9; // from eTapeDriveModel //$tmpdrives = get_all_drives_by_type($user, (int)$TapeDriveModel_LTO_5, (int)$FiberChannel, $sortCriteria); $tmpdrives = get_all_drives($user, $sortCriteria); //error_log( "get_all_drives_by_type" . print_r($tmpdrives,true) ); foreach($tmpdrives as $tmpdrive) { error_log("Checking drive ". $tmpdrive->location . " Type=" .$tmpdrive->driveType. " vendor=" .$tmpdrive->vendor); if( $tmpdrive->driveType >= "LTO-5" && $tmpdrive->vendor == "HP" && $tmpdrive->interfaceType == "Fibre") { error_log("Found HPLTO-5 drive ". $tmpdrive->guid ); // Create a new element for drive that shows the dpf setting. $tmpdrive->pfo = get_dpf($user, $tmpdrive->guid); if ($tmpdrive->pfo == 1) { error_log("Adding drive ". $tmpdrive->location . " Type=" .$tmpdrive->driveType. " vendor=" .$tmpdrive->vendor); error_log("Adding drive" . print_r($tmpdrive,true) ); array_push($drives, $tmpdrive); } } } ?>