]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Import/tpls/step1.tpl
Release 6.1.4
[Github/sugarcrm.git] / modules / Import / tpls / step1.tpl
1 {*
2
3 /*********************************************************************************
4  * SugarCRM is a customer relationship management program developed by
5  * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
6  * 
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.
13  * 
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
17  * details.
18  * 
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
22  * 02110-1301 USA.
23  * 
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.
26  * 
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.
30  * 
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  ********************************************************************************/
37
38
39
40
41 *}
42 {overlib_includes}
43 {$MODULE_TITLE}
44 {if $ERROR != ''}
45 <span class="error">{$ERROR}</span>
46 {/if}
47
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}">
52 <p>
53 <table width="100%" border="0" cellspacing="0" cellpadding="0" class="edit view">
54 <tr>
55     <td>
56         <table width="100%" border="0" cellspacing="0" cellpadding="0">
57       <tr>
58         <td valign="top" width='50%' scope="row"><table border="0" cellpadding="0" cellspacing="0">
59           <tr>
60             <td align="left" scope="row" colspan="3"><h3>{$MOD.LBL_WHAT_IS}&nbsp;<span class="required">*</span></h3></td>
61           </tr>
62           <tr>
63             <td colspan="3" scope="row"><input class="radio" type="radio" name="source" value="csv" checked="checked" />
64               &nbsp;{$MOD.LBL_CSV}&nbsp;{sugar_help text=$MOD.LBL_DELIMITER_COMMA_HELP}</td>
65           </tr>
66           <tr id="customEnclosure">
67             <td scope="row">&nbsp;&nbsp;{$MOD.LBL_CUSTOM_ENCLOSURE}</td>
68             <td colspan="2" scope="row">
69                 <select name="custom_enclosure" id="custom_enclosure">
70                     <option value="&quot;" 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>
74                 </select>
75                 <input type="text" name="custom_enclosure_other" style="display: none; width: 5em;" maxlength="1" />
76                 {sugar_help text=$MOD.LBL_ENCLOSURE_HELP}
77             </td>
78           </tr>
79           <tr>
80             <td colspan="3" scope="row"><input class="radio" type="radio" name="source" value="tab" />
81               &nbsp;{$MOD.LBL_TAB}&nbsp;{sugar_help text=$MOD.LBL_DELIMITER_TAB_HELP}</td>
82           </tr>
83           <tr>
84             <td colspan="3" scope="row"><input class="radio" type="radio" name="source" value="other" />
85               &nbsp;{$MOD.LBL_CUSTOM_DELIMITED}&nbsp;{sugar_help text=$MOD.LBL_DELIMITER_CUSTOM_HELP}</td>
86           </tr>
87           <tr id="customDelimiter" style='display:none'>
88             <td scope="row">&nbsp;&nbsp;{$MOD.LBL_CUSTOM_DELIMITER}&nbsp;<span class="required">*</span></td>
89             <td colspan="2" scope="row">
90                 <input type="text" name="custom_delimiter" value="" style="width: 5em;" maxlength="1" />
91             </td>
92           </tr>
93           {if $show_salesforce}
94           <tr>
95             <td colspan="3" scope="row"><input class="radio" type="radio" name="source" value="salesforce" />
96             &nbsp;{$MOD.LBL_SALESFORCE}</td>
97             </tr>
98           {/if}
99           {if $show_outlook}
100           <tr>
101             <td colspan="3" scope="row"><input class="radio" type="radio" name="source" value="outlook" />
102               &nbsp;{$MOD.LBL_MICROSOFT_OUTLOOK}</td>
103             </tr>
104           {/if}
105           {if $show_act}
106           <tr>
107             <td colspan="3" scope="row"><input class="radio" type="radio" name="source" value="act" />
108               &nbsp;{$MOD.LBL_ACT}</td>
109           </tr>
110           {/if}
111           {foreach from=$custom_imports key=key item=item name=saved}
112           {if $smarty.foreach.saved.first}
113           <tr>
114             <td scope="row" colspan="3">
115                 <h5>{$MOD.LBL_MY_SAVED}&nbsp;{sugar_help text=$MOD.LBL_MY_SAVED_HELP}</h5></td>
116           </tr>
117           {/if}
118           <tr>
119             <td scope="row" colspan="2">
120                 <input class="radio" type="radio" name="source" value="custom:{$item.IMPORT_ID}"/>
121                 &nbsp;{$item.IMPORT_NAME}
122             </td>
123             <td scope="row">
124                 {if $is_admin}
125                 <input type="button" name="publish" value="{$MOD.LBL_PUBLISH}" class="button" 
126                     onclick="document.location.href = 'index.php?publish=yes&amp;import_module={$IMPORT_MODULE}&amp;module=Import&amp;action=step1&amp;import_map_id={$item.IMPORT_ID}'">
127                 {/if}
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}&amp;module=Import&amp;action=step1&amp;delete_map_id={$item.IMPORT_ID}'{literal}}{/literal}">
130             </td>
131           </tr>
132           {/foreach}
133           {foreach from=$published_imports key=key item=item name=published}
134           {if $smarty.foreach.published.first}
135           <tr>
136             <td scope="row" colspan="3">
137                 <h5>{$MOD.LBL_PUBLISHED_SOURCES}&nbsp;{sugar_help text=$MOD.LBL_MY_PUBLISHED_HELP}</h5></td>
138           </tr>
139           {/if}
140           <tr>
141             <td scope="row" colspan="2">
142                 <input class="radio" type="radio" name="source" value="custom:{$item.IMPORT_ID}"/>
143                 &nbsp;{$item.IMPORT_NAME}
144             </td>
145             <td scope="row">
146                 {if $is_admin}
147                 <input type="button" name="publish" value="{$MOD.LBL_UNPUBLISH}" class="button" 
148                     onclick="document.location.href = 'index.php?publish=no&amp;import_module={$IMPORT_MODULE}&amp;module=Import&amp;action=step1&amp;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}&amp;module=Import&amp;action=step1&amp;delete_map_id={$item.IMPORT_ID}'{literal}}{/literal}">
151                 {/if}
152             </td>
153           </tr>
154           {/foreach}
155           <tr>
156             <td scope="row" colspan="3">
157                 <h3>{$MOD.LBL_IMPORT_TYPE}&nbsp;<span class="required">*</span></h3></td>
158           </tr>
159           <tr>
160             <td scope="row" colspan="3">
161                 <input class="radio" type="radio" name="type" value="import" checked="checked" />
162                 &nbsp;{$MOD.LBL_IMPORT_BUTTON}
163             </td>
164           </tr>
165           <tr>
166             <td scope="row" colspan="3">
167                 <input class="radio" type="radio" name="type" value="update" />
168                 &nbsp;{$MOD.LBL_UPDATE_BUTTON}
169             </td>
170           </tr>
171           </table>
172         </td>
173       </tr>
174     </table>
175     </td>
176 </tr>
177 </table>
178 </p>
179
180 <br>
181 <table width="100%" cellpadding="0" cellspacing="0" border="0">
182 <tr>
183         <td align="left"><input title="{$MOD.LBL_NEXT}" accessKey="" class="button" type="submit" name="button" value="  {$MOD.LBL_NEXT}  "  id="gonext"></td>
184 </tr>
185 </table>
186
187 </form>
188 {$JAVASCRIPT}