Ignore:
Timestamp:
2012/02/19 02:22:11 (11 years ago)
Author:
Seasoft
Message:

#1613 (ソース整形・ソースコメントの改善)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/Smarty/templates/mobile/cart/index.tpl

    r21535 r21537  
    2222 */ 
    2323*}--> 
    24 <!--{* カゴの中に商品がある場合にのみ表示 *}--> 
    25 <!--{if count($cartKeys) > 1}--> 
    26 <font color="#FF0000"><!--{foreach from=$cartKeys item=key name=cartKey}--><!--{$arrProductType[$key]}--><!--{if !$smarty.foreach.cartKey.last}-->、<!--{/if}--><!--{/foreach}--> 
    27 は同時購入できません。お手数ですが、個別に購入手続きをお願い致します。<br></font> 
    28 <br> 
    29 <!--{/if}--> 
    3024 
    31 <!--{if strlen($tpl_error) != 0}--> 
    32 <font color="#FF0000"><!--{$tpl_error|h}--></font><br> 
    33 <!--{/if}--> 
    34  
    35 <!--{if strlen($tpl_message) != 0}--> 
    36 <!--{$tpl_message|h|nl2br}--><br> 
    37 <!--{/if}--> 
    38  
    39 <!--{if count($cartItems) > 0}--> 
    40 <!--{foreach from=$cartKeys item=key}--> 
    41 <form name="form<!--{$key}-->" id="form<!--{$key}-->" method="post" action="?"  utn> 
    42     <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> 
    43     <input type="hidden" name="mode" value="confirm"> 
    44     <input type="hidden" name="cart_no" value=""> 
    45     <input type="hidden" name="cartKey" value="<!--{$key}-->"> 
    46     <!--ご注文内容ここから--> 
     25<!--{strip}--> 
     26    <!--{* カゴの中に商品がある場合にのみ表示 *}--> 
    4727    <!--{if count($cartKeys) > 1}--> 
    48     <hr> 
    49     ■<!--{$arrProductType[$key]}--> 
    50     <hr> 
    51     <!--{/if}--> 
    52     <!--{foreach from=$cartItems[$key] item=item}--> 
    53         ◎<!--{* 商品名 *}--><!--{$item.productsClass.name|h}--><br> 
    54         <!--{* 規格名1 *}--><!--{if $item.productsClass.classcategory_name1 != ""}--><!--{$item.productsClass.class_name1}-->:<!--{$item.productsClass.classcategory_name1}--><br><!--{/if}--> 
    55         <!--{* 規格名2 *}--><!--{if $item.productsClass.classcategory_name2 != ""}--><!--{$item.productsClass.class_name2}-->:<!--{$item.productsClass.classcategory_name2}--><br><!--{/if}--> 
    56         <!--{* 販売価格 *}--> 
    57         <!--{$item.price|sfCalcIncTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->円 
    58         × <!--{$item.quantity}--><br> 
    59         <br> 
    60         <!--{* 数量 *}--> 
    61         数量:<!--{$item.quantity}--> 
    62         <a href="?mode=up&amp;cart_no=<!--{$item.cart_no}-->&amp;cartKey=<!--{$key}-->">+</a> 
    63         <a href="?mode=down&amp;cart_no=<!--{$item.cart_no}-->&amp;cartKey=<!--{$key}-->">-</a> 
    64         <a href="?mode=delete&amp;cart_no=<!--{$item.cart_no}-->&amp;cartKey=<!--{$key}-->">削除</a><br> 
    65         <!--{* 合計 *}--> 
    66         小計:<!--{$item.total_inctax|number_format}-->円<br> 
    67         <div align="right"><a href="<!--{$smarty.const.MOBILE_P_DETAIL_URLPATH}--><!--{$item.productsClass.product_id|u}-->">→商品詳細へ</a></div> 
    68         <HR> 
    69     <!--{/foreach}--> 
    70     <font color="#FF0000"> 
    71     商品合計:<!--{$tpl_total_inctax[$key]|number_format}-->円<br> 
    72     合計:<!--{$arrData[$key].total-$arrData[$key].deliv_fee|number_format}-->円<br> 
    73     </font> 
    74     <br> 
    75     <!--{if $key != $smarty.const.PRODUCT_TYPE_DOWNLOAD}--> 
    76     <!--{if $arrInfo.free_rule > 0}--> 
    77     <!--{if !$arrData[$key].is_deliv_free}--> 
    78         あと「<font color="#FF0000"><!--{$tpl_deliv_free[$key]|number_format}-->円</font>」で<font color="#FF0000">送料無料</font>です!!<br> 
    79     <!--{else}--> 
    80         現在、「<font color="#FF0000">送料無料</font>」です!!<br> 
    81     <!--{/if}--> 
    82     <br> 
    83     <!--{/if}--> 
     28        <font color="#FF0000"><!--{foreach from=$cartKeys item=key name=cartKey}--><!--{$arrProductType[$key]}--><!--{if !$smarty.foreach.cartKey.last}-->、<!--{/if}--><!--{/foreach}--> 
     29        は同時購入できません。お手数ですが、個別に購入手続きをお願い致します。<br></font> 
     30        <br> 
    8431    <!--{/if}--> 
    8532 
    86     <!--{if $smarty.const.USE_POINT !== false}--> 
    87     <!--{if $arrData[$key].birth_point > 0}--> 
    88         お誕生月ポイント<br> 
    89         <!--{$arrData[$key].birth_point|number_format}-->pt<br> 
    90     <!--{/if}--> 
    91     今回加算ポイント<br> 
    92     <!--{$arrData[$key].add_point|number_format}-->pt<br> 
    93     <br> 
    94     <!--{/if}--> 
     33    <!--{if strlen($tpl_error) != 0}--> 
     34        <font color="#FF0000"><!--{$tpl_error|h}--></font><br> 
     35    <!--{/if}--> 
    9536 
    96     <center><input type="submit" value="注文する"></center> 
    97 </form> 
     37    <!--{if strlen($tpl_message) != 0}--> 
     38        <!--{$tpl_message|h|nl2br}--><br> 
     39    <!--{/if}--> 
    9840 
    99 <br> 
    100 <!--{if $tpl_prev_url != ""}--> 
    101     <a href="<!--{$tpl_prev_url|h}-->">[emoji:69]お買物を続ける</a><br> 
    102     <br> 
    103 <!--{/if}--> 
    104 <!--{/foreach}--> 
    105 <!--{else}--> 
    106     ※現在カート内に商品はございません。<br> 
    107     <br> 
    108 <!--{/if}--> 
     41    <!--{if count($cartItems) > 0}--> 
     42        <!--{foreach from=$cartKeys item=key}--> 
     43            <form name="form<!--{$key}-->" id="form<!--{$key}-->" method="post" action="?" utn> 
     44                <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->"> 
     45                <input type="hidden" name="mode" value="confirm"> 
     46                <input type="hidden" name="cart_no" value=""> 
     47                <input type="hidden" name="cartKey" value="<!--{$key}-->"> 
     48                <!--ご注文内容ここから--> 
     49                <!--{if count($cartKeys) > 1}--> 
     50                    <hr> 
     51                    ■<!--{$arrProductType[$key]}--> 
     52                    <hr> 
     53                <!--{/if}--> 
     54                <!--{foreach from=$cartItems[$key] item=item}--> 
     55                    ◎<!--{* 商品名 *}--><!--{$item.productsClass.name|h}--><br> 
     56                    <!--{* 規格名1 *}--><!--{if $item.productsClass.classcategory_name1 != ""}--><!--{$item.productsClass.class_name1}-->:<!--{$item.productsClass.classcategory_name1}--><br><!--{/if}--> 
     57                    <!--{* 規格名2 *}--><!--{if $item.productsClass.classcategory_name2 != ""}--><!--{$item.productsClass.class_name2}-->:<!--{$item.productsClass.classcategory_name2}--><br><!--{/if}--> 
     58                    <!--{* 販売価格 *}--> 
     59                    <!--{$item.price|sfCalcIncTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->円 
     60                    × <!--{$item.quantity}--><br> 
     61                    <br> 
     62                    <!--{* 数量 *}--> 
     63                    数量:<!--{$item.quantity}--> 
     64                    <a href="?mode=up&amp;cart_no=<!--{$item.cart_no}-->&amp;cartKey=<!--{$key}-->">+</a> 
     65                    <a href="?mode=down&amp;cart_no=<!--{$item.cart_no}-->&amp;cartKey=<!--{$key}-->">-</a> 
     66                    <a href="?mode=delete&amp;cart_no=<!--{$item.cart_no}-->&amp;cartKey=<!--{$key}-->">削除</a><br> 
     67                    <!--{* 合計 *}--> 
     68                    小計:<!--{$item.total_inctax|number_format}-->円<br> 
     69                    <div align="right"><a href="<!--{$smarty.const.MOBILE_P_DETAIL_URLPATH}--><!--{$item.productsClass.product_id|u}-->">→商品詳細へ</a></div> 
     70                    <HR> 
     71                <!--{/foreach}--> 
     72                <font color="#FF0000"> 
     73                商品合計:<!--{$tpl_total_inctax[$key]|number_format}-->円<br> 
     74                合計:<!--{$arrData[$key].total-$arrData[$key].deliv_fee|number_format}-->円<br> 
     75                </font> 
     76                <br> 
     77                <!--{if $key != $smarty.const.PRODUCT_TYPE_DOWNLOAD}--> 
     78                    <!--{if $arrInfo.free_rule > 0}--> 
     79                        <!--{if !$arrData[$key].is_deliv_free}--> 
     80                            あと「<font color="#FF0000"><!--{$tpl_deliv_free[$key]|number_format}-->円</font>」で<font color="#FF0000">送料無料</font>です!!<br> 
     81                        <!--{else}--> 
     82                            現在、「<font color="#FF0000">送料無料</font>」です!!<br> 
     83                        <!--{/if}--> 
     84                        <br> 
     85                    <!--{/if}--> 
     86                <!--{/if}--> 
    10987 
    110 <!--{if $smarty.const.USE_POINT !== false}--> 
    111 <hr> 
    112 <!--{if $tpl_login}--> 
    113 <!--{$tpl_name|h}--> 様の、現在の所持ポイントは「<font color="#FF0000"><!--{$tpl_user_point|number_format|default:0}--> pt</font>」です。<br> 
    114 <!--{else}--> 
    115 ポイント制度をご利用になられる場合は、会員登録後ログインしてくださいますようお願い致します。 
    116 <!--{/if}--> 
    117 ポイントは商品購入時に1ptを<!--{$smarty.const.POINT_VALUE}-->円として使用することができます。 
    118 <!--{/if}--> 
     88                <!--{if $smarty.const.USE_POINT !== false}--> 
     89                    <!--{if $arrData[$key].birth_point > 0}--> 
     90                        お誕生月ポイント<br> 
     91                        <!--{$arrData[$key].birth_point|number_format}-->pt<br> 
     92                    <!--{/if}--> 
     93                    今回加算ポイント<br> 
     94                    <!--{$arrData[$key].add_point|number_format}-->pt<br> 
     95                    <br> 
     96                <!--{/if}--> 
     97 
     98                <center><input type="submit" value="注文する"></center> 
     99            </form> 
     100 
     101            <br> 
     102            <!--{if $tpl_prev_url != ""}--> 
     103                <a href="<!--{$tpl_prev_url|h}-->">[emoji:69]お買物を続ける</a><br> 
     104                <br> 
     105            <!--{/if}--> 
     106        <!--{/foreach}--> 
     107    <!--{else}--> 
     108        ※現在カート内に商品はございません。<br> 
     109        <br> 
     110    <!--{/if}--> 
     111 
     112    <!--{if $smarty.const.USE_POINT !== false}--> 
     113        <hr> 
     114        <!--{if $tpl_login}--> 
     115            <!--{$tpl_name|h}--> 様の、現在の所持ポイントは「<font color="#FF0000"><!--{$tpl_user_point|number_format|default:0}--> pt</font>」です。<br> 
     116        <!--{else}--> 
     117            ポイント制度をご利用になられる場合は、会員登録後ログインしてくださいますようお願い致します。 
     118        <!--{/if}--> 
     119        ポイントは商品購入時に1ptを<!--{$smarty.const.POINT_VALUE}-->円として使用することができます。 
     120    <!--{/if}--> 
     121<!--{/strip}--> 
Note: See TracChangeset for help on using the changeset viewer.