source: branches/comu-ver2/data/Smarty/templates/default/mypage/favorite.tpl @ 17498

Revision 17498, 3.9 KB checked in by Seasoft, 16 years ago (diff)

ページクラスやテンプレートで定義している文字列が画像に含まれるため、連動して変更されない問題を回避する試み。

  • Property svn:executable set to *
Line 
1<!--{*
2/*
3 * This file is part of EC-CUBE
4 *
5 * Copyright(c) 2000-2007 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<div id="mypagecolumn">
25  <h2 class="title"><!--{$tpl_title|escape}--></h2>
26  <!--{if $tpl_navi != ""}-->
27    <!--{include file=$tpl_navi}-->
28  <!--{else}-->
29    <!--{include file=`$smarty.const.TEMPLATE_DIR`mypage/navi.tpl}-->
30  <!--{/if}-->
31
32  <div id="mypage-contents">
33    <form name="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->">
34    <input type="hidden" name="order_id" value="" />
35    <input type="hidden" name="pageno" value="<!--{$tpl_pageno}-->" />
36    <h3>お気に入り一覧</h3>
37
38<!--{if $tpl_linemax > 0}-->
39
40    <p><!--{$tpl_linemax}-->件のお気に入りがあります。</p>
41    <div class="paging">
42      <!--▼ページナビ-->
43      <!--{$tpl_strnavi}-->
44      <!--▲ページナビ-->
45    </div>
46    <p>※最大20件まで表示します。</p>
47
48    <form name="form1" id="form1" method="post" action="<!--{$smarty.const.SITE_URL}-->products/detail.php">
49    <input type="hidden" name="mode" value="cart" />
50    <input type="hidden" name="product_id" value="" />
51    <table summary="お気に入り" id="mypage-history-list" class="list">
52      <tr>
53        <th width="40">削除</th>
54        <th width="60">商品画像</th>
55        <th width="200">商品名</th>
56        <th width="200" class="sale_price"><!--{$smarty.const.SALE_PRICE_TITLE}--><span class="mini">(税込)</span></th>
57      </tr>
58      <!--{section name=cnt loop=$arrFavorite}-->
59      <!--{if $arrFavorite[cnt].main_list_image != ""}-->
60        <!--{assign var=image_path value="`$arrFavorite[cnt].main_list_image`"}-->
61      <!--{else}-->
62        <!--{assign var=image_path value="`$smarty.const.NO_IMAGE_DIR`"}-->
63      <!--{/if}-->
64      <!--{assign var=product_id value="`$arrFavorite[cnt].product_id`"}-->
65      <tr>
66       <td><a href="javascript:fnModeSubmit('delete_favorite','product_id','<!--{$product_id}-->');">削除</a></td>
67       <td><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$product_id}-->"><img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&width=65&height=65"></a></td>
68       <td><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$product_id}-->"><!--{$arrFavorite[cnt].name}--></a></td>
69       <td class="right sale_price">
70        <span class="price">
71          <!--{if $arrFavorite[cnt].price02_min == $arrFavorite[cnt].price02_max}-->
72            <!--{$arrFavorite[cnt].price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
73          <!--{else}-->
74            <!--{$arrFavorite[cnt].price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->〜<!--{$arrFavorite[cnt].price02_max|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
75          <!--{/if}-->円</span>
76       </td>
77     </tr>
78     <!--{/section}-->
79    </table>
80    <br />
81    <!--{if $stock_find_count > 0 && $customer_rank < 51}-->
82    <div class="product-btn">
83      <a href="javascript:void(document.form1.submit())" class="btn-cart">カートに入れる</a>
84    </div>
85    <!--{/if}-->
86    </form>
87
88    <!--{else}-->
89    <p>お気に入りが登録されておりません。</p>
90    <!--{/if}-->
91    </form>
92  </div>
93</div>
Note: See TracBrowser for help on using the repository browser.