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