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