source: branches/comu-ver2/data/Smarty/templates/default/admin/products/product.tpl @ 17970

Revision 17970, 23.5 KB checked in by Seasoft, 15 years ago (diff)

・商品送料対応

※商品規格ごとには設定できない難がある。

・送料カスタマイズ(拡張)を容易にするためのリファクタリング

  • Property svn:eol-style set to LF
  • Property svn:mime-type set to text/html; charset=UTF-8
Line 
1<!--{*
2/*
3 * This file is part of EC-CUBE
4 *
5 * Copyright(c) 2000-2008 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<script type="text/javascript">
25// URLの表示非表示切り替え
26function lfDispSwitch(id){
27  var obj = document.getElementById(id);
28  if (obj.style.display == 'none') {
29    obj.style.display = '';
30  } else {
31    obj.style.display = 'none';
32  }
33}
34
35// セレクトボックスのリストを移動
36//(移動元セレクトボックスID, 移動先セレクトボックスID)
37function fnMoveSelect(select, target) {
38  $('#' + select).children().each(function() {
39    if (this.selected) {
40      $('#' + target).append(this);
41      $(this).attr({selected: false});
42    }
43  });
44}
45
46// target の子要素を選択状態にする
47function selectAll(target) {
48  $('#' + target).children().attr({selected: true});
49}
50
51</script>
52
53<form name="form1" id="form1" method="post" action="?" enctype="multipart/form-data">
54<!--{foreach key=key item=item from=$arrSearchHidden}-->
55<input type="hidden" name="<!--{$key}-->" value="<!--{$item|escape}-->" />
56<!--{/foreach}-->
57<input type="hidden" name="mode" value="edit" />
58<input type="hidden" name="image_key" value="" />
59<input type="hidden" name="product_id" value="<!--{$arrForm.product_id}-->" />
60<input type="hidden" name="product_class_id" value="<!--{$arrForm.product_class_id}-->" />
61<input type="hidden" name="copy_product_id" value="<!--{$arrForm.copy_product_id}-->" />
62<input type="hidden" name="anchor_key" value="" />
63<!--{foreach key=key item=item from=$arrHidden}-->
64<input type="hidden" name="<!--{$key}-->" value="<!--{$item|escape}-->" />
65<!--{/foreach}-->
66<div id="products" class="contents-main">
67  <h2><!--コンテンツタイトル-->商品登録</h2>
68
69  <table class="form">
70    <tr>
71      <th>商品ID</th>
72      <td><!--{$arrForm.product_id}--></td>
73    </tr>
74    <tr>
75      <th>商品名<span class="attention"> *</span></th>
76      <td>
77        <span class="attention"><!--{$arrErr.name}--></span>
78        <input type="text" name="name" value="<!--{$arrForm.name|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" style="<!--{if $arrErr.name != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}--><!--{/if}-->" size="60" class="box60" />
79        <span class="attention"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span>
80      </td>
81    </tr>
82    <tr>
83      <th>商品カテゴリ<span class="attention"> *</span></th>
84      <td>
85        <span class="attention"><!--{$arrErr.category_id}--></span>
86        <table>
87          <tr>
88            <td>
89              <select name="category_id[]" id="category_id" style="<!--{if $arrErr.category_id != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}--><!--{/if}--> height: 120px;" onchange="" size="10" multiple>
90              </select>
91            </td>
92            <td>
93              <input type="button" name="on_select" value="&nbsp;&nbsp;&lt;-&nbsp;登録&nbsp;&nbsp;" onClick="fnMoveSelect('category_id_unselect','category_id')" /><br /><br />
94              <input type="button" name="un_select" value="&nbsp;&nbsp;削除&nbsp;-&gt;&nbsp;&nbsp;" onClick="fnMoveSelect('category_id','category_id_unselect')" />
95            </td>
96            <td>
97              <select name="category_id_unselect[]" id="category_id_unselect" onchange="" size="10" style="height: 120px;" multiple>
98                <!--{html_options values=$arrCatVal output=$arrCatOut selected=$arrForm.category_id}-->
99              </select>
100            </td>
101          </tr>
102        </table>
103      </td>
104    </tr>
105    <tr>
106      <th>公開・非公開<span class="attention"> *</span></th>
107      <td>
108        <input type="radio" name="status" value="1" <!--{if $arrForm.status == "1"}-->checked<!--{/if}--> />公開 
109        <input type="radio" name="status" value="2" <!--{if $arrForm.status == "2"}-->checked<!--{/if}--> />非公開
110      </td>
111    </tr>
112    <tr>
113      <th>商品ステータス</th>
114      <td>
115        <!--{html_checkboxes name="product_flag" options=$arrSTATUS selected=$arrForm.product_flag}-->
116      </td>
117    </tr>
118
119    <!--{if $tpl_nonclass == true}-->
120    <tr>
121      <th>商品コード<span class="attention"> *</span></th>
122      <td>
123        <span class="attention"><!--{$arrErr.product_code}--></span>
124        <input type="text" name="product_code" value="<!--{$arrForm.product_code|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" style="<!--{if $arrErr.product_code != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}--><!--{/if}-->" size="60" class="box60" />
125        <span class="attention"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span>
126      </td>
127    </tr>
128    <tr>
129      <th><!--{$smarty.const.NORMAL_PRICE_TITLE}--></th>
130      <td>
131        <span class="attention"><!--{$arrErr.price01}--></span>
132        <input type="text" name="price01" value="<!--{$arrForm.price01|escape}-->" size="6" class="box6" maxlength="<!--{$smarty.const.PRICE_LEN}-->" style="<!--{if $arrErr.price01 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}--><!--{/if}-->"/>円
133        <span class="attention"> (半角数字で入力)</span>
134      </td>
135    </tr>
136    <tr>
137      <th><!--{$smarty.const.SALE_PRICE_TITLE}--><span class="attention"> *</span></th>
138      <td>
139        <span class="attention"><!--{$arrErr.price02}--></span>
140        <input type="text" name="price02" value="<!--{$arrForm.price02|escape}-->" size="6" class="box6" maxlength="<!--{$smarty.const.PRICE_LEN}-->" style="<!--{if $arrErr.price02 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}--><!--{/if}-->"/>円
141        <span class="attention"> (半角数字で入力)</span>
142      </td>
143    </tr>
144    <tr>
145      <th>在庫数<span class="attention"> *</span></th>
146      <td>
147        <span class="attention"><!--{$arrErr.stock}--></span>
148        <input type="text" name="stock" value="<!--{$arrForm.stock|escape}-->" size="6" class="box6" maxlength="<!--{$smarty.const.AMOUNT_LEN}-->" style="<!--{if $arrErr.stock != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}--><!--{/if}-->"/>
149        <input type="checkbox" name="stock_unlimited" value="1" <!--{if $arrForm.stock_unlimited == "1"}-->checked<!--{/if}--> onclick="fnCheckStockLimit('<!--{$smarty.const.DISABLED_RGB}-->');"/>無制限
150      </td>
151    </tr>
152    <!--{/if}-->
153
154    <tr>
155      <th>商品送料</th>
156      <td>
157        <span class="attention"><!--{$arrErr.deliv_fee}--></span>
158        <input type="text" name="deliv_fee" value="<!--{$arrForm.deliv_fee|escape}-->" size="6" class="box6" maxlength="<!--{$smarty.const.PRICE_LEN}-->" style="<!--{if $arrErr.deliv_fee != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}--><!--{/if}-->"/>円
159        <span class="attention"> (半角数字で入力)</span>
160        <!--{if $smarty.const.OPTION_PRODUCT_DELIV_FEE != 1}--><br /><span class="attention">※現在無効です</span> (パラメータ OPTION_PRODUCT_DELIV_FEE)<!--{/if}-->
161      </td>
162    </tr>
163    <tr>
164      <th>ポイント付与率<span class="attention"> *</span></th>
165      <td>
166        <span class="attention"><!--{$arrErr.point_rate}--></span>
167        <input type="text" name="point_rate" value="<!--{$arrForm.point_rate|escape|default:$arrInfo.point_rate}-->" size="6" class="box6" maxlength="<!--{$smarty.const.PERCENTAGE_LEN}-->" style="<!--{if $arrErr.point_rate != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}--><!--{/if}-->"/>%
168        <span class="attention"> (半角数字で入力)</span>
169      </td>
170    </tr>
171    <tr>
172      <th>発送日目安</th>
173      <td>
174        <span class="attention"><!--{$arrErr.deliv_date_id}--></span>
175        <select name="deliv_date_id" style="<!--{$arrErr.deliv_date_id|sfGetErrorColor}-->">
176          <option value="">選択してください</option>
177          <!--{html_options options=$arrDELIVERYDATE selected=$arrForm.deliv_date_id}-->
178        </select>
179      </td>
180    </tr>
181    <tr>
182      <th>購入制限<span class="attention"> *</span></th>
183      <td>
184        <span class="attention"><!--{$arrErr.sale_limit}--></span>
185        <input type="text" name="sale_limit" value="<!--{$arrForm.sale_limit|escape}-->" size="6" class="box6" maxlength="<!--{$smarty.const.AMOUNT_LEN}-->" style="<!--{if $arrErr.sale_limit != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}--><!--{/if}-->"/>
186        <input type="checkbox" name="sale_unlimited" value="1" <!--{if $arrForm.sale_unlimited == "1"}-->checked<!--{/if}--> onclick="fnCheckSaleLimit('<!--{$smarty.const.DISABLED_RGB}-->');"/>無制限
187      </td>
188    </tr>
189    <tr>
190      <th>メーカー</th>
191      <td>
192        <span class="attention"><!--{$arrErr.maker_id}--></span>
193        <select name="maker_id" style="<!--{$arrErr.maker_id|sfGetErrorColor}-->">
194          <option value="">選択してください</option>
195          <!--{html_options options=$arrMaker selected=$arrForm.maker_id}-->
196        </select>
197      </td>
198    </tr>
199    <tr>
200      <th>メーカーURL</th>
201      <td>
202        <span class="attention"><!--{$arrErr.comment1}--></span>
203        <input type="text" name="comment1" value="<!--{$arrForm.comment1|escape}-->" maxlength="<!--{$smarty.const.URL_LEN}-->" size="60" class="box60" style="<!--{$arrErr.comment1|sfGetErrorColor}-->" />
204        <span class="attention"> (上限<!--{$smarty.const.URL_LEN}-->文字)</span>
205      </td>
206    </tr>
207    <!--{*
208    <tr>
209      <th>成分</th>
210      <td>
211        <textarea name="comment2" cols="60" rows="8" class="area60" maxlength="<!--{$smarty.const.STEXT_LEN}-->"><!--{$arrForm.comment2|escape}--></textarea>
212        <span class="attention"> (上限<!--{$smarty.const.LTEXT_LEN}-->文字)</span>
213      </td>
214    </tr>
215    *}-->
216    <tr>
217      <th>検索ワード<br />※複数の場合は、カンマ( , )区切りで入力して下さい</th>
218      <td>
219        <span class="attention"><!--{$arrErr.comment3}--></span>
220        <textarea name="comment3" cols="60" rows="8" class="area60" maxlength="<!--{$smarty.const.LLTEXT_LEN}-->" style="<!--{$arrErr.comment3|sfGetErrorColor}-->"><!--{$arrForm.comment3|escape}--></textarea><br />
221        <span class="attention"> (上限<!--{$smarty.const.LLTEXT_LEN}-->文字)</span>
222      </td>
223    </tr>
224    <tr>
225      <th>備考欄(SHOP専用)</th>
226      <td>
227        <span class="attention"><!--{$arrErr.note}--></span>
228        <textarea name="note" cols="60" rows="8" class="area60" maxlength="<!--{$smarty.const.LLTEXT_LEN}-->" style="<!--{$arrErr.note|sfGetErrorColor}-->"><!--{$arrForm.note|escape}--></textarea><br />
229        <span class="attention"> (上限<!--{$smarty.const.LLTEXT_LEN}-->文字)</span>
230      </td>
231    </tr>
232    <tr>
233      <th>一覧-メインコメント<span class="attention"> *</span></th>
234      <td>
235        <span class="attention"><!--{$arrErr.main_list_comment}--></span>
236        <textarea name="main_list_comment" maxlength="<!--{$smarty.const.MTEXT_LEN}-->" style="<!--{if $arrErr.main_list_comment != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}--><!--{/if}-->" cols="60" rows="8" class="area60"><!--{$arrForm.main_list_comment|escape}--></textarea><br />
237        <span class="attention"> (上限<!--{$smarty.const.MTEXT_LEN}-->文字)</span>
238      </td>
239    </tr>
240    <tr>
241      <th>詳細-メインコメント<span class="attention">(タグ許可)*</span></th>
242      <td>
243        <span class="attention"><!--{$arrErr.main_comment}--></span>
244        <textarea name="main_comment" value="<!--{$arrForm.main_comment|escape}-->" maxlength="<!--{$smarty.const.LLTEXT_LEN}-->" style="<!--{if $arrErr.main_comment != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}--><!--{/if}-->"  cols="60" rows="8" class="area60"><!--{$arrForm.main_comment|escape}--></textarea><br />
245        <span class="attention"> (上限<!--{$smarty.const.LLTEXT_LEN}-->文字)</span>
246      </td>
247    </tr>
248    <tr>
249      <!--{assign var=key value="main_list_image"}-->
250      <th>一覧-メイン画像<br />[<!--{$smarty.const.SMALL_IMAGE_WIDTH}-->×<!--{$smarty.const.SMALL_IMAGE_HEIGHT}-->]</th>
251      <td>
252        <a name="<!--{$key}-->"></a>
253        <a name="main_image"></a>
254        <a name="main_large_image"></a>
255        <span class="attention"><!--{$arrErr[$key]}--></span>
256        <!--{if $arrFile[$key].filepath != ""}-->
257        <img src="<!--{$arrFile[$key].filepath}-->" alt="<!--{$arrForm.name|escape}-->" /> <a href="" onclick="selectAll('category_id'); fnModeSubmit('delete_image', 'image_key', '<!--{$key}-->'); return false;">[画像の取り消し]</a><br />
258        <!--{/if}-->
259        <input type="file" name="main_list_image" size="50" class="box50" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" />
260        <input type="button" name="btn" onclick="selectAll('category_id'); fnModeSubmit('upload_image', 'image_key', '<!--{$key}-->')" value="アップロード" />
261      </td>
262    </tr>
263    <tr>
264      <!--{assign var=key value="main_image"}-->
265      <th>詳細-メイン画像<br />[<!--{$smarty.const.NORMAL_IMAGE_WIDTH}-->×<!--{$smarty.const.NORMAL_IMAGE_HEIGHT}-->]</th>
266      <td>
267        <span class="attention"><!--{$arrErr[$key]}--></span>
268        <!--{if $arrFile[$key].filepath != ""}-->
269        <img src="<!--{$arrFile[$key].filepath}-->" alt="<!--{$arrForm.name|escape}-->" /> <a href="" onclick="selectAll('category_id'); fnModeSubmit('delete_image', 'image_key', '<!--{$key}-->'); return false;">[画像の取り消し]</a><br />
270        <!--{/if}-->
271        <input type="file" name="main_image" size="50" class="box50" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" />
272        <input type="button" name="btn" onclick="selectAll('category_id'); fnModeSubmit('upload_image', 'image_key', '<!--{$key}-->')" value="アップロード" />
273      </td>
274    </tr>
275    <tr>
276      <!--{assign var=key value="main_large_image"}-->
277      <th>詳細-メイン拡大画像<br />[<!--{$smarty.const.LARGE_IMAGE_WIDTH}-->×<!--{$smarty.const.LARGE_IMAGE_HEIGHT}-->]</th>
278      <td>
279        <span class="attention"><!--{$arrErr[$key]}--></span>
280        <!--{if $arrFile[$key].filepath != ""}-->
281        <img src="<!--{$arrFile[$key].filepath}-->" alt="<!--{$arrForm.name|escape}-->" /> <a href="" onclick="selectAll('category_id'); fnModeSubmit('delete_image', 'image_key', '<!--{$key}-->'); return false;">[画像の取り消し]</a><br />
282        <!--{/if}-->
283        <input type="file" name="<!--{$key}-->" size="50" class="box50" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" />
284        <input type="button" name="btn" onclick="selectAll('category_id'); fnModeSubmit('upload_image', 'image_key', '<!--{$key}-->')" value="アップロード" />
285      </td>
286    </tr>
287    <!--{* カラー比較画像、商品詳細ファイルは非対応
288    <tr>
289      <th>カラー比較画像<br />[500×500]</th>
290      <td>
291        <!--{assign var=key value="file1"}-->
292        <span class="attention"><!--{$arrErr[$key]}--></span>
293        <!--{if $arrFile[$key].filepath != ""}-->
294        <img src="<!--{$arrFile[$key].filepath}-->" alt="<!--{$arrForm.name|escape}-->" width="<!--{$arrFile[$key].width}-->" height="<!--{$arrFile[$key].height}-->" /> <a href="" onclick="selectAll('category_id'); fnModeSubmit('delete_image', 'image_key', '<!--{$key}-->'); return false;">[画像の取り消し]</a><br />
295        <!--{/if}-->
296        <input type="file" name="<!--{$key}-->" size="50" class="box50" />
297        <input type="button" name="btn" onclick="selectAll('category_id'); fnModeSubmit('upload_image', 'image_key', '<!--{$key}-->')" value="アップロード" />
298      </td>
299    </tr>
300    <tr>
301      <th>商品詳細ファイル</th>
302      <td>
303        <!--{assign var=key value="file2"}-->
304        <span class="attention"><!--{$arrErr[$key]}--></span>
305        <!--{if $arrFile[$key].filepath != ""}-->
306        <input type="button" name="pdf" value="ファイル確認" onclick="selectAll('category_id'); fnOpenNoMenu('<!--{$arrFile[$key].filepath}-->')"/>
307        <a href="" onclick="selectAll('category_id'); fnModeSubmit('delete_image', 'image_key', '<!--{$key}-->'); return false;">[ファイルの取り消し]</a><br />
308        <!--{/if}-->
309        <input type="file" name="<!--{$key}-->" size="50" class="box50" />
310        <input type="button" name="btn" onclick="selectAll('category_id'); fnModeSubmit('upload_image', 'image_key', '<!--{$key}-->')" value="アップロード" />
311      </td>
312    </tr>
313    *}-->
314  </table>
315
316  <!--{* オペビルダー用 *}-->
317  <!--{if "sfViewAdminOpe"|function_exists === TRUE}-->
318  <!--{include file=`$smarty.const.MODULE_PATH`mdl_opebuilder/admin_ope_view.tpl}-->
319  <!--{/if}-->
320
321  <div class="btn">
322    <button type="button" onclick="selectAll('category_id'); lfDispSwitch('sub_detail');"><span>サブ情報表示/非表示</span></button>
323  </div>
324
325  <!--{if $sub_find == true}-->
326  <div id="sub_detail" style="">
327  <!--{else}-->
328  <div id="sub_detail" style="display:none">
329  <!--{/if}-->
330  <table class="form">
331    <!--{section name=cnt loop=$smarty.const.PRODUCTSUB_MAX}-->
332    <!--▼商品<!--{$smarty.section.cnt.iteration}-->-->
333    <tr>
334      <th>詳細-サブタイトル(<!--{$smarty.section.cnt.iteration}-->)</th>
335      <!--{assign var=key value="sub_title`$smarty.section.cnt.iteration`"}-->
336      <td>
337        <span class="attention"><!--{$arrErr[$key]}--></span>
338        <input type="text" name="sub_title<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrForm[$key]|escape}-->" size="60" class="box60" maxlength="<!--{$smarty.const.STEXT_LEN}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"/>
339        <span class="attention"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span>
340      </td>
341    </tr>
342    <tr>
343      <th>詳細-サブコメント(<!--{$smarty.section.cnt.iteration}-->)<span class="attention">(タグ許可)</span></th>
344      <!--{assign var=key value="sub_comment`$smarty.section.cnt.iteration`"}-->
345      <td>
346        <span class="attention"><!--{$arrErr[$key]}--></span>
347        <textarea name="sub_comment<!--{$smarty.section.cnt.iteration}-->" cols="60" rows="8" class="area60" maxlength="<!--{$smarty.const.LLTEXT_LEN}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"><!--{$arrForm[$key]|escape}--></textarea><br />
348        <span class="attention"> (上限<!--{$smarty.const.LLTEXT_LEN}-->文字)</span>
349      </td>
350    </tr>
351    <tr>
352      <!--{assign var=key value="sub_image`$smarty.section.cnt.iteration`"}-->
353      <th>詳細-サブ画像(<!--{$smarty.section.cnt.iteration}-->)<br />[<!--{$smarty.const.NORMAL_SUBIMAGE_WIDTH}-->×<!--{$smarty.const.NORMAL_SUBIMAGE_HEIGHT}-->]</th>
354      <td>
355        <a name="<!--{$key}-->"></a>
356        <!--{assign var=largekey value="sub_large_image`$smarty.section.cnt.iteration`"}-->
357        <a name="<!--{$largekey}-->"></a>
358        <span class="attention"><!--{$arrErr[$key]}--></span>
359        <!--{if $arrFile[$key].filepath != ""}-->
360        <img src="<!--{$arrFile[$key].filepath}-->" alt="<!--{$arrForm.name|escape}-->" /> <a href="" onclick="selectAll('category_id'); fnModeSubmit('delete_image', 'image_key', '<!--{$key}-->'); return false;">[画像の取り消し]</a><br />
361        <!--{/if}-->
362        <input type="file" name="<!--{$key}-->" size="50" class="box50" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"/>
363        <input type="button" name="btn" onclick="selectAll('category_id'); fnModeSubmit('upload_image', 'image_key', '<!--{$key}-->')" value="アップロード" />
364      </td>
365    </tr>
366    <tr>
367      <!--{assign var=key value="sub_large_image`$smarty.section.cnt.iteration`"}-->
368      <th>詳細-サブ拡大画像(<!--{$smarty.section.cnt.iteration}-->)<br />[<!--{$smarty.const.LARGE_SUBIMAGE_WIDTH}-->×<!--{$smarty.const.LARGE_SUBIMAGE_HEIGHT}-->]</th>
369      <td>
370        <span class="attention"><!--{$arrErr[$key]}--></span>
371        <!--{if $arrFile[$key].filepath != ""}-->
372        <img src="<!--{$arrFile[$key].filepath}-->" alt="<!--{$arrForm.name|escape}-->" /> <a href="" onclick="selectAll('category_id'); fnModeSubmit('delete_image', 'image_key', '<!--{$key}-->'); return false;">[画像の取り消し]</a><br />
373        <!--{/if}-->
374        <input type="file" name="<!--{$key}-->" size="50" class="box50" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"/>
375        <input type="button" name="btn" onclick="selectAll('category_id'); fnModeSubmit('upload_image', 'image_key', '<!--{$key}-->')" value="アップロード" />
376      </td>
377    </tr>
378    <!--▲商品<!--{$smarty.section.cnt.iteration}-->-->
379    <!--{/section}-->
380  </table>
381  </div>
382
383  <div class="btn">
384    <button type="button" onclick="selectAll('category_id'); lfDispSwitch('recommend_select');"><span>関連商品表示/非表示</span></button>
385  </div>
386
387  <!--{if count($arrRecommend) > 0}-->
388  <div id="recommend_select" style="">
389  <!--{else}-->
390  <div id="recommend_select" style="display:none">
391  <!--{/if}-->
392  <table class="form">
393    <!--{if $smarty.const.OPTION_RECOMMEND == 1}-->
394    <!--▼関連商品-->
395    <!--{section name=cnt loop=$smarty.const.RECOMMEND_PRODUCT_MAX}-->
396    <!--{assign var=recommend_no value="`$smarty.section.cnt.iteration`"}-->
397    <tr>
398      <!--{assign var=key value="recommend_id`$smarty.section.cnt.iteration`"}-->
399      <!--{assign var=anckey value="recommend_no`$smarty.section.cnt.iteration`"}-->
400      <th>関連商品(<!--{$smarty.section.cnt.iteration}-->)<br />
401        <!--{if $arrRecommend[$recommend_no].product_id}-->
402          <img src="<!--{$smarty.const.URL_DIR}-->resize_image.php?image=<!--{$arrRecommend[$recommend_no].main_list_image|sfNoImageMainList|escape}-->&width=65&height=65" alt="<!--{$arrRecommend[$recommend_no].name|escape}-->" />
403        <!--{/if}-->
404      </th>
405      <td>
406        <a name="<!--{$anckey}-->"></a>
407        <input type="hidden" name="<!--{$key}-->" value="<!--{$arrRecommend[$recommend_no].product_id|escape}-->" />
408        <input type="button" name="change" value="変更" onclick="selectAll('category_id'); win03('./product_select.php?no=<!--{$smarty.section.cnt.iteration}-->', 'search', '500', '500'); " />
409        <!--{assign var=key value="recommend_delete`$smarty.section.cnt.iteration`"}-->
410        <input type="checkbox" name="<!--{$key}-->" value="1" />削除<br />
411        商品コード:<!--{$arrRecommend[$recommend_no].product_code_min}--><br />
412        商品名:<!--{$arrRecommend[$recommend_no].name|escape}--><br />
413        <!--{assign var=key value="recommend_comment`$smarty.section.cnt.iteration`"}-->
414        <span class="attention"><!--{$arrErr[$key]}--></span>
415        <textarea name="<!--{$key}-->" cols="60" rows="8" class="area60" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" ><!--{$arrRecommend[$recommend_no].comment|escape}--></textarea><br />
416        <span class="attention"> (上限<!--{$smarty.const.LTEXT_LEN}-->文字)</span>
417      </td>
418    </tr>
419    <!--{/section}-->
420    <!--▲関連商品-->
421    <!--{/if}-->
422  </table>
423  </div>
424
425  <div class="btn">
426    <!--{if count($arrSearchHidden) > 0}-->
427    <!--▼検索結果へ戻る-->
428    <button type="button" onClick="fnChangeAction('<!--{$smarty.const.URL_SEARCH_TOP}-->'); fnModeSubmit('search','',''); return false;"><span>検索画面に戻る</span></button>
429    <!--▲検索結果へ戻る-->
430    <!--{/if}-->
431    <button type="submit" onClick="selectAll('category_id')"><span>確認ページへ</span></button>
432  </div>
433</div>
434</form>
Note: See TracBrowser for help on using the repository browser.