Source for file _cronjob.view.php
Documentation is available at _cronjob.view.php
* This file implements the UI view for the cron log form.
* This file is part of Quam Plures - {@link http://quamplures.net/}
* See also {@link https://launchpad.net/quam-plures}.
* @copyright (c) 2009 - 2011 by the Quam Plures developers - {@link http://quamplures.net/}
* @copyright (c)2003-2009 by Francois PLANQUE - {@link http://fplanque.net/}
* {@internal License choice
* - If you have received this file as part of a package, please find the license.txt file in
* the same folder or the closest folder above for complete license terms.
* - If you have received this file individually (e-g: from http://evocms.cvs.sourceforge.net/)
* then you must choose one of the following licenses before using the file:
* - GNU General Public License 2 (GPL) - http://www.opensource.org/licenses/gpl-license.php
* - Mozilla Public License 1.1 (MPL) - http://www.opensource.org/licenses/mozilla1.1.php
* {@internal Open Source relicensing agreement:
if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
$Form = new Form( NULL, 'cronlog' );
$Form->global_icon( T_('Close sheet'), 'close', regenerate_url( 'action,cjob_ID' ) );
$Form->begin_form( 'fform', T_('Scheduled job') );
$Form->info( T_('Job #'), $cjob_row->ctsk_ID );
$Form->info( T_('Job name'), $cjob_row->ctsk_name );
if( $cjob_repeat_after_days = floor( $cjob_row->ctsk_repeat_after / 86400 ) )
$cjob_repeat_after .= $cjob_repeat_after_days. ' '. T_('days'). ' ';
if( $cjob_repeat_after_hours = floor( ($cjob_row->ctsk_repeat_after % 86400 ) / 3600 ) )
$cjob_repeat_after .= $cjob_repeat_after_hours. ' '. T_('hours'). ' ';
if( $cjob_repeat_after_minutes = floor( ($cjob_row->ctsk_repeat_after % 3600 ) / 60 ) )
$cjob_repeat_after .= $cjob_repeat_after_minutes. ' '. T_('minutes');
$Form->info( T_('Repeat every'), $cjob_repeat_after );
$Form->begin_fieldset( get_manual_link( 'execution-details' ). T_('Execution details') );
if( empty( $cjob_row->clog_status ) )
$Form->info( T_('Status'), 'pending' );
$Form->info( T_('Status'), '<span class="cron_'. $cjob_row->clog_status. '">'. $cjob_row->clog_status. '</span>' );
$Form->info( T_('Messages'), str_replace( "\n", "<br />\n", $cjob_row->clog_messages ) );
|