source: branches/camp/camp-2_5-C/data/Smarty/templates/admin/products/product.tpl @ 19638

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