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

Revision 23002, 11.7 KB checked in by Yammy, 11 years ago (diff)

スマートフォンテンプレート下部にある検索エリアを
共通テンプレート化して、includeするように修正

refs #2257

  • 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
RevLine 
[19713]1<!--{*
2/*
3 * This file is part of EC-CUBE
4 *
[22206]5 * Copyright(c) 2000-2013 LOCKON CO.,LTD. All Rights Reserved.
[19713]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*}-->
[21537]24
[21050]25<section id="mypagecolumn">
[19785]26    <h2 class="title"><!--{$tpl_title|h}--></h2>
[19713]27    <!--{include file=$tpl_navi}-->
28
[21533]29    <h3 class="title_mypage"><!--{$tpl_subtitle|h}--></h3>
[19713]30
[21533]31    <div class="form_area">
32        <div id="historyBox">
33            <p>
34                <em>注文番号</em>:&nbsp;<!--{$tpl_arrOrderData.order_id}--><br />
35                <em>購入日時</em>:&nbsp;<!--{$tpl_arrOrderData.create_date|sfDispDBDate}--><br />
36                <em>お支払い方法</em>:&nbsp;<!--{$arrPayment[$tpl_arrOrderData.payment_id]|h}-->
37            </p>
[20614]38
[21533]39            <form action="order.php" method="post">
40                <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
41                <input type="hidden" name="order_id" value="<!--{$tpl_arrOrderData.order_id}-->">
42                <input class="btn_reorder btn data-role-none" type="submit" name="submit" value="再注文">
43            </form>
44        </div>
[22521]45        <!--{foreach item=shippingItem name=shippingItem from=$arrShipping}-->
46            <h3>お届け先<!--{if $isMultiple}--><!--{$smarty.foreach.shippingItem.iteration}--><!--{/if}--></h3>
[22856]47        <div class="historyBox">
[22521]48        <p>
49            <!--{if $isMultiple}-->
50                    <!--{foreach item=item from=$shippingItem.shipment_item}-->
51                        <em>商品コード:&nbsp;</em><!--{$item.productsClass.product_code|h}--><br />
52                        <em>商品名:&nbsp;</em>
53                                <!--{$item.productsClass.name|h}--><br />
54                                <!--{if $item.productsClass.classcategory_name1 != ""}-->
55                                    <!--{$item.productsClass.class_name1}-->:<!--{$item.productsClass.classcategory_name1}--><br />
56                                <!--{/if}-->
57                                <!--{if $item.productsClass.classcategory_name2 != ""}-->
58                                    <!--{$item.productsClass.class_name2}-->:<!--{$item.productsClass.classcategory_name2}--><br />
59                                <!--{/if}-->
[22856]60
[22521]61                        <em>単価:&nbsp;</em><!--{$item.price|sfCalcIncTax:$tpl_arrOrderData.order_tax_rate:$tpl_arrOrderData.order_tax_rule|number_format}-->円<br />
62                        <em>数量:&nbsp;</em><!--{$item.quantity}--><br />
63                        <!--{* XXX 購入小計と誤差が出るためコメントアウト
64                        <em>小計</em><!--{$item.total_inctax|number_format}-->円
65                        *}-->
66                        <br />
67                    <!--{/foreach}-->
68            <!--{/if}-->
[19713]69
[22521]70            <em>お名前</em>:&nbsp;<!--{$shippingItem.shipping_name01|h}-->&nbsp;<!--{$shippingItem.shipping_name02|h}--><br />
71            <em>お名前(フリガナ)</em>:&nbsp;<!--{$shippingItem.shipping_kana01|h}-->&nbsp;<!--{$shippingItem.shipping_kana02|h}--><br />
72            <em>郵便番号</em>:&nbsp;〒<!--{$shippingItem.shipping_zip01}-->-<!--{$shippingItem.shipping_zip02}--><br />
73            <em>住所</em>:&nbsp;<!--{$arrPref[$shippingItem.shipping_pref]}--><!--{$shippingItem.shipping_addr01|h}--><!--{$shippingItem.shipping_addr02|h}--><br />
74            <em>電話番号</em>:&nbsp;<!--{$shippingItem.shipping_tel01}-->-<!--{$shippingItem.shipping_tel02}-->-<!--{$shippingItem.shipping_tel03}--><br />
75                            <!--{if $shippingItem.shipping_fax01 > 0}-->
76            <em>FAX番号</em>:&nbsp;<!--{$shippingItem.shipping_fax01}-->-<!--{$shippingItem.shipping_fax02}-->-<!--{$shippingItem.shipping_fax03}--><br />
[22856]77                            <!--{/if}-->
[22601]78            <em>お届け日</em>:&nbsp;<!--{$shippingItem.shipping_date|default:'指定なし'|h}--><br />
79            <em>お届け時間</em>:&nbsp;<!--{$shippingItem.shipping_time|default:'指定なし'|h}--><br />
[22521]80</p>
81</div>
82
83        <!--{/foreach}-->
84
[21533]85        <div class="formBox">
86            <!--▼カートの中の商品一覧 -->
87            <div class="cartinarea clearfix">
[21133]88
[21533]89                <!--▼商品 -->
90                <!--{foreach from=$tpl_arrOrderDetail item=orderDetail}-->
91                    <div>
92                        <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$orderDetail.main_list_image|sfNoImageMainList|h}-->&amp;width=80&amp;height=80" alt="<!--{$orderDetail.product_name|h}-->" class="photoL" />
93                        <div class="cartinContents">
94                            <div>
95                                <p><em><!--→商品名--><a<!--{if $orderDetail.enable}--> href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$orderDetail.product_id|u}-->"<!--{/if}--> rel="external"><!--{$orderDetail.product_name|h}--></a><!--←商品名--></em></p>
96                                <p>
97                                    <!--→金額-->
98                                    <!--{assign var=price value=`$orderDetail.price`}-->
99                                    <!--{assign var=quantity value=`$orderDetail.quantity`}-->
100                                    <span class="mini">価格:</span><!--{$price|number_format|h}-->円<!--←金額-->
101                                </p>
[19713]102
[21533]103                                <!--→商品種別-->
104                                <!--{if $orderDetail.product_type_id == $smarty.const.PRODUCT_TYPE_DOWNLOAD}-->
105                                    <p id="downloadable">
106                                        <!--{if $orderDetail.is_downloadable}-->
107                                            <a target="_self" href="<!--{$smarty.const.ROOT_URLPATH}-->mypage/download.php?order_id=<!--{$tpl_arrOrderData.order_id}-->&amp;product_id=<!--{$orderDetail.product_id}-->&amp;product_class_id=<!--{$orderDetail.product_class_id}-->" rel="external">ダウンロード</a><br />
108                                        <!--{else}-->
109                                            <!--{if $orderDetail.payment_date == "" && $orderDetail.effective == "0"}-->
110                                                <!--{$arrProductType[$orderDetail.product_type_id]}--><br />(入金確認中)
111                                            <!--{else}-->
112                                                <!--{$arrProductType[$orderDetail.product_type_id]}--><br />(期限切れ)
113                                            <!--{/if}-->
114                                        <!--{/if}-->
115                                    </p>
116                                <!--{/if}-->
117                                <!--←商品種別-->
118                            </div>
[22218]119                            <!--{assign var=tax_rate value=`$orderDetail.tax_rate`}-->
120                            <!--{assign var=tax_rule value=`$orderDetail.tax_rule`}-->
[21533]121                            <ul>
122                                <li><span class="mini">数量:</span><!--{$quantity|h}--></li>
[22218]123                                <li class="result"><span class="mini">小計:</span><!--{$price|sfCalcIncTax:$tax_rate:$tax_rule|sfMultiply:$quantity|number_format}-->円</li>
[21533]124                            </ul>
125                        </div>
126                    </div>
127                <!--{/foreach}-->
128                <!--▲商品 -->
[19713]129
[21584]130            </div><!--{* /.cartinarea *}-->
[21533]131            <!--▲ カートの中の商品一覧 -->
[19713]132
[21533]133            <div class="total_area">
134                <div><span class="mini">小計:</span><!--{$tpl_arrOrderData.subtotal|number_format}-->円</div>
135                <!--{if $tpl_arrOrderData.use_point > 0}-->
136                    <div><span class="mini">ポイント値引き:</span>&minus;<!--{$tpl_arrOrderData.use_point|number_format}-->円</div>
137                <!--{/if}-->
138                <!--{if $tpl_arrOrderData.discount != '' && $tpl_arrOrderData.discount > 0}-->
139                    <div><span class="mini">値引き:</span>&minus;<!--{$tpl_arrOrderData.discount|number_format}-->円</div>
140                <!--{/if}-->
141                <div><span class="mini">送料:</span><!--{$tpl_arrOrderData.deliv_fee|number_format}-->円</div>
142                <div><span class="mini">手数料:</span><!--{$tpl_arrOrderData.charge|number_format}-->円</div>
143                <div><span class="mini">合計:</span><span class="price fb"><!--{$tpl_arrOrderData.payment_total|number_format}-->円</span></div>
144                <div><span class="mini">今回加算ポイント:</span><!--{$tpl_arrOrderData.add_point|number_format|default:0}-->Pt</div>
145            </div>
146        </div><!-- /.formBox -->
[21050]147
[21533]148        <!--▼メール一覧 -->
149        <div class="formBox">
[21050]150
[21533]151            <div class="box_header">
152                メール配信履歴一覧
153            </div>
154            <!--{section name=cnt loop=$tpl_arrMailHistory}-->
155                <!--▼メール -->
156                <div class="arrowBox">
157                    <p>配信日:<!--{$tpl_arrMailHistory[cnt].send_date|sfDispDBDate|h}--><br />
158                        <!--{assign var=key value="`$tpl_arrMailHistory[cnt].template_id`"}-->
159                        通知メール:<!--{$arrMAILTEMPLATE[$key]|h}--></p>
[21535]160                    <p><a href="javascript:;" onclick="getMailDetail(<!--{$tpl_arrMailHistory[cnt].send_id}-->)" rel="external"><!--{$tpl_arrMailHistory[cnt].subject|h}--></a></p>
[21533]161                </div>
162                <!--▲メール -->
163            <!--{/section}-->
164        </div><!-- /.formBox -->
165        <!--▲メール一覧 -->
[21050]166
[21533]167        <p><a rel="external" class="btn_more" href="./<!--{$smarty.const.DIR_INDEX_PATH}-->">購入履歴一覧に戻る</a></p>
168
169    </div><!-- /.form_area -->
170
[21050]171</section>
[21533]172
[23002]173<!--{include file= 'frontparts/search_area.tpl'}-->
[21533]174
[21150]175<script>
[21533]176    function getMailDetail(send_id) {
177        $.mobile.showPageLoadingMsg();
178        $.ajax({
179            type: "GET",
180            url: "<!--{$smarty.const.ROOT_URLPATH}-->mypage/mail_view.php",
181            data: "mode=getDetail&send_id=" + send_id,
182            cache: false,
183            dataType: "json",
184            error: function(XMLHttpRequest, textStatus, errorThrown){
185                alert(textStatus);
186                $.mobile.hidePageLoadingMsg();
187            },
188            success: function(result){
189                var maxCnt = 0;
190                $("#windowcolumn h2").text('メール詳細');
191                $("#windowcolumn a[data-rel=back]").text('購入履歴詳細にもどる');
192                $($("#windowcolumn dl.view_detail dt").get(maxCnt)).text(result[0].subject);
193                $($("#windowcolumn dl.view_detail dd").get(maxCnt)).html(result[0].mail_body.replace(/\n/g,"<br />"));
194                $("#windowcolumn dl.view_detail dd").css('font-family', 'monospace');
195                $.mobile.changePage('#windowcolumn', {transition: "slideup"});
196                //ダイアログが開き終わるまで待機
197                setTimeout( function() {
198                                loadingState = 0;
199                                $.mobile.hidePageLoadingMsg();
200                }, 1000);
201            }
202        });
203    }
[21150]204</script>
Note: See TracBrowser for help on using the repository browser.