  <tmpl_include name="header">

  <h2><tmpl_var name="restore_from"> <b><tmpl_var name="client"></b></h2>

  <p><tmpl_var name="these_will_be_restored">:</p>
  <ul>
    <tmpl_loop name="restoredirs">
      <!-- <tmpl_var name="id"> -->
      <li><tmpl_var name="location"></li>
    </tmpl_loop>
  </ul>

  <p><tmpl_var name="select_time">:</p>
  <form action="?rm=restore_execute" method="post">
    <input type="hidden" id="rm" name="rm" value="restore_execute">
    <input type="hidden" id="client" name="client"
      value="<tmpl_var name="client">">
    <input type="hidden" id="backuptype" name="backuptype"
      value="<tmpl_var name="backuptype">">
    <tmpl_loop name="restoredirs">
      <input type="hidden" id="<tmpl_var name="id">"
        name="<tmpl_var name="id">" value="<tmpl_var name="location">">
    </tmpl_loop>

    <select id="snapshot" name="snapshot">
    <tmpl_loop name="snapshots">
      <option value="<tmpl_var name="id">">
        <tmpl_var name="time"></option>
    </tmpl_loop>
    </select>

    <p><tmpl_var name="restore_to">:
      <br><font size="-1">
      (<TMPL_VAR NAME="restore_choose_filecomment">.)</font></p> 
    <input type="text" id="targetdir" name="targetdir" size="40"
      value="/tmp/<tmpl_var name="client">">

    <p><tmpl_var name="restore_overwrite">:
      <input type="checkbox" id="overwrite" name="overwrite">
      (<tmpl_var name="restore_will_delete">!)</p>
    <input type="submit" name="execute_restore" id="execute_restore"
      value="<tmpl_var name="execute_restore">">
  </form>

  <tmpl_include name="footer">
