mobile: enable Labels

This commit is contained in:
Andrew Dolgov 2009-12-17 22:08:09 +03:00
parent e2b7a85540
commit 17fd15be7a
1 changed files with 33 additions and 0 deletions

View File

@ -67,6 +67,8 @@
print "</ul>";
} else if ($cat_id == -1) {
$title = __('Special');
print "<ul id='cat--1' title='$title' myBackLabel='Feeds'
myBackHref='index.php' myBackTarget='_self'>";
@ -85,6 +87,37 @@
<a href='feed.php?id=$id&cat_id=-1'>$title</a></li>";
}
print "</ul>";
} else if ($cat_id == -2) {
$title = __('Labels');
print "<ul id='cat--2' title='$title' myBackLabel='Feeds'
myBackHref='index.php' myBackTarget='_self'>";
$result = db_query($link, "SELECT id, caption FROM ttrss_labels2
WHERE owner_uid = '$owner_uid'");
$label_data = array();
while ($line = db_fetch_assoc($result)) {
$id = -$line["id"] - 11;
$unread = getFeedUnread($link, $id);
$title = $line["caption"];
if ($unread > 0) {
$title = $title . " ($unread)";
$class = '';
} else {
$class = 'oldItem';
}
print "<li class='$class'>
<a href='feed.php?id=$id&cat=-1'>$title</a></li>";
}
print "</ul>";
}
}