Enabled() ? "Yes" : "No"; case "Location": $Locations = RSSImport_Feed::PossibleDisplayLocations(); return $Locations[$Item->DisplayLocations()]; case "Refresh Rate": $RefreshRates = RSSImport_Feed::PossibleRefreshRates(); return $RefreshRates[$Item->RefreshRate()]; } } # set up links $BaseLink = "index.php?P=P_RSSImport_ListFeeds&CK=".$H_ListChecksum; $AddFeedLink = "index.php?P=P_RSSImport_EditFeed&ID=NEW"; $FeedEditLink = "index.php?P=P_RSSImport_EditFeed&ID=\$ID"; $FeedDeleteLink = "index.php?P=P_RSSImport_DeleteFeed&ID=\$ID"; # set up fields to display $Fields = array( "Display" => array( "ValueFunction" => "GetFeedAttribute", ), "Title" => array( "MaxLength" => 40, "DefaultSortField" => TRUE, ), "Url" => array( "Heading" => "URL", ), "NumberItemsToDisplay" => array( "Heading" => "Items to Display", ), "Location" => array( "ValueFunction" => "GetFeedAttribute", ), "Refresh Rate" => array( "ValueFunction" => "GetFeedAttribute", ), ); # create and display list UI $ListUI = new ItemListUI($Fields); $ListUI->Heading("RSS Feed List"); $ListUI->ItemsPerPage($H_ItemsPerPage); $ListUI->BaseLink($BaseLink); $ListUI->AddTopButton("Add New Feed", $AddFeedLink, "add_field.png"); $ListUI->AddActionButton("Edit", $FeedEditLink, "pencil.png"); $ListUI->AddActionButton("Delete", $FeedDeleteLink, "cross.png"); $ListUI->Display($H_Items, $H_ItemCount, $H_StartingIndex);