<?php if (!defined('MAX_PATH')) { exit; } ?>
<form id="frmOpenads" name="frmOpenads" method="POST" action="install.php">
    <br />
    <table border='0' cellpadding='0' cellspacing='0' width='100%'>
    <tr>
        <td valign='top'>
            <img class="install-icon" src='<?php echo $imgPath; ?>images/install-finished.png'></td><td width='100%' valign='top'>
            <br />
            <span class='tab-s'><?php echo $message ?></span>
            <br />
            <img src='<?php echo $imgPath; ?>images/break-el.gif' width='100%' height='1' vspace='8'>
            <span class='install'><?php echo $strInstallSuccess; ?>
            
            <?php
                require_once MAX_PATH . '/lib/OA/Dal/ApplicationVariables.php';
                require_once MAX_PATH . '/lib/OA/Permission.php';
            
                $adminEmail = OA_Dal_ApplicationVariables::get('sync_registered_email');
                if (empty($adminEmail)) {
                    $oUser = OA_Permission::getCurrentUser();
                    $adminEmail = $oUser->aUser['email_address'];
                }
            ?>
            
            <p><b><?php echo $strSignupUpdates?></b><br />
                <input type='checkbox' name='signup_opt' id='signup_opt' value='true' checked='checked' />
                <input class='install' type='text' name='signup_email' id='signup_email' size='25' value='<?php echo htmlspecialchars($adminEmail, ENT_QUOTES);?>' />
            </p>    
            
            <?php echo $strInstallSuccess2; ?></span>
        </td>
    </tr>
    </table>
    <br />
    <br />
    <input type="hidden" name="aAdminPost" id="aAdminPost" value="<?php echo htmlspecialchars(stripslashes($_POST['aAdminPost'])); ?>">
    <input type="submit"  class="button" id="btn_openads" name="btn_openads" value="<?php echo $strBtnContinue; ?>" tabindex="1" />
</form>
