%s", htmlspecialchars($caption)); } } return; } set_pref($link, "_PREFS_ACTIVE_TAB", "labelConfig"); $sort = db_escape_string($_GET["sort"]); if (!$sort || $sort == "undefined") { $sort = "caption"; } $label_search = db_escape_string($_GET["search"]); if (array_key_exists("search", $_GET)) { $_SESSION["prefs_label_search"] = $label_search; } else { $label_search = $_SESSION["prefs_label_search"]; } print "
"; print "
"; print"
"; if ($label_search) { $label_search_query = "caption LIKE '%$label_search%' AND"; } else { $label_search_query = ""; } $result = db_query($link, "SELECT id,caption FROM ttrss_labels2 WHERE $label_search_query owner_uid = ".$_SESSION["uid"]." ORDER BY $sort"); // print "
PLACEHOLDER
"; if (db_num_rows($result) != 0) { print "

"; print ""; */ $lnum = 0; while ($line = db_fetch_assoc($result)) { $class = ($lnum % 2) ? "even" : "odd"; $label_id = $line["id"]; $this_row_id = "id=\"LILRR-$label_id\""; print ""; $line["caption"] = htmlspecialchars($line["caption"]); print ""; print ""; print ""; ++$lnum; } print "
".__('Select:')." ".__('All').", ".__('None')." "; /* print "
  ".__('Caption')."
" . $line["caption"] . "
"; print "

"; print ""; print "

"; } else { print "

"; if (!$label_search) { print __('No labels defined.'); } else { print __('No matching labels found.'); } print "

"; } } ?>