View file application/modules/Core/views/scripts/admin-tasks/settings.tpl

File size: 1.55Kb
<h2 class="page_heading"><?php echo $this->translate("Task Scheduler") ?></h2>

<?php if( engine_count($this->navigation) ): ?>
  <div class='tabs'>
    <?php
      // Render the menu
      //->setUlClass()
      echo $this->navigation()->menu()->setContainer($this->navigation)->render()
    ?>
  </div>
<?php endif; ?>

<p>
  <?php echo (
    'CORE_VIEWS_SCRIPTS_ADMINTASKS_SETTINGS_DESCRIPTION' !== ($desc = $this->translate("CORE_VIEWS_SCRIPTS_ADMINTASKS_SETTINGS_DESCRIPTION")) ?
    $desc : '' ) ?>
</p>

<script type="text/javascript">
  window.addEventListener('load', function() {
    var randomString = function() {
      var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
      var string_length = 16;
      var randomstring = '';
      for (var i=0; i<string_length; i++) {
        var rnum = Math.floor(Math.random() * chars.length);
        randomstring += chars.substring(rnum,rnum+1);
      }
      return randomstring;
    };

    (scriptJquery.crtEle('a', {
      'href' : 'javascript:void(0);',
    })).html('(generate)').css({
        'padding-left' : '10px'
    }).click(function(event) {
          scriptJquery('#key').val(randomString());
          event.preventDefault();
          scriptJquery(this).blur();
    }).insertAfter(scriptJquery('#key'));
  });
</script>

<div class='settings'>
  <?php echo $this->form->render($this) ?>
</div>
<script type="application/javascript">
  scriptJquery('.core_admin_main_settings').parent().addClass('active');
  scriptJquery('.core_admin_main_settings_tasks').addClass('active');
</script>