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 ********************************************************************************/
48 <form enctype="multipart/form-data" real_id="importstep3" id="importstep3" name="importstep3" method="POST" action="index.php">
49 <input type="hidden" name="module" value="Import">
50 <input type="hidden" name="previous_action" value="Confirm">
51 <input type="hidden" name="custom_delimiter" value="{$CUSTOM_DELIMITER}">
52 <input type="hidden" name="custom_enclosure" value="{$CUSTOM_ENCLOSURE}">
53 <input type="hidden" name="import_type" value="{$TYPE}">
54 <input type="hidden" name="source" value="{$smarty.request.source}">
55 <input type="hidden" name="source_id" value="{$smarty.request.source_id}">
56 <input type="hidden" name="action" value="Step3">
57 <input type="hidden" name="import_module" value="{$IMPORT_MODULE}">
58 <input type="hidden" name="has_header" value="{$HAS_HEADER}">
59 <input type="hidden" name="tmp_file" value="{$TMP_FILE}">
60 <input type="hidden" name="tmp_file_base" value="{$TMP_FILE}">
61 <input type="hidden" name="firstrow" value="{$FIRSTROW}">
62 <input type="hidden" name="columncount" value ="{$COLUMNCOUNT}">
63 <input type="hidden" name="current_step" value="{$CURRENT_STEP}">
64 <input type="hidden" name="importlocale_charset" value="{$smarty.request.importlocale_charset}">
65 <input type="hidden" name="importlocale_dateformat" value="{$smarty.request.importlocale_dateformat}">
66 <input type="hidden" name="importlocale_timeformat" value="{$smarty.request.importlocale_timeformat}">
67 <input type="hidden" name="importlocale_timezone" value="{$smarty.request.importlocale_timezone}">
68 <input type="hidden" name="importlocale_currency" value="{$smarty.request.importlocale_currency}">
69 <input type="hidden" name="importlocale_default_currency_significant_digits" value="{$smarty.request.importlocale_default_currency_significant_digits}">
70 <input type="hidden" name="importlocale_num_grp_sep" value="{$smarty.request.importlocale_num_grp_sep}">
71 <input type="hidden" name="importlocale_dec_sep" value="{$smarty.request.importlocale_dec_sep}">
72 <input type="hidden" name="importlocale_default_locale_name_format" value="{$smarty.request.importlocale_default_locale_name_format}">
73 <input type="hidden" name="from_admin_wizard" value="{$smarty.request.from_admin_wizard}">
78 <input title="{$MOD.LBL_SHOW_ADVANCED_OPTIONS}" accessKey="" id="toggleNotes" class="button" type="button"
79 name="button" value=" {$MOD.LBL_SHOW_NOTES} ">
80 <div id="importNotes" style="display: none;">
88 <div class="hr"></div>
91 <table border="0" cellspacing="0" cellpadding="0" width="100%" id="importTable" class="detail view">
92 {foreach from=$rows key=key item=item name=rows}
93 {if $smarty.foreach.rows.first}
95 {if $HAS_HEADER == 'on'}
96 <td style="text-align: left;" scope="row">
97 <b>{$MOD.LBL_HEADER_ROW}</b>
98 {sugar_help text=$MOD.LBL_HEADER_ROW_HELP}
101 <td style="text-align: left;" scope="row">
102 <b>{$MOD.LBL_DATABASE_FIELD}</b>
103 {sugar_help text=$MOD.LBL_DATABASE_FIELD_HELP}
105 <td style="text-align: left;" scope="row">
106 <b>{$MOD.LBL_ROW} 1</b>
107 {sugar_help text=$MOD.LBL_ROW_HELP}
109 {if $HAS_HEADER != 'on'}
110 <td style="text-align: left;" scope="row"><b>{$MOD.LBL_ROW} 2</b></td>
112 <td style="text-align: left;" scope="row" id="default_column_header" width="10%">
113 <span id="hide_default_link" class="expand"> <b id="">{$MOD.LBL_DEFAULT_VALUE}</b>
114 {sugar_help text=$MOD.LBL_DEFAULT_VALUE_HELP}</span>
115 <span id="default_column_header_span"> </span>
120 {if $HAS_HEADER == 'on'}
121 <td id="row_{$smarty.foreach.rows.index}_header">{$item.cell1}</td>
123 <td valign="top" align="left" id="row_{$smarty.foreach.rows.index}_col_0">
124 <select class='fixedwidth' name="colnum_{$smarty.foreach.rows.index}">
125 <option value="-1">{$MOD.LBL_DONT_MAP}</option>
126 {$item.field_choices}
129 {if $item.show_remove}
131 <input title="{$MOD.LBL_REMOVE_ROW}" accessKey=""
132 id="deleterow_{$smarty.foreach.rows.index}" class="button" type="button"
133 value=" {$MOD.LBL_REMOVE_ROW} ">
136 {if $HAS_HEADER != 'on'}
137 <td id="row_{$smarty.foreach.rows.index}_col_1" scope="row">{$item.cell1}</td>
139 <td id="row_{$smarty.foreach.rows.index}_col_2" scope="row" colspan="2">{$item.cell2}</td>
141 <td id="defaultvaluepicker_{$smarty.foreach.rows.index}" nowrap="nowrap">
142 {$item.default_field}
147 <td align="left" colspan="4">
148 <input title="{$MOD.LBL_ADD_ROW}" accessKey="" id="addrow" class="button" type="button"
149 name="button" value=" {$MOD.LBL_ADD_ROW} "> {sugar_help text=$MOD.LBL_ADD_FIELD_HELP}
150
157 <table width="100%" cellpadding="2" cellspacing="0" border="0">
160 <input title="{$MOD.LBL_BACK}" accessKey="" id="goback" class="button" type="submit" name="button" value=" {$MOD.LBL_BACK} ">
161 <input title="{$MOD.LBL_NEXT}" accessKey="" id="gonext" class="button" type="submit" name="button" value=" {$MOD.LBL_NEXT} ">