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 ********************************************************************************/
45 <div class="hr"></div>
47 <form enctype="multipart/form-data" real_id="importconfirm" id="importconfirm" name="importconfirm" method="POST" action="index.php">
48 <input type="hidden" name="module" value="Import">
49 <input type="hidden" name="type" value="{$TYPE}">
50 <input type="hidden" name="source" id="source" value="{$SOURCE}">
51 <input type="hidden" name="source_id" value="{$SOURCE_ID}">
52 <input type="hidden" name="action" value="Step3">
53 <input type="hidden" name="import_module" value="{$IMPORT_MODULE}">
54 <input type="hidden" name="import_type" value="{$TYPE}">
55 <input type="hidden" name="file_name" value="{$FILE_NAME}">
56 <input type="hidden" name="current_step" value="{$CURRENT_STEP}">
57 <input type="hidden" name="from_admin_wizard" value="{$smarty.request.from_admin_wizard}">
59 {if $AUTO_DETECT_ERROR != ''}
60 <div class="errorMessage">
61 <span class="error">{$AUTO_DETECT_ERROR}</span>
65 <div id="confirm_table" class="confirmTable">
66 {include file='modules/Import/tpls/confirm_table.tpl'}
71 <table cellpadding="0" cellspacing="0" width="100%">
73 <td align="left" colspan="4" style="background: transparent;">
74 <input title="{$MOD.LBL_SHOW_ADVANCED_OPTIONS}" accessKey="" id="toggleImportOptions" class="button" type="button"
75 name="button" value=" {$MOD.LBL_SHOW_ADVANCED_OPTIONS} "> {sugar_help text=$MOD.LBL_IMPORT_FILE_SETTINGS_HELP}
83 <div style="overflow: auto; width: 1056px;">
84 <table border=0 class="edit view noBorder" style="display: none;" id="importOptions">
87 <slot><label for="importlocale_charset">{$MOD.LBL_CHARSET}</label></slot>
90 <slot><select tabindex='4' id='importlocale_charset' name='importlocale_charset'>{$CHARSETOPTIONS}</select></slot>
93 <slot><label for="custom_delimiter">{$MOD.LBL_CUSTOM_DELIMITER}</label></slot>
97 <select name="custom_delimiter" id="custom_delimiter"> {$IMPORT_DELIMETER_OPTIONS}</select>
98 <input type="text" name="custom_delimiter_other" id="custom_delimiter_other" style="display: none; width: 5em;" maxlength="1" />
99 {sugar_help text=$MOD.LBL_FIELD_DELIMETED_HELP}
105 <slot><label for="custom_enclosure">{$MOD.LBL_CUSTOM_ENCLOSURE}</label></slot>
109 <select name="custom_enclosure" id="custom_enclosure">
110 {$IMPORT_ENCLOSURE_OPTIONS}
112 <input type="text" name="custom_enclosure_other" id="custom_enclosure_other" style="display: none; width: 5em;" maxlength="1" />
113 {sugar_help text=$MOD.LBL_ENCLOSURE_HELP}
117 <label for="has_header">{$MOD.LBL_HAS_HEADER}</label>
120 <input class="checkBox" value='on' type="checkbox" name="has_header" id="has_header" {$HAS_HEADER_CHECKED}> {sugar_help text=$MOD.LBL_HEADER_ROW_OPTION_HELP}
124 <td scope="col"><slot><label for="importlocale_dateformat">{$MOD.LBL_DATE_FORMAT}</label></slot></td>
125 <td ><slot><select tabindex='4' name='importlocale_dateformat' id='importlocale_dateformat'>{$DATEOPTIONS}</select></slot></td>
126 <td scope="col"><slot><label for="importlocale_time_format">{$MOD.LBL_TIME_FORMAT}</label></slot></td>
127 <td ><slot><select tabindex='4' id='importlocale_time_format' name='importlocale_timeformat'>{$TIMEOPTIONS}</select></slot></td>
130 <td scope="col"><slot><label for="importlocale_timezone">{$MOD.LBL_TIMEZONE}</label></slot></td>
131 <td ><slot><select tabindex='4' name='importlocale_timezone' id='importlocale_timezone'>{html_options options=$TIMEZONEOPTIONS selected=$TIMEZONE_CURRENT}</select></slot></td>
132 <td scope="col"><slot><label for="currency_select">{$MOD.LBL_CURRENCY}</label></slot></td>
134 <select tabindex='4' id='currency_select' name='importlocale_currency' onchange='setSymbolValue(this.selectedIndex);setSigDigits();'>{$CURRENCY}</select>
135 <input type="hidden" id="symbol" value="">
139 <td scope="col"><slot><label for="sigDigits">{$MOD.LBL_CURRENCY_SIG_DIGITS}:</label></slot></td>
140 <td ><slot><select id='sigDigits' onchange='setSigDigits(this.value);' name='importlocale_default_currency_significant_digits'>{$sigDigits}</select>
142 <td scope="col"><slot><i>{$MOD.LBL_LOCALE_EXAMPLE_NAME_FORMAT}</i>:</slot></td>
143 <td ><slot><input type="text" disabled id="sigDigitsExample" name="sigDigitsExample"></slot></td>
146 <td scope="col"><slot><label for="default_number_grouping_seperator">{$MOD.LBL_NUMBER_GROUPING_SEP}</label></slot></td>
148 <input tabindex='4' name='importlocale_num_grp_sep' id='default_number_grouping_seperator'
149 type='text' maxlength='1' size='1' value='{$NUM_GRP_SEP}' onkeydown='setSigDigits();' onkeyup='setSigDigits();'>
151 <td scope="col"><slot><label for="default_decimal_seperator">{$MOD.LBL_DECIMAL_SEP}</label></slot></td>
153 <input tabindex='4' name='importlocale_dec_sep' id='default_decimal_seperator'
154 type='text' maxlength='1' size='1' value='{$DEC_SEP}' onkeydown='setSigDigits();' onkeyup='setSigDigits();'>
158 <td scope="col" valign="top"><label for="default_locale_name_format">{$MOD.LBL_LOCALE_DEFAULT_NAME_FORMAT}</label>: </td>
160 <input onkeyup="setPreview();" onkeydown="setPreview();" id="default_locale_name_format" type="text" tabindex='4' name="importlocale_default_locale_name_format" value="{$default_locale_name_format}">
161 <br />{$MOD.LBL_LOCALE_NAME_FORMAT_DESC}
163 <td scope="col" valign="top"><i>{$MOD.LBL_LOCALE_EXAMPLE_NAME_FORMAT}:</i> </td>
164 <td valign="top"><input tabindex='4' id="nameTarget" name="no_value" id=":q" value="" style="border: none;" disabled size="50"></td>
172 <td colspan="2"><div class="hr" style="margin-top: 0px;"></div></td>
175 <td colspan="2" scope="col"><h3><label for="external_source">{$MOD.LBL_THIRD_PARTY_CSV_SOURCES}</label> {sugar_help text=$MOD.LBL_THIRD_PARTY_CSV_SOURCES_HELP}</h3></td>
178 <td colspan="2"><input class="radio" type="radio" name="external_source" value="" id='none' checked='checked'/> {$MOD.LBL_NONE}</td>
181 <td colspan="2"><input class="radio" type="radio" name="external_source" value="salesforce" id='sf_map'/> {$MOD.LBL_SALESFORCE}</td>
184 <td colspan="2"><input class="radio" type="radio" name="external_source" value="outlook" id='outlook_map'/> {$MOD.LBL_MICROSOFT_OUTLOOK} {sugar_help text=$MOD.LBL_MICROSOFT_OUTLOOK_HELP}</td>
187 <td colspan="2"> </td>
191 <table width="100%" cellpadding="2" cellspacing="0" border="0">
194 <input title="{$MOD.LBL_BACK}" accessKey="" id="goback" class="button" type="submit" name="button" value=" {$MOD.LBL_BACK} ">
195 <input title="{$MOD.LBL_NEXT}" accessKey="" class="button" type="submit" name="button" value=" {$MOD.LBL_NEXT} " id="gonext">