Changeset 18397


Ignore:
Timestamp:
2009/11/28 16:16:56 (14 years ago)
Author:
Seasoft
Message:
  • フロント機能での定数「DETAIL_P_HTML」「MOBILE_DETAIL_P_HTML」利用の徹底。
  • 用語統一 「商品購入詳細」→「商品詳細」
  • 念のためにエスケープを追加
Location:
branches/comu-ver2/data
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/Smarty/templates/default/bloc/best5.tpl

    r18254 r18397  
    3030    <div class="recomendleft"> 
    3131 
    32       <a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrBestProducts[cnt].product_id}-->"> 
     32      <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrBestProducts[cnt].product_id|escape:url}-->"> 
    3333        <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$arrBestProducts[cnt].main_list_image|sfNoImageMainList|escape}-->&amp;width=48&amp;height=48" alt="<!--{$arrBestProducts[cnt].name|escape}-->" /></a> 
    3434 
    3535      <h3> 
    36         <a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrBestProducts[cnt].product_id}-->"><!--{$arrBestProducts[cnt].name|escape}--></a> 
     36        <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrBestProducts[cnt].product_id|escape:url}-->"><!--{$arrBestProducts[cnt].name|escape}--></a> 
    3737      </h3> 
    3838 
     
    5151      <!--{if $arrBestProducts[$cnt2]|count > 0}--> 
    5252 
    53       <a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrBestProducts[$cnt2].product_id}-->"> 
     53      <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrBestProducts[$cnt2].product_id|escape:url}-->"> 
    5454        <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$arrBestProducts[$cnt2].main_list_image|sfNoImageMainList|escape}-->&amp;width=48&amp;height=48" alt="<!--{$arrBestProducts[$cnt2].name|escape}-->" /></a> 
    5555 
    5656      <h3> 
    57       <a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrBestProducts[$cnt2].product_id}-->"><!--{$arrBestProducts[$cnt2].name|escape}--></a> 
     57      <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrBestProducts[$cnt2].product_id|escape:url}-->"><!--{$arrBestProducts[$cnt2].name|escape}--></a> 
    5858      </h3> 
    5959 
  • branches/comu-ver2/data/Smarty/templates/default/detail.tpl

    r18325 r18397  
    454454                <div class="whoboughtleft"> 
    455455                     
    456                     <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id}-->"> 
     456                    <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id|escape:url}-->"> 
    457457                        <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$arrRecommend[cnt].main_list_image|sfNoImageMainList|escape}-->&amp;width=65&amp;height=65" alt="<!--{$arrRecommend[cnt].name|escape}-->" /></a> 
    458458 
    459459                    <!--{assign var=price02_min value=`$arrRecommend[cnt].price02_min`}--> 
    460460                    <!--{assign var=price02_max value=`$arrRecommend[cnt].price02_max`}--> 
    461                     <h3><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id}-->"><!--{$arrRecommend[cnt].name|escape}--></a></h3> 
     461                    <h3><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id|escape:url}-->"><!--{$arrRecommend[cnt].name|escape}--></a></h3> 
    462462 
    463463                    <p class="sale_price"><!--{$smarty.const.SALE_PRICE_TITLE}--><span class="mini">(税込)</span>:<span class="price"> 
     
    479479                <div class="whoboughtright"> 
    480480                     
    481                     <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id}-->"> 
     481                    <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id|escape:url}-->"> 
    482482                        <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$arrRecommend[cnt].main_list_image|sfNoImageMainList|escape}-->&amp;width=65&amp;height=65" alt="<!--{$arrRecommend[cnt].name|escape}-->" /></a> 
    483483                     
    484484                    <!--{assign var=price02_min value=`$arrRecommend[cnt].price02_min`}--> 
    485485                    <!--{assign var=price02_max value=`$arrRecommend[cnt].price02_max`}--> 
    486                     <h3><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id}-->"><!--{$arrRecommend[cnt].name|escape}--></a></h3> 
     486                    <h3><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id|escape:url}-->"><!--{$arrRecommend[cnt].name|escape}--></a></h3> 
    487487 
    488488                    <p class="sale_price"><!--{$smarty.const.SALE_PRICE_TITLE}--><span class="mini">(税込)</span>:<span class="price"> 
  • branches/comu-ver2/data/Smarty/templates/default/list.tpl

    r18294 r18397  
    202202            <div class="listphoto"> 
    203203                <!--★画像★--> 
    204             <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProduct.product_id}-->" class="over"><!--商品写真--><img src="<!--{$smarty.const.IMAGE_SAVE_URL|sfTrimURL}-->/<!--{$arrProduct.main_list_image|sfNoImageMainList|escape}-->" alt="<!--{$arrProduct.name|escape}-->" class="picture" /></a> 
     204                <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProduct.product_id|escape:url}-->" class="over"><!--商品写真--><img src="<!--{$smarty.const.IMAGE_SAVE_URL|sfTrimURL}-->/<!--{$arrProduct.main_list_image|sfNoImageMainList|escape}-->" alt="<!--{$arrProduct.name|escape}-->" class="picture" /></a> 
    205205            </div> 
    206206             
     
    223223                <!--★商品名★--> 
    224224                <h3> 
    225                     <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProduct.product_id}-->" name="product<!--{$arrProduct.product_id}-->"><!--{$arrProduct.name|escape}--></a> 
     225                    <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProduct.product_id|escape:url}-->" name="product<!--{$arrProduct.product_id}-->"><!--{$arrProduct.name|escape}--></a> 
    226226                </h3> 
    227227                 
     
    245245                    <!--★詳細ボタン★--> 
    246246                    <span class="btnbox"> 
    247                     <!--{assign var=name value="detail`$id`"}--> 
    248                     <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProduct.product_id}-->" onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/b_detail_on.gif','<!--{$name}-->');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/products/b_detail.gif','<!--{$name}-->');"> 
    249                         <img src="<!--{$TPL_DIR}-->img/products/b_detail.gif" width="115" height="25" alt="詳しくはこちら" name="<!--{$name}-->" id="<!--{$name}-->" /></a> 
     247                        <!--{assign var=name value="detail`$id`"}--> 
     248                        <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProduct.product_id|escape:url}-->" onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/b_detail_on.gif','<!--{$name}-->');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/products/b_detail.gif','<!--{$name}-->');"> 
     249                            <img src="<!--{$TPL_DIR}-->img/products/b_detail.gif" width="115" height="25" alt="詳しくはこちら" name="<!--{$name}-->" id="<!--{$name}-->" /></a> 
    250250                    </span> 
    251251                </p> 
  • branches/comu-ver2/data/Smarty/templates/default/mobile/cart/index.tpl

    r18254 r18397  
    5454        <!--{* 合計 *}--> 
    5555        小計:<!--{$arrProductsClass[cnt].total_pretax|number_format}-->円<br> 
    56         <div align="right"><a href="<!--{$smarty.const.MOBILE_DETAIL_P_HTML}--><!--{$arrProductsClass[cnt].product_id}-->">商品購入詳細へ→</a></div> 
     56        <div align="right"><a href="<!--{$smarty.const.MOBILE_DETAIL_P_HTML}--><!--{$arrProductsClass[cnt].product_id|escape:url}-->">商品詳細へ→</a></div> 
    5757        <HR> 
    5858    <!--{/section}--> 
  • branches/comu-ver2/data/Smarty/templates/default/mobile/frontparts/bloc/best5.tpl

    r18254 r18397  
    2727 
    2828<!-- ▼おすすめ商品コメント ここから --> 
    29 <a href="<!--{$smarty.const.MOBILE_DETAIL_P_HTML}--><!--{$arrProduct.product_id}-->"> 
     29<a href="<!--{$smarty.const.MOBILE_DETAIL_P_HTML}--><!--{$arrProduct.product_id|escape:url}-->"> 
    3030<!--{$arrProduct.comment|escape|nl2br}--></a> 
    3131<!-- ▲おすすめ商品コメント ここまで --> 
  • branches/comu-ver2/data/Smarty/templates/default/mobile/mypage/history_detail.tpl

    r18254 r18397  
    5050<!--{section name=cnt loop=$arrDisp.quantity}--> 
    5151<!--{$arrDisp.product_name[cnt]|escape}--><br> 
    52 <a href="<!--{$smarty.const.MOBILE_URL_DIR}-->products/detail.php?product_id=<!--{$arrDisp.product_id[cnt]}-->">商品購入詳細→</a><br> 
     52<a href="<!--{$smarty.const.MOBILE_DETAIL_P_HTML}--><!--{$arrDisp.product_id[cnt]|escape:url}-->">商品詳細→</a><br> 
    5353<!--{/section}--> 
    5454<br> 
  • branches/comu-ver2/data/Smarty/templates/default/mobile/products/list.tpl

    r18254 r18397  
    5656<div align="right"> 
    5757<!--{if $i+1<9}--> 
    58 <a href="<!--{$smarty.const.MOBILE_DETAIL_P_HTML}--><!--{$arrProduct.product_id}-->" accesskey="<!--{$i+1}-->">商品詳細へ→</a> 
     58<a href="<!--{$smarty.const.MOBILE_DETAIL_P_HTML}--><!--{$arrProduct.product_id|escape:url}-->" accesskey="<!--{$i+1}-->">商品詳細へ→</a> 
    5959<!--{else}--> 
    60 <a href="<!--{$smarty.const.MOBILE_DETAIL_P_HTML}--><!--{$arrProduct.product_id}-->">商品詳細へ→</a> 
     60<a href="<!--{$smarty.const.MOBILE_DETAIL_P_HTML}--><!--{$arrProduct.product_id|escape:url}-->">商品詳細へ→</a> 
    6161<!--{/if}--> 
    6262</div> 
  • branches/comu-ver2/data/Smarty/templates/default/mypage/favorite.tpl

    r18254 r18397  
    5959      <tr> 
    6060       <td><a href="javascript:fnModeSubmit('delete_favorite','product_id','<!--{$product_id|escape}-->');">削除</a></td> 
    61        <td><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$product_id|escape}-->"><img src="<!--{$smarty.const.URL_DIR}-->resize_image.php?image=<!--{$arrFavorite[cnt].main_list_image|sfNoImageMainList|escape}-->&amp;width=65&amp;height=65"></a></td> 
    62        <td><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$product_id|escape}-->"><!--{$arrFavorite[cnt].name}--></a></td> 
     61       <td><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$product_id|escape:url}-->"><img src="<!--{$smarty.const.URL_DIR}-->resize_image.php?image=<!--{$arrFavorite[cnt].main_list_image|sfNoImageMainList|escape}-->&amp;width=65&amp;height=65"></a></td> 
     62       <td><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$product_id|escape:url}-->"><!--{$arrFavorite[cnt].name}--></a></td> 
    6363       <td class="right sale_price"> 
    6464        <span class="price"> 
  • branches/comu-ver2/data/Smarty/templates/default/mypage/history.tpl

    r18254 r18397  
    5858      <tr> 
    5959        <td><!--{$arrDisp.product_code[cnt]|escape}--></td> 
    60         <td><a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrDisp.product_id[cnt]}-->"><!--{$arrDisp.product_name[cnt]|escape}--></a></td> 
     60        <td><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrDisp.product_id[cnt]|escape:url}-->"><!--{$arrDisp.product_name[cnt]|escape}--></a></td> 
    6161        <!--{assign var=price value=`$arrDisp.price[cnt]`}--> 
    6262        <!--{assign var=quantity value=`$arrDisp.quantity[cnt]`}--> 
  • branches/comu-ver2/data/class/pages/LC_Page_Sitemap.php

    r18234 r18397  
    252252            $page["update_date"] = $row['update_date']; 
    253253             
    254             $page["url"] = SITE_URL . 'products/detail.php?product_id=' . $row['product_id']; 
     254            $page["url"] = DETAIL_P_HTML . $row['product_id']; 
    255255            $arrRet[] = $page; 
    256256             
    257257            // モバイルサイト 
    258258            if (USE_MOBILE !== false) { 
    259                 $page["url"] = MOBILE_SITE_URL . 'products/detail.php?product_id=' . $row['product_id']; 
     259                $page["url"] = MOBILE_DETAIL_P_HTML . $row['product_id']; 
    260260                $arrRet[] = $page; 
    261261            } 
Note: See TracChangeset for help on using the changeset viewer.