source: branches/comu-ver2/data/Smarty/templates/default/shopping/deliv.tpl @ 17605

Revision 17605, 5.4 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 * This file is part of EC-CUBE
3 *
4 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
5 *
6 * http://www.lockon.co.jp/
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
21 *}-->
22<!--▼CONTENTS-->
23<div id="under02column">
24  <div id="under02column_shopping">
25    <p class="flowarea">
26      <img src="<!--{$TPL_DIR}-->img/shopping/flow01.gif" width="700" height="36" alt="購入手続きの流れ" />
27    </p>
28    <h2 class="title"><!--{$tpl_title|escape}--></h2>
29
30    <p>下記一覧よりお届け先住所を選択して、「選択したお届け先に送る」ボタンをクリックしてください。<br />
31      一覧にご希望の住所が無い場合は、「新しいお届け先を追加する」より追加登録してください。<br />
32      ※最大20件まで登録できます。</p>
33    <!--{if $tpl_addrmax < $smarty.const.DELIV_ADDR_MAX}-->
34    <p class="addbtn">
35      <a href="<!--{$smarty.const.URL_DIR}-->mypage/delivery_addr.php" onclick="win02('<!--{$smarty.const.URL_DIR}-->mypage/delivery_addr.php?page=<!--{$smarty.server.PHP_SELF|escape}-->','new_deiv','600','640'); return false;" onmouseover="chgImg('<!--{$TPL_DIR}-->img/common/newadress_on.gif','addition');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/common/newadress.gif','addition');"><img src="<!--{$TPL_DIR}-->img/common/newadress.gif" width="160" height="22" alt="新しいお届け先を追加する" name="addition" id="addition" /></a>
36    </p>
37    <!--{/if}-->
38    <form name="form1" id="form1" method="post" action="?">
39      <input type="hidden" name="mode" value="customer_addr" />
40      <input type="hidden" name="uniqid" value="<!--{$tpl_uniqid}-->" />
41      <input type="hidden" name="other_deliv_id" value="" />
42      <!--{if $arrErr.deli != ""}-->
43      <p class="attention"><!--{$arrErr.deli}--></p>
44      <!--{/if}-->
45      <table summary="お届け先の指定">
46        <tr>
47          <th>選択</th>
48          <th>住所種類</th>
49          <th>お届け先</th>
50          <th>変更</th>
51          <th>削除</th>
52        </tr>
53       <!--{section name=cnt loop=$arrAddr}-->
54       <tr>
55         <td class="centertd">
56           <!--{if $smarty.section.cnt.first}-->
57           <input type="radio" name="deliv_check" id="chk_id_<!--{$smarty.section.cnt.iteration}-->" value="-1" <!--{if $arrForm.deliv_check.value == "" || $arrForm.deliv_check.value == -1}--> checked="checked"<!--{/if}--> />
58           <!--{else}-->
59           <input type="radio" name="deliv_check" id="chk_id_<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrAddr[cnt].other_deliv_id}-->" <!--{if $arrForm.deliv_check.value == $arrAddr[cnt].other_deliv_id}--> checked="checked"<!--{/if}--> />
60           <!--{/if}-->
61        </td>
62        <td>
63          <label for="chk_id_<!--{$smarty.section.cnt.iteration}-->">
64            <!--{if $smarty.section.cnt.first}-->
65            会員登録住所
66            <!--{else}-->
67            追加登録住所
68            <!--{/if}-->
69          </label>
70        </td>
71        <td>
72          <!--{assign var=key value=$arrAddr[cnt].pref}-->
73          <!--{$arrPref[$key]}--><!--{$arrAddr[cnt].addr01|escape}--><!--{$arrAddr[cnt].addr02|escape}--><br />
74          <!--{$arrAddr[cnt].name01|escape}--> <!--{$arrAddr[cnt].name02|escape}-->
75        </td>
76        <td class="centertd">
77        <!--{if !$smarty.section.cnt.first}-->
78          <a href="<!--{$smarty.const.URL_DIR}-->mypage/delivery_addr.php" onclick="win02('<!--{$smarty.const.URL_DIR}-->mypage/delivery_addr.php?page=<!--{$smarty.server.PHP_SELF|escape}-->&amp;other_deliv_id=<!--{$arrAddr[cnt].other_deliv_id}-->','new_deiv','600','640'); return false;">変更</a>
79        <!--{/if}-->
80        </td>
81        <td class="centertd">
82        <!--{if !$smarty.section.cnt.first}-->
83          <a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnModeSubmit('delete', 'other_deliv_id', '<!--{$arrAddr[cnt].other_deliv_id}-->'); return false">削除</a>
84        <!--{/if}-->
85        </td>
86      </tr>
87      <!--{/section}-->
88    </table>
89
90      <div class="tblareabtn">
91        <a href="<!--{$smarty.const.URL_CART_TOP}-->" onmouseover="chgImgImageSubmit('<!--{$TPL_DIR}-->img/common/b_back_on.gif',back03)" onmouseout="chgImgImageSubmit('<!--{$TPL_DIR}-->img/common/b_back.gif',back03)">
92          <img src="<!--{$TPL_DIR}-->img/common/b_back.gif" width="150" height="30" alt="戻る" border="0" name="back03" id="back03" />
93        </a>
94        <input type="image" onmouseover="chgImgImageSubmit('<!--{$TPL_DIR}-->img/shopping/b_select_on.gif',this)" onmouseout="chgImgImageSubmit('<!--{$TPL_DIR}-->img/shopping/b_select.gif',this)" src="<!--{$TPL_DIR}-->img/shopping/b_select.gif" alt="選択したお届け先に送る" class="box190" name="send_button" id="send_button" />
95      </div>
96    </form>
97  </div>
98</div>
99<!--▲CONTENTS-->
Note: See TracBrowser for help on using the repository browser.