source: branches/version-2_5-dev/data/Smarty/templates/sphone/mypage/history.tpl @ 19998

Revision 19998, 10.5 KB checked in by Seasoft, 13 years ago (diff)

#640(URL の index.php ハードコーディングを解消し省略・変更を考慮)

  • IIS動作未確認

#834(パスに関わるパラメータ名が不適切)

  • DIR_INDEX_URL -> DIR_INDEX_PATH
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<!--▼CONTENTS-->
25<div id="mypagecolumn">
26    <h2 class="title"><!--{$tpl_title|h}--></h2>
27    <!--{include file=$tpl_navi}-->
28    <div id="mycontentsarea">
29        <h3><!--{$tpl_subtitle|h}--></h3>
30        <p class="myconditionarea">
31        <strong>購入日時:&nbsp;</strong><!--{$arrDisp.create_date|sfDispDBDate}--><br />
32        <strong>注文番号:&nbsp;</strong><!--{$arrDisp.order_id}--><br />
33        <strong>お支払い方法:&nbsp;</strong><!--{$arrPayment[$arrDisp.payment_id]|h}-->
34        <!--{if $arrDisp.deliv_time_id != ""}--><br />
35        <strong>お届け時間:&nbsp;</strong><!--{$arrDelivTime[$arrDisp.deliv_time_id]|h}-->
36        <!--{/if}-->
37        <!--{if $arrDisp.deliv_date != ""}--><br />
38        <strong>お届け日:&nbsp;</strong><!--{$arrDisp.deliv_date|h}-->
39        <!--{/if}-->
40        </p>
41
42        <form action="order.php" method="post">
43            <input type="hidden" name="order_id" value="<!--{$arrDisp.order_id}-->">
44            <input type="submit" name="submit" value="再注文">
45        </form>
46
47        <table summary="購入商品詳細">
48            <tr>
49                <th>商品コード</th>
50                <th>商品名</th>
51                <th>商品種別</th>
52                <th>単価</th>
53                <th>数量</th>
54                <th>小計</th>
55            </tr>
56            <!--{foreach from=$tpl_arrOrderDetail item=orderDetail}-->
57                <tr>
58                    <td><!--{$orderDetail.product_code|h}--></td>
59                    <td><a<!--{if $orderDetail.enable}--> href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$orderDetail.product_id|u}-->"<!--{/if}-->><!--{$orderDetail.product_name|h}--></a></td>
60                    <td>
61                    <!--{ if $orderDetail.product_type_id == PRODUCT_TYPE_DOWNLOAD}-->
62                        <!--{ if $orderDetail.price == "0" || ( $orderDetail.status >= "4" && $orderDetail.effective == "1" )}-->
63                            <a target="_self" href="<!--{$smarty.const.ROOT_URLPATH}-->mypage/download.php?order_id=<!--{$arrDisp.order_id}-->&product_id=<!--{$orderDetail.product_id}-->&product_class_id=<!--{$orderDetail.product_class_id}-->">ダウンロード</a>
64                        <!--{ elseif $orderDetail.payment_date == "" || $orderDetail.status < "4"}-->
65                            ダウンロード商品<BR />(入金確認中)
66                        <!--{ elseif $orderDetail.effective != "1"}-->
67                            ダウンロード商品<BR />(期限切れ)
68                        <!--{ /if }-->
69                    <!--{ else if $orderDetail.product_type_id == PRODUCT_TYPE_NORMAL}-->
70                            通常商品
71                    <!--{ /if }-->
72                    </td>
73                    <!--{assign var=price value=`$orderDetail.price`}-->
74                    <!--{assign var=quantity value=`$orderDetail.quantity`}-->
75                    <td class="pricetd"><!--{$price|number_format|h}-->円</td>
76                    <td><!--{$quantity|h}--></td>
77                    <td class="pricetd"><!--{$price|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|sfMultiply:$quantity|number_format}-->円</td>
78                </tr>
79            <!--{/foreach}-->
80            <tr>
81                <th colspan="5" class="resulttd">小計</th>
82                <td class="pricetd"><!--{$arrDisp.subtotal|number_format}-->円</td>
83            </tr>
84            <!--{assign var=point_discount value="`$arrDisp.use_point*$smarty.const.POINT_VALUE`"}-->
85            <!--{if $point_discount > 0}-->
86            <tr>
87                <th colspan="5" class="resulttd">ポイント値引き</th>
88                <td class="pricetd"><!--{$point_discount|number_format}-->円</td>
89            </tr>
90            <!--{/if}-->
91            <!--{assign var=key value="discount"}-->
92            <!--{if $arrDisp[$key] != "" && $arrDisp[$key] > 0}-->
93            <tr>
94                <th colspan="5" class="resulttd">値引き</th>
95                <td class="pricetd"><!--{$arrDisp[$key]|number_format}-->円</td>
96            </tr>
97            <!--{/if}-->
98            <tr>
99                <th colspan="5" class="resulttd">送料</th>
100                <td class="pricetd"><!--{assign var=key value="deliv_fee"}--><!--{$arrDisp[$key]|number_format|h}-->円</td>
101            </tr>
102            <tr>
103                <th colspan="5" class="resulttd">手数料</th>
104                <!--{assign var=key value="charge"}-->
105                <td class="pricetd"><!--{$arrDisp[$key]|number_format|h}-->円</td>
106            </tr>
107            <tr>
108                <th colspan="5" class="resulttd">合計</th>
109                <td class="pricetd"><em><!--{$arrDisp.payment_total|number_format}-->円</em></td>
110            </tr>
111        </table>
112
113        <!-- 使用ポイントここから -->
114        <!--{if $smarty.const.USE_POINT !== false}-->
115            <table summary="使用ポイント">
116                <tr>
117                    <th>ご使用ポイント</th>
118                    <td class="pricetd"><!--{assign var=key value="use_point"}--><!--{$arrDisp[$key]|number_format|default:0}--> pt</td>
119                </tr>
120                <tr>
121                    <th>今回加算されるポイント</th>
122                    <td class="pricetd"><!--{$arrDisp.add_point|number_format|default:0}--> pt</td>
123                </tr>
124            </table>
125        <!--{/if}-->
126        <!-- 使用ポイントここまで -->
127
128        <!--{foreach item=shippingItem name=shippingItem from=$arrShipping}-->
129        <h3>お届け先<!--{if $isMultiple}--><!--{$smarty.foreach.shippingItem.iteration}--><!--{/if}--></h3>
130        <!--{if $isMultiple}-->
131            <table summary="お届け内容確認">
132              <tr>
133                <th>商品コード</th>
134                <th>商品名</th>
135                <th>単価</th>
136                <th>数量</th>
137                <!--{* XXX 購入小計と誤差が出るためコメントアウト
138                <th>小計</th>
139                *}-->
140              </tr>
141              <!--{foreach item=item from=$shippingItem.shipment_item}-->
142                  <tr>
143                      <td><!--{$item.product_code|h}--></td>
144                      <td><!--{* 商品名 *}--><!--{$item.productsClass.name|h}--><br />
145                          <!--{if $item.productsClass.classcategory_name1 != ""}-->
146                              <!--{$item.productsClass.class_name1}-->:<!--{$item.productsClass.classcategory_name1}--><br />
147                          <!--{/if}-->
148                          <!--{if $item.productsClass.classcategory_name2 != ""}-->
149                              <!--{$item.productsClass.class_name2}-->:<!--{$item.productsClass.classcategory_name2}-->
150                          <!--{/if}-->
151                      </td>
152                      <td class="pricetd">
153                          <!--{$item.productsClass.price02|sfCalcIncTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->円
154                      </td>
155                      <td id="quantity"><!--{$item.quantity}--></td>
156                      <!--{* XXX 購入小計と誤差が出るためコメントアウト
157                      <td class="pricetd"><!--{$item.total_inctax|number_format}-->円</td>
158                      *}-->
159                  </tr>
160              <!--{/foreach}-->
161            </table>
162         <!--{/if}-->
163        <table summary="お届け先" class="delivname">
164            <tbody>
165                <tr>
166                    <th>お名前</th>
167                    <td><!--{$shippingItem.shipping_name01|h}-->&nbsp;<!--{$shippingItem.shipping_name02|h}--></td>
168                </tr>
169                <tr>
170                    <th>お名前(フリガナ)</th>
171                    <td><!--{$shippingItem.shipping_kana01|h}-->&nbsp;<!--{$shippingItem.shipping_kana02|h}--></td>
172                </tr>
173                <tr>
174                    <th>郵便番号</th>
175                    <td>〒<!--{$shippingItem.shipping_zip01}-->-<!--{$shippingItem.shipping_zip02}--></td>
176                </tr>
177                <tr>
178                    <th>住所</th>
179                    <td><!--{$arrPref[$shippingItem.shipping_pref]}--><!--{$shippingItem.shipping_addr01|h}--><!--{$shippingItem.shipping_addr02|h}--></td>
180                </tr>
181                <tr>
182                    <th>電話番号</th>
183                    <td><!--{$shippingItem.shipping_tel01}-->-<!--{$shippingItem.shipping_tel02}-->-<!--{$shippingItem.shipping_tel03}--></td>
184                </tr>
185            </tbody>
186        </table>
187        <!--{/foreach}-->
188
189        <br />
190
191        <h3>メール配信履歴一覧</h3>
192        <table>
193            <tr>
194                <th>処理日</th>
195                <th>通知メール</th>
196                <th>件名</th>
197            </tr>
198            <!--{section name=cnt loop=$arrMailHistory}-->
199            <tr class="center">
200                <td><!--{$arrMailHistory[cnt].send_date|sfDispDBDate|h}--></td>
201                <!--{assign var=key value="`$arrMailHistory[cnt].template_id`"}-->
202                <td><!--{$arrMAILTEMPLATE[$key]|h}--></td>
203                <td><a href="#" onclick="win02('./mail_view.php?send_id=<!--{$arrMailHistory[cnt].send_id}-->','mail_view','650','800'); return false;"><!--{$arrMailHistory[cnt].subject|h}--></a></td>
204            </tr>
205            <!--{/section}-->
206        </table>
207
208        <div class="tblareabtn">
209            <a href="./<!--{$smarty.const.DIR_INDEX_PATH}-->" onmouseover="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_back_on.gif','change');" onmouseout="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_back.gif','change');"><img src="<!--{$TPL_URLPATH}-->img/button/btn_back.gif" width="150" height="30" alt="戻る" name="change" id="change" /></a>
210        </div>
211
212    </div>
213</div>
214<!--▲CONTENTS-->
Note: See TracBrowser for help on using the repository browser.