|
|
|
@ -4027,7 +4027,7 @@
|
|
|
|
|
<li onclick=\"$tog_unread_link\"> ".__('Unread')."</li>
|
|
|
|
|
<li onclick=\"$tog_marked_link\"> ".__('Starred')."</li>
|
|
|
|
|
<li onclick=\"$tog_published_link\"> ".__('Published')."</li>
|
|
|
|
|
<li><span class=\"insensitive\">--------</span></li>
|
|
|
|
|
<!-- <li><span class=\"insensitive\">--------</span></li> -->
|
|
|
|
|
<li><span class=\"insensitive\">".__('Mark as read:')."</span></li>
|
|
|
|
|
<li onclick=\"$catchup_sel_link\"> ".__('Selection')."</li>";
|
|
|
|
|
|
|
|
|
@ -4045,9 +4045,21 @@
|
|
|
|
|
|
|
|
|
|
print "<li onclick=\"$catchup_feed_link\"> ".__('Entire feed')."</li>";
|
|
|
|
|
|
|
|
|
|
print "<li><span class=\"insensitive\">--------</span></li>";
|
|
|
|
|
print "<li><span class=\"insensitive\">".__('Other actions:')."</span></li>";
|
|
|
|
|
|
|
|
|
|
//print "<li><span class=\"insensitive\">--------</span></li>";
|
|
|
|
|
print "<li><span class=\"insensitive\">".__('Assign label:')."</span></li>";
|
|
|
|
|
|
|
|
|
|
$result = db_query($link, "SELECT id, caption FROM ttrss_labels2 WHERE
|
|
|
|
|
owner_uid = '".$_SESSION["uid"]."' ORDER BY caption");
|
|
|
|
|
|
|
|
|
|
while ($line = db_fetch_assoc($result)) {
|
|
|
|
|
|
|
|
|
|
$label_id = $line["id"];
|
|
|
|
|
$label_caption = $line["caption"];
|
|
|
|
|
|
|
|
|
|
print "<li onclick=\"javascript:selectionAssignLabel($label_id)\">
|
|
|
|
|
$label_caption</li>";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
print "</ul></li></ul>";
|
|
|
|
|
print "</td>";
|
|
|
|
|
|
|
|
|
@ -6047,6 +6059,18 @@
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function label_find_caption($link, $label, $owner_uid) {
|
|
|
|
|
$result = db_query($link,
|
|
|
|
|
"SELECT caption FROM ttrss_labels2 WHERE id = '$label'
|
|
|
|
|
AND owner_uid = '$owner_uid' LIMIT 1");
|
|
|
|
|
|
|
|
|
|
if (db_num_rows($result) == 1) {
|
|
|
|
|
return db_fetch_result($result, 0, "caption");
|
|
|
|
|
} else {
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function label_add_article($link, $id, $label, $owner_uid) {
|
|
|
|
|
|
|
|
|
|
$label_id = label_find_id($link, $label, $owner_uid);
|
|
|
|
|