[ Index ]
 

Code source de b2evolution 2.1.0-beta

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/blogs/inc/cron/views/ -> _cronjob.view.php (source)

   1  <?php
   2  /**

   3   * This file implements the UI view for the cron log form.

   4   *

   5   * This file is part of the evoCore framework - {@link http://evocore.net/}

   6   * See also {@link http://sourceforge.net/projects/evocms/}.

   7   *

   8   * @copyright (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/}

   9   *

  10   * {@internal License choice

  11   * - If you have received this file as part of a package, please find the license.txt file in

  12   *   the same folder or the closest folder above for complete license terms.

  13   * - If you have received this file individually (e-g: from http://evocms.cvs.sourceforge.net/)

  14   *   then you must choose one of the following licenses before using the file:

  15   *   - GNU General Public License 2 (GPL) - http://www.opensource.org/licenses/gpl-license.php

  16   *   - Mozilla Public License 1.1 (MPL) - http://www.opensource.org/licenses/mozilla1.1.php

  17   * }}

  18   *

  19   * {@internal Open Source relicensing agreement:

  20   * }}

  21   *

  22   * @package admin

  23   *

  24   * @version $Id: _cronjob.view.php,v 1.2 2007/09/12 21:00:31 fplanque Exp $

  25   */
  26  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  27  
  28  global $cjob_row;
  29  
  30  $Form = & new Form( NULL, 'cronlog' );
  31  
  32  $Form->global_icon( T_('Close sheet'), 'close', regenerate_url( 'action,cjob_ID' ) );
  33  
  34  $Form->begin_form( 'fform', T_('Scheduled job') );
  35  
  36      $Form->begin_fieldset( T_('Job details').get_manual_link('scheduler_job_info') );
  37  
  38          $Form->info( T_('Job #'), $cjob_row->ctsk_ID );
  39          $Form->info( T_('Job name'), $cjob_row->ctsk_name );
  40          $Form->info( T_('Scheduled at'), mysql2localedatetime($cjob_row->ctsk_start_datetime) );
  41          $cjob_repeat_after = '';
  42          if( $cjob_repeat_after_days = floor( $cjob_row->ctsk_repeat_after / 86400 ) )
  43          {
  44              $cjob_repeat_after .= $cjob_repeat_after_days.' '.T_('days').' ';
  45          }
  46          if( $cjob_repeat_after_hours = floor( ($cjob_row->ctsk_repeat_after % 86400 ) / 3600 ) )
  47          {
  48              $cjob_repeat_after .= $cjob_repeat_after_hours.' '.T_('hours').' ';
  49          }
  50          if( $cjob_repeat_after_minutes = floor( ($cjob_row->ctsk_repeat_after % 3600 ) / 60 ) )
  51          {
  52              $cjob_repeat_after .= $cjob_repeat_after_minutes.' '.T_('minutes');
  53          }
  54  
  55          $Form->info( T_('Repeat every'), $cjob_repeat_after );
  56  
  57      $Form->end_fieldset();
  58  
  59      $Form->begin_fieldset( T_('Execution details').get_manual_link('scheduler_execution_info') );
  60  
  61          if( empty( $cjob_row->clog_status ) )
  62          {
  63              $Form->info( T_('Status'), 'pending' );
  64          }
  65          else
  66          {
  67              $Form->info( T_('Status'), '<span class="cron_'.$cjob_row->clog_status.'">'.$cjob_row->clog_status.'</span>' );
  68              $Form->info( T_('Real start time'), mysql2localedatetime($cjob_row->clog_realstart_datetime) );
  69              $Form->info( T_('Real stop time'), mysql2localedatetime($cjob_row->clog_realstop_datetime) );
  70              $Form->info( T_('Messages'), str_replace( "\n", "<br />\n", $cjob_row->clog_messages ) );
  71          }
  72  
  73      $Form->end_fieldset();
  74  
  75  $Form->end_form();
  76  
  77  
  78  /*

  79   * $Log: _cronjob.view.php,v $

  80   * Revision 1.2  2007/09/12 21:00:31  fplanque

  81   * UI improvements

  82   *

  83   * Revision 1.1  2007/06/25 10:59:49  fplanque

  84   * MODULES (refactored MVC)

  85   *

  86   * Revision 1.3  2007/04/26 00:11:09  fplanque

  87   * (c) 2007

  88   *

  89   * Revision 1.2  2006/11/24 18:27:25  blueyed

  90   * Fixed link to b2evo CVS browsing interface in file docblocks

  91   *

  92   * Revision 1.1  2006/06/26 23:09:34  fplanque

  93   * Really working cronjob environment :)

  94   *

  95   */
  96  ?>


Généré le : Thu Nov 29 23:58:50 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics