3 /*********************************************************************************
4 * SugarCRM Community Edition is a customer relationship management program developed by
5 * SugarCRM, Inc. Copyright (C) 2004-2012 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 ********************************************************************************/
47 text-decoration:underline
55 <div class="hr"></div>
57 <form enctype="multipart/form-data" name="importstep2" method="POST" action="index.php" id="importstep2">
58 <input type="hidden" name="module" value="Import">
59 <input type="hidden" name="custom_delimiter" value="{$CUSTOM_DELIMITER}">
60 <input type="hidden" name="custom_enclosure" value="{$CUSTOM_ENCLOSURE}">
61 <input type="hidden" name="source" value="{$SOURCE}">
62 <input type="hidden" name="source_id" value="{$SOURCE_ID}">
63 <input type="hidden" name="action" value="Confirm">
64 <input type="hidden" name="current_step" value="{$CURRENT_STEP}">
65 <input type="hidden" name="import_module" value="{$IMPORT_MODULE}">
66 <input type="hidden" name="from_admin_wizard" value="{$smarty.request.from_admin_wizard}">
67 <table width="100%" border="0" cellspacing="0" cellpadding="0">
70 <table border="0" cellspacing="0" cellpadding="0" width="100%">
72 <td align="left" scope="row" colspan="4" style="padding-left: 10px;">{$SAMPLE_URL} {sugar_help text=$MOD.LBL_SAMPLE_URL_HELP}</td>
75 <td scope="row" colspan="4"> </td>
78 <td scope="row" colspan="4"> </td>
81 <td align="left" scope="row" colspan="3"><label for="userfile">{$MOD.LBL_SELECT_FILE}</label> <input type="hidden" /><input size="20" id="userfile" name="userfile" type="file"/> {sugar_help text=$MOD.LBL_FILE_UPLOAD_WIDGET_HELP}</td>
84 <td scope="row" colspan="4"><div class="hr"> </div></td>
87 <td scope="row" colspan="4"> </td>
90 <td scope="row" colspan="3">
91 <h3>{$MOD.LBL_IMPORT_TYPE} </h3></td>
94 <td scope="row" colspan="3">
95 <input id="import_create" class="radio" type="radio" name="type" value="import" checked="checked" />
96 <label for="type">{$MOD.LBL_IMPORT_BUTTON}</label> {sugar_help text=$MOD.LBL_CREATE_BUTTON_HELP}
100 <td scope="row" colspan="3">
101 <input id="import_update" class="radio" type="radio" name="type" id="type" value="update" />
102 <label for="type">{$MOD.LBL_UPDATE_BUTTON}</label> {sugar_help text=$MOD.LBL_UPDATE_BUTTON_HELP}
107 <table border="0" cellspacing="0" cellpadding="0" width="100%">
108 {foreach from=$custom_mappings item=item name=custommappings}
109 {capture assign=mapping_label}{$MOD.LBL_CUSTOM_MAPPING_}{$item|upper}{/capture}
111 <td colspan="3" scope="row"><input class="radio" type="radio" id="source" name="source" value="{$item}" />
112 <label for="source">{$mapping_label}</label></td>
116 {if !empty($custom_imports) || !empty($published_imports)}
118 <td scope="row" colspan="3">
119 <h3>{$MOD.LBL_PUBLISHED_SOURCES} {sugar_help text=$savedMappingHelpText}</h3></td>
122 <tr id="custom_import_{$smarty.foreach.saved.index}">
123 <td scope="row" colspan="4">
124 <input class="radio" type="radio" name="source" value=""/>
125 {$MOD.LBL_NONE}
130 {foreach from=$custom_imports key=key item=item name=saved}
131 <tr id="custom_import_{$smarty.foreach.saved.index}">
132 <td scope="row" colspan="2" width="10%" style="padding-right: 10px;">
133 <input class="radio" type="radio" name="source" value="custom:{$item.IMPORT_ID}"/>
134 {$item.IMPORT_NAME}
138 <input type="button" name="publish" value="{$MOD.LBL_PUBLISH}" class="button" publish="yes"
139 onclick="publishMapping(this, 'yes','{$item.IMPORT_ID}');">
141 <input type="button" name="delete" value="{$MOD.LBL_DELETE}" class="button"
142 onclick="if(confirm('{$MOD.LBL_DELETE_MAP_CONFIRMATION}')){literal}{{/literal} deleteMapping('custom_import_{$smarty.foreach.saved.index}', '{$item.IMPORT_ID}' );{literal}}{/literal}">
147 {foreach from=$published_imports key=key item=item name=published}
148 <tr id="published_import_{$smarty.foreach.published.index}">
149 <td scope="row" colspan="2">
150 <input class="radio" type="radio" name="source" value="custom:{$item.IMPORT_ID}"/>
151 {$item.IMPORT_NAME}
155 <input type="button" name="publish" value="{$MOD.LBL_UNPUBLISH}" class="button" publish="no"
156 onclick="publishMapping(this, 'no','{$item.IMPORT_ID}');">
157 <input type="button" name="delete" value="{$MOD.LBL_DELETE}" class="button"
158 onclick="if(confirm('{$MOD.LBL_DELETE_MAP_CONFIRMATION}')){literal}{{/literal}deleteMapping('published_import_{$smarty.foreach.published.index}','{$item.IMPORT_ID}' );{literal}}{/literal}">
170 <table width="100%" cellpadding="0" cellspacing="0" border="0">
173 {if $displayBackBttn}
174 <input title="{$MOD.LBL_BACK}" class="button" type="submit" name="button" value=" {$MOD.LBL_BACK} " id="goback">
176 <input title="{$MOD.LBL_NEXT}" class="button" type="submit" name="button" value=" {$MOD.LBL_NEXT} " id="gonext">