Changeset 17978


Ignore:
Timestamp:
2009/04/17 16:42:45 (15 years ago)
Author:
kajiwara
Message:

#438 商品並び替え機能の改修。 r17596をマージ。

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

Legend:

Unmodified
Added
Removed
  • branches/version-2_4/data/Smarty/templates/default/admin/products/product_rank.tpl

    r16582 r17978  
    5050                        <td background="<!--{$TPL_DIR}-->img/contents/main_left.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td> 
    5151                        <td bgcolor="#cccccc"> 
    52                          
     52 
    5353                            <!--▼登録テーブルここから--> 
    5454                            <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" "> 
     
    6767                                    <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td> 
    6868                                </tr> 
    69                             </table>     
    70                              
     69                            </table> 
     70 
    7171                            <table width="678" border="0" cellspacing="1" cellpadding="5" summary=" " bgcolor="#cccccc"> 
    72                      
     72 
    7373                                <tr bgcolor="#ffffff"> 
    7474                                    <!--▼画面左--> 
     
    7777                                    <!--{section name=cnt loop=$arrTree}--> 
    7878                                        <!--{assign var=level value="`$arrTree[cnt].level`}--> 
    79                                          
     79 
    8080                                        <!--{* 上の階層表示の時にdivを閉じる *}--> 
    8181                                        <!--{assign var=close_cnt value="`$before_level-$level+1`}--> 
     
    8383                                            <!--{section name=n loop=$close_cnt}--></div><!--{/section}--> 
    8484                                        <!--{/if}--> 
    85                                                              
     85 
    8686                                        <!--{* スペース繰り返し *}--> 
    8787                                        <!--{section name=n loop=$level}-->  <!--{/section}--> 
    88                                          
     88 
    8989                                        <!--{* カテゴリ名表示 *}--> 
    9090                                        <!--{assign var=disp_name value="`$arrTree[cnt].category_id`.`$arrTree[cnt].category_name`"}--> 
     
    9696                                        <!--{/if}--> 
    9797                                        <!--{$disp_name|sfCutString:20|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)</a> 
    98                                     <br>                     
     98                                    <br> 
    9999                                        <!--{if $arrTree[cnt].display == true}--> 
    100100                                            <div id="f<!--{$arrTree[cnt].category_id}-->"> 
    101101                                        <!--{else}--> 
    102102                                            <div id="f<!--{$arrTree[cnt].category_id}-->" style="display:none"> 
    103                                         <!--{/if}-->                 
     103                                        <!--{/if}--> 
    104104                                        <!--{assign var=before_level value="`$arrTree[cnt].level`}--> 
    105                                     <!--{/section}-->        
     105                                    <!--{/section}--> 
    106106                                    </td> 
    107107                                    <!--▲画面左--> 
    108                                          
    109                                     <!--▼画面右-->              
     108 
     109                                    <!--▼画面右--> 
    110110                                    <!--{if count($arrProductsList) > 0}--> 
    111111                                    <td width="428" valign="top"> 
    112                                                                      
     112 
    113113                                    <table width="428" border="0" cellspacing="0" cellpadding="0" summary=" "> 
    114114                                        <tr><td class="fs12n"><!--{$tpl_linemax}-->件が該当しました。    </td></tr> 
     
    122122                                        <tr><td height="10"></td></tr> 
    123123                                    </table> 
    124                                                      
     124 
    125125                                    <table border="0" cellspacing="1" cellpadding="5" summary=" " bgcolor="#cccccc"> 
    126126                                        <tr bgcolor="#f0f0f0" align="center" class="fs12n"> 
    127127                                            <td width="27">順位</td> 
    128                                             <td width="110">商品コード</td> 
     128                                            <td width="100">商品コード</td> 
    129129                                            <td width="100">商品画像</td> 
    130130                                            <td width="130">商品名</td> 
    131                                             <td width="120">移動</td> 
    132                                         </tr> 
     131                                            <td width="130">移動</td> 
     132                                        </tr> 
     133                                        <!--{assign var=rank value=$tpl_start_row}--> 
    133134                                        <!--{section name=cnt loop=$arrProductsList}--> 
    134135                                        <tr bgcolor="#ffffff" align="left" class="fs12n"> 
    135136                                            <!--{assign var=db_rank value="`$arrProductsList[cnt].rank`"}--> 
    136                                             <!--{assign var=rank value="`$tpl_linemax-$db_rank+1`"}--> 
     137                                            <!--{assign var=rank value=`$rank+1`}--> 
    137138                                            <td width="27" align="center"><!--{$rank}--></td> 
    138                                             <td width="110"><!--{$arrProductsList[cnt].product_code|escape|default:"-"}--></td> 
    139                                             <td width="100" align="center"> 
    140                                                 <!--{* 商品画像 *}--> 
    141                                                 <!--{if $arrProductsList[cnt].main_list_image != ""}--> 
    142                                                     <!--{assign var=image_path value=`$arrProductsList[cnt].main_list_image`}--> 
    143                                                 <!--{else}--> 
    144                                                     <!--{assign var=image_path value=$smarty.const.NO_IMAGE_URL}--> 
    145                                                 <!--{/if}--> 
    146                                                 <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&width=65&height=65" alt="<!--{$arrProducts[cnt].name|escape}-->"> 
    147                                             </td> 
    148                                             <td width="130" align="center"> 
     139                                            <td width="100"><!--{$arrProductsList[cnt].product_code|escape|default:"-"}--></td> 
     140                                            <td  width="100" align="center"> 
     141                                            <!--{* 商品画像 *}--> 
     142                                            <!--{if $arrProductsList[cnt].main_list_image != ""}--> 
     143                                                <!--{assign var=image_path value=`$arrProductsList[cnt].main_list_image`}--> 
     144                                            <!--{else}--> 
     145                                                <!--{assign var=image_path value=$smarty.const.NO_IMAGE_URL}--> 
     146                                            <!--{/if}--> 
     147                                            <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&amp;width=65&amp;height=65" alt="<!--{$arrProducts[cnt].name|escape}-->"> 
     148                                            </td> 
     149                                            <td  width="130" align="center"> 
    149150                                                <!--{$arrProductsList[cnt].name|escape}--> 
    150151                                            </td> 
    151                                              
    152                                             <td width="120" align="center"> 
     152                                            <td  width="130" align="center"> 
    153153                                            <!--{* 移動 *}--> 
    154154                                            <!--{if !(count($arrProductsList) == 1 && $rank == 1)}--> 
    155                                             <input type="text" name="pos-<!--{$arrProductsList[cnt].product_id}-->" size="3" class="box3" />番目へ<a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnModeSubmit('move','product_id', '<!--{$arrProductsList[cnt].product_id}-->'); return false;">移動</a><br /> 
     155                                                <input type="text" name="pos-<!--{$arrProductsList[cnt].product_id}-->" size="3" class="box3" />番目へ<a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnModeSubmit('move','product_id', '<!--{$arrProductsList[cnt].product_id}-->'); return false;">移動</a><br /> 
    156156                                            <!--{/if}--> 
    157157                                            <!--{if !($smarty.section.cnt.first && $tpl_disppage eq 1) }--> 
    158                                             <a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnModeSubmit('up','product_id', '<!--{$arrProductsList[cnt].product_id}-->'); return false;">上へ</a> 
     158                                                <a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnModeSubmit('up','product_id', '<!--{$arrProductsList[cnt].product_id}-->'); return false;">上へ</a> 
    159159                                            <!--{/if}--> 
    160160                                            <!--{if !($smarty.section.cnt.last && $tpl_disppage eq $tpl_pagemax) }--> 
    161                                             <a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnModeSubmit('down','product_id', '<!--{$arrProductsList[cnt].product_id}-->'); return false;">下へ</a> 
     161                                                <a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnModeSubmit('down','product_id', '<!--{$arrProductsList[cnt].product_id}-->'); return false;">下へ</a> 
    162162                                            <!--{/if}--> 
    163163                                            </td> 
     
    165165                                        <!--{/section}--> 
    166166                                    </table> 
    167                                      
     167 
    168168                                    <table width="428" border="0" cellspacing="0" cellpadding="0" summary=" "> 
    169169                                        <tr><td height="5"></td></tr> 
     
    177177                                        <tr><td height="5"></td></tr> 
    178178                                    </table> 
    179                                     </td>        
     179                                    </td> 
    180180                                    <!--{else}--> 
    181181                                    <td width="428" valign="top" class="fs12n">カテゴリを選択してください。</td> 
     
    203203</form> 
    204204</table> 
    205 <!--★★メインコンテンツ★★-->      
     205<!--★★メインコンテンツ★★--> 
  • branches/version-2_4/data/class/pages/admin/products/LC_Page_Admin_Products_ProductRank.php

    r16741 r17978  
    123123 
    124124        // 行数の取得 
    125         $linemax = $objQuery->count($table, "T2.category_id = ?", array($category_id)); 
    126         // 順位、該当件数表示用 
     125        $linemax = $objQuery->count($table, $where, array($category_id)); 
     126        // 該当件数表示用 
    127127        $this->tpl_linemax = $linemax; 
    128128 
    129129        $objNavi = new SC_PageNavi($this->tpl_pageno, $linemax, SEARCH_PMAX, "fnNaviPage", NAVI_PMAX); 
    130130        $startno = $objNavi->start_row; 
     131        $this->tpl_start_row = $objNavi->start_row; 
    131132        $this->tpl_strnavi = $objNavi->strnavi;     // Navi表示文字列 
    132133        $this->tpl_pagemax = $objNavi->max_page;        // ページ最大数(「上へ下へ」表示判定用) 
Note: See TracChangeset for help on using the changeset viewer.