2 if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 /*********************************************************************************
4 * SugarCRM Community Edition is a customer relationship management program developed by
5 * SugarCRM, Inc. Copyright (C) 2004-2012 SugarCRM Inc.
7 * This program is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU Affero General Public License version 3 as published by the
9 * Free Software Foundation with the addition of the following permission added
10 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
11 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
12 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
14 * This program is distributed in the hope that it will be useful, but WITHOUT
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
19 * You should have received a copy of the GNU Affero General Public License along with
20 * this program; if not, see http://www.gnu.org/licenses or write to the Free
21 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
25 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
27 * The interactive user interfaces in modified source and object code versions
28 * of this program must display Appropriate Legal Notices, as required under
29 * Section 5 of the GNU Affero General Public License version 3.
31 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
32 * these Appropriate Legal Notices must retain the display of the "Powered by
33 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
34 * technical reasons, the Appropriate Legal Notices must display the words
35 * "Powered by SugarCRM".
36 ********************************************************************************/
40 $viewdefs['Schedulers']['EditView'] = array(
41 'templateMeta' => array(
44 array('label' => '10', 'field' => '30'),
45 array('label' => '10', 'field' => '30'),
48 array('file'=>'modules/Schedulers/Schedulers.js'),
54 array('name', 'status'),
55 array('job_function', "job_url"),
56 array('adv_interval'),
57 array(array('name'=>'job_interval', 'label' => 'LBL_INTERVAL', 'customCode'=>'
58 <div id="job_interval_advanced">
60 var adv_interval = {$adv_interval};
62 <table cellpadding="0" cellspacing="0">
64 <td>{$MOD.LBL_MINS}</td>
65 <td>{$MOD.LBL_HOURS}</td>
66 <td>{$MOD.LBL_DAY_OF_MONTH}</td>
67 <td>{$MOD.LBL_MONTHS}</td>
68 <td>{$MOD.LBL_DAY_OF_WEEK}</td>
70 <td><input name="mins" maxlength="25" type="text" size="3" value="{$mins}"></td>
71 <td><input name="hours" maxlength="25" type="text" size="3" value="{$hours}"></td>
72 <td><input name="day_of_month" maxlength="25" type="text" size="3" value="{$day_of_month}"></td>
73 <td><input name="months" maxlength="25" type="text" size="3" value="{$months}"></td>
74 <td><input name="day_of_week" maxlength="25" type="text" size="3" value="{$day_of_week}"></td>
77 <em>{$MOD.LBL_CRONTAB_EXAMPLES}</em>
83 array(array('name'=>'job_interval', 'label' => 'LBL_INTERVAL','customCode'=>'
84 <div id="job_interval_basic">
85 <table cellpadding="0" cellspacing="0" border="0">
87 <td valign="top" width="25%">
88 {$MOD.LBL_EVERY}
89 <select name="basic_interval">{html_options options=$basic_intervals selected=$basic_interval}</select>
90 <select name="basic_period">{html_options options=$basic_periods selected=$basic_period}</select>
92 <td valign="top" width="25%">
93 <table cellpadding="0" cellspacing="0" border="0">
95 <td><slot><input type="checkbox" name="all" value="true" id="all" {$ALL} onClick="allDays();"> <i>{$MOD.LBL_ALL}</i></slot></td>
98 <td><slot><input type="checkbox" name="mon" value="true" id="mon" {$MON}> {$MOD.LBL_MON}</slot></td>
101 <td><slot><input type="checkbox" name="tue" value="true" id="tue" {$TUE}> {$MOD.LBL_TUE}</slot></td>
104 <td><slot><input type="checkbox" name="wed" value="true" id="wed" {$WED}> {$MOD.LBL_WED}</slot></td>
109 <td valign="top" width="25%">
110 <table cellpadding="0" cellspacing="0" border="0">
112 <td><slot><input type="checkbox" name="thu" value="true" id="thu" {$THU}> {$MOD.LBL_THU}</slot></td>
115 <td><slot><input type="checkbox" name="fri" value="true" id="fri" {$FRI}> {$MOD.LBL_FRI}</slot></td>
118 <td><slot><input type="checkbox" name="sat" value="true" id="sat" {$SAT}> {$MOD.LBL_SAT}</slot></td>
121 <td><slot><input type="checkbox" name="sun" value="true" id="sun" {$SUN}> {$MOD.LBL_SUN}</slot></td>
130 'lbl_adv_options'=>array(
131 array(array('name' => 'catch_up', 'prefix' => '{sugar_help text=$MOD.LBL_CATCH_UP_WARNING}')),
132 array('date_time_start','time_from'),
133 array('date_time_end','time_to'),