make xml import/export tools look cuter
This commit is contained in:
parent
db22a6e9b8
commit
648cbec886
8
opml.css
8
opml.css
|
@ -19,6 +19,14 @@ h1 {
|
||||||
background-repeat : repeat-x;
|
background-repeat : repeat-x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
font-size : 14pt;
|
||||||
|
font-weight : bold;
|
||||||
|
border-width : 0px 0px 1px 0px;
|
||||||
|
border-style : solid;
|
||||||
|
border-color : #e0e0e0;
|
||||||
|
}
|
||||||
|
|
||||||
div.opmlBody {
|
div.opmlBody {
|
||||||
margin : 30px;
|
margin : 30px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,13 +15,22 @@
|
||||||
<? if (!$_GET["export"]) { ?>
|
<? if (!$_GET["export"]) { ?>
|
||||||
|
|
||||||
<html>
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>XML Export</title>
|
||||||
|
<link rel="stylesheet" href="opml.css" type="text/css">
|
||||||
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>XML Export</h1>
|
<h1><img src="images/ttrss_logo.png"></h1>
|
||||||
<form method="GET">
|
|
||||||
<input type="checkbox" checked name="marked"> Export only starred<br>
|
<div class="opmlBody">
|
||||||
<input type="checkbox" name="unread"> Export only unread<br>
|
<h2>XML Export</h2>
|
||||||
<p><input type="submit" name="export" value="Export"></p>
|
<form method="GET">
|
||||||
</form>
|
Limit to: <input type="checkbox" checked name="marked"> starred,
|
||||||
|
<input type="checkbox" name="unread"> unread.<br>
|
||||||
|
<p><input type="submit" class="button" name="export" value="Export"></p>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|
|
@ -130,11 +130,19 @@
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<html>
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>XML Import</title>
|
||||||
|
<link rel="stylesheet" href="opml.css" type="text/css">
|
||||||
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
<h1><img src="images/ttrss_logo.png"></h1>
|
||||||
|
|
||||||
<? if ($_REQUEST["op"] != "Import") { ?>
|
<? if ($_REQUEST["op"] != "Import") { ?>
|
||||||
|
|
||||||
<h1>Import XMLDB (your login is <?= $_SESSION["name"] ?>)</h1>
|
<div class="opmlBody">
|
||||||
|
|
||||||
|
<h2>Import XMLDB</h2>
|
||||||
|
|
||||||
<form enctype="multipart/form-data" method="POST" action="xml-import.php">
|
<form enctype="multipart/form-data" method="POST" action="xml-import.php">
|
||||||
File: <input name="xmldb" type="file">
|
File: <input name="xmldb" type="file">
|
||||||
|
@ -143,7 +151,7 @@
|
||||||
|
|
||||||
<? } else {
|
<? } else {
|
||||||
|
|
||||||
print "<h1>Importing data (your login is ".$_SESSION["name"].")</h1>";
|
print "<h2>Importing data</h2>";
|
||||||
|
|
||||||
if (is_file($_FILES['xmldb']['tmp_name'])) {
|
if (is_file($_FILES['xmldb']['tmp_name'])) {
|
||||||
$dom = domxml_open_file($_FILES['xmldb']['tmp_name']);
|
$dom = domxml_open_file($_FILES['xmldb']['tmp_name']);
|
||||||
|
@ -180,6 +188,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
} ?>
|
} ?>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue