[Fusionforge-commits] r8619 - trunk/gforge/www/search/include/renderers

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Tue Dec 22 21:02:36 CET 2009


Author: aljeux
Date: 2009-12-22 21:02:36 +0100 (Tue, 22 Dec 2009)
New Revision: 8619

Modified:
   trunk/gforge/www/search/include/renderers/AdvancedSearchHtmlSearchRenderer.class.php
Log:
Display a message to warn user that only the first results are displayed (in advanced search)

Modified: trunk/gforge/www/search/include/renderers/AdvancedSearchHtmlSearchRenderer.class.php
===================================================================
--- trunk/gforge/www/search/include/renderers/AdvancedSearchHtmlSearchRenderer.class.php	2009-12-22 20:02:30 UTC (rev 8618)
+++ trunk/gforge/www/search/include/renderers/AdvancedSearchHtmlSearchRenderer.class.php	2009-12-22 20:02:36 UTC (rev 8619)
@@ -173,6 +173,8 @@
 		$result .= '<h3><a name="'.$section.'"></a>'.$title.'</h3>';
 		
 		if ($renderer->searchQuery->getRowsCount() > 0) {
+			if ($renderer->searchQuery->getRowsTotalCount() >= $renderer->searchQuery->getRowsPerPage())
+				$result .= '<i>' . sprintf(_('Note: only the first %d results for this category are displayed.'), $renderer->searchQuery->getRowsPerPage()) . '</i>';
 			$result .= $GLOBALS['HTML']->listTabletop($renderer->tableHeaders);
 			$result .= $renderer->getRows();			
 			$result .= $GLOBALS['HTML']->listTableBottom();			




More information about the Fusionforge-commits mailing list