source: branches/version-2_4/data/Smarty/templates/default/products/customer_favorite_products.tpl @ 18267

Revision 18267, 1.0 KB checked in by kishida, 13 years ago (diff)

お気に入り機能の処理を、関数化する

Line 
1<!--{* お気に入り追加機能ON && 会員がログイン中 ⇒ お気に入りに追加するボタンを表示させる *}-->
2<!--{if $smarty.const.OPTION_FAVOFITE_PRODUCT == 1 && $tpl_login === true}-->
3    <!--{assign var=add_favorite value="add_favorite`$add_favorite_product_id`"}-->
4    <!--{if $arrErr[$add_favorite]}-->
5        <div class="attention"><!--{$arrErr[$add_favorite]}--></div>
6    <!--{/if}-->
7    <!--{if !$arrProduct.favorite_count}-->
8        <a href="javascript:fnModeSubmit('add_favorite','favorite_product_id','<!--{$arrProduct.product_id|escape}-->');" onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/add_favolite_product_on.gif','add_favolite_product');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/products/add_favolite_product.gif','add_favolite_product');">
9            <img src="<!--{$TPL_DIR}-->img/products/add_favolite_product.gif" width="115" height="20" alt="お気に入りに追加" name="add_favolite_product" id="add_favolite_product" />
10        </a>
11    <!--{/if}-->
12<!--{/if}-->
Note: See TracBrowser for help on using the repository browser.