]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Administration/Locale.tpl
Release 6.4.0beta3
[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-2011 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         </tr>
113
114         </table>
115
116
117
118 <table width="100%" border="0" cellspacing="1" cellpadding="0" class="edit view">
119         <tr>
120                 <th align="left" scope="row" colspan="4"><h4>{$MOD.LBL_LOCALE_DEFAULT_CURRENCY}</h4></th>
121         </tr><tr>
122                 <td  scope="row" width="200">{$MOD.LBL_LOCALE_DEFAULT_CURRENCY_NAME}: </td>
123                 <td  >
124                         <input type='text' size='25' name='default_currency_name' value='{$config.default_currency_name}' >
125                 </td>
126                 <td  scope="row" width="200">{$MOD.LBL_LOCALE_DEFAULT_CURRENCY_SYMBOL}: </td>
127                 <td  >
128                         <input type='text' size='4' name='default_currency_symbol'  value='{$config.default_currency_symbol}' >
129                 </td>
130         </tr><tr>
131                 <td  scope="row" width="200">{$MOD.LBL_LOCALE_DEFAULT_CURRENCY_ISO4217}: </td>
132                 <td  >
133                         <input type='text' size='4' name='default_currency_iso4217' value='{$config.default_currency_iso4217}'>
134                 </td>
135                 <td  scope="row">{$MOD.LBL_LOCALE_DEFAULT_NUMBER_GROUPING_SEP}: </td>
136                 <td  >
137                         <input type='text' size='3' maxlength='1' name='default_number_grouping_seperator' value='{$config.default_number_grouping_seperator}'>
138                 </td>
139         </tr><tr>
140                 <td  scope="row">{$MOD.LBL_LOCALE_DEFAULT_DECIMAL_SEP}: </td>
141                 <td  >
142                         <input type='text' size='3' maxlength='1' name='default_decimal_seperator'  value='{$config.default_decimal_seperator}'>
143                 </td>
144                 <td  scope="row"></td>
145                 <td  ></td>
146         </tr>
147 </table>
148
149
150
151 <table width="100%" border="0" cellspacing="1" cellpadding="0" class="edit view">
152         <tr><th align="left" scope="row" colspan="4"><h4>{$MOD.EXPORT}</h4></th>
153         </tr><tr>
154                 <td nowrap width="10%" scope="row">{$MOD.EXPORT_DELIMITER}: </td>
155                 <td width="25%" >
156                         <input type='text' name='export_delimiter' size="5" value='{$config.export_delimiter}'>
157                 </td>
158                 <td nowrap width="10%" scope="row">{$MOD.EXPORT_CHARSET}: </td>
159                 <td width="25%" >
160                         <select name="default_export_charset">{$exportCharsets}</select>
161                 </td>
162                 </tr><tr>
163                 <td nowrap width="10%" scope="row">{$MOD.DISABLE_EXPORT}: </td>
164                 {if !empty($config.disable_export)}
165                         {assign var='disable_export_checked' value='CHECKED'}
166                 {else}
167                         {assign var='disable_export_checked' value=''}
168                 {/if}
169                 <td width="25%" ><input type='hidden' name='disable_export' value='false'><input name='disable_export'  type="checkbox" value="true" {$disable_export_checked}></td>
170                 <td nowrap width="10%" scope="row">{$MOD.ADMIN_EXPORT_ONLY}: </td>
171                 {if !empty($config.admin_export_only)}
172                         {assign var='admin_export_only_checked' value='CHECKED'}
173                 {else}
174                         {assign var='admin_export_only_checked' value=''}
175                 {/if}
176                 <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>
177
178         </tr>
179 </table>
180
181
182 {if !empty($collationOptions)}
183 <table width="100%" border="0" cellspacing="1" cellpadding="0" class="edit view">
184         <tr>
185                 <th align="left" scope="row" colspan="2">
186                         <h4>
187                                 {$MOD.LBL_LOCALE_DB_COLLATION_TITLE}
188                         </h4>
189                 </th>
190         </tr>
191         <tr>
192                 <td scope="row" width="200">
193                         {$MOD.LBL_LOCALE_DB_COLLATION}
194                 </td>
195                 <td scope="row">
196                         <select name="collation" id="collation">{$collationOptions}</select>
197                 </td>
198         </tr>
199 </table>
200
201
202
203 {/if}
204 <div style="padding-top: 2px;">
205 <input title="{$APP.LBL_SAVE_BUTTON_TITLE}" class="button primary"  type="submit" name="save" value="  {$APP.LBL_SAVE_BUTTON_LABEL}  " />
206                 &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}  " />
207 </div>
208 {$JAVASCRIPT}
209 </form>
210
211 <script language="Javascript" type="text/javascript">
212 {$getNameJs}
213 setPreview();
214 </script>