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

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