<html>
<head>
    <title>{SOFTWARE} Installer</title>
    <script type="text/javascript" src="javascript/common.php"></script>
<style>
<!--
body {
    font-family : Verdana;
    font-size : 10pt;
}

.install-table {
    margin      : 0 auto;
    font        : Icon;
    background  : Window;
    color       : WindowText;
}

.install-table thead {
    background:    rgb(239,239,239);
}

.install-table th, .install-table td {
    padding : 0 5px;
}

td {
    font-size : 10pt;
}

ul {
    margin  : 0;
}

.even {
    background:    rgb(240,247,251);
}

.odd {
}
-->
</style>
</head>
<body bgcolor="#FFFFFF">
<center>
    <table border=0 cellspacing=1 cellpadding=4 bgcolor="#000000" width=90%>
        <tr>
            <th bgcolor="#34699E"><font color="#FFFFFF">[l]{SOFTWARE} Installer[/l]</font></th>
        </tr>
        <tr>
            <td bgcolor="#f0f0f0" style="text-align:center">
                <div style="padding:10px 0">
                    <!-- BEGIN DYNAMIC BLOCK: newInstallMessage -->
                    [l]You will perform a new install (the database hasn't been set up)[/l].<br />
                    <b>[l]Check/Uncheck the modules to install[/l]</b>
                    <!-- END DYNAMIC BLOCK: newInstallMessage -->
                    <!-- BEGIN DYNAMIC BLOCK: upgradeMessage -->
                    [l]You will perform an upgrade, or install new modules (the database {databaseName} is correctly set up)[/l]<br />
                    <b>[l]Check/Uncheck the modules to install, upgrade, or uninstall:[/l]</b><br />
                    <!-- END DYNAMIC BLOCK: upgradeMessage -->
                    <!-- BEGIN DYNAMIC BLOCK: message -->
                    <div style="font-weight:bold; color:red">{message}</div>
                    <!-- END DYNAMIC BLOCK: message -->
                    <!-- BEGIN DYNAMIC BLOCK: missingFiles -->
                    <div style="font-weight:bold; color:red">
                        [l]Installation cannot proceed[/l]<br />
                        [l]The following files are missing:[/l]<br /><br />
                        {missingFilesList}
                    </div>
                    <!-- END DYNAMIC BLOCK: missingFiles -->
                </div>
                <form method="post" action="index.php?fuse=newedge&view=CheckFileIntegrity">
                    <table class="install-table" cellpadding="0" cellspacing="5" border="0">
                        <thead>
                            <tr>
                                <th>[l]Module[/l]</th>
                                <th>[l]Description[/l]</th>
                                <!-- BEGIN DYNAMIC BLOCK: versionInstalledHead -->
                                <th>[l]Version Installed[/l]</th>
                                <!-- END DYNAMIC BLOCK: versionInstalledHead -->
                                <th>[l]Version to Install[/l]</th>
                                <th>[l]Dependencies[/l]</th>
                                <th>{installOrUpgrade}</th>
                                <!-- BEGIN DYNAMIC BLOCK: uninstallHead -->
                                <th>[l]Uninstall[/l]</th>
                                <!-- END DYNAMIC BLOCK: uninstallHead -->
                            </tr>
                        </thead>
                        <!-- BEGIN DYNAMIC BLOCK: moduleRow -->
                        <tbody>
                            <tr class="{rowClass}">
                                <td style="font-weight:bold">{moduleName}</td>
                                <td>{moduleDescription}</td>
                                <!-- BEGIN DYNAMIC BLOCK: versionInstalledRow -->
                                <td>{moduleVersionInstalled}</td>
                                <!-- END DYNAMIC BLOCK: versionInstalledRow -->
                                <td>{moduleVersionTarget}</td>
                                <td><ul>{moduleDependencies}</ul></td>
                                <td>
                                    <!-- BEGIN DYNAMIC BLOCK: mandatoryModuleMessage -->
                                    [l]Mandatory[/l]
                                    <!-- END DYNAMIC BLOCK: mandatoryModuleMessage -->
                                    <!-- BEGIN DYNAMIC BLOCK: willBeUpgraded -->
                                    [l]Will be upgraded[/l]
                                    <input type="hidden" name="process_{moduleName}" value="true" />
                                    <!-- END DYNAMIC BLOCK: willBeUpgraded -->
                                    <!-- BEGIN DYNAMIC BLOCK: upToDateModuleMessage -->
                                    [l]Up-to-date[/l]
                                    <!-- END DYNAMIC BLOCK: upToDateModuleMessage -->
                                    <!-- BEGIN DYNAMIC BLOCK: oldCodeModuleMessage -->
                                    [l]Version uploaded is older than the one already installed.[/l]
                                    <span style="font-weight:bold; color:red">[l]FIX THIS[/l]</span>
                                    <!-- END DYNAMIC BLOCK: oldCodeModuleMessage -->
                                    <!-- BEGIN DYNAMIC BLOCK: optionalModuleCheck -->
                                    <input type="checkbox" name="process_{moduleName}" value="true" {optionalModuleCheckChecked} />
                                    <!-- END DYNAMIC BLOCK: optionalModuleCheck -->
                                </td>
                                <!-- BEGIN DYNAMIC BLOCK: uninstallRow -->
                                <td>
                                    <!-- BEGIN DYNAMIC BLOCK: uninstallCheckbox -->
                                    <input type="checkbox" name="uninstall_{moduleName}" value="true" />
                                    <!-- END DYNAMIC BLOCK: uninstallCheckbox -->
                                </td>
                                <!-- END DYNAMIC BLOCK: uninstallRow -->
                            </tr>
                        </tbody>
                        <!-- END DYNAMIC BLOCK: moduleRow -->
                    </table>
                    <!-- BEGIN DYNAMIC BLOCK: backupNotice -->
                    <div style="margin:10px 0">
                        <b>Please make a backup of your database before proceeding.</b><br />
                        If the upgrade fails, after fixing the error you will need to restore this backup before trying the upgrade again.
                    </div>
                    <!-- END DYNAMIC BLOCK: backupNotice -->
                    <div style="margin:10px 0">
                        [l]During the next step the system will check the integrity of the files you uploaded.[/l]<br />
                        [l]Then, the installation/upgrade process will start.[/l]<br /><br />
                        <b>[l]Both processes can take several minutes to complete. Please do not close your browser.[/l]</b>
                    </div>
                    <input type="submit" value="[l]Continue[/l] &gt;" style="margin-top:10px" onclick="submitonce(this.form); this.form.submit(); return false;" />
                </form>
            </td>
        </tr>
    </table>
</center>
</body>
</html>
