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>";
}
}

View file

@ -1,9 +1,9 @@
<?
define(VERSION, "0.2-pre");
define(DB_CONN, "host=localhost dbname=fox user=fox password=XXXXXXXXXXX");
define('MAGPIE_CACHE_DIR', '/var/tmp/magpie-ttrss-cache');
define(HEADLINES_PER_PAGE, 15);
define(MIN_UPDATE_TIME, 1800);
define(WEB_DEMO_MODE, false);
?>

View file

@ -9,6 +9,8 @@
<body onload="init()">
<? require_once "config.php" ?>
<table width="100%" height="100%" cellspacing=0 cellpadding=0 class="main">
<tr>
<td class="header" valign="middle" colspan="2">
@ -51,7 +53,7 @@
</tr>
<tr>
<td colspan="2" class="notify">
<a href="">Tiny-Tiny RSS</a> v0.1 &copy; 2005 Andrew Dolgov
<a href="">Tiny-Tiny RSS</a> v<?= VERSION ?> &copy; 2005 Andrew Dolgov
</td>
</td>
</table>

View file

@ -151,7 +151,7 @@ table.main td.prefContent {
}
table.main td.content {
padding : 10px;
padding : 0px;
border-width : 1px 0px 0px 0px;
border-color : #c0c0c0;
border-style : solid;
@ -293,4 +293,30 @@ td.headlineUpdateMark {
text-align : center;
}
div.errorBox {
border : 1px solid #c0c0c0;
padding : 20px;
margin : 20px;
background : #f0f0f0;
}
table.postTable tr.titleTop, table.postTable tr.titleBottom {
background : #f0f0f0;
}
table.postTable tr.titleTop td {
padding : 5px 10px 0px 10px;
}
table.postTable tr.titleBottom td {
padding : 3px 10px 5px 10px;
border-width : 0px 0px 1px 0px;
border-color : #d0d0d0;
border-style : solid;
}
table.postTable td.post {
padding : 20px;
}

View file

@ -40,7 +40,7 @@
</tr>
<tr>
<td colspan="2" class="notify">
<a href="">Tiny-Tiny RSS</a> v0.2-pre &copy; 2005 Andrew Dolgov
<a href="">Tiny-Tiny RSS</a> v<?= VERSION ?> &copy; 2005 Andrew Dolgov
<? if (WEB_DEMO_MODE) { ?>
<br>Running in demo mode, some functionality is disabled.
<? } ?>