source: branches/version-2_5-dev/data/Smarty/templates/default/admin/products/product.tpl @ 18853

Revision 18853, 25.6 KB checked in by Seasoft, 13 years ago (diff)

#626(表記の統一性の向上)

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