[ Index ] |
|
Code source de b2evolution 2.1.0-beta |
1 <?php 2 /** 3 * This file implements the UI view for the cron job 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.form.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 $localtimenow, $cron_job_names; 29 30 $Form = & new Form( NULL, 'cronjob' ); 31 32 $Form->global_icon( T_('Cancel!'), 'close', regenerate_url( 'action' ) ); 33 34 $Form->begin_form( 'fform', T_('New scheduled job') ); 35 36 $Form->hiddens_by_key( get_memorized( 'action' ) ); 37 $Form->hidden( 'action', 'create' ); 38 39 $Form->begin_fieldset( T_('Job details').get_manual_link('scheduler_job_form') ); 40 41 $Form->select_input_array( 'cjob_type', NULL, $cron_job_names, T_('Job type') ); 42 43 $Form->date_input( 'cjob_date', date2mysql( $localtimenow ), T_('Schedule date'), array( 44 'required' => true ) ); 45 46 $Form->time_input( 'cjob_time', date2mysql( $localtimenow ), T_('Schedule time'), array( 47 'required' => true ) ); 48 49 $Form->duration_input( 'cjob_repeat_after', 0, T_('Repeat every'), array( 'minutes_step' => 1 ) ); 50 51 $Form->end_fieldset(); 52 53 $Form->end_form( array( 54 array( 'submit', 'submit', T_('Create'), 'SaveButton' ), 55 array( 'reset', '', T_('Reset'), 'ResetButton' ), 56 ) ); 57 58 59 /* 60 * $Log: _cronjob.form.php,v $ 61 * Revision 1.2 2007/09/12 21:00:31 fplanque 62 * UI improvements 63 * 64 * Revision 1.1 2007/06/25 10:59:48 fplanque 65 * MODULES (refactored MVC) 66 * 67 * Revision 1.5 2007/04/26 00:11:09 fplanque 68 * (c) 2007 69 * 70 * Revision 1.4 2007/01/23 08:57:36 fplanque 71 * decrap! 72 * 73 * Revision 1.3 2006/11/24 18:27:25 blueyed 74 * Fixed link to b2evo CVS browsing interface in file docblocks 75 * 76 * Revision 1.2 2006/07/01 23:47:42 fplanque 77 * fixed dirty bug 78 * 79 * Revision 1.1 2006/06/26 23:09:34 fplanque 80 * Really working cronjob environment :) 81 * 82 */ 83 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Thu Nov 29 23:58:50 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |