View file Web Template Ktpl/package/templates/ktpl/controllers/admin/install_ftp.tpl.php

File size: 1.99Kb
<?php
    $this->setPageTitle(LANG_CP_INSTALL_PACKAGE.' «'.$manifest['info']['title'].'»');
    $this->addBreadcrumb(LANG_CP_INSTALL_PACKAGE, $this->href_to('install'));
    $this->addBreadcrumb($manifest['info']['title']);

	$this->addToolButton(array(
		'class'  => 'help',
        'title'  => LANG_HELP,
        'target' => '_blank',
        'href'   => LANG_HELP_URL_INSTALL
    ));

    if(!empty($manifest['notice_system_files'])){
        cmsUser::addSessionMessage($manifest['notice_system_files'], 'error');
    }

?>

<h1><?php echo LANG_CP_INSTALL_PACKAGE.' «'.$manifest['info']['title'].'»'; ?></h1>

<div id="cp_package_ftp_notices">
    <div class="notice">
        <?php echo LANG_CP_INSTALL_FTP_NOTICE; ?>
        <?php echo LANG_CP_INSTALL_FTP_PRIVACY; ?>
    </div>
</div>

<?php
    $this->renderForm($form, $account, array(
        'action' => '',
        'method' => 'post',
        'submit' => array(
            'title' => LANG_CONTINUE
        ),
        'cancel' => array(
            'show' => true,
            'href' => $this->href_to('')
        )
    ), $errors); ?>

<?php echo html_button(LANG_INSTALL, 'skip', '', array('style'=>'display: none;','id'=>'skip')); ?>

<script type="text/javascript">
    $(function() {
        $('form > .buttons').prepend($('#skip'));
        $('#is_skip').on('click', function (){
            icms.forms.submitted = true;
            form = $(this).parents('form');
            if($(this).is(':checked')){
                $(form).find('input').not(this).not('.buttons > input').prop('disabled', true);
                $(form).find('.button-submit').hide();
                $('#skip').show();
            } else {
                $(form).find('input').prop('disabled', false);
                $(form).find('.button-submit').show();
                $('#skip').hide();
            }
        });
        $('#skip').on('click', function (){
            location.href='<?php echo $this->href_to('install/finish'); ?>';
            return false;
        });
    });
</script>