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

Revision 20703, 12.7 KB checked in by nanasess, 13 years ago (diff)

#1165 (Myページ購入履歴の商品種別が通常商品, ダウンロード商品以外表示されない)

  • ベタ書き修正

#624(軽微な表示乱れを修正)

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