diff options
author | Andrew Dolgov <[email protected]> | 2010-01-13 13:44:20 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-01-13 13:44:20 +0300 |
commit | ef88b1cca37705b97e939ac7fc500aff0b646dbf (patch) | |
tree | bf162b236c16a2e594147f0b5fee0857d2da76a3 /modules/popup-dialog.php | |
parent | a5819bb35d94e318d3d221dd7bbc4bea36c24ef0 (diff) |
feed archive and feed browser improvements
Diffstat (limited to 'modules/popup-dialog.php')
-rw-r--r-- | modules/popup-dialog.php | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index b5aae1846..c3285fb0c 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -142,6 +142,62 @@ return; } + if ($id == "feedBrowser") { + + print "<div id=\"infoBoxTitle\">".__('Feed Browser')."</div>"; + + print "<div class=\"infoBoxContents\">"; + + $browser_search = db_escape_string($_REQUEST["search"]); + + print "<form onsubmit='return false;' display='inline' + name='feed_browser' id='feed_browser'>"; + + print "<input type=\"hidden\" name=\"op\" value=\"rpc\">"; + print "<input type=\"hidden\" name=\"subop\" value=\"updateFeedBrowser\">"; + + print " + <div style='float : right'> + <img style='display : none' + id='feed_browser_spinner' src='images/indicator_white.gif'> + <input name=\"search\" size=\"20\" type=\"search\" + onchange=\"javascript:updateFeedBrowser()\" value=\"$browser_search\"> + <button onclick=\"javascript:updateFeedBrowser()\">".__('Search')."</button> + </div>"; + + print " <select name=\"mode\" onchange=\"updateFeedBrowser()\"> + <option value='1'>" . __('Popular feeds') . "</option> + <option value='2'>" . __('Feed archive') . "</option> + </select> "; + + print __("limit:"); + + print " <select name=\"limit\" onchange='updateFeedBrowser()'>"; + + foreach (array(25, 50, 100, 200) as $l) { + $issel = ($l == $limit) ? "selected" : ""; + print "<option $issel>$l</option>"; + } + + print "</select> "; + + print "<p>"; + + $owner_uid = $_SESSION["uid"]; + + print "<ul class='browseFeedList' id='browseFeedList'>"; + print_feed_browser($link, $search, 25); + print "</ul>"; + + print "<div align='center'> + <button onclick=\"feedBrowserSubscribe()\">".__('Subscribe')."</button> + <button style='display : none' id='feed_archive_remove' onclick=\"feedArchiveRemove()\">".__('Remove from archive')."</button> + <button onclick=\"closeInfoBox()\" >".__('Cancel')."</button></div>"; + + print "</div>"; + return; + } + if ($id == "search") { print "<div id=\"infoBoxTitle\">".__('Search')."</div>"; |