]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Import/tpls/step2.tpl
Release 6.3.1
[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
50 </style>
51 {/literal}
52
53
54 {$INSTRUCTION}
55
56 <div class="hr"></div>
57
58 <form enctype="multipart/form-data" name="importstep2" method="POST" action="index.php" id="importstep2">
59 <input type="hidden" name="module" value="Import">
60 <input type="hidden" name="custom_delimiter" value="{$CUSTOM_DELIMITER}">
61 <input type="hidden" name="custom_enclosure" value="{$CUSTOM_ENCLOSURE}">
62 <input type="hidden" name="source" value="{$SOURCE}">
63 <input type="hidden" name="source_id" value="{$SOURCE_ID}">
64 <input type="hidden" name="action" value="Confirm">
65 <input type="hidden" name="current_step" value="{$CURRENT_STEP}">
66 <input type="hidden" name="import_module" value="{$IMPORT_MODULE}">
67 <input type="hidden" name="from_admin_wizard" value="{$smarty.request.from_admin_wizard}">
68 <table width="100%" border="0" cellspacing="0" cellpadding="0">
69 <tr>
70 <td>
71         <table border="0" cellspacing="0" cellpadding="0" width="100%">
72         <tr>
73             <td align="left" scope="row" colspan="4" style="padding-left: 10px;">{$SAMPLE_URL} &nbsp;{sugar_help text=$MOD.LBL_SAMPLE_URL_HELP}</td>
74         </tr>
75         <tr>
76             <td scope="row" colspan="4">&nbsp;</td>
77         </tr>
78         <tr>
79             <td scope="row" colspan="4">&nbsp;</td>
80         </tr>
81         <tr>
82             <td align="left" scope="row" colspan="3">{$MOD.LBL_SELECT_FILE} <input type="hidden" /><input size="20" id="userfile" name="userfile" type="file"/> &nbsp;{sugar_help text=$MOD.LBL_FILE_UPLOAD_WIDGET_HELP}</td>
83         </tr>
84         <tr>
85             <td scope="row" colspan="4"><div class="hr">&nbsp;</div></td>
86         </tr>
87         <tr>
88             <td scope="row" colspan="4">&nbsp;</td>
89         </tr>
90         <tr>
91             <td scope="row" colspan="3">
92                 <h3>{$MOD.LBL_IMPORT_TYPE}&nbsp;</h3></td>
93           </tr>
94           <tr>
95             <td scope="row" colspan="3">
96                 <input id="import_create" class="radio" type="radio" name="type" value="import" checked="checked" />
97                 &nbsp;{$MOD.LBL_IMPORT_BUTTON} &nbsp;{sugar_help text=$MOD.LBL_CREATE_BUTTON_HELP}
98             </td>
99           </tr>
100           <tr>
101             <td scope="row" colspan="3">
102                 <input id="import_update" class="radio" type="radio" name="type" value="update" />
103                 &nbsp;{$MOD.LBL_UPDATE_BUTTON} &nbsp;{sugar_help text=$MOD.LBL_UPDATE_BUTTON_HELP}
104             </td>
105           </tr>
106         </table>
107     <br>
108     <table border="0" cellspacing="0" cellpadding="0" width="100%">
109           {foreach from=$custom_mappings item=item name=custommappings}
110           {capture assign=mapping_label}{$MOD.LBL_CUSTOM_MAPPING_}{$item|upper}{/capture}
111           <tr>
112             <td colspan="3" scope="row"><input class="radio" type="radio" name="source" value="{$item}" />
113               &nbsp;{$mapping_label}</td>
114           </tr>
115           {/foreach}
116
117           {if !empty($custom_imports) || !empty($published_imports)}
118           <tr>
119             <td scope="row" colspan="3">
120                 <h3>{$MOD.LBL_PUBLISHED_SOURCES}&nbsp;{sugar_help text=$savedMappingHelpText}</h3></td>
121           </tr>
122           
123           <tr id="custom_import_{$smarty.foreach.saved.index}">
124             <td scope="row" colspan="4">
125                 <input class="radio" type="radio" name="source" value=""/>
126                 &nbsp;{$MOD.LBL_NONE}
127             </td>
128
129           </tr>
130           {/if}
131           {foreach from=$custom_imports key=key item=item name=saved}
132           <tr id="custom_import_{$smarty.foreach.saved.index}">
133             <td scope="row" colspan="2" width="10%" style="padding-right: 10px;">
134                 <input class="radio" type="radio" name="source" value="custom:{$item.IMPORT_ID}"/>
135                 &nbsp;{$item.IMPORT_NAME}
136             </td>
137             <td scope="row">
138                 {if $is_admin}
139                 <input type="button" name="publish" value="{$MOD.LBL_PUBLISH}" class="button" publish="yes"
140                     onclick="publishMapping(this, 'yes','{$item.IMPORT_ID}');">
141                 {/if}
142                 <input type="button" name="delete" value="{$MOD.LBL_DELETE}" class="button"
143                                         onclick="if(confirm('{$MOD.LBL_DELETE_MAP_CONFIRMATION}')){literal}{{/literal} deleteMapping('custom_import_{$smarty.foreach.saved.index}', '{$item.IMPORT_ID}' );{literal}}{/literal}">
144             </td>
145           </tr>
146           {/foreach}
147
148           {foreach from=$published_imports key=key item=item name=published}
149           <tr id="published_import_{$smarty.foreach.published.index}">
150             <td scope="row" colspan="2">
151                 <input class="radio" type="radio" name="source" value="custom:{$item.IMPORT_ID}"/>
152                 &nbsp;{$item.IMPORT_NAME}
153             </td>
154             <td scope="row">
155                 {if $is_admin}
156                 <input type="button" name="publish" value="{$MOD.LBL_UNPUBLISH}" class="button" publish="no"
157                     onclick="publishMapping(this, 'no','{$item.IMPORT_ID}');">
158                 <input type="button" name="delete" value="{$MOD.LBL_DELETE}" class="button"
159                     onclick="if(confirm('{$MOD.LBL_DELETE_MAP_CONFIRMATION}')){literal}{{/literal}deleteMapping('published_import_{$smarty.foreach.published.index}','{$item.IMPORT_ID}' );{literal}}{/literal}">
160                 {/if}
161             </td>
162           </tr>
163           {/foreach}
164     </table>
165 </td>
166 </tr>
167 </table>
168
169 <br>
170
171 <table width="100%" cellpadding="0" cellspacing="0" border="0">
172 <tr>
173   <td align="left">
174         {if $displayBackBttn}
175             <input title="{$MOD.LBL_BACK}" accessKey="" class="button" type="submit" name="button" value="  {$MOD.LBL_BACK}  " id="goback">&nbsp;
176         {/if}
177       <input title="{$MOD.LBL_NEXT}" accessKey="" class="button" type="submit" name="button" value="  {$MOD.LBL_NEXT}  " id="gonext">
178     </td>
179 </tr>
180 </table>
181 <script>
182 {$JAVASCRIPT}
183 </script>  
184 </form>