phpDocumentor pond
[ class tree: pond ] [ index: pond ] [ all elements ]

Source for file _cronjob.view.php

Documentation is available at _cronjob.view.php

  1. <?php
  2. /**
  3.  * This file implements the UI view for the cron log form.
  4.  *
  5.  * This file is part of Quam Plures - {@link http://quamplures.net/}
  6.  * See also {@link https://launchpad.net/quam-plures}.
  7.  *
  8.  * @copyright (c) 2009 - 2011 by the Quam Plures developers - {@link http://quamplures.net/}
  9.  * @copyright (c)2003-2009 by Francois PLANQUE - {@link http://fplanque.net/}
  10.  *
  11.  *  {@internal License choice
  12.  *  - If you have received this file as part of a package, please find the license.txt file in
  13.  *    the same folder or the closest folder above for complete license terms.
  14.  *  - If you have received this file individually (e-g: from http://evocms.cvs.sourceforge.net/)
  15.  *    then you must choose one of the following licenses before using the file:
  16.  *    - GNU General Public License 2 (GPL) - http://www.opensource.org/licenses/gpl-license.php
  17.  *    - Mozilla Public License 1.1 (MPL) - http://www.opensource.org/licenses/mozilla1.1.php
  18.  *  }}}
  19.  *
  20.  *  {@internal Open Source relicensing agreement:
  21.  *  }}}
  22.  *
  23.  * @package pond
  24.  */
  25. if!defined('QP_MAIN_INIT') ) die'Please, do not access this page directly.' );
  26.  
  27. global $cjob_row;
  28.  
  29. $Form new FormNULL'cronlog' );
  30.  
  31. $Form->global_iconT_('Close sheet')'close'regenerate_url'action,cjob_ID' ) );
  32.  
  33. $Form->begin_form'fform'T_('Scheduled job') );
  34.  
  35.     $Form->begin_fieldsetget_manual_link'job-details' ).T_('Job details') );
  36.  
  37.         $Form->infoT_('Job #')$cjob_row->ctsk_ID );
  38.         $Form->infoT_('Job name')$cjob_row->ctsk_name );
  39.         $Form->infoT_('Scheduled at')mysql2localedatetime($cjob_row->ctsk_start_datetime) );
  40.         $cjob_repeat_after '';
  41.         if$cjob_repeat_after_days floor$cjob_row->ctsk_repeat_after 86400 ) )
  42.         {
  43.             $cjob_repeat_after .= $cjob_repeat_after_days.' '.T_('days').' ';
  44.         }
  45.         if$cjob_repeat_after_hours floor( ($cjob_row->ctsk_repeat_after 86400 3600 ) )
  46.         {
  47.             $cjob_repeat_after .= $cjob_repeat_after_hours.' '.T_('hours').' ';
  48.         }
  49.         if$cjob_repeat_after_minutes floor( ($cjob_row->ctsk_repeat_after 3600 60 ) )
  50.         {
  51.             $cjob_repeat_after .= $cjob_repeat_after_minutes.' '.T_('minutes');
  52.         }
  53.  
  54.         $Form->infoT_('Repeat every')$cjob_repeat_after );
  55.  
  56.     $Form->end_fieldset();
  57.  
  58.     $Form->begin_fieldsetget_manual_link'execution-details' ).T_('Execution details') );
  59.  
  60.         ifempty$cjob_row->clog_status ) )
  61.         {
  62.             $Form->infoT_('Status')'pending' );
  63.         }
  64.         else
  65.         {
  66.             $Form->infoT_('Status')'<span class="cron_'.$cjob_row->clog_status.'">'.$cjob_row->clog_status.'</span>' );
  67.             $Form->infoT_('Real start time')mysql2localedatetime($cjob_row->clog_realstart_datetime) );
  68.             $Form->infoT_('Real stop time')mysql2localedatetime($cjob_row->clog_realstop_datetime) );
  69.             $Form->infoT_('Messages')str_replace"\n""<br />\n"$cjob_row->clog_messages ) );
  70.         }
  71.  
  72.     $Form->end_fieldset();
  73.  
  74. $Form->end_form();
  75.  
  76.  
  77. ?>