<body> in eigene Zeile (für späteres entfernen)
[kivitendo-erp.git] / templates / webpages / admin / backup_dataset.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3 <body class="admin" onload="set_subject(); document.getElementsByName('to')[0].focus(); ">
4
5  <script type="text/javascript">
6   <!--
7       function set_subject() {
8         var subject_template = "[% 'Backup of dataset' | $T8 %]";
9         var subject = document.Form.subject.value;
10
11         if ((subject == "") || (subject.substr(0, subject_template.length) == subject_template)) {
12           document.Form.subject.value = subject_template + " " + document.Form.dbname.value;
13         }
14       }
15     -->
16  </script>
17
18  <h2>[% title %]</h2>
19
20  [% IF NO_DATABSES %]
21   [% 'No databases have been found on this server.' | $T8 %]
22
23   [% ELSE %]
24
25   <form name="Form" method="post" action="admin.pl">
26
27    <input type="hidden" name="dbdriver" value="Pg">
28    <input type="hidden" name="dbhost" value="[% HTML.escape(dbhost) %]">
29    <input type="hidden" name="dbport" value="[% HTML.escape(dbport) %]">
30    <input type="hidden" name="dbuser" value="[% HTML.escape(dbuser) %]">
31    <input type="hidden" name="dbpasswd" value="[% HTML.escape(dbpasswd) %]">
32
33    <p>
34     [% 'Please select the database you want to backup' | $T8 %]:
35     <select name="dbname" onchange="set_subject()">[% FOREACH row = DATABASES %]<option>[% HTML.escape(row.dbname) %]</option>[% END %]</select>
36    </p>
37
38    <table>
39     <tr>
40      <td valign="top"><input type="radio" name="destination" id="destination_download" value="download" checked></td>
41      <td valign="top"><label for="destination_download">[% 'Download the backup' | $T8 %]</label></td>
42     </tr>
43
44     <tr>
45      <td valign="top"><input type="radio" name="destination" id="destination_email" value="email"></td>
46      <td valign="top">
47       <label for="destination_email">[% 'Send the backup via Email' | $T8 %]</label><br>
48
49       <table>
50        <tr>
51         <td valign="top" align="right">[% 'From' | $T8 %]</td>
52         <td valign="top"><input name="from" size="40" value="[% HTML.escape(from) %]"></td>
53        </tr>
54
55        <tr>
56         <td valign="top" align="right">[% 'To' | $T8 %]</td>
57         <td valign="top"><input name="to" size="40"></td>
58        </tr>
59
60        <tr>
61         <td valign="top" align="right">[% 'Cc' | $T8 %]</td>
62         <td valign="top"><input name="cc" size="40"></td>
63        </tr>
64
65        <tr>
66         <td valign="top" align="right">[% 'Subject' | $T8 %]</td>
67         <td valign="top"><input name="subject" size="40"></td>
68        </tr>
69
70        <tr>
71         <td valign="top" align="right">[% 'Message' | $T8 %]</td>
72         <td valign="top"><textarea name="message" cols="40" rows="10"></textarea></td>
73        </tr>
74
75       </table>
76
77      </td>
78     </tr>
79
80    </table>
81
82    <input name="callback" type="hidden" value="admin.pl?action=list_users">
83    <input type="hidden" name="nextsub" value="backup_dataset_start">
84    <input type="hidden" name="back_nextsub" value="list_users">
85
86    <hr size="3" noshade>
87
88    <br>
89
90    <input type="submit" class="submit" name="action" value="[% 'Continue' | $T8 %]">
91    <a href="admin.pl?action=pg_database_administration">[% 'Back' | $T8 %]</a>
92
93   </form>
94
95  [% END %]
96
97 </body>
98 </html>