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:
23
backend.php
23
backend.php
@@ -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>";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user