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

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