improved headlinesList look

This commit is contained in:
Andrew Dolgov 2005-08-23 15:54:18 +01:00
parent f07c0eb4fa
commit 047bae7373
1 changed files with 8 additions and 4 deletions

View File

@ -260,9 +260,15 @@
if ($lnum == 0) { if ($lnum == 0) {
print "<tr><td align='center'>No entries found.</td></tr>"; print "<tr><td align='center'>No entries found.</td></tr>";
} }
while ($lnum < HEADLINES_PER_PAGE) {
++$lnum;
print "<tr><td>&nbsp;</td></tr>";
}
// start unholy navbar block
print "<tr><td colspan=\"3\" class=\"headlineToolbar\">"; print "<tr><td colspan=\"3\" class=\"headlineToolbar\">";
$next_skip = $skip + HEADLINES_PER_PAGE; $next_skip = $skip + HEADLINES_PER_PAGE;
@ -278,9 +284,6 @@
} }
print "&nbsp;"; print "&nbsp;";
// start unholy navbar block
if ($next_skip < $total_entries) { if ($next_skip < $total_entries) {
print "<a class=\"button\" print "<a class=\"button\"
href=\"javascript:viewfeed($feed, $next_skip);\">Next Page</a>"; href=\"javascript:viewfeed($feed, $next_skip);\">Next Page</a>";
@ -304,6 +307,7 @@
// end unholy navbar block // end unholy navbar block
print "</table>"; print "</table>";
$result = pg_query("SELECT id, (SELECT count(id) FROM ttrss_entries $result = pg_query("SELECT id, (SELECT count(id) FROM ttrss_entries