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

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

File:
1 edited

Legend:

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

    r21535 r21537  
    2222 */ 
    2323*}--> 
    24 <!--★商品画像★--> 
    25 <!--{if $smarty.get.image != ''}--> 
    26 <!--{assign var=key value="`$smarty.get.image`"}--> 
    27 <!--{else}--> 
    28 <!--{assign var=key value="main_image"}--> 
    29 <!--{/if}--> 
    30 <center><img src="<!--{$arrFile[$key].filepath}-->"></center> 
    3124 
    32 <!--★商品サブ画像★--> 
    33 <center> 
    34 <!--{if $subImageFlag == true}--> 
    35 <br>画像 
    36     <!--{if ($smarty.get.image == "" || $smarty.get.image == "main_image")}--> 
    37 [1] 
     25<!--{strip}--> 
     26    <!--★商品画像★--> 
     27    <!--{if $smarty.get.image != ''}--> 
     28        <!--{assign var=key value="`$smarty.get.image`"}--> 
    3829    <!--{else}--> 
    39 [<a href="?product_id=<!--{$smarty.get.product_id}-->&amp;image=main_image">1</a>] 
     30        <!--{assign var=key value="main_image"}--> 
     31    <!--{/if}--> 
     32    <center><img src="<!--{$arrFile[$key].filepath}-->"></center> 
     33 
     34    <!--★商品サブ画像★--> 
     35    <center> 
     36        <!--{if $subImageFlag == true}--> 
     37            <br>画像 
     38            <!--{if ($smarty.get.image == "" || $smarty.get.image == "main_image")}--> 
     39                [1] 
     40            <!--{else}--> 
     41                [<a href="?product_id=<!--{$smarty.get.product_id}-->&amp;image=main_image">1</a>] 
     42            <!--{/if}--> 
     43 
     44            <!--{assign var=num value="2"}--> 
     45            <!--{section name=cnt loop=$smarty.const.PRODUCTSUB_MAX}--> 
     46                <!--{assign var=key value="sub_image`$smarty.section.cnt.iteration`"}--> 
     47                <!--{if $arrFile[$key].filepath != ""}--> 
     48                    <!--{if $key == $smarty.get.image}--> 
     49                        [<!--{$num}-->] 
     50                    <!--{else}--> 
     51                        [<a href="?product_id=<!--{$smarty.get.product_id}-->&amp;image=<!--{$key}-->"><!--{$num}--></a>] 
     52                    <!--{/if}--> 
     53                    <!--{assign var=num value="`$num+1`"}--> 
     54                <!--{/if}--> 
     55            <!--{/section}--> 
     56            <br> 
     57        <!--{/if}--> 
     58        <br> 
     59    </center> 
     60 
     61    <!--{* オペビルダー用 *}--> 
     62    <!--{if "sfViewDetailOpe"|function_exists === TRUE}--> 
     63        <!--{include file=`$smarty.const.MODULE_REALDIR`mdl_opebuilder/detail_ope_mb_view.tpl}--> 
    4064    <!--{/if}--> 
    4165 
    42     <!--{assign var=num value="2"}--> 
    43     <!--{section name=cnt loop=$smarty.const.PRODUCTSUB_MAX}--> 
    44     <!--{assign var=key value="sub_image`$smarty.section.cnt.iteration`"}--> 
    45     <!--{if $arrFile[$key].filepath != ""}--> 
    46     <!--{if $key == $smarty.get.image}--> 
    47 [<!--{$num}-->] 
     66    <!--★詳細メインコメント★--> 
     67    [emoji:76]<!--{$arrProduct.main_comment|nl2br_html}--><br> 
     68    <br> 
     69 
     70    <!--★商品コード★--> 
     71    商品コード: 
     72    <!--{if $arrProduct.product_code_min == $arrProduct.product_code_max}--> 
     73        <!--{$arrProduct.product_code_min|h}--> 
    4874    <!--{else}--> 
    49 [<a href="?product_id=<!--{$smarty.get.product_id}-->&amp;image=<!--{$key}-->"><!--{$num}--></a>] 
     75        <!--{$arrProduct.product_code_min|h}-->~<!--{$arrProduct.product_code_max|h}--> 
    5076    <!--{/if}--> 
    51     <!--{assign var=num value="`$num+1`"}--> 
     77    <br> 
     78 
     79    <!--★販売価格★--> 
     80    <font color="#FF0000"><!--{$smarty.const.SALE_PRICE_TITLE}-->(税込): 
     81        <!--{if $arrProduct.price02_min == $arrProduct.price02_max}--> 
     82            <!--{$arrProduct.price02_min|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}--> 
     83        <!--{else}--> 
     84            <!--{$arrProduct.price02_min|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->~<!--{$arrProduct.price02_max|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}--> 
     85        <!--{/if}--> 
     86        円</font> 
     87    <br> 
     88 
     89    <!--{if $arrProduct.price01_max > 0}--> 
     90        <!--★通常価格★--> 
     91        <font color="#FF0000"><!--{$smarty.const.NORMAL_PRICE_TITLE}-->(税込): 
     92            <!--{if $arrProduct.price01_min == $arrProduct.price01_max}--> 
     93                <!--{$arrProduct.price01_min|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}--> 
     94            <!--{else}--> 
     95                <!--{$arrProduct.price01_min|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->~<!--{$arrProduct.price01_max|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}--> 
     96            <!--{/if}--> 
     97            円</font> 
     98        <br> 
    5299    <!--{/if}--> 
     100 
     101    <!--★ポイント★--> 
     102    <!--{if $smarty.const.USE_POINT !== false}--> 
     103        ポイント: 
     104        <!--{if $arrProduct.price02_min == $arrProduct.price02_max}--> 
     105            <!--{$arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate|number_format}--> 
     106        <!--{else}--> 
     107            <!--{if $arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate == $arrProduct.price02_max|sfPrePoint:$arrProduct.point_rate}--> 
     108                <!--{$arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate|number_format}--> 
     109            <!--{else}--> 
     110                <!--{$arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate|number_format}-->~<!--{$arrProduct.price02_max|sfPrePoint:$arrProduct.point_rate|number_format}--> 
     111            <!--{/if}--> 
     112        <!--{/if}--> 
     113        Pt<br> 
     114    <!--{/if}--> 
     115    <br> 
     116 
     117    <!--★関連カテゴリ★--> 
     118    関連カテゴリ:<br> 
     119    <!--{section name=r loop=$arrRelativeCat}--> 
     120        <!--{section name=s loop=$arrRelativeCat[r]}--> 
     121            <a href="<!--{$smarty.const.ROOT_URLPATH}-->products/list.php?category_id=<!--{$arrRelativeCat[r][s].category_id}-->"><!--{$arrRelativeCat[r][s].category_name}--></a> 
     122            <!--{if !$smarty.section.s.last}--><!--{$smarty.const.SEPA_CATNAVI}--><!--{/if}--> 
     123        <!--{/section}--> 
     124        <br> 
    53125    <!--{/section}--> 
    54 <br> 
    55 <!--{/if}--> 
    56 <br> 
    57 </center> 
    58 <!--{* オペビルダー用 *}--> 
    59 <!--{if "sfViewDetailOpe"|function_exists === TRUE}--> 
    60 <!--{include file=`$smarty.const.MODULE_REALDIR`mdl_opebuilder/detail_ope_mb_view.tpl}--> 
    61 <!--{/if}--> 
     126    <br> 
    62127 
    63 <!--★詳細メインコメント★--> 
    64 [emoji:76]<!--{$arrProduct.main_comment|nl2br_html}--><br> 
    65 <br> 
     128    <form name="form1" method="post" action="?"> 
     129        <input type="hidden" name="mode" value="select"> 
     130        <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->"> 
    66131 
    67 <!--★商品コード★--> 
    68 商品コード: 
    69 <!--{if $arrProduct.product_code_min == $arrProduct.product_code_max}--> 
    70 <!--{$arrProduct.product_code_min|h}--> 
    71 <!--{else}--> 
    72 <!--{$arrProduct.product_code_min|h}-->~<!--{$arrProduct.product_code_max|h}--> 
    73 <!--{/if}--> 
    74 <br> 
    75  
    76 <!--★販売価格★--> 
    77 <font color="#FF0000"><!--{$smarty.const.SALE_PRICE_TITLE}-->(税込): 
    78 <!--{if $arrProduct.price02_min == $arrProduct.price02_max}--> 
    79     <!--{$arrProduct.price02_min|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}--> 
    80 <!--{else}--> 
    81     <!--{$arrProduct.price02_min|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->~<!--{$arrProduct.price02_max|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}--> 
    82 <!--{/if}--> 
    83 円</font> 
    84 <br/> 
    85  
    86 <!--{if $arrProduct.price01_max > 0}--> 
    87 <!--★通常価格★--> 
    88 <font color="#FF0000"><!--{$smarty.const.NORMAL_PRICE_TITLE}-->(税込): 
    89 <!--{if $arrProduct.price01_min == $arrProduct.price01_max}--> 
    90 <!--{$arrProduct.price01_min|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}--> 
    91 <!--{else}--> 
    92 <!--{$arrProduct.price01_min|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->~<!--{$arrProduct.price01_max|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}--> 
    93 <!--{/if}--> 
    94 円</font> 
    95 <br> 
    96 <!--{/if}--> 
    97  
    98 <!--★ポイント★--> 
    99 <!--{if $smarty.const.USE_POINT !== false}--> 
    100 ポイント: 
    101 <!--{if $arrProduct.price02_min == $arrProduct.price02_max}--> 
    102     <!--{$arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate|number_format}--> 
    103 <!--{else}--> 
    104     <!--{if $arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate == $arrProduct.price02_max|sfPrePoint:$arrProduct.point_rate}--> 
    105         <!--{$arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate|number_format}--> 
    106     <!--{else}--> 
    107         <!--{$arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate|number_format}-->~<!--{$arrProduct.price02_max|sfPrePoint:$arrProduct.point_rate|number_format}--> 
    108     <!--{/if}--> 
    109 <!--{/if}--> 
    110 Pt<br> 
    111 <!--{/if}--> 
    112 <br> 
    113  
    114 <!--★関連カテゴリ★--> 
    115 関連カテゴリ:<br> 
    116 <!--{section name=r loop=$arrRelativeCat}--> 
    117 <!--{section name=s loop=$arrRelativeCat[r]}--> 
    118 <a href="<!--{$smarty.const.ROOT_URLPATH}-->products/list.php?category_id=<!--{$arrRelativeCat[r][s].category_id}-->"><!--{$arrRelativeCat[r][s].category_name}--></a> 
    119 <!--{if !$smarty.section.s.last}--><!--{$smarty.const.SEPA_CATNAVI}--><!--{/if}--> 
    120 <!--{/section}--> 
    121 <br> 
    122 <!--{/section}--> 
    123 <br> 
    124  
    125 <form name="form1" method="post" action="?"> 
    126     <input type="hidden" name="mode" value="select"> 
    127     <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> 
    128  
    129     <input type="hidden" name="product_id" value="<!--{$tpl_product_id}-->"> 
    130 <!--{if $tpl_stock_find}--> 
    131     <!--★商品を選ぶ★--> 
    132     <center><input type="submit" name="select" id="cart" value="この商品を選ぶ"></center> 
    133 <!--{else}--> 
    134     <font color="#FF0000">申し訳ございませんが、只今品切れ中です。</font> 
    135 <!--{/if}--> 
    136 </form> 
     132        <input type="hidden" name="product_id" value="<!--{$tpl_product_id}-->"> 
     133        <!--{if $tpl_stock_find}--> 
     134            <!--★商品を選ぶ★--> 
     135            <center><input type="submit" name="select" id="cart" value="この商品を選ぶ"></center> 
     136        <!--{else}--> 
     137            <font color="#FF0000">申し訳ございませんが、只今品切れ中です。</font> 
     138        <!--{/if}--> 
     139    </form> 
     140<!--{/strip}--> 
Note: See TracChangeset for help on using the changeset viewer.