diff options
author | Andrew Dolgov <[email protected]> | 2007-08-20 16:04:37 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-08-20 16:04:37 +0100 |
commit | 6016d5408e0586b169007e3789fa315376758ece (patch) | |
tree | 7a6dc1573c4a6293373abae4339d52454cb68400 /modules/pref-feeds.php | |
parent | 85bd574bb0910f5c68b159f8bc28b885439394bd (diff) |
add (disabled) dialog to recategorize feeds via draganddrop
Diffstat (limited to 'modules/pref-feeds.php')
-rw-r--r-- | modules/pref-feeds.php | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index fb791a930..76e22d7d4 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -517,6 +517,65 @@ } + if ($subop == "categorizeDlg") { + $action = $_REQUEST["action"]; + + print "<div id=\"infoBoxTitle\">".__('Category editor')."</div>"; + + print "<div class=\"infoBoxContents\">"; + + $result = db_query($link, "SELECT title,id FROM ttrss_feed_categories + WHERE owner_uid = ".$_SESSION["uid"]." + ORDER BY title"); + + if (db_num_rows($result) != 0) { + + print "<ul class=\"nomarks\" id=\"prefFeedCatList2\">"; + + $lnum = 0; + + while ($line = db_fetch_assoc($result)) { + + $class = ($lnum % 2) ? "even" : "odd"; + + $cat_id = $line["id"]; + + print "<li id='FCATR-$cat_id'>"; + + $edit_title = htmlspecialchars($line["title"]); + + print "<span id=\"FCATT-$cat_id\">" . + $edit_title . "</span>"; + + $tmp_result = db_query($link, "SELECT id, title FROM ttrss_feeds WHERE owner_uid = ". + $_SESSION["uid"]. " AND cat_id = $cat_id ORDER BY title"); + + print "<ul id=\"FCNTR-$cat_id\" class=\"nomarks\">"; + + while ($tmp_line = db_fetch_assoc($tmp_result)) { + print "<li class=\"feedEntry\" id=\"FCFID-".$tmp_line["id"]."\">" . $tmp_line["title"] . "</li>"; + + } + + print "</ul>"; + + print "</li>"; + + ++$lnum; + } + + print "</ul>"; + + + print "<input type=\"submit\" class=\"button\" + onclick=\"return closeInfoBox()\" value=\"".__('Close this window')."\">"; + + print "</div>"; + } + + return; + } + if ($subop == "editCats") { $action = $_REQUEST["action"]; @@ -964,6 +1023,11 @@ print " <input type=\"submit\" class=\"button\" disabled=\"true\" onclick=\"javascript:categorizeSelectedFeeds()\" value=\"". __('Recategorize')."\">"; + +/* print " <input type=\"submit\" class=\"button\" + onclick=\"javascript:recategorizeFeeds()\" value=\"". + __('Recategorize')."\">"; */ + } print "</span>"; |