cvs: php-gtk-web /manual browse.php

From: Date: Thu, 09 Aug 2001 19:59:32 +0000
Subject: cvs: php-gtk-web /manual browse.php
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-2688@lists.php.net to get a copy of this message
cmv Thu Aug 9 15:59:32 2001 EDT Modified files: /php-gtk-web/manual browse.php Log: Index: php-gtk-web/manual/browse.php diff -u php-gtk-web/manual/browse.php:1.1 php-gtk-web/manual/browse.php:1.2 --- php-gtk-web/manual/browse.php:1.1 Thu Aug 9 15:56:19 2001 +++ php-gtk-web/manual/browse.php Thu Aug 9 15:59:32 2001 @@ -23,13 +23,15 @@ } } -echo '<table border="0" cellpadding="4" cellspacing="0" width="100%">'; -echo '<tr bgcolor="#d0d0d0" valign="top">'; -echo '<td align="right" colspan="2"><small>Jump to: ' . +$jumpbar = '<table border="0" cellpadding="4" cellspacing="0" width="100%">' . + '<tr bgcolor="#d0d0d0" valign="top">' . + '<td align="right" colspan="2"><small>Jump to: ' . join (' <font color="#999999">|</font> ', $links ) . - '<br></small></td>'; -echo "</tr>\n"; -echo "</table><BR>\n\n"; + '<br></small></td>' . + "</tr>\n" . + "</table><BR>\n\n"; + +echo $jumpbar; if(!$let) { $let = $fl ? $fl : 'a'; @@ -39,14 +41,15 @@ $query = "SELECT *, UNIX_TIMESTAMP(ts) AS my_when FROM note where sect like '$let%' ORDER BY sect, ts"; $result = mysql_query($query) or die(mysql_error()); -if ( mysql_num_rows($result) > 0) { +$numrows = mysql_num_rows($result); +if ( $numrows > 0) { $last = ''; while ($row = mysql_fetch_array($result)) { if ($row['sect'] != $last) { makeTitle( $row['sect'] ); $last = $row['sect']; } - makeEntry($row['my_when'], $row['user'], $row['note'] ); + makeEntry($row['my_when'], $row['user'], $row['note'], $row['id'] ); } } else { @@ -56,5 +59,10 @@ } echo '</table>'; + +if ($numrows > 10 ) { + echo $jumpbar; +} +

« previous php.gtk (#2688) next »