PHP Classes

File: view/melis-dashboard-plugin-creator/dashboard-plugin-creator/render-step5-finalization.phtml

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis PHP Dashboard Plugin Creator   view/melis-dashboard-plugin-creator/dashboard-plugin-creator/render-step5-finalization.phtml   Download  
File: view/melis-dashboard-plugin-creator/dashboard-plugin-creator/render-step5-finalization.phtml
Role: Example script
Content type: text/plain
Description: Example script
Class: Melis PHP Dashboard Plugin Creator
Plugin to create dashboards for the Melis platform
Author: By
Last change:
Date: 2 years ago
Size: 1,663 bytes
 

Contents

Class file image Download
<div id="<?php echo $this->id; ?>" class="steps-content">
    <div class="row">
        <div class="col-md-12">
            <div class = 'alert alert-default' role = 'alert'>
                <i class="fa fa-thumbs-o-up fa-5x fa-fw pull-left text-primary-custom"></i>
                <p><strong><?php echo $this->translate('tr_melisdashboardplugincreator_finalization_success_title') ?></strong></p>
             
                <?php if ($this->restartRequired) { ?>
<p id="dpc-restart-msg"><?php echo $this->translate('tr_melisdashboardplugincreator_finalization_success_desc_with_counter') ?></p>
                <?php } else { ?>
<p><?php echo $this->translate('tr_melisdashboardplugincreator_finalization_success_desc') ?></p>
                <?php } ?>
            </div>
         </div>
    </div>
</div>

<script>
    <?php if ($this->restartRequired){ ?>
var countdown = function(){
            var tcResCd = parseInt($("#dpc-restart-cd").text());
            var countDown = setInterval(function() {
                if (tcResCd < 1){
                    $("#dpc-restart-msg").text("<?php echo $this->translate('tr_melisdashboardplugincreator_refreshing') ?>");
                    clearInterval(countDown);
                    window.location.reload();
                } else {
                    $("#dpc-restart-cd").text(tcResCd);
                    tcResCd--;
                }
            }, 1000);
        };
    <?php }

    if (
$this->restartRequired) { ?>
countdown();
    <?php } ?>
</script>