1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-10 16:01:33 +00:00

rework OPML import to use popup dialog

This commit is contained in:
Andrew Dolgov
2010-01-13 23:59:02 +03:00
parent cd039c0473
commit b6a6e262be
5 changed files with 205 additions and 117 deletions

View File

@@ -719,6 +719,8 @@
foreach ($ids as $id) {
remove_feed($link, $id, $_SESSION["uid"]);
}
return;
}
if ($subop == "clear") {
@@ -1377,9 +1379,9 @@
}
print "<h3>".__('OPML')."</h3>
print "<h3>".__('OPML')."</h3>";
<div style='float : left'>
/* print "<div style='float : left'>
<form enctype=\"multipart/form-data\" method=\"POST\" action=\"opml.php\">
".__('File:')." <input id=\"opml_file\" name=\"opml_file\" type=\"file\">&nbsp;
<input type=\"hidden\" name=\"op\" value=\"Import\">
@@ -1387,7 +1389,22 @@
type=\"submit\">".__('Import')."</button>
</form></div>";
print "&nbsp;";
print "&nbsp;"; */
print "<iframe name=\"upload_iframe\" onchange=\"opml_import_handler(this)\"
style=\"width: 400px; height: 100px; display: none;\"></iframe>";
print "<div style='float : left'>";
print "<form style='display : block' target=\"upload_iframe\"
enctype=\"multipart/form-data\" method=\"POST\"
action=\"backend.php\">
<input id=\"opml_file\" name=\"opml_file\" type=\"file\">&nbsp;
<input type=\"hidden\" name=\"op\" value=\"dlg\">
<input type=\"hidden\" name=\"id\" value=\"importOpml\">
<button onclick=\"return opmlImport();\"
type=\"submit\">".__('Import')."</button>
</form>";
print "</div>&nbsp;";
print "<button onclick=\"gotoExportOpml()\">".
__('Export OPML')."</button>";