]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Administration/Locale.tpl
Release 6.5.0
[Github/sugarcrm.git] / modules / Administration / Locale.tpl
1 {*
2
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
41 *}
42
43
44 <script type="text/javascript">
45         var ERR_NO_SINGLE_QUOTE = '{$APP.ERR_NO_SINGLE_QUOTE}';
46         var cannotEq = "{$APP.ERR_DECIMAL_SEP_EQ_THOUSANDS_SEP}";
47 {literal}
48         function verify_data(formName) {
49                 var f = document.getElementById(formName);
50
51                 for(i=0; i<f.elements.length; i++) {
52                         if(f.elements[i].value == "'") {
53                                 alert(ERR_NO_SINGLE_QUOTE + " " + f.elements[i].name);
54                                 return false;
55                         }
56                 }
57                 // currency syntax
58                 if (document.ConfigureSettings.default_number_grouping_seperator.value == document.ConfigureSettings.default_decimal_seperator.value) {
59                         alert(cannotEq);
60                         return false;
61                 }
62                 return true;
63         }
64 </script>
65 {/literal}
66 <BR>
67 <form id="ConfigureSettings" name="ConfigureSettings" enctype='multipart/form-data' method="POST"
68         action="index.php?module=Administration&action=Locale&process=true">
69
70 <span class='error'>{$error.main}</span>
71
72 <table width="100%" cellpadding="0" cellspacing="0" border="0" class="actionsContainer">
73 <tr>
74         <td>
75                 <input title="{$APP.LBL_SAVE_BUTTON_TITLE}"
76                         accessKey="{$APP.LBL_SAVE_BUTTON_KEY}"
77                         class="button primary"
78                         type="submit"
79                         name="save"
80                         onclick="return verify_data('ConfigureSettings');"
81                         value="  {$APP.LBL_SAVE_BUTTON_LABEL}  " >
82                 &nbsp;<input title="{$MOD.LBL_CANCEL_BUTTON_TITLE}"  onclick="document.location.href='index.php?module=Administration&action=index'" class="button"  type="button" name="cancel" value="  {$APP.LBL_CANCEL_BUTTON_LABEL}  " > </td>
83         </tr>
84 </table>
85
86
87
88
89 <table width="100%" border="0" cellspacing="1" cellpadding="0" class="edit view">
90         <tr><th align="left" scope="row" colspan="4"><h4>{$MOD.LBL_LOCALE_DEFAULT_SYSTEM_SETTINGS}</h4></th>
91         </tr>
92         <tr>
93                 <td  scope="row" width="200">{$MOD.LBL_LOCALE_DEFAULT_DATE_FORMAT}: </td>
94                 <td  >
95                         {html_options name='default_date_format' selected=$config.default_date_format options=$config.date_formats}
96                 </td>
97                 <td  scope="row" width="200">{$MOD.LBL_LOCALE_DEFAULT_TIME_FORMAT}: </td>
98                 <td  >
99                         {html_options name='default_time_format' selected=$config.default_time_format options=$config.time_formats}
100                 </td>
101         </tr><tr>
102                 <td  scope="row">{$MOD.LBL_LOCALE_DEFAULT_LANGUAGE}: </td>
103                 <td  >
104                         {html_options name='default_language' selected=$config.default_language options=$LANGUAGES}
105                 </td>
106         </tr>
107         </tr><tr>
108                 <td  scope="row" valign="top">{$MOD.LBL_LOCALE_DEFAULT_NAME_FORMAT}: </td>
109                 <td>
110             {html_options name='default_locale_name_format' id="default_locale_name_format" selected=$config.default_locale_name_format options=$NAMEFORMATS}
111                 </td>
112         {if isset($upgradeInvalidLocaleNameFormat)}
113         <td>
114             {$MOD.ERR_INVALID_LOCALE_NAME_FORMAT_UPGRADE}
115         </td>
116         {/if}
117         </tr>
118
119         </table>
120
121
122
123 <table width="100%" border="0" cellspacing="1" cellpadding="0" class="edit view">
124         <tr>
125                 <th align="left" scope="row" colspan="4"><h4>{$MOD.LBL_LOCALE_DEFAULT_CURRENCY}</h4></th>
126         </tr><tr>
127                 <td  scope="row" width="200">{$MOD.LBL_LOCALE_DEFAULT_CURRENCY_NAME}: </td>
128                 <td  >
129                         <input type='text' size='25' name='default_currency_name' value='{$config.default_currency_name}' >
130                 </td>
131                 <td  scope="row" width="200">{$MOD.LBL_LOCALE_DEFAULT_CURRENCY_SYMBOL}: </td>
132                 <td  >
133                         <input type='text' size='4' name='default_currency_symbol'  value='{$config.default_currency_symbol}' >
134                 </td>
135         </tr><tr>
136                 <td  scope="row" width="200">{$MOD.LBL_LOCALE_DEFAULT_CURRENCY_ISO4217}: </td>
137                 <td  >
138                         <input type='text' size='4' name='default_currency_iso4217' value='{$config.default_currency_iso4217}'>
139                 </td>
140                 <td  scope="row">{$MOD.LBL_LOCALE_DEFAULT_NUMBER_GROUPING_SEP}: </td>
141                 <td  >
142                         <input type='text' size='3' maxlength='1' name='default_number_grouping_seperator' value='{$config.default_number_grouping_seperator}'>
143                 </td>
144         </tr><tr>
145                 <td  scope="row">{$MOD.LBL_LOCALE_DEFAULT_DECIMAL_SEP}: </td>
146                 <td  >
147                         <input type='text' size='3' maxlength='1' name='default_decimal_seperator'  value='{$config.default_decimal_seperator}'>
148                 </td>
149                 <td  scope="row"></td>
150                 <td  ></td>
151         </tr>
152 </table>
153
154
155
156 <table width="100%" border="0" cellspacing="1" cellpadding="0" class="edit view">
157         <tr><th align="left" scope="row" colspan="4"><h4>{$MOD.EXPORT}</h4></th>
158         </tr><tr>
159                 <td nowrap width="10%" scope="row">{$MOD.EXPORT_DELIMITER}: </td>
160                 <td width="25%" >
161                         <input type='text' name='export_delimiter' size="5" value='{$config.export_delimiter}'>
162                 </td>
163                 <td nowrap width="10%" scope="row">{$MOD.EXPORT_CHARSET}: </td>
164                 <td width="25%" >
165                         <select name="default_export_charset">{$exportCharsets}</select>
166                 </td>
167                 </tr><tr>
168                 <td nowrap width="10%" scope="row">{$MOD.DISABLE_EXPORT}: </td>
169                 {if !empty($config.disable_export)}
170                         {assign var='disable_export_checked' value='CHECKED'}
171                 {else}
172                         {assign var='disable_export_checked' value=''}
173                 {/if}
174                 <td width="25%" ><input type='hidden' name='disable_export' value='false'><input name='disable_export'  type="checkbox" value="true" {$disable_export_checked}></td>
175                 <td nowrap width="10%" scope="row">{$MOD.ADMIN_EXPORT_ONLY}: </td>
176                 {if !empty($config.admin_export_only)}
177                         {assign var='admin_export_only_checked' value='CHECKED'}
178                 {else}
179                         {assign var='admin_export_only_checked' value=''}
180                 {/if}
181                 <td width="20%" ><input type='hidden' name='admin_export_only' value='false'><input name='admin_export_only'  type="checkbox" value="true" {$admin_export_only_checked}></td>
182
183         </tr>
184 </table>
185
186
187 {if !empty($collationOptions)}
188 <table width="100%" border="0" cellspacing="1" cellpadding="0" class="edit view">
189         <tr>
190                 <th align="left" scope="row" colspan="2">
191                         <h4>
192                                 {$MOD.LBL_LOCALE_DB_COLLATION_TITLE}
193                         </h4>
194                 </th>
195         </tr>
196         <tr>
197                 <td scope="row" width="200">
198                         {$MOD.LBL_LOCALE_DB_COLLATION}
199                 </td>
200                 <td scope="row">
201                         <select name="collation" id="collation">{$collationOptions}</select>
202                 </td>
203         </tr>
204 </table>
205
206
207 {/if}
208 <div style="padding-top: 2px;">
209 <input title="{$APP.LBL_SAVE_BUTTON_TITLE}" class="button primary"  type="submit" name="save" value="  {$APP.LBL_SAVE_BUTTON_LABEL}  " />
210                 &nbsp;<input title="{$MOD.LBL_CANCEL_BUTTON_TITLE}"  onclick="document.location.href='index.php?module=Administration&action=index'" class="button"  type="button" name="cancel" value="  {$APP.LBL_CANCEL_BUTTON_LABEL}  " />
211 </div>
212 {$JAVASCRIPT}
213 </form>
214
215 <script language="Javascript" type="text/javascript">
216 {$getNameJs}
217 </script>