Ignore:
Timestamp:
2013/08/10 11:00:04 (13 years ago)
Author:
poego
Message:

#2283 resize_image.phpの処理をCSSに変更
r23005 でresize_imageにIDを渡して処理するようにしたが、
やはり毎回DB処理、Resize処理を走らせるのは重いので、標準をCSSでの対応としてみる。
resize_image.php自体は残しているので使いたい場合は利用可能としておく

Location:
branches/version-2_13-dev/data/Smarty/templates/admin
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/Smarty/templates/admin/contents/recommend_search.tpl

    r22954 r23041  
    103103        <tr class="<!--{if $arr.status == "2"}-->hidden<!--{/if}-->"> 
    104104            <td class="center"> 
    105                 <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$arr.main_list_image|sfNoImageMainList|h}-->&width=65&height=65" alt="" /> 
     105                <img src="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arr.main_list_image|sfNoImageMainList|h}-->" style="max-width: 65px;max-height: 65;" alt="" /> 
    106106            </td> 
    107107            <td> 
  • branches/version-2_13-dev/data/Smarty/templates/admin/order/product_select.tpl

    r22954 r23041  
    195195                <tr style="background:<!--{$arrPRODUCTSTATUS_COLOR[$status]}-->;"> 
    196196                    <td class="center"> 
    197                         <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$arrProducts[cnt].main_list_image|sfNoImageMainList|h}-->&width=65&height=65" alt="<!--{$arrRecommend[$recommend_no].name|h}-->" /> 
     197                        <img src="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrProducts[cnt].main_list_image|sfNoImageMainList|h}-->" style="max-width: 65px;max-height: 65;" alt="<!--{$arrRecommend[$recommend_no].name|h}-->" /> 
    198198                    </td> 
    199199                    <td> 
  • branches/version-2_13-dev/data/Smarty/templates/admin/products/confirm.tpl

    r22984 r23041  
    279279                    <th>関連商品(<!--{$smarty.section.cnt.iteration}-->)<br /> 
    280280                        <!--{if $arrRecommend[$recommend_no].product_id|strlen >= 1}--> 
    281                             <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$arrRecommend[$recommend_no].main_list_image|sfNoImageMainList|h}-->&amp;width=65&amp;height=65" alt="<!--{$arrRecommend[$recommend_no].name|h}-->" /> 
     281                            <img src="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrRecommend[$recommend_no].main_list_image|sfNoImageMainList|h}-->" style="max-width: 65px;max-height: 65;" alt="<!--{$arrRecommend[$recommend_no].name|h}-->" /> 
    282282                        <!--{/if}--> 
    283283                    </th> 
  • branches/version-2_13-dev/data/Smarty/templates/admin/products/index.tpl

    r22960 r23041  
    244244                            <td class="id" rowspan="2"><!--{$arrProducts[cnt].product_id}--></td> 
    245245                            <td class="thumbnail" rowspan="2"> 
    246                             <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$arrProducts[cnt].main_list_image|sfNoImageMainList|h}-->&amp;width=65&amp;height=65" />            </td> 
     246                            <img src="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrProducts[cnt].main_list_image|sfNoImageMainList|h}-->" style="max-width: 65px;max-height: 65;" alt="" /> 
     247                            </td> 
    247248                            <td rowspan="2"><!--{$arrProducts[cnt].product_code_min|h}--> 
    248249                                <!--{if $arrProducts[cnt].product_code_min != $arrProducts[cnt].product_code_max}--> 
  • branches/version-2_13-dev/data/Smarty/templates/admin/products/product.tpl

    r22984 r23041  
    431431            <th>関連商品(<!--{$smarty.section.cnt.iteration}-->)<br /> 
    432432                <!--{if $arrRecommend[$recommend_no].product_id}--> 
    433                     <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$arrRecommend[$recommend_no].main_list_image|sfNoImageMainList|h}-->&width=65&height=65" alt="<!--{$arrRecommend[$recommend_no].name|h}-->" /> 
     433                    <img src="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrRecommend[$recommend_no].main_list_image|sfNoImageMainList|h}-->" style="max-width: 65px;max-height: 65;" alt="<!--{$arrRecommend[$recommend_no].name|h}-->" /> 
    434434                <!--{/if}--> 
    435435            </th> 
  • branches/version-2_13-dev/data/Smarty/templates/admin/products/product_rank.tpl

    r22954 r23041  
    8989                            <td align="center"> 
    9090                                <!--{* 商品画像 *}--> 
    91                                 <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$arrProductsList[cnt].main_list_image|sfNoImageMainList|h}-->&amp;width=65&amp;height=65" alt="<!--{$arrProducts[cnt].name|h}-->"> 
     91                                <img src="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrProductsList[cnt].main_list_image|sfNoImageMainList|h}-->" style="max-width: 65px;max-height: 65;" alt="<!--{$arrProducts[cnt].name|h}-->" /> 
    9292                            </td> 
    9393                            <!--{assign var=rank value=`$rank+1`}--> 
  • branches/version-2_13-dev/data/Smarty/templates/admin/products/product_select.tpl

    r22954 r23041  
    8888                <tr style="background:<!--{$arrPRODUCTSTATUS_COLOR[$status]}-->;"> 
    8989                    <td align="center"> 
    90                         <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$arrProducts[cnt].main_list_image|sfNoImageMainList|h}-->&amp;width=65&amp;height=65" alt="<!--{$arrRecommend[$recommend_no].name|h}-->" /> 
     90                        <img src="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrProducts[cnt].main_list_image|sfNoImageMainList|h}-->" style="max-width: 65px;max-height: 65;" alt="<!--{$arrRecommend[$recommend_no].name|h}-->" /> 
    9191                    </td> 
    9292                    <td> 
Note: See TracChangeset for help on using the changeset viewer.