Ignore:
Timestamp:
2010/02/18 16:33:42 (14 years ago)
Author:
shutta
Message:

コミュニティ版の r18397 をマージ。

Location:
branches/version-2_4-dev/data
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_4-dev/data/Smarty/templates/default/bloc/best5.tpl

    r18408 r18573  
    3535    <!--{/if}--> 
    3636 
    37       <a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrBestProducts[cnt].product_id}-->"> 
     37      <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrBestProducts[cnt].product_id|escape:url}-->"> 
    3838        <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&amp;width=48&amp;height=48" alt="<!--{$arrBestProducts[cnt].name|escape}-->" /></a> 
    3939      <h3> 
    40         <a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrBestProducts[cnt].product_id}-->"><!--{$arrBestProducts[cnt].name|escape}--></a> 
     40        <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrBestProducts[cnt].product_id|escape:url}-->"><!--{$arrBestProducts[cnt].name|escape}--></a> 
    4141      </h3> 
    4242 
     
    6464        <!--{/if}--> 
    6565 
    66       <a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrBestProducts[$cnt2].product_id}-->"> 
     66      <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrBestProducts[$cnt2].product_id|escape:url}-->"> 
    6767        <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&amp;width=48&amp;height=48" alt="<!--{$arrBestProducts[$cnt2].name|escape}-->" /></a> 
    6868      <h3> 
    69       <a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrBestProducts[$cnt2].product_id}-->"><!--{$arrBestProducts[$cnt2].name|escape}--></a> 
     69      <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrBestProducts[$cnt2].product_id|escape:url}-->"><!--{$arrBestProducts[$cnt2].name|escape}--></a> 
    7070      </h3> 
    7171 
  • branches/version-2_4-dev/data/Smarty/templates/default/detail.tpl

    r18493 r18573  
    325325        <!--{/if}--> 
    326326 
    327         <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id}-->"> 
     327        <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id|escape:url}-->"> 
    328328          <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&amp;width=65&amp;height=65" alt="<!--{$arrRecommend[cnt].name|escape}-->" /></a> 
    329329 
    330330        <!--{assign var=price02_min value=`$arrRecommend[cnt].price02_min`}--> 
    331331        <!--{assign var=price02_max value=`$arrRecommend[cnt].price02_max`}--> 
    332         <h3><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id}-->"><!--{$arrRecommend[cnt].name|escape}--></a></h3> 
     332        <h3><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id|escape:url}-->"><!--{$arrRecommend[cnt].name|escape}--></a></h3> 
    333333 
    334334        <p>価格<span class="mini">(税込)</span>:<span class="price"> 
     
    354354          <!--{assign var=image_path value="`$smarty.const.NO_IMAGE_DIR`"}--> 
    355355        <!--{/if}--> 
    356         <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id}-->"> 
     356        <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id|escape:url}-->"> 
    357357          <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&amp;width=65&amp;height=65" alt="<!--{$arrRecommend[cnt].name|escape}-->" /></a> 
    358358        <!--{assign var=price02_min value=`$arrRecommend[cnt].price02_min`}--> 
    359359        <!--{assign var=price02_max value=`$arrRecommend[cnt].price02_max`}--> 
    360         <h3><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id}-->"><!--{$arrRecommend[cnt].name|escape}--></a></h3> 
     360        <h3><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id|escape:url}-->"><!--{$arrRecommend[cnt].name|escape}--></a></h3> 
    361361 
    362362        <p>価格<span class="mini">(税込)</span>:<span class="price"> 
  • branches/version-2_4-dev/data/Smarty/templates/default/list.tpl

    r18408 r18573  
    9494      <div class="listphoto"> 
    9595        <!--★画像★--> 
    96         <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProducts[cnt].product_id}-->" class="over"><!--商品写真--><img src="<!--{$smarty.const.IMAGE_SAVE_URL|sfTrimURL}-->/<!--{$arrProducts[cnt].main_list_image}-->" alt="<!--{$arrProducts[cnt].name|escape}-->" class="picture" /></a> 
     96        <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProducts[cnt].product_id|escape:url}-->" class="over"><!--商品写真--><img src="<!--{$smarty.const.IMAGE_SAVE_URL|sfTrimURL}-->/<!--{$arrProducts[cnt].main_list_image}-->" alt="<!--{$arrProducts[cnt].name|escape}-->" class="picture" /></a> 
    9797     </div> 
    9898     <div class="listrightblock"> 
     
    114114       <!--★商品名★--> 
    115115       <h3> 
    116          <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProducts[cnt].product_id}-->"><!--{$arrProducts[cnt].name|escape}--></a> 
     116         <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProducts[cnt].product_id|escape:url}-->"><!--{$arrProducts[cnt].name|escape}--></a> 
    117117       </h3> 
    118118       <p class="listcomment"><!--★コメント★--><!--{$arrProducts[cnt].main_list_comment|escape|nl2br}--></p> 
     
    127127         <span class="btnbox"><!--★詳細ボタン★--> 
    128128         <!--{assign var=name value="detail`$smarty.section.cnt.iteration`"}--> 
    129            <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProducts[cnt].product_id}-->" onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/b_detail_on.gif','<!--{$name}-->');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/products/b_detail.gif','<!--{$name}-->');"> 
     129           <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProducts[cnt].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}-->');"> 
    130130            <img src="<!--{$TPL_DIR}-->img/products/b_detail.gif" width="115" height="25" alt="詳しくはこちら" name="<!--{$name}-->" id="<!--{$name}-->" /></a> 
    131131         </span> 
  • branches/version-2_4-dev/data/Smarty/templates/default/mobile/cart/index.tpl

    r17728 r18573  
    5858        <!--{* 合計 *}--> 
    5959        小計:<!--{$arrProductsClass[cnt].total_pretax|number_format}-->円<br> 
    60         <div align="right"><a href="<!--{$smarty.const.MOBILE_DETAIL_P_HTML}--><!--{$arrProductsClass[cnt].product_id}-->">商品購入詳細へ→</a></div> 
     60        <div align="right"><a href="<!--{$smarty.const.MOBILE_DETAIL_P_HTML}--><!--{$arrProductsClass[cnt].product_id|escape:url}-->">商品詳細へ→</a></div> 
    6161        <HR> 
    6262    <!--{/section}--> 
  • branches/version-2_4-dev/data/Smarty/templates/default/mobile/frontparts/bloc/best5.tpl

    r18408 r18573  
    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/version-2_4-dev/data/Smarty/templates/default/mobile/mypage/history_detail.tpl

    r18472 r18573  
    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/version-2_4-dev/data/Smarty/templates/default/mobile/products/list.tpl

    r16582 r18573  
    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/version-2_4-dev/data/Smarty/templates/default/mypage/favorite.tpl

    r17983 r18573  
    6464      <tr> 
    6565       <td><a href="javascript:fnModeSubmit('delete_favorite','product_id','<!--{$product_id}-->');">削除</a></td> 
    66        <td><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$product_id}-->"><img src="<!--{$smarty.const.URL_DIR}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&width=65&height=65"></a></td> 
    67        <td><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$product_id}-->"><!--{$arrFavorite[cnt].name}--></a></td> 
     66       <td><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$product_id|escape:url}-->"><img src="<!--{$smarty.const.URL_DIR}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&width=65&height=65"></a></td> 
     67       <td><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$product_id|escape:url}-->"><!--{$arrFavorite[cnt].name}--></a></td> 
    6868       <td class="right sale_price"> 
    6969        <span class="price"> 
  • branches/version-2_4-dev/data/Smarty/templates/default/mypage/history.tpl

    r18472 r18573  
    5151      <tr> 
    5252        <td><!--{$arrDisp.product_code[cnt]|escape}--></td> 
    53         <td><a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrDisp.product_id[cnt]}-->"><!--{$arrDisp.product_name[cnt]|escape}--></a></td> 
     53        <td><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrDisp.product_id[cnt]|escape:url}-->"><!--{$arrDisp.product_name[cnt]|escape}--></a></td> 
    5454        <!--{assign var=price value=`$arrDisp.price[cnt]`}--> 
    5555        <!--{assign var=quantity value=`$arrDisp.quantity[cnt]`}--> 
  • branches/version-2_4-dev/data/class/pages/LC_Page_Sitemap.php

    r16582 r18573  
    255255        $result = $conn->getAll($sql); 
    256256 
    257         $mobile = ""; 
    258257        if ($isMobile) { 
    259             $mobile = "mobile/"; 
     258            $detail_p_html = MOBILE_DETAIL_P_HTML; 
     259        } else { 
     260            $detail_p_html = DETAIL_P_HTML; 
    260261        } 
    261262 
    262263        $arrRet = array(); 
    263         for ($i = 0; $i < count($result); $i++) { 
    264             $page = array("url" => SITE_URL. sprintf("%sproducts/detail.php?product_id=%d", $mobile, $result[$i]['product_id']), 
    265                           "update_date" => $result[$i]['update_date']); 
    266             $arrRet[$i] = $page; 
     264        foreach ($result as $row) { 
     265            $page["update_date"] = $row['update_date']; 
     266            $page["url"] = SITE_URL . substr($detail_p_html, strlen(URL_DIR)) . $row['product_id']; 
     267 
     268            $arrRet[] = $page; 
    267269        } 
    268270        return $arrRet; 
Note: See TracChangeset for help on using the changeset viewer.