<html>

<head>
    <title>HEINZELMANN Installation</title>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
    <link rel="stylesheet" href="styles/installation.css" />
    <link rel="SHORTCUT ICON" href="../images/favicon.ico">
</head>

<body>
<form action="index.php?option=dbselect&task=store2" method="post" name="setup_db">

<table id="maintable">
    <tr>
        <td valign="top" class="mainleft">
            <ul>
                <li><a href="index.php">pre-installation check</a></li>
                <li><a href="index.php?option=db">Step 1</a></li>
                <li><a href="index.php?option=dbselect">Step 2</a></li>
                <li class="active">Step 3 (Backup)</li>
                <li>Step 4</li>
                <li>Step 5</li>
                <li>Step 6</li>
            </ul>
        </td>
        <td valign="top" class="mainright">


            <table class="settings">
                <tr>
                    <td colspan="2">
                        <div style="float:right;">
                            <a href="#" onclick="document.setup_db.submit();return false;" class="button">next &gt;</a><br />
                        </div>
                        <h1>Backup</h1>
                    </td>
                </tr>
                <tr>
                    <th colspan="2">Database backup:</th>
                </tr>
                <tr><td colspan="2" class="spacer"></td></tr>
                <tr>
                    <td valign="top">
Make a backup of the database you want to use for 
<b>HEINZELM<span style="color:red;">A</span>NN</b>.<br /><br />

Make sure, that you have writeacces to the file which you want to use for the backup.<br /><br />

    <a href="index.php?option=dbselect&task=store2">Back to Step 3: Kind of installation</a><br />


                    </td>
                    
                    <td valign="top" class="boxed">
                        <table>                           
                            [% if $connection_failed %]
                                <tr>
                                    <td colspan="2"><span class="error">Connection failed</span></td>
                                </tr>
                            [% /if %]
                            [% if $BackupPathError %]
                                <tr>
                                    <td colspan="2"><span class="error">The directory doesn´t exist or is not writeable</span></td>
                                </tr>
                            [% /if %]
                            [% if $BackupError %]
                                <tr>
                                    <td colspan="2">The backup was succesfull.<br />The Backupfile is located here:<br /> <b>[% $BackupPath %]</b></td>
                                </tr>
                            [% /if %]                                                        
                            <tr>
                              <td>
                              
                                <h2>Backup</h2>

                                <label for="BackupPath">Path to the backup-directory: </label>
                                <input name="BackupPath" type="text" size="25" >
                                <input type="submit" name="Backup" value="Backup" >
[% if $BackupReport != '' %]
                                <br /><br />[% $BackupReport %]<br />
                                The backupfile is located here:<br /> <b>[% $BackupPath %]</b>.
[% /if %]                                   
                              </td>
                            </tr>

                            <tr>
                              <td>  
                              <hr> 
                                  <h2>Restore</h2> 

                                  <label for="RestorePath">Path and filename of the backupfile: </label>
                                  <input name="RestorePath" type="text" size="25" value="[% $BackupPath %]">
                                  <input type="submit" name="Backup" value="Restore" >
[% if $RestoreSucces === 0 %]
ERROR! Restore not succesfull
[% /if %]
[% if $RestoreReport != '' %]
                                  <br /><br />[% $RestoreReport %]
[% /if %]                                  
                              </td>
                            </tr>
                           
                            
                        </table>

                    </td>
                </tr>
                <tr>
                    <td colspan="2">&nbsp;</td>
                </tr>
            </table>

        </td>
    </tr>
</table>

</form>

</body>

</html>
