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

Revision 17605, 23.6 KB checked in by Seasoft, 16 years ago (diff)

/index.php にリンクやリダイレクトしている箇所の「index.php」を定数化。

  • 定数「DIR_INDEX_FILE」… DirectoryIndex? の実ファイル名。現状の EC-CUBE は、「index.php」。/html/define.php で定義するが、定義が無い場合 SC_Initial::defineDirectoryIndex() で「index.php」と定義。本来は、プログラム中で実ファイルとしての index.php を指すときとは、この定数を使うのが良い気がするが、今回はそこまでは書き換えていない。
  • 定数「USE_FILENAME_DIR_INDEX」… DIR_INDEX_FILE にアクセスするときにファイル名を使用するか。/html/define.php で定義。
  • 定数「DIR_INDEX_URL」… /index.php にリンクやリダイレクトしている箇所の「index.php」部分を示す。この定数は SC_Initial::defineDirectoryIndex() で自動生成する。

・$_SERVERPHP_SELF? や自身をあらわすファイル名を利用している箇所を文字列「?」に書き換え。これにより、/ が自己URLにリンクするときに /index.php となることを防ぐ。RFC3986 を参考にする。モバイル端末がこのRFCに準拠しているのか確信が無いので、モバイルではこの変更は見送った。
・従来 / にリンクしていた箇所に、定数「DIR_INDEX_URL」を付加。漏れがあると予測される。

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