WHERE feed_id = ttrss_feeds.id AND unread = true) as unread
FROM ttrss_feeds ORDER BY title");
- print "<table width=\"100%\" class=\"feeds\">";
+ print "<table width=\"100%\" class=\"feeds\" id=\"feedsList\">";
$lnum = 0;
print "<td id='FUPDPIC-$id' valign='center' class='headlineUpdateMark'>$update_pic</td>";
- print "<td class='headlineUpdated'>".$line["updated"]."</td>";
+ print "<td class='headlineUpdated'>
+ <a href=\"javascript:view($id,$feed_id);\">".$line["updated"]."</a></td>";
print "<td class='headlineTitle'>$content_link</td>";
print "</tr>";
<?
require_once 'config.php';
+ define('MAGPIE_OUTPUT_ENCODING', 'UTF-8');
+
function purge_old_posts() {
if (PURGE_OLD_DAYS) {
$result = pg_query("DELETE FROM ttrss_entries WHERE
border-style : solid;
}
+.evenUnreadSelected, .evenSelectedUnread {
+ background-color : #e0e0ff;
+ font-weight : bold;
+}
+
+.oddUnreadSelected, .oddSelectedUnread {
+ background-color : #e0e0ff;
+ font-weight : bold;
+}
+
+
.evenSelected {
background-color : #e0e0ff;
}
feedr.className = feedr.className.replace("Unread", "");
}
+ cleanSelected("feedsList");
+
+ feedr.className = feedr.className + "Selected";
}
var searchbox = document.getElementById("searchbox");
-
searchbox.value = search_query;
notify("");
}
-function cleanSelectedHeadlines() {
- var content = document.getElementById("headlinesList");
+function cleanSelected(element) {
+ var content = document.getElementById(element);
var rows = new Array();
total_unread--;
}
- cleanSelectedHeadlines();
+ cleanSelected("headlinesList");
crow.className = crow.className + "Selected";