cvs: php-bugs-web / search.php

From: Date: Mon, 24 Sep 2001 02:51:25 +0000
Subject: cvs: php-bugs-web / search.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-6651@lists.php.net to get a copy of this message
jimw Sun Sep 23 22:51:25 2001 EDT Modified files: /php-bugs-web search.php Log: fix math, always show the prev/next bar Index: php-bugs-web/search.php diff -u php-bugs-web/search.php:1.2 php-bugs-web/search.php:1.3 --- php-bugs-web/search.php:1.2 Sun Sep 23 22:42:54 2001 +++ php-bugs-web/search.php Sun Sep 23 22:51:25 2001 @@ -165,7 +165,6 @@ function show_prev_next($begin,$rows,$total_rows,$link,$limit) { if($limit=='All') return; - if ($begin == 0 && $rows < $limit) return; echo "<tr bgcolor=\"#cccccc\"><td align=\"center\" colspan=\"9\">"; echo '<table border="0" cellspacing="0" cellpadding="0" width="100%"><tr>'; if ($begin > 0) { @@ -174,7 +173,7 @@ else { echo "<td width=\"33%\">&nbsp;</td>"; } - echo "<td align=\"center\" width=\"34%\">Showing ",$begin+1,"-", $begin+1+$rows, " of $total_rows</td>"; + echo "<td align=\"center\" width=\"34%\">Showing ",$begin+1,"-", $begin+$rows, " of $total_rows</td>"; if ($begin+$rows < $total_rows) { echo "<td align=\"right\" width=\"33%\"><a href=\"$link&amp;begin=",$begin+$limit,"\">Show Next $limit Entries &raquo;</a></td>"; }

« previous php.mirrors (#6651) next »