1 | <!--{* |
---|
2 | /* |
---|
3 | * This file is part of EC-CUBE |
---|
4 | * |
---|
5 | * Copyright(c) 2000-2013 LOCKON CO.,LTD. All Rights Reserved. |
---|
6 | * |
---|
7 | * http://www.lockon.co.jp/ |
---|
8 | * |
---|
9 | * This program is free software; you can redistribute it and/or |
---|
10 | * modify it under the terms of the GNU General Public License |
---|
11 | * as published by the Free Software Foundation; either version 2 |
---|
12 | * of the License, or (at your option) any later version. |
---|
13 | * |
---|
14 | * This program is distributed in the hope that it will be useful, |
---|
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
17 | * GNU General Public License for more details. |
---|
18 | * |
---|
19 | * You should have received a copy of the GNU General Public License |
---|
20 | * along with this program; if not, write to the Free Software |
---|
21 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
22 | */ |
---|
23 | *}--> |
---|
24 | |
---|
25 | <!--★★メインコンテンツ★★--> |
---|
26 | <form name="form1" id="form1" method="post" action="?" enctype="multipart/form-data" onSubmit="eccube.common.winSubmit('','form1', 'upload', 500, 400)"> |
---|
27 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
---|
28 | <input type="hidden" name="mode" value="csv_upload" /> |
---|
29 | <div id="products" class="contents-main"> |
---|
30 | <!--{if $tpl_errtitle != ""}--> |
---|
31 | <p> |
---|
32 | <span class="attention"><!--{$tpl_errtitle}--><br /> |
---|
33 | <!--{foreach key=key item=item from=$arrCSVErr}--> |
---|
34 | <!--{$item}--> |
---|
35 | <!--{if $key != 'blank'}--> |
---|
36 | [値:<!--{$arrParam[$key]}-->] |
---|
37 | <!--{/if}--> |
---|
38 | <br /> |
---|
39 | <!--{/foreach}--> |
---|
40 | </span> |
---|
41 | </p> |
---|
42 | <!--{/if}--> |
---|
43 | |
---|
44 | <!--▼登録テーブルここから--> |
---|
45 | <table class="form"> |
---|
46 | <tr> |
---|
47 | <th>CSVファイル</th> |
---|
48 | <td> |
---|
49 | <!--{if $arrErr.csv_file}--><span class="attention"><!--{$arrErr.csv_file}--></span><!--{/if}--> |
---|
50 | <input type="file" name="csv_file" size="60" class="box60" /><span class="attention"> (1行目タイトル行) |
---|
51 | (最大アップロードサイズ:<!--{$max_upload_csv_size}-->)</span> |
---|
52 | </td> |
---|
53 | </tr> |
---|
54 | <tr> |
---|
55 | <th>登録情報</th> |
---|
56 | <td> |
---|
57 | <!--{foreach name=title key=key item=item from=$arrTitle}--> |
---|
58 | <!--{$smarty.foreach.title.iteration}-->項目:<!--{$item}--><br /> |
---|
59 | <!--{/foreach}--> |
---|
60 | </td> |
---|
61 | </tr> |
---|
62 | </table> |
---|
63 | <!--▲登録テーブルここまで--> |
---|
64 | <div class="btn-area"> |
---|
65 | <ul> |
---|
66 | <li><a class="btn-action" href="javascript:;" onclick="eccube.common.fnFormModeSubmit('form1', 'csv_upload', '', ''); return false;"><span class="btn-next">この内容で登録する</span></a></li> |
---|
67 | </ul> |
---|
68 | </div> |
---|
69 | <!--{if $arrRowErr}--> |
---|
70 | <table class="form"> |
---|
71 | <tr> |
---|
72 | <td> |
---|
73 | <!--{foreach item=err from=$arrRowErr}--> |
---|
74 | <span class="attention"><!--{$err}--></span> |
---|
75 | <!--{/foreach}--> |
---|
76 | </td> |
---|
77 | </tr> |
---|
78 | </table> |
---|
79 | <!--{/if}--> |
---|
80 | <!--{if $arrRowResult}--> |
---|
81 | <table class="form"> |
---|
82 | <tr> |
---|
83 | <td> |
---|
84 | <!--{foreach item=result from=$arrRowResult}--> |
---|
85 | <span><!--{$result}--><br/></span> |
---|
86 | <!--{/foreach}--> |
---|
87 | </td> |
---|
88 | </tr> |
---|
89 | </table> |
---|
90 | <!--{/if}--> |
---|
91 | </div> |
---|
92 | </form> |
---|