cvs: php-bugs-web / search.php
| From: | Philip Olson | Date: | Sat, 24 May 2008 04:04:31 +0000 |
| Subject: | cvs: php-bugs-web / search.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-1808@lists.php.net to get a copy of this message | ||
philip Sat May 24 04:04:31 2008 UTC
Modified files:
/php-bugs-web search.php
Log:
Show row count in the header even when limit=All
http://cvs.php.net/viewvc.cgi/php-bugs-web/search.php?r1=1.71&r2=1.72&diff_format=u
Index: php-bugs-web/search.php
diff -u php-bugs-web/search.php:1.71 php-bugs-web/search.php:1.72
--- php-bugs-web/search.php:1.71 Sat May 24 03:37:07 2008
+++ php-bugs-web/search.php Sat May 24 04:04:31 2008
@@ -298,8 +298,12 @@
commonFooter();
function show_prev_next($begin,$rows,$total_rows,$link,$limit) {
- if($limit=='All') return;
echo "<tr bgcolor=\"#cccccc\"><td align=\"center\"
colspan=\"8\">";
+ if ($limit === 'All') {
+ echo "Showing all $total_rows";
+ echo "</td></tr>";
+ return;
+ }
echo '<table border="0" cellspacing="0" cellpadding="0"
width="100%"><tr>';
if ($begin > 0) {
echo "<td align=\"left\" width=\"33%\"><a
href=\"$link&begin=",max(0,$begin-$limit),"\">« Show
Previous $limit Entries</a></td>";