offset_qpart = "";
}
- var query = "SELECT * FROM articles WHERE " +
+ var query = "SELECT *,feeds.title AS feed_title "+
+ "FROM articles,feeds WHERE " +
+ "feed_id = feeds.id AND " +
strategy_qpart +
" AND " + mode_qpart +
" ORDER BY updated DESC "+
var line_num = offset*30;
+ var real_feed_id = feed_id;
+
while (rs.isValidRow()) {
var id = rs.fieldByName("id");
var feed_id = rs.fieldByName("feed_id");
+ var entry_feed_title = false;
+
+ if (real_feed_id < 0) {
+ entry_feed_title = rs.fieldByName("feed_title");
+ }
+
var marked_pic;
var row_class = (line_num % 2) ? "even" : "odd";
tmp += "<td onclick='view("+id+","+feed_id+")' "+
"class='hlContent' valign='middle'>";
- tmp += "<a target=\"_blank\" id=\"RTITLE-$id\" href=\"" +
+ tmp += "<a target=\"_blank\" id=\"RTITLE-"+id+"\" href=\"" +
rs.fieldByName("link") + "\"" +
"onclick=\"return view("+id+","+feed_id+");\">"+
rs.fieldByName("title");
tmp += "<span class=\"contentPreview\"> - "+content_preview+"</span>";
tmp += "</a>";
-
+
+ if (entry_feed_title) {
+ tmp += " <span class=\"hlFeed\">"+
+ "(<a href='javascript:viewfeed("+feed_id+
+ ")'>"+entry_feed_title+"</a>)</span>";
+ }
+
tmp += "</td>";
tmp += "<td class=\"hlUpdated\" onclick='view("+id+","+feed_id+")'>"+
"<a class=\"title\" onclick=\"javascript:toggleUnread("+id+", 0)\""+
"target=\"_blank\" href=\""+rs.fieldByName("link")+
"\">"+rs.fieldByName("title")+"</a>";
+
+ if (entry_feed_title) {
+ tmp += " (<a href='javascript:viewfeed("+feed_id+
+ ")'>"+entry_feed_title+"</a>)";
+ }
+
tmp += "</span></div>";
tmp += "<div class=\"cdmContent\" onclick=\"cdmClicked("+id+")\""+