From 71ad39598b4de8e481f03e4843ffc40a6ba56469 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 22 Aug 2005 04:20:00 +0100 Subject: [PATCH] basic functionality pass 8 --- functions.php | 9 +++++++-- prefs.js | 12 ++++++++++++ prefs.php | 27 +++++++++++++++++++-------- tt-rss.css | 21 +++++++++++++++++---- tt-rss.php | 2 +- 5 files changed, 56 insertions(+), 15 deletions(-) diff --git a/functions.php b/functions.php index b36efe1a..d49c951f 100644 --- a/functions.php +++ b/functions.php @@ -32,10 +32,15 @@ if (!$entry_timestamp) $entry_timestamp = $item["updated"]; $entry_timestamp = strtotime($entry_timestamp); - + + if (!$entry_timestamp) continue; + $entry_title = $item["title"]; $entry_link = $item["link"]; - + + if (!$entry_title) continue; + if (!$entry_link) continue; + $entry_content = $item["description"]; if (!$entry_content) $entry_content = $item["content"]; diff --git a/prefs.js b/prefs.js index 03cdd4ac..46679b7d 100644 --- a/prefs.js +++ b/prefs.js @@ -77,6 +77,18 @@ function toggleSelectRow(sender) { } } +function addFeed() { + + var link = document.getElementById("fadd_link").value; + var title = document.getElementById("fadd_title").value; + + if (link.length == 0 || title.length == 0) { + notify("Error: all fields must be filled in."); + } else { + notify("addFeed : " + link + ", " + title); + } + +} function init() { diff --git a/prefs.php b/prefs.php index 9765e14e..6ec78a5b 100644 --- a/prefs.php +++ b/prefs.php @@ -10,35 +10,46 @@ - - + - - diff --git a/tt-rss.css b/tt-rss.css index f779e0f1..4bde1885 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -103,13 +103,24 @@ table.main td.toolbar { /* background-image : url("shadow_top.png"); background-position : bottom left; background-repeat : repeat-x; */ - padding-right : 5px; + padding-right : 10px; + padding-left : 10px; font-size : small; - text-align : right; +} + +#notify { + font-weight : bold; + border : 1px solid #c0c0c0; + font-size : small; + display : block; + background : white; + -moz-border-radius : 5px; + padding : 3px 10px 3px 10px; + width : 300px; } table.main td.header { - font-size : 18pt; + font-size : 21pt; background-color : #f0f0f0; background-image : url("header.png"); background-position : top left; @@ -118,6 +129,7 @@ table.main td.header { padding-left : 80px; padding-top : 30px; font-weight : bold; + color : black; } table.main td.feeds { @@ -150,9 +162,10 @@ td.content a { text-decoration : none; } +/* td.content a:hover { text-decoration : underline; -} +} */ table.main td.notify { height : 40px; diff --git a/tt-rss.php b/tt-rss.php index ab2d8191..34d99ff4 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -19,7 +19,7 @@ Search: --> -- 2.39.2
+ Preferences
- Close + +
 
+
+ Return to main
+

Feed Configuration

- + + + + +
+ + +
Title:Link:
+ Add feed
- -
 

+
+ Tiny-Tiny RSS v0.1 © 2005 Andrew Dolgov - Preferences + Preferences