Changeset 17596
- Timestamp:
- 2008/09/07 00:20:43 (16 years ago)
- Location:
- branches/comu-ver2/data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/Smarty/templates/default/admin/products/product_rank.tpl
r17351 r17596 85 85 <th>移動</th> 86 86 </tr> 87 <!--{assign var=rank value=$tpl_start_row}--> 87 88 <!--{section name=cnt loop=$arrProductsList}--> 88 <tr> 89 <!--{assign var=db_rank value="`$arrProductsList[cnt].rank`"}--> 90 <!--{assign var=rank value="`$tpl_linemax-$db_rank+1`"}--> 91 <td align="center"><!--{$rank}--></td> 92 <td><!--{$arrProductsList[cnt].product_code|escape|default:"-"}--></td> 93 <td align="center"> 94 <!--{* 商品画像 *}--> 95 <!--{if $arrProductsList[cnt].main_list_image != ""}--> 96 <!--{assign var=image_path value=`$arrProductsList[cnt].main_list_image`}--> 97 <!--{else}--> 98 <!--{assign var=image_path value=$smarty.const.NO_IMAGE_URL}--> 89 <tr> 90 <!--{assign var=db_rank value="`$arrProductsList[cnt].rank`"}--> 91 <!--{assign var=rank value=`$rank+1`}--> 92 <td align="center"><!--{$rank}--></td> 93 <td><!--{$arrProductsList[cnt].product_code|escape|default:"-"}--></td> 94 <td align="center"> 95 <!--{* 商品画像 *}--> 96 <!--{if $arrProductsList[cnt].main_list_image != ""}--> 97 <!--{assign var=image_path value=`$arrProductsList[cnt].main_list_image`}--> 98 <!--{else}--> 99 <!--{assign var=image_path value=$smarty.const.NO_IMAGE_URL}--> 100 <!--{/if}--> 101 <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&width=65&height=65" alt="<!--{$arrProducts[cnt].name|escape}-->"> 102 </td> 103 <td align="center"> 104 <!--{$arrProductsList[cnt].name|escape}--> 105 </td> 106 107 <td align="center"> 108 <!--{* 移動 *}--> 109 <!--{if !(count($arrProductsList) == 1 && $rank == 1)}--> 110 <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 /> 99 111 <!--{/if}--> 100 <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&width=65&height=65" alt="<!--{$arrProducts[cnt].name|escape}-->"> 101 </td> 102 <td align="center"> 103 <!--{$arrProductsList[cnt].name|escape}--> 104 </td> 105 106 <td align="center"> 107 <!--{* 移動 *}--> 108 <!--{if !(count($arrProductsList) == 1 && $rank == 1)}--> 109 <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 /> 110 <!--{/if}--> 111 <!--{if !($smarty.section.cnt.first && $tpl_disppage eq 1) }--> 112 <a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnModeSubmit('up','product_id', '<!--{$arrProductsList[cnt].product_id}-->'); return false;">上へ</a> 113 <!--{/if}--> 114 <!--{if !($smarty.section.cnt.last && $tpl_disppage eq $tpl_pagemax) }--> 115 <a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnModeSubmit('down','product_id', '<!--{$arrProductsList[cnt].product_id}-->'); return false;">下へ</a> 116 <!--{/if}--> 117 </td> 118 </tr> 112 <!--{if !($smarty.section.cnt.first && $tpl_disppage eq 1) }--> 113 <a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnModeSubmit('up','product_id', '<!--{$arrProductsList[cnt].product_id}-->'); return false;">上へ</a> 114 <!--{/if}--> 115 <!--{if !($smarty.section.cnt.last && $tpl_disppage eq $tpl_pagemax) }--> 116 <a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnModeSubmit('down','product_id', '<!--{$arrProductsList[cnt].product_id}-->'); return false;">下へ</a> 117 <!--{/if}--> 118 </td> 119 </tr> 119 120 <!--{/section}--> 120 121 </table> -
branches/comu-ver2/data/class/pages/admin/products/LC_Page_Admin_Products_ProductRank.php
r16741 r17596 123 123 124 124 // 行数の取得 125 $linemax = $objQuery->count($table, "T2.category_id = ?", array($category_id));126 // 順位、該当件数表示用125 $linemax = $objQuery->count($table, $where, array($category_id)); 126 // 何件が該当しました。表示用 127 127 $this->tpl_linemax = $linemax; 128 128 129 129 $objNavi = new SC_PageNavi($this->tpl_pageno, $linemax, SEARCH_PMAX, "fnNaviPage", NAVI_PMAX); 130 130 $startno = $objNavi->start_row; 131 $this->tpl_start_row = $objNavi->start_row; 131 132 $this->tpl_strnavi = $objNavi->strnavi; // Navi表示文字列 132 133 $this->tpl_pagemax = $objNavi->max_page; // ページ最大数(「上へ下へ」表示判定用)
Note: See TracChangeset
for help on using the changeset viewer.