Changeset 20916


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

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

Location:
branches/version-2_11-dev
Files:
5 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"> 
  • branches/version-2_11-dev/data/class/SC_Product.php

    r20877 r20916  
    620620        $sql = <<< __EOS__ 
    621621            ( 
    622              SELECT dtb_products.product_id, 
    623                     dtb_products.name, 
    624                     dtb_products.maker_id, 
    625                     dtb_products.status, 
    626                     dtb_products.comment1, 
    627                     dtb_products.comment2, 
    628                     dtb_products.comment3, 
    629                     dtb_products.comment4, 
    630                     dtb_products.comment5, 
    631                     dtb_products.comment6, 
    632                     dtb_products.note, 
    633                     dtb_products.main_list_comment, 
    634                     dtb_products.main_list_image, 
    635                     dtb_products.main_comment, 
    636                     dtb_products.main_image, 
    637                     dtb_products.main_large_image, 
    638                     dtb_products.sub_title1, 
    639                     dtb_products.sub_comment1, 
    640                     dtb_products.sub_image1, 
    641                     dtb_products.sub_large_image1, 
    642                     dtb_products.sub_title2, 
    643                     dtb_products.sub_comment2, 
    644                     dtb_products.sub_image2, 
    645                     dtb_products.sub_large_image2, 
    646                     dtb_products.sub_title3, 
    647                     dtb_products.sub_comment3, 
    648                     dtb_products.sub_image3, 
    649                     dtb_products.sub_large_image3, 
    650                     dtb_products.sub_title4, 
    651                     dtb_products.sub_comment4, 
    652                     dtb_products.sub_image4, 
    653                     dtb_products.sub_large_image4, 
    654                     dtb_products.sub_title5, 
    655                     dtb_products.sub_comment5, 
    656                     dtb_products.sub_image5, 
    657                     dtb_products.sub_large_image5, 
    658                     dtb_products.sub_title6, 
    659                     dtb_products.sub_comment6, 
    660                     dtb_products.sub_image6, 
    661                     dtb_products.sub_large_image6, 
    662                     dtb_products.del_flg, 
    663                     dtb_products.creator_id, 
    664                     dtb_products.create_date, 
    665                     dtb_products.update_date, 
    666                     dtb_products.deliv_date_id, 
    667                     T4.product_code_min, 
    668                     T4.product_code_max, 
    669                     T4.price01_min, 
    670                     T4.price01_max, 
    671                     T4.price02_min, 
    672                     T4.price02_max, 
    673                     T4.stock_min, 
    674                     T4.stock_max, 
    675                     T4.stock_unlimited_min, 
    676                     T4.stock_unlimited_max, 
    677                     T4.point_rate, 
    678                     T4.deliv_fee, 
    679                     T4.class_count 
    680                FROM dtb_products 
    681                JOIN ( 
     622                SELECT 0 
     623                    ,dtb_products.product_id 
     624                    ,dtb_products.name 
     625                    ,dtb_products.maker_id 
     626                    ,dtb_products.status 
     627                    ,dtb_products.comment1 
     628                    ,dtb_products.comment2 
     629                    ,dtb_products.comment3 
     630                    ,dtb_products.comment4 
     631                    ,dtb_products.comment5 
     632                    ,dtb_products.comment6 
     633                    ,dtb_products.note 
     634                    ,dtb_products.main_list_comment 
     635                    ,dtb_products.main_list_image 
     636                    ,dtb_products.main_comment 
     637                    ,dtb_products.main_image 
     638                    ,dtb_products.main_large_image 
     639                    ,dtb_products.sub_title1 
     640                    ,dtb_products.sub_comment1 
     641                    ,dtb_products.sub_image1 
     642                    ,dtb_products.sub_large_image1 
     643                    ,dtb_products.sub_title2 
     644                    ,dtb_products.sub_comment2 
     645                    ,dtb_products.sub_image2 
     646                    ,dtb_products.sub_large_image2 
     647                    ,dtb_products.sub_title3 
     648                    ,dtb_products.sub_comment3 
     649                    ,dtb_products.sub_image3 
     650                    ,dtb_products.sub_large_image3 
     651                    ,dtb_products.sub_title4 
     652                    ,dtb_products.sub_comment4 
     653                    ,dtb_products.sub_image4 
     654                    ,dtb_products.sub_large_image4 
     655                    ,dtb_products.sub_title5 
     656                    ,dtb_products.sub_comment5 
     657                    ,dtb_products.sub_image5 
     658                    ,dtb_products.sub_large_image5 
     659                    ,dtb_products.sub_title6 
     660                    ,dtb_products.sub_comment6 
     661                    ,dtb_products.sub_image6 
     662                    ,dtb_products.sub_large_image6 
     663                    ,dtb_products.del_flg 
     664                    ,dtb_products.creator_id 
     665                    ,dtb_products.create_date 
     666                    ,dtb_products.update_date 
     667                    ,dtb_products.deliv_date_id 
     668                    ,T4.product_code_min 
     669                    ,T4.product_code_max 
     670                    ,T4.price01_min 
     671                    ,T4.price01_max 
     672                    ,T4.price02_min 
     673                    ,T4.price02_max 
     674                    ,T4.stock_min 
     675                    ,T4.stock_max 
     676                    ,T4.stock_unlimited_min 
     677                    ,T4.stock_unlimited_max 
     678                    ,T4.point_rate 
     679                    ,T4.deliv_fee 
     680                    ,T4.class_count 
     681                    ,dtb_maker.name AS maker_name 
     682                FROM dtb_products 
     683                    JOIN ( 
    682684                       SELECT product_id, 
    683685                              MIN(product_code) AS product_code_min, 
     
    694696                              MAX(deliv_fee) AS deliv_fee, 
    695697                              COUNT(*) as class_count 
    696                          FROM dtb_products_class 
    697                        $whereCause 
    698                      GROUP BY product_id 
    699                      ) AS T4 
    700                  ON dtb_products.product_id = T4.product_id 
    701         ) AS alldtl 
     698                        FROM dtb_products_class 
     699                        $whereCause 
     700                        GROUP BY product_id 
     701                    ) AS T4 
     702                        ON dtb_products.product_id = T4.product_id 
     703                    LEFT JOIN dtb_maker 
     704                        ON dtb_products.maker_id = dtb_maker.maker_id 
     705            ) AS alldtl 
    702706__EOS__; 
    703707        return $sql; 
  • branches/version-2_11-dev/html/user_data/packages/default/css/common.css

    r20681 r20916  
    142142    line-height: 150%; 
    143143} 
    144 .price { 
    145     color: #f00; 
    146 } 
    147144.sale_price { 
    148145    color: #f00; 
    149146} 
    150147.normal_price { 
    151     color: #f00; 
    152148    font-size: 90%; 
    153149} 
  • branches/version-2_11-dev/html/user_data/packages/default/css/contents.css

    r20773 r20916  
    173173div#undercolumn_error .message_area { 
    174174    width:80%; 
    175     margin: 30px auto; 
     175    margin: 30px auto; 
    176176    padding: 30px; 
    177177    border: 1px solid #ccc; 
     
    357357    float: left; 
    358358} 
    359 #one_maincolumn div#detailrightbloc { 
     359#one_maincolumn #detailrightbloc { 
    360360    width: 63%; 
    361361    float: right; 
     
    381381    width: 37%; 
    382382} 
    383 #two_maincolumn_left div#detailrightbloc , 
    384 #two_maincolumn_right div#detailrightbloc { 
     383#two_maincolumn_left #detailrightbloc , 
     384#two_maincolumn_right #detailrightbloc { 
    385385    float: right; 
    386386    width: 63%; 
     
    408408    width: 49%; 
    409409} 
    410 #three_maincolumn div#detailrightbloc { 
     410#three_maincolumn #detailrightbloc { 
    411411    float: right; 
    412412    width: 50%; 
     
    428428/* 商品情報 各種設定 
    429429----------------------------------------------- */ 
    430 div#detailrightbloc h2 { 
     430#detailrightbloc h2 { 
    431431    margin: 0 0 10px 0; 
    432432    padding: 0 0 15px 0; 
     
    436436    font-size: 160%; 
    437437} 
    438 div#detailrightbloc .point , 
    439 div#detailrightbloc .relative_cat { 
     438#detailrightbloc .point, 
     439#detailrightbloc .relative_cat { 
    440440    margin: 0 0 10px 0; 
    441441    padding: 0 0 10px 0; 
    442442    background: url("../img/background/line_dot_01.gif") repeat-x bottom ; 
    443443} 
    444 div#detailrightbloc .main_comment { 
    445     margin-bottom: 20px; 
    446 } 
    447 div.cart_area { 
     444#detailrightbloc .main_comment { 
     445    margin-bottom: 20px; 
     446} 
     447 
     448/* 商品コード */ 
     449#detailrightbloc .product_code dt, 
     450#detailrightbloc .product_code dd { 
     451    display: inline; 
     452} 
     453 
     454/* 商品ステータス */ 
     455#detailrightbloc ul.status_icon { 
     456    margin-bottom: 10px; 
     457    width: 100%; 
     458} 
     459#detailrightbloc ul.status_icon li { 
     460    margin-right: 5px; 
     461    margin-bottom: 3px; 
     462    float: left; 
     463} 
     464 
     465/* 通常価格 */ 
     466#detailrightbloc .normal_price dt, 
     467#detailrightbloc .normal_price dd { 
     468    display: inline; 
     469} 
     470 
     471/* 販売価格 */ 
     472#detailrightbloc .sale_price dt, 
     473#detailrightbloc .sale_price dd { 
     474    display: inline; 
     475} 
     476 
     477/* ポイント */ 
     478#detailrightbloc .point dt, 
     479#detailrightbloc .point dd { 
     480    display: inline; 
     481} 
     482 
     483/* 規格 */ 
     484#detailrightbloc div.classlist { 
     485    margin-bottom: 10px; 
     486    padding-bottom: 10px; 
     487    width: 100%; 
     488    background: url("../img/background/line_dot_02.gif") repeat-x bottom ; 
     489} 
     490#detailrightbloc .classlist { 
     491    margin-bottom: 5px; 
     492} 
     493#detailrightbloc ul { 
     494    margin-bottom: 10px; 
     495    width: 100%; 
     496} 
     497#detailrightbloc ul li { 
     498    vertical-align: top; 
     499    float: left; 
     500} 
     501 
     502/* メーカー */ 
     503#detailrightbloc .maker dt, 
     504#detailrightbloc .maker dd { 
     505    display: inline; 
     506} 
     507 
     508/* メーカーURL */ 
     509#detailrightbloc .comment1 dt, 
     510#detailrightbloc .comment1 dd { 
     511    display: inline; 
     512} 
     513 
     514/* 関連カテゴリ */ 
     515#detailrightbloc .relative_cat dd { 
     516    margin-left: 1em; 
     517} 
     518 
     519/* 買い物かご */ 
     520#detailrightbloc .cart_area { 
    448521    padding: 10px; 
    449522    background-color: #ecf5ff; 
    450523    border: 1px solid #cef0f4; 
    451524} 
    452  
    453 /* 商品ステータス */ 
    454 div#detailrightbloc ul.status_icon { 
    455     margin-bottom: 10px; 
    456     width: 100%; 
    457 } 
    458 div#detailrightbloc ul.status_icon li { 
    459     margin-right: 5px; 
    460     margin-bottom: 3px; 
    461     float: left; 
    462 } 
    463  
    464 /* 規格 */ 
    465 div#detailrightbloc div.classlist { 
    466     margin-bottom: 10px; 
    467     padding-bottom: 10px; 
    468     width: 100%; 
    469     background: url("../img/background/line_dot_02.gif") repeat-x bottom ; 
    470 } 
    471 div#detailrightbloc .classlist { 
    472     margin-bottom: 5px; 
    473 } 
    474 div#detailrightbloc ul { 
    475     margin-bottom: 10px; 
    476     width: 100%; 
    477 } 
    478 div#detailrightbloc ul li { 
    479     vertical-align: top; 
    480     float: left; 
    481 } 
    482  
    483 /* 買い物かご */ 
    484 div#detailrightbloc .cartin { 
     525#detailrightbloc .quantity dt, 
     526#detailrightbloc .quantity dd { 
     527    display: inline; 
     528} 
     529#detailrightbloc .cartin { 
    485530    text-align: center; 
    486531} 
    487 div#detailrightbloc .cartin_btn { 
     532#detailrightbloc .cartin_btn { 
    488533    text-align: center; 
    489534} 
    490 div#detailrightbloc .favorite_btn { 
     535#detailrightbloc .favorite_btn { 
    491536    text-align: center; 
    492537    margin-top: 10px; 
  • branches/version-2_11-dev/html/user_data/packages/sphone/css/detail.css

    r20764 r20916  
    11/*商品情報(テキストなど)*/ 
    2 div#detailrightblock table td { 
     2#detailrightblock table td { 
    33text-align: left; 
    44vertical-align: middle; 
     
    4141 
    4242/*商品情報(テーブル部分)*/ 
    43 div#detailrightblock table span.nomal-price { 
     43#detailrightblock table span.nomal-price { 
    4444    font-size: 100%; 
    4545} 
    46 div#detailrightblock table span.sale-price { 
     46#detailrightblock table span.sale-price { 
    4747    font-weight: bold; 
    4848    color: #CC0000; 
    4949} 
    50 div#detailrightblock table span.member-point { 
     50#detailrightblock table span.member-point { 
    5151    font-weight: bold; 
    5252    color: #CC0000; 
     
    5454 
    5555/*商品情報(規格部分)*/ 
    56 div#detailrightblock dl { 
     56#detailrightblock dl { 
    5757    margin: 0; 
    5858    padding: 5px 0 0; 
    5959} 
    60 div#detailrightblock dt { 
    61     font-weight: bold; 
    62     margin: 0; 
    63     padding: 5px 0 3px 0; 
    64     line-height: 1.1; 
    65 } 
    66 div#detailrightblock dd { 
     60#detailrightblock dt { 
     61    font-weight: bold; 
     62    margin: 0; 
     63    padding: 5px 0 3px 0; 
     64    line-height: 1.1; 
     65} 
     66#detailrightblock dd { 
    6767    margin: 0; 
    6868    padding: 0 0 5px; 
    6969} 
    70 div#detailrightblock .fm-detail-quantity { 
     70#detailrightblock .fm-detail-quantity { 
    7171    width: 70px; 
    7272    height: 16px; 
Note: See TracChangeset for help on using the changeset viewer.