--- /dev/null
+[% USE HTML %]<body class="admin" onload="document.getElementsByName('dbname')[0].focus(); ">
+
+ <h2>[% title %]</h2>
+
+ <form name="Form" method="post" action="admin.pl" enctype="multipart/form-data">
+
+ <input type="hidden" name="dbdriver" value="Pg">
+ <input type="hidden" name="dbhost" value="[% HTML.escape(dbhost) %]">
+ <input type="hidden" name="dbport" value="[% HTML.escape(dbport) %]">
+ <input type="hidden" name="dbuser" value="[% HTML.escape(dbuser) %]">
+ <input type="hidden" name="dbpasswd" value="[% HTML.escape(dbpasswd) %]">
+
+ <p>
+ Please enter the name of the dataset you want to restore the backup in.
+ The dataset has to exist before a restoration can be started.
+ You can create a missing dataset by going back and chosing "Create Dataset".
+ </p>
+
+ <p>
+ The backup you upload here has to be a file created with "pg_dump -o -Ft".
+ It may optionally be compressed with "gzip".
+ Files created by Lx-Office's "Backup Dataset" function are such files.
+ </p>
+
+ <table>
+ <tr>
+ <td valign="top">Dataset name</td>
+ <td valign="top"><input name="new_dbname"></td>
+ </tr>
+
+ <tr>
+ <th valign="top">Multibyte Encoding</th>
+ <td>
+ <select name="dbencoding">
+ [% FOREACH row = DBENCODINGS %]<option value="[% HTML.escape(row.dbencoding) %]" [% IF row.selected %]selected[% END %]>[% HTML.escape(row.label) %]</option>[% END %]
+ </select>
+ </td>
+ </tr>
+
+ <tr>
+ <td valign="top">Backup file</td>
+ <td valign="top"><input type="file" accept="*" name="content"></td>
+ </tr>
+ </table>
+
+ <input type="hidden" name="nextsub" value="restore_dataset_start">
+
+ <hr size="3" noshade>
+
+ <br>
+
+ <input type="submit" class="submit" name="action" value="Continue">
+
+ </form>
+
+</body>
+</html>