1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-18 01:25:29 +00:00

improved article look

This commit is contained in:
Andrew Dolgov
2005-08-23 15:47:46 +01:00
parent 5519382252
commit f07c0eb4fa
5 changed files with 52 additions and 7 deletions

View File

@@ -5,8 +5,17 @@
require_once "functions.php";
require_once "magpierss/rss_fetch.inc";
error_reporting(0);
$link = pg_connect(DB_CONN);
error_reporting (E_ERROR | E_WARNING | E_PARSE);
if (!$link) {
print "Could not connect to database. Please check local configuration.";
return;
}
pg_query("set client_encoding = 'utf-8'");
$op = $_GET["op"];
@@ -131,15 +140,23 @@
$line = pg_fetch_assoc($result);
print "<table class=\"feedOverview\">";
/* print "<table class=\"feedOverview\">";
print "<tr><td><b>Title:</b></td><td>".$line["title"]."</td></tr>";
print "<tr><td><b>Link:</b></td><td><a href=\"".$line["link"]."\">".$line["link"]."</a></td></tr>";
print "</table>";
print $line["content"];
print $line["content"]; */
print "<table class=\"postTable\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">";
print "<tr class=\"titleTop\"><td align=\"right\"><b>Title:</b></td>
<td width=\"100%\">".$line["title"]."</td></tr>";
print "<tr class=\"titleBottom\"><td align=\"right\"><b>Link:</b></td>
<td><a href=\"".$line["link"]."\">".$line["link"]."</a></td></tr>";
print "<tr><td class=\"post\" colspan=\"2\">" . $line["content"] . "</td></tr>";
print "</table>";
}
}