3 <script type="text/javascript">
6 document.getElementsByName('to')[0].focus();
10 function set_subject () {
11 var subject_template = "[% 'Backup of dataset' | $T8 %]";
12 var subject = document.Form.subject.value;
14 if ((subject == "") || (subject.substr(0, subject_template.length) == subject_template)) {
15 document.Form.subject.value = subject_template + " " + document.Form.dbname.value;
24 [% 'No databases have been found on this server.' | $T8 %]
28 <form name="Form" method="post" action="admin.pl">
30 <input type="hidden" name="dbdriver" value="Pg">
31 <input type="hidden" name="dbhost" value="[% HTML.escape(dbhost) %]">
32 <input type="hidden" name="dbport" value="[% HTML.escape(dbport) %]">
33 <input type="hidden" name="dbuser" value="[% HTML.escape(dbuser) %]">
34 <input type="hidden" name="dbpasswd" value="[% HTML.escape(dbpasswd) %]">
37 [% 'Please select the database you want to backup' | $T8 %]:
38 <select name="dbname" onchange="set_subject()">[% FOREACH row = DATABASES %]<option>[% HTML.escape(row.dbname) %]</option>[% END %]</select>
43 <td valign="top"><input type="radio" name="destination" id="destination_download" value="download" checked></td>
44 <td valign="top"><label for="destination_download">[% 'Download the backup' | $T8 %]</label></td>
48 <td valign="top"><input type="radio" name="destination" id="destination_email" value="email"></td>
50 <label for="destination_email">[% 'Send the backup via Email' | $T8 %]</label><br>
54 <td valign="top" align="right">[% 'From' | $T8 %]</td>
55 <td valign="top"><input name="from" size="40" value="[% HTML.escape(from) %]"></td>
59 <td valign="top" align="right">[% 'To' | $T8 %]</td>
60 <td valign="top"><input name="to" size="40"></td>
64 <td valign="top" align="right">[% 'Cc' | $T8 %]</td>
65 <td valign="top"><input name="cc" size="40"></td>
69 <td valign="top" align="right">[% 'Subject' | $T8 %]</td>
70 <td valign="top"><input name="subject" size="40"></td>
74 <td valign="top" align="right">[% 'Message' | $T8 %]</td>
75 <td valign="top"><textarea name="message" cols="40" rows="10"></textarea></td>
85 <input name="callback" type="hidden" value="admin.pl?action=list_users">
86 <input type="hidden" name="nextsub" value="backup_dataset_start">
87 <input type="hidden" name="back_nextsub" value="list_users">
93 <input type="submit" class="submit" name="action" value="[% 'Continue' | $T8 %]">
94 <a href="admin.pl?action=pg_database_administration">[% 'Back' | $T8 %]</a>