]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Import/tpls/step2.tpl
Release 6.4.0
[Github/sugarcrm.git] / modules / Import / tpls / step2.tpl
1 {*
2
3 /*********************************************************************************
4  * SugarCRM Community Edition 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 {literal}
43
44 <style>
45
46 .link {
47     text-decoration:underline
48 }
49 </style>
50 {/literal}
51
52
53 {$INSTRUCTION}
54
55 <div class="hr"></div>
56
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">
68 <tr>
69 <td>
70         <table border="0" cellspacing="0" cellpadding="0" width="100%">
71         <tr>
72             <td align="left" scope="row" colspan="4" style="padding-left: 10px;">{$SAMPLE_URL} &nbsp;{sugar_help text=$MOD.LBL_SAMPLE_URL_HELP}</td>
73         </tr>
74         <tr>
75             <td scope="row" colspan="4">&nbsp;</td>
76         </tr>
77         <tr>
78             <td scope="row" colspan="4">&nbsp;</td>
79         </tr>
80         <tr>
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"/> &nbsp;{sugar_help text=$MOD.LBL_FILE_UPLOAD_WIDGET_HELP}</td>
82         </tr>
83         <tr>
84             <td scope="row" colspan="4"><div class="hr">&nbsp;</div></td>
85         </tr>
86         <tr>
87             <td scope="row" colspan="4">&nbsp;</td>
88         </tr>
89         <tr>
90             <td scope="row" colspan="3">
91                 <h3>{$MOD.LBL_IMPORT_TYPE}&nbsp;</h3></td>
92           </tr>
93           <tr>
94             <td scope="row" colspan="3">
95                 <input id="import_create" class="radio" type="radio" name="type" value="import" checked="checked" />
96                 &nbsp;<label for="type">{$MOD.LBL_IMPORT_BUTTON}</label> &nbsp;{sugar_help text=$MOD.LBL_CREATE_BUTTON_HELP}
97             </td>
98           </tr>
99           <tr>
100             <td scope="row" colspan="3">
101                 <input id="import_update" class="radio" type="radio" name="type" id="type" value="update" />
102                 &nbsp;<label for="type">{$MOD.LBL_UPDATE_BUTTON}</label> &nbsp;{sugar_help text=$MOD.LBL_UPDATE_BUTTON_HELP}
103             </td>
104           </tr>
105         </table>
106     <br>
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}
110           <tr>
111             <td colspan="3" scope="row"><input class="radio" type="radio" id="source" name="source" value="{$item}" />
112               &nbsp;<label for="source">{$mapping_label}</label></td>
113           </tr>
114           {/foreach}
115
116           {if !empty($custom_imports) || !empty($published_imports)}
117           <tr>
118             <td scope="row" colspan="3">
119                 <h3>{$MOD.LBL_PUBLISHED_SOURCES}&nbsp;{sugar_help text=$savedMappingHelpText}</h3></td>
120           </tr>
121           
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                 &nbsp;{$MOD.LBL_NONE}
126             </td>
127
128           </tr>
129           {/if}
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                 &nbsp;{$item.IMPORT_NAME}
135             </td>
136             <td scope="row">
137                 {if $is_admin}
138                 <input type="button" name="publish" value="{$MOD.LBL_PUBLISH}" class="button" publish="yes"
139                     onclick="publishMapping(this, 'yes','{$item.IMPORT_ID}');">
140                 {/if}
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}">
143             </td>
144           </tr>
145           {/foreach}
146
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                 &nbsp;{$item.IMPORT_NAME}
152             </td>
153             <td scope="row">
154                 {if $is_admin}
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}">
159                 {/if}
160             </td>
161           </tr>
162           {/foreach}
163     </table>
164 </td>
165 </tr>
166 </table>
167
168 <br>
169
170 <table width="100%" cellpadding="0" cellspacing="0" border="0">
171 <tr>
172   <td align="left">
173         {if $displayBackBttn}
174             <input title="{$MOD.LBL_BACK}" accessKey="" class="button" type="submit" name="button" value="  {$MOD.LBL_BACK}  " id="goback">&nbsp;
175         {/if}
176       <input title="{$MOD.LBL_NEXT}" accessKey="" class="button" type="submit" name="button" value="  {$MOD.LBL_NEXT}  " id="gonext">
177     </td>
178 </tr>
179 </table>
180 <script>
181 {$JAVASCRIPT}
182 </script>  
183 </form>