guid = $guid; $this->name = $name; $this->location = $location; $this->serialNumber = $serialNumber; $this->wwnn = $wwnn; $this->status = $status; $this->cpfEnabled = $cpfEnabled; $this->lunmapEnabled = $lunmapEnabled; } */ } $d_columnMap = array("d_partitionName" =>0, "d_location" =>1); $d_columnSize = array( 14, 12, 10, 18, 18, 13, 15); //NOTE: This is duplicated in hostAccessEnableDrives.htm (They must match) if($_SERVER[REQUEST_METHOD] == "POST" ) { error_log("hostAccessEnableDrivesList POST = ". print_r($_POST, true )); $status = new ReturnStatus(); return; } else { error_log("hostAccessEnableDrivesList GET = ". print_r($_GET, true )); $type = $_GET['type']; if ($type == 'Devices') { $sortCriteria = new SortCriteria($d_columnMap["d_partitionName"], "1"); } $sortCriteria->filterPattern = ""; } $disabled = ''; // Leaving all checkbox's enabled for the time being $currentType = $type; $FiberChannel = 1; // from CMI::ConnectionPointCode $TapeDriveModel_LTO_5 = 9; // from eTapeDriveModel $MediaMask_LTOGen5 = 3972; // from eMediaType if ($currentType == 'Devices') { $drives = array(); $tmpdrives = get_all_drives_by_type($user, (int)$TapeDriveModel_LTO_5, (int)$FiberChannel, $sortCriteria); foreach($tmpdrives as $tmpdrive) { if ($tmpdrive->vendor == "HP") { $theDrive = new DPSEnableddrive(); $theDrive->guid = $tmpdrive->guid; $theDrive->name = $tmpdrive->name; $theDrive->location = $tmpdrive->location; $theDrive->serialNumber = $tmpdrive->serialNumber; $theDrive->wwnn = $tmpdrive->wwnn; $theDrive->status = $tmpdrive->status; $dpsLicense = get_dps_license($user, $tmpdrive->guid); $theDrive->cpfEnabled = $dpsLicense->CPFEnabled; // Control Path Failover $theDrive->lunmapEnabled = $dpsLicense->LMEnabled; // Lun Mapping array_push($drives, $theDrive); } } $dev_count = count($drives); $numRows = $dev_count; $numPages = ceil($numRows / ITEMS_PER_PAGE); $lowPageList = 1; $highPageList = min($numRows, ITEMS_PER_PAGE); error_log("hostAccessEnableDrivesList drives = ". print_r($drives,true) ); } ?>
include('pageIsLoaded_inc.htm'); ?>