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

Revision 17605, 7.9 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<h2>確認</h2>
25<form name="form1" id="form1" method="post" action="?" enctype="multipart/form-data">
26  <!--{foreach key=key item=item from=$arrForm}-->
27  <input type="hidden" name="<!--{$key}-->" value="<!--{$item|escape}-->" />
28  <!--{/foreach}-->
29  <div id="products" class="contents-main">
30
31  <table>
32    <tr>
33      <th>商品名</th>
34      <td>
35      <!--{$arrForm.name|escape}-->
36      </td>
37    </tr>
38    <tr>
39      <th>商品カテゴリ</th>
40      <td>
41      <!--{section name=cnt loop=$arrCategory_id}-->
42        <!--{assign var=key value=$arrCategory_id[cnt]}-->
43        <!--{$arrCatList[$key]|strip|sfTrim}--><br />
44      <!--{/section}-->
45      </td>
46    </tr>
47    <tr>
48      <th>公開・非公開</th>
49      <td>
50      <!--{$arrDISP[$arrForm.status]}-->
51      </td>
52    </tr>
53    <tr>
54      <th>商品ステータス</th>
55      <td>
56      <!--{section name=cnt loop=$arrForm.product_flag|count_characters}-->
57        <!--{if $arrForm.product_flag[cnt] == "1"}--><!--{assign var=key value="`$smarty.section.cnt.iteration`"}--><img src="<!--{$TPL_DIR}--><!--{$arrSTATUS_IMAGE[$key]}-->"><!--{/if}-->
58      <!--{/section}-->
59      </td>
60    </tr>
61
62    <!--{if $tpl_nonclass == true}-->
63    <tr>
64      <th>商品コード</th>
65      <td>
66      <!--{$arrForm.product_code|escape}-->
67      </td>
68    </tr>
69    <tr>
70      <th><!--{$smarty.const.NORMAL_PRICE_TITLE}--></th>
71      <td>
72      <!--{$arrForm.price01|escape}-->
73      円</td>
74    </tr>
75    <tr>
76      <th><!--{$smarty.const.SALE_PRICE_TITLE}--></th>
77      <td>
78      <!--{$arrForm.price02|escape}-->
79      円</td>
80    </tr>
81    <tr>
82      <th>在庫数</th>
83      <td>
84      <!--{if $arrForm.stock_unlimited == 1}-->
85        無制限
86      <!--{else}-->
87        <!--{$arrForm.stock|escape}-->
88      <!--{/if}-->
89      </td>
90    </tr>
91    <!--{/if}-->
92    <tr>
93      <th>ポイント付与率</th>
94      <td>
95      <!--{$arrForm.point_rate|escape}-->
96      %</td>
97    </tr>
98    <tr>
99      <th>発送日目安</th>
100      <td>
101      <!--{$arrDELIVERYDATE[$arrForm.deliv_date_id]|escape}-->
102      </td>
103    </tr>
104    <tr>
105      <th>購入制限</th>
106      <td>
107      <!--{if $arrForm.sale_unlimited == 1}-->
108        無制限
109      <!--{else}-->
110        <!--{$arrForm.sale_limit|escape}-->
111      <!--{/if}-->
112      </td>
113    </tr>
114    <tr>
115      <th>メーカー</th>
116      <td>
117        <!--{$arrMaker[$arrForm.maker_id]|escape}-->
118      </td>
119    </tr>
120    <tr>
121      <th>メーカーURL</th>
122      <td>
123      <!--{$arrForm.comment1|escape|sfPutBR:$smarty.const.LINE_LIMIT_SIZE}-->
124      </td>
125    </tr>
126    <!--{*
127    <tr>
128      <th>成分</th>
129      <td>
130      <!--{$arrForm.comment2|escape}-->
131      </td>
132    </tr>
133    *}-->
134    <tr>
135      <th>検索ワード</th>
136      <td>
137      <!--{$arrForm.comment3|escape}-->
138      </td>
139    </tr>
140    <tr>
141      <th>備考欄(SHOP専用)</th>
142      <td>
143        <!--{$arrForm.note|escape|nl2br}-->
144      </td>
145    </tr>
146    <tr>
147      <th>一覧-メインコメント</th>
148      <td>
149      <!--{$arrForm.main_list_comment|escape|nl2br}-->
150      </td>
151    </tr>
152    <tr>
153      <th>詳細-メインコメント</th>
154      <td>
155      <!--{$arrForm.main_comment|nl2br}-->
156      </td>
157    </tr>
158    <tr>
159      <th>一覧-メイン画像</th>
160      <td>
161      <!--{assign var=key value="main_list_image"}-->
162      <!--{if $arrFile[$key].filepath != ""}-->
163      <img src="<!--{$arrFile[$key].filepath}-->" alt="<!--{$arrForm.name|escape}-->" /><br />
164      <!--{/if}-->
165      </td>
166    </tr>
167    <tr>
168      <th>詳細-メイン画像</th>
169      <td>
170      <!--{assign var=key value="main_image"}-->
171      <!--{if $arrFile[$key].filepath != ""}-->
172      <img src="<!--{$arrFile[$key].filepath}-->" alt="<!--{$arrForm.name|escape}-->" /><br />
173      <!--{/if}-->
174      </td>
175    </tr>
176    <tr>
177      <th>詳細-メイン拡大画像</th>
178      <td>
179      <!--{assign var=key value="main_large_image"}-->
180      <!--{if $arrFile[$key].filepath != ""}-->
181      <img src="<!--{$arrFile[$key].filepath}-->" alt="<!--{$arrForm.name|escape}-->" /><br />
182      <!--{/if}-->
183      </td>
184    </tr>
185
186    <!--{* オペビルダー用 *}-->
187    <!--{if "sfViewAdminOpe"|function_exists === TRUE}-->
188    <!--{include file=`$smarty.const.MODULE_PATH`mdl_opebuilder/admin_ope_view.tpl}-->
189    <!--{/if}-->
190
191    <!--{section name=cnt loop=$smarty.const.PRODUCTSUB_MAX}-->
192    <!--▼商品<!--{$smarty.section.cnt.iteration}-->-->
193    <tr>
194      <th>詳細-サブタイトル(<!--{$smarty.section.cnt.iteration}-->)</th>
195      <td>
196      <!--{assign var=key value="sub_title`$smarty.section.cnt.iteration`"}-->
197      <!--{$arrForm[$key]|escape}-->
198      </td>
199    </tr>
200    <tr>
201      <th>詳細-サブコメント(<!--{$smarty.section.cnt.iteration}-->)</th>
202      <td>
203      <!--{assign var=key value="sub_comment`$smarty.section.cnt.iteration`"}-->
204      <!--{$arrForm[$key]|nl2br}-->
205      </td>
206    </tr>
207    <tr>
208      <th>詳細-サブ画像(<!--{$smarty.section.cnt.iteration}-->)</th>
209      <td>
210      <!--{assign var=key value="sub_image`$smarty.section.cnt.iteration`"}-->
211      <!--{if $arrFile[$key].filepath != ""}-->
212      <img src="<!--{$arrFile[$key].filepath}-->" alt="<!--{$arrForm.name|escape}-->" /><br />
213      <!--{/if}-->
214      </td>
215    </tr>
216    <tr>
217      <th>詳細-サブ拡大画像(<!--{$smarty.section.cnt.iteration}-->)</th>
218      <td>
219      <!--{assign var=key value="sub_large_image`$smarty.section.cnt.iteration`"}-->
220      <!--{if $arrFile[$key].filepath != ""}-->
221      <img src="<!--{$arrFile[$key].filepath}-->" alt="<!--{$arrForm.name|escape}-->" /><br />
222      <!--{/if}-->
223      </td>
224    </tr>
225    <!--▲商品<!--{$smarty.section.cnt.iteration}-->-->
226    <!--{/section}-->
227 
228    <!--{if $smarty.const.OPTION_RECOMMEND == 1}-->
229    <!--▼関連商品-->
230    <!--{section name=cnt loop=$smarty.const.RECOMMEND_PRODUCT_MAX}-->
231    <!--{assign var=recommend_no value="`$smarty.section.cnt.iteration`"}-->
232    <tr>
233      <th>関連商品(<!--{$smarty.section.cnt.iteration}-->)<br />
234      <!--{if $arrRecommend[$recommend_no].main_list_image != ""}-->
235        <!--{assign var=image_path value="`$arrRecommend[$recommend_no].main_list_image`"}-->
236      <!--{else}-->
237        <!--{assign var=image_path value="`$smarty.const.NO_IMAGE_DIR`"}-->
238      <!--{/if}-->
239      <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&amp;width=65&amp;height=65" alt="<!--{$arrRecommend[$recommend_no].name|escape}-->">
240      </th>
241      <td>
242      <!--{if $arrRecommend[$recommend_no].name != ""}-->
243      商品コード:<!--{$arrRecommend[$recommend_no].product_code_min}--><br />
244      商品名:<!--{$arrRecommend[$recommend_no].name|escape}--><br />
245      コメント:<br />
246      <!--{$arrRecommend[$recommend_no].comment|escape|nl2br}-->
247      <!--{/if}-->
248      </td>
249    </tr>
250    <!--{/section}-->
251    <!--▲関連商品-->
252    <!--{/if}-->
253  </table>
254
255  <div class="btn">
256    <button type="button" onclick="fnModeSubmit('confirm_return','',''); return false;"><span>前のページに戻る</span></button>
257    <button type="submit"><span>この内容で登録する</span></button>
258  </div>
259</div>
260</form>
Note: See TracBrowser for help on using the repository browser.