1 [% USE HTML %]<body class="admin" onload="set_subject(); document.getElementsByName('to')[0].focus(); ">
 
   3  <script type="text/javascript">
 
   5       function set_subject() {
 
   6         var subject_template = "Backup of dataset";
 
   7         var subject = document.Form.subject.value;
 
   9         if ((subject == "") || (subject.substr(0, subject_template.length) == subject_template)) {
 
  10           document.Form.subject.value = subject_template + " " + document.Form.dbname.value;
 
  19   No databases have been found on this server.
 
  23   <form name="Form" method="post" action="admin.pl">
 
  25    <input type="hidden" name="dbdriver" value="Pg">
 
  26    <input type="hidden" name="dbhost" value="[% HTML.escape(dbhost) %]">
 
  27    <input type="hidden" name="dbport" value="[% HTML.escape(dbport) %]">
 
  28    <input type="hidden" name="dbuser" value="[% HTML.escape(dbuser) %]">
 
  29    <input type="hidden" name="dbpasswd" value="[% HTML.escape(dbpasswd) %]">
 
  32     Please select the database you want to backup:
 
  33     <select name="dbname" onchange="set_subject()">[% FOREACH row = DATABASES %]<option>[% HTML.escape(row.dbname) %]</option>[% END %]</select>
 
  38      <td valign="top"><input type="radio" name="destination" id="destination_download" value="download" checked></td>
 
  39      <td valign="top"><label for="destination_download">Download the backup</label></td>
 
  43      <td valign="top"><input type="radio" name="destination" id="destination_email" value="email"></td>
 
  45       <label for="destination_email">Send the backup via Email</label><br>
 
  49         <td valign="top" align="right">From</td>
 
  50         <td valign="top"><input name="from" size="40" value="[% HTML.escape(from) %]"></td>
 
  54         <td valign="top" align="right">To</td>
 
  55         <td valign="top"><input name="to" size="40"></td>
 
  59         <td valign="top" align="right">Cc</td>
 
  60         <td valign="top"><input name="cc" size="40"></td>
 
  64         <td valign="top" align="right">Subject</td>
 
  65         <td valign="top"><input name="subject" size="40"></td>
 
  69         <td valign="top" align="right">Message</td>
 
  70         <td valign="top"><textarea name="message" cols="40" rows="10"></textarea></td>
 
  80    <input name="callback" type="hidden" value="admin.pl?action=list_users">
 
  81    <input type="hidden" name="nextsub" value="backup_dataset_start">
 
  82    <input type="hidden" name="back_nextsub" value="list_users">
 
  88    <input type="submit" class="submit" name="action" value="Continue">
 
  89    <input type="submit" class="submit" name="action" value="Back">