]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Schedulers/metadata/editviewdefs.php
Release 6.5.0
[Github/sugarcrm.git] / modules / Schedulers / metadata / editviewdefs.php
1 <?php
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.
6  * 
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.
13  * 
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
17  * details.
18  * 
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
22  * 02110-1301 USA.
23  * 
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.
26  * 
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.
30  * 
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  ********************************************************************************/
37
38
39
40 $viewdefs['Schedulers']['EditView'] = array(
41     'templateMeta' => array(
42                             'maxColumns' => '2',
43                             'widths' => array(
44                                             array('label' => '10', 'field' => '30'),
45                                             array('label' => '10', 'field' => '30'),
46                                            ),
47                             'includes'=> array(
48                                             array('file'=>'modules/Schedulers/Schedulers.js'),
49                                          ),
50                            ),
51
52     'panels' => array(
53                 'default'=>array(
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">
59                                 <script>
60                                         var adv_interval = {$adv_interval};
61                                 </script>
62                                 <table cellpadding="0" cellspacing="0">
63                                         <tr>
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>
69                                         </tr><tr>
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>
75                                         </tr><tr>
76                                                 <td colspan="5">
77                                                         <em>{$MOD.LBL_CRONTAB_EXAMPLES}</em>
78                                                 </td>
79                                         </tr>
80                                 </table>
81                                 </div>
82                                 ')),
83                                 array(array('name'=>'job_interval', 'label' => 'LBL_INTERVAL','customCode'=>'
84                                 <div id="job_interval_basic">
85                                 <table cellpadding="0" cellspacing="0" border="0">
86                                         <tr>
87                                                 <td valign="top" width="25%">
88                                                         &nbsp;{$MOD.LBL_EVERY}&nbsp;
89                                                         <select name="basic_interval">{html_options options=$basic_intervals selected=$basic_interval}</select>&nbsp;
90                                                         <select name="basic_period">{html_options options=$basic_periods selected=$basic_period}</select>
91                                                 </td>
92                                                 <td valign="top" width="25%">
93                                                 <table cellpadding="0" cellspacing="0" border="0">
94                                                         <tr>
95                                                                 <td><slot><input type="checkbox" name="all" value="true" id="all" {$ALL} onClick="allDays();">&nbsp;<i>{$MOD.LBL_ALL}</i></slot></td>
96                                                         </tr>
97                                                         <tr>
98                                                                 <td><slot><input type="checkbox" name="mon" value="true" id="mon" {$MON}>&nbsp;{$MOD.LBL_MON}</slot></td>
99                                                         </tr>
100                                                         <tr>
101                                                                 <td><slot><input type="checkbox" name="tue" value="true" id="tue"  {$TUE}>&nbsp;{$MOD.LBL_TUE}</slot></td>
102                                                         </tr>
103                                                         <tr>
104                                                                 <td><slot><input type="checkbox" name="wed" value="true" id="wed"  {$WED}>&nbsp;{$MOD.LBL_WED}</slot></td>
105                                                         </tr>
106                                                 </table>
107                                                 </td>
108
109                                                 <td valign="top" width="25%">
110                                                 <table cellpadding="0" cellspacing="0" border="0">
111                                                         <tr>
112                                                                 <td><slot><input type="checkbox" name="thu" value="true" id="thu"  {$THU}>&nbsp;{$MOD.LBL_THU}</slot></td>
113                                                         </tr>
114                                                         <tr>
115                                                                 <td><slot><input type="checkbox" name="fri" value="true" id="fri"  {$FRI}>&nbsp;{$MOD.LBL_FRI}</slot></td>
116                                                         </tr>
117                                                         <tr>
118                                                                 <td><slot><input type="checkbox" name="sat" value="true" id="sat"  {$SAT}>&nbsp;{$MOD.LBL_SAT}</slot></td>
119                                                         </tr>
120                                                         <tr>
121                                                                 <td><slot><input type="checkbox" name="sun" value="true" id="sun"  {$SUN}>&nbsp;{$MOD.LBL_SUN}</slot></td>
122                                                         </tr>
123                                                 </table>
124                                                 </td>
125                                         </tr>
126                                 </table>
127                                 </div>
128                                 '))
129                            ),
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'),
134                                 ),
135         ),
136
137 );