3 /*********************************************************************************
4 * SugarCRM 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 <span class="error">{$ERROR}</span>
48 <form enctype="multipart/form-data" name="importstep1" method="post" action="index.php" id="importstep1">
49 <input type="hidden" name="module" value="Import">
50 <input type="hidden" name="action" value="Step2">
51 <input type="hidden" name="import_module" value="{$IMPORT_MODULE}">
53 <table width="100%" border="0" cellspacing="0" cellpadding="0" class="edit view">
56 <table width="100%" border="0" cellspacing="0" cellpadding="0">
58 <td valign="top" width='50%' scope="row"><table border="0" cellpadding="0" cellspacing="0">
60 <td align="left" scope="row" colspan="3"><h3>{$MOD.LBL_WHAT_IS} <span class="required">*</span></h3></td>
63 <td colspan="3" scope="row"><input class="radio" type="radio" name="source" value="csv" checked="checked" />
64 {$MOD.LBL_CSV} {sugar_help text=$MOD.LBL_DELIMITER_COMMA_HELP}</td>
66 <tr id="customEnclosure">
67 <td scope="row"> {$MOD.LBL_CUSTOM_ENCLOSURE}</td>
68 <td colspan="2" scope="row">
69 <select name="custom_enclosure" id="custom_enclosure">
70 <option value=""" selected="selected">{$MOD.LBL_OPTION_ENCLOSURE_DOUBLEQUOTE}</option>
71 <option value="'">{$MOD.LBL_OPTION_ENCLOSURE_QUOTE}</option>
72 <option value="">{$MOD.LBL_OPTION_ENCLOSURE_NONE}</option>
73 <option value="other">{$MOD.LBL_OPTION_ENCLOSURE_OTHER}</option>
75 <input type="text" name="custom_enclosure_other" style="display: none; width: 5em;" maxlength="1" />
76 {sugar_help text=$MOD.LBL_ENCLOSURE_HELP}
80 <td colspan="3" scope="row"><input class="radio" type="radio" name="source" value="tab" />
81 {$MOD.LBL_TAB} {sugar_help text=$MOD.LBL_DELIMITER_TAB_HELP}</td>
84 <td colspan="3" scope="row"><input class="radio" type="radio" name="source" value="other" />
85 {$MOD.LBL_CUSTOM_DELIMITED} {sugar_help text=$MOD.LBL_DELIMITER_CUSTOM_HELP}</td>
87 <tr id="customDelimiter" style='display:none'>
88 <td scope="row"> {$MOD.LBL_CUSTOM_DELIMITER} <span class="required">*</span></td>
89 <td colspan="2" scope="row">
90 <input type="text" name="custom_delimiter" value="" style="width: 5em;" maxlength="1" />
95 <td colspan="3" scope="row"><input class="radio" type="radio" name="source" value="salesforce" />
96 {$MOD.LBL_SALESFORCE}</td>
101 <td colspan="3" scope="row"><input class="radio" type="radio" name="source" value="outlook" />
102 {$MOD.LBL_MICROSOFT_OUTLOOK}</td>
107 <td colspan="3" scope="row"><input class="radio" type="radio" name="source" value="act" />
108 {$MOD.LBL_ACT}</td>
111 {foreach from=$custom_imports key=key item=item name=saved}
112 {if $smarty.foreach.saved.first}
114 <td scope="row" colspan="3">
115 <h5>{$MOD.LBL_MY_SAVED} {sugar_help text=$MOD.LBL_MY_SAVED_HELP}</h5></td>
119 <td scope="row" colspan="2">
120 <input class="radio" type="radio" name="source" value="custom:{$item.IMPORT_ID}"/>
121 {$item.IMPORT_NAME}
125 <input type="button" name="publish" value="{$MOD.LBL_PUBLISH}" class="button"
126 onclick="document.location.href = 'index.php?publish=yes&import_module={$IMPORT_MODULE}&module=Import&action=step1&import_map_id={$item.IMPORT_ID}'">
128 <input type="button" name="delete" value="{$MOD.LBL_DELETE}" class="button"
129 onclick="if(confirm('{$MOD.LBL_DELETE_MAP_CONFIRMATION}')){literal}{{/literal}document.location.href = 'index.php?import_module={$IMPORT_MODULE}&module=Import&action=step1&delete_map_id={$item.IMPORT_ID}'{literal}}{/literal}">
133 {foreach from=$published_imports key=key item=item name=published}
134 {if $smarty.foreach.published.first}
136 <td scope="row" colspan="3">
137 <h5>{$MOD.LBL_PUBLISHED_SOURCES} {sugar_help text=$MOD.LBL_MY_PUBLISHED_HELP}</h5></td>
141 <td scope="row" colspan="2">
142 <input class="radio" type="radio" name="source" value="custom:{$item.IMPORT_ID}"/>
143 {$item.IMPORT_NAME}
147 <input type="button" name="publish" value="{$MOD.LBL_UNPUBLISH}" class="button"
148 onclick="document.location.href = 'index.php?publish=no&import_module={$IMPORT_MODULE}&module=Import&action=step1&import_map_id={$item.IMPORT_ID}'">
149 <input type="button" name="delete" value="{$MOD.LBL_DELETE}" class="button"
150 onclick="if(confirm('{$MOD.LBL_DELETE_MAP_CONFIRMATION}')){literal}{{/literal}document.location.href = 'index.php?import_module={$IMPORT_MODULE}&module=Import&action=step1&delete_map_id={$item.IMPORT_ID}'{literal}}{/literal}">
156 <td scope="row" colspan="3">
157 <h3>{$MOD.LBL_IMPORT_TYPE} <span class="required">*</span></h3></td>
160 <td scope="row" colspan="3">
161 <input class="radio" type="radio" name="type" value="import" checked="checked" />
162 {$MOD.LBL_IMPORT_BUTTON}
166 <td scope="row" colspan="3">
167 <input class="radio" type="radio" name="type" value="update" />
168 {$MOD.LBL_UPDATE_BUTTON}
181 <table width="100%" cellpadding="0" cellspacing="0" border="0">
183 <td align="left"><input title="{$MOD.LBL_NEXT}" accessKey="" class="button" type="submit" name="button" value=" {$MOD.LBL_NEXT} " id="gonext"></td>