3 /*********************************************************************************
4 * SugarCRM Community Edition is a customer relationship management program developed by
5 * SugarCRM, Inc. Copyright (C) 2004-2011 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 ********************************************************************************/
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}";
48 function verify_data(formName) {
49 var f = document.getElementById(formName);
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);
58 if (document.ConfigureSettings.default_number_grouping_seperator.value == document.ConfigureSettings.default_decimal_seperator.value) {
67 <form id="ConfigureSettings" name="ConfigureSettings" enctype='multipart/form-data' method="POST"
68 action="index.php?module=Administration&action=Locale&process=true">
70 <span class='error'>{$error.main}</span>
72 <table width="100%" cellpadding="0" cellspacing="0" border="0" class="actionsContainer">
75 <input title="{$APP.LBL_SAVE_BUTTON_TITLE}"
76 accessKey="{$APP.LBL_SAVE_BUTTON_KEY}"
77 class="button primary"
80 onclick="return verify_data('ConfigureSettings');"
81 value=" {$APP.LBL_SAVE_BUTTON_LABEL} " >
82 <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>
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>
93 <td scope="row" width="200">{$MOD.LBL_LOCALE_DEFAULT_DATE_FORMAT}: </td>
95 {html_options name='default_date_format' selected=$config.default_date_format options=$config.date_formats}
97 <td scope="row" width="200">{$MOD.LBL_LOCALE_DEFAULT_TIME_FORMAT}: </td>
99 {html_options name='default_time_format' selected=$config.default_time_format options=$config.time_formats}
102 <td scope="row">{$MOD.LBL_LOCALE_DEFAULT_LANGUAGE}: </td>
104 {html_options name='default_language' selected=$config.default_language options=$LANGUAGES}
108 <td scope="row" valign="top">{$MOD.LBL_LOCALE_DEFAULT_NAME_FORMAT}: </td>
110 {html_options name='default_locale_name_format' id="default_locale_name_format" selected=$config.default_locale_name_format options=$NAMEFORMATS}
112 {if isset($upgradeInvalidLocaleNameFormat)}
114 {$MOD.ERR_INVALID_LOCALE_NAME_FORMAT_UPGRADE}
123 <table width="100%" border="0" cellspacing="1" cellpadding="0" class="edit view">
125 <th align="left" scope="row" colspan="4"><h4>{$MOD.LBL_LOCALE_DEFAULT_CURRENCY}</h4></th>
127 <td scope="row" width="200">{$MOD.LBL_LOCALE_DEFAULT_CURRENCY_NAME}: </td>
129 <input type='text' size='25' name='default_currency_name' value='{$config.default_currency_name}' >
131 <td scope="row" width="200">{$MOD.LBL_LOCALE_DEFAULT_CURRENCY_SYMBOL}: </td>
133 <input type='text' size='4' name='default_currency_symbol' value='{$config.default_currency_symbol}' >
136 <td scope="row" width="200">{$MOD.LBL_LOCALE_DEFAULT_CURRENCY_ISO4217}: </td>
138 <input type='text' size='4' name='default_currency_iso4217' value='{$config.default_currency_iso4217}'>
140 <td scope="row">{$MOD.LBL_LOCALE_DEFAULT_NUMBER_GROUPING_SEP}: </td>
142 <input type='text' size='3' maxlength='1' name='default_number_grouping_seperator' value='{$config.default_number_grouping_seperator}'>
145 <td scope="row">{$MOD.LBL_LOCALE_DEFAULT_DECIMAL_SEP}: </td>
147 <input type='text' size='3' maxlength='1' name='default_decimal_seperator' value='{$config.default_decimal_seperator}'>
149 <td scope="row"></td>
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>
159 <td nowrap width="10%" scope="row">{$MOD.EXPORT_DELIMITER}: </td>
161 <input type='text' name='export_delimiter' size="5" value='{$config.export_delimiter}'>
163 <td nowrap width="10%" scope="row">{$MOD.EXPORT_CHARSET}: </td>
165 <select name="default_export_charset">{$exportCharsets}</select>
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'}
172 {assign var='disable_export_checked' value=''}
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'}
179 {assign var='admin_export_only_checked' value=''}
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>
187 {if !empty($collationOptions)}
188 <table width="100%" border="0" cellspacing="1" cellpadding="0" class="edit view">
190 <th align="left" scope="row" colspan="2">
192 {$MOD.LBL_LOCALE_DB_COLLATION_TITLE}
197 <td scope="row" width="200">
198 {$MOD.LBL_LOCALE_DB_COLLATION}
201 <select name="collation" id="collation">{$collationOptions}</select>
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 <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} " />
215 <script language="Javascript" type="text/javascript">