Ignore:
Timestamp:
2011/05/07 23:44:04 (13 years ago)
Author:
Seasoft
Message:

#1292 (商品詳細画面にメーカー名が出力されない)
#1294 (ソースを読みやすくする)
#1295 (通常価格も赤色となっている)

File:
1 edited

Legend:

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

    r20803 r20916  
    9090 
    9191            <!--★商品コード★--> 
    92             <div>商品コード: 
    93                 <span id="product_code_default"> 
    94                     <!--{if $arrProduct.product_code_min == $arrProduct.product_code_max}--> 
    95                         <!--{$arrProduct.product_code_min|h}--> 
    96                     <!--{else}--> 
    97                         <!--{$arrProduct.product_code_min|h}-->~<!--{$arrProduct.product_code_max|h}--> 
    98                     <!--{/if}--> 
    99                 </span><span id="product_code_dynamic"></span> 
    100             </div> 
     92            <dl class="product_code"> 
     93                <dt>商品コード:</dt> 
     94                <dd> 
     95                    <span id="product_code_default"> 
     96                        <!--{if $arrProduct.product_code_min == $arrProduct.product_code_max}--> 
     97                            <!--{$arrProduct.product_code_min|h}--> 
     98                        <!--{else}--> 
     99                            <!--{$arrProduct.product_code_min|h}-->~<!--{$arrProduct.product_code_max|h}--> 
     100                        <!--{/if}--> 
     101                    </span><span id="product_code_dynamic"></span> 
     102                </dd> 
     103            </dl> 
    101104 
    102105            <!--★商品名★--> 
     
    105108            <!--★通常価格★--> 
    106109            <!--{if $arrProduct.price01_max > 0}--> 
    107                 <div class="normal_price"> 
    108                     <!--{$smarty.const.NORMAL_PRICE_TITLE}-->(税込): 
    109                     <span class="price"> 
     110                <dl class="normal_price"> 
     111                    <dt><!--{$smarty.const.NORMAL_PRICE_TITLE}-->(税込):</dt> 
     112                    <dd class="price"> 
    110113                        <span id="price01_default"> 
    111114                            <!--{if $arrProduct.price01_min == $arrProduct.price01_max}--> 
     
    116119                        </span><span id="price01_dynamic"></span> 
    117120                        円 
    118                     </span> 
    119                 </div> 
     121                    </dd> 
     122                </dl> 
    120123            <!--{/if}--> 
    121124 
    122125            <!--★販売価格★--> 
    123             <div class="sale_price"><!--{$smarty.const.SALE_PRICE_TITLE}-->(税込): 
    124                 <span class="price"> 
     126            <dl class="sale_price"> 
     127                <dt><!--{$smarty.const.SALE_PRICE_TITLE}-->(税込):</dt> 
     128                <dd class="price"> 
    125129                    <span id="price02_default"> 
    126130                        <!--{if $arrProduct.price02_min == $arrProduct.price02_max}--> 
     
    131135                    </span><span id="price02_dynamic"></span> 
    132136                    円 
    133                 </span> 
    134             </div> 
     137                </dd> 
     138            </dl> 
    135139 
    136140            <!--★ポイント★--> 
     
    147151                            <!--{/if}--> 
    148152                        <!--{/if}--> 
    149                         </span><span id="point_dynamic"></span> 
    150                         Pt 
     153                    </span><span id="point_dynamic"></span> 
     154                    Pt 
    151155                </div> 
    152156            <!--{/if}--> 
     157 
     158            <!--{* ▼メーカー *}--> 
     159            <!--{if $arrProduct.maker_name|strlen >= 1}--> 
     160                <dl class="maker"> 
     161                    <dt>メーカー:</dt> 
     162                    <dd><!--{$arrProduct.maker_name|h}--></dd> 
     163                </dl> 
     164            <!--{/if}--> 
     165            <!--{* ▲メーカー *}--> 
    153166 
    154167            <!--▼メーカーURL--> 
    155168            <!--{if $arrProduct.comment1|strlen >= 1}--> 
    156                 <div><span class="comment1">メーカーURL: 
    157                     <a href="<!--{$arrProduct.comment1|h}-->"><!--{$arrProduct.comment1|h}--></a> 
    158                 </div> 
     169                <dl class="comment1"> 
     170                    <td>メーカーURL:</dt> 
     171                    <dd><a href="<!--{$arrProduct.comment1|h}-->"><!--{$arrProduct.comment1|h}--></a></dd> 
     172                </dl> 
    159173            <!--{/if}--> 
    160174            <!--▼メーカーURL--> 
    161175 
    162176            <!--★関連カテゴリ★--> 
    163             <div class="relative_cat">関連カテゴリ: 
     177            <dl class="relative_cat"> 
     178                <td>関連カテゴリ:</td> 
    164179                <!--{section name=r loop=$arrRelativeCat}--> 
    165                 <p> 
    166                     <!--{section name=s loop=$arrRelativeCat[r]}--> 
    167                     <a href="<!--{$smarty.const.ROOT_URLPATH}-->products/list.php?category_id=<!--{$arrRelativeCat[r][s].category_id}-->"><!--{$arrRelativeCat[r][s].category_name}--></a> 
    168                     <!--{if !$smarty.section.s.last}--><!--{$smarty.const.SEPA_CATNAVI}--><!--{/if}--> 
    169                     <!--{/section}--> 
    170                 </p> 
     180                    <dd> 
     181                        <!--{section name=s loop=$arrRelativeCat[r]}--> 
     182                            <a href="<!--{$smarty.const.ROOT_URLPATH}-->products/list.php?category_id=<!--{$arrRelativeCat[r][s].category_id}-->"><!--{$arrRelativeCat[r][s].category_name}--></a> 
     183                            <!--{if !$smarty.section.s.last}--><!--{$smarty.const.SEPA_CATNAVI}--><!--{/if}--> 
     184                        <!--{/section}--> 
     185                    </dd> 
    171186                <!--{/section}--> 
    172             </div> 
     187            </dl> 
    173188 
    174189            <!--★詳細メインコメント★--> 
     
    217232 
    218233                <!--★数量★--> 
    219                 <div class="quantity"> 
    220                     <ul class="clearfix"> 
    221                         <li>数量:</li> 
    222                         <li><input type="text" class="box60" name="quantity" value="<!--{$arrForm.quantity.value|default:1|h}-->" maxlength="<!--{$smarty.const.INT_LEN}-->" style="<!--{$arrErr.quantity|sfGetErrorColor}-->" /> 
    223                             <!--{if $arrErr.quantity != ""}--> 
    224                                 <br /><span class="attention"><!--{$arrErr.quantity}--></span> 
    225                             <!--{/if}--> 
    226                         </li> 
    227                     </ul> 
    228                 </div> 
     234                <dl class="quantity"> 
     235                    <dt>数量:</dt> 
     236                    <dd><input type="text" class="box60" name="quantity" value="<!--{$arrForm.quantity.value|default:1|h}-->" maxlength="<!--{$smarty.const.INT_LEN}-->" style="<!--{$arrErr.quantity|sfGetErrorColor}-->" /> 
     237                        <!--{if $arrErr.quantity != ""}--> 
     238                            <br /><span class="attention"><!--{$arrErr.quantity}--></span> 
     239                        <!--{/if}--> 
     240                    </dd> 
     241                </dl> 
    229242 
    230243                <div class="cartin"> 
Note: See TracChangeset for help on using the changeset viewer.