Changeset 17978
- Timestamp:
- 2009/04/17 16:42:45 (15 years ago)
- 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 50 50 <td background="<!--{$TPL_DIR}-->img/contents/main_left.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td> 51 51 <td bgcolor="#cccccc"> 52 52 53 53 <!--▼登録テーブルここから--> 54 54 <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" "> … … 67 67 <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td> 68 68 </tr> 69 </table> 70 69 </table> 70 71 71 <table width="678" border="0" cellspacing="1" cellpadding="5" summary=" " bgcolor="#cccccc"> 72 72 73 73 <tr bgcolor="#ffffff"> 74 74 <!--▼画面左--> … … 77 77 <!--{section name=cnt loop=$arrTree}--> 78 78 <!--{assign var=level value="`$arrTree[cnt].level`}--> 79 79 80 80 <!--{* 上の階層表示の時にdivを閉じる *}--> 81 81 <!--{assign var=close_cnt value="`$before_level-$level+1`}--> … … 83 83 <!--{section name=n loop=$close_cnt}--></div><!--{/section}--> 84 84 <!--{/if}--> 85 85 86 86 <!--{* スペース繰り返し *}--> 87 87 <!--{section name=n loop=$level}--> <!--{/section}--> 88 88 89 89 <!--{* カテゴリ名表示 *}--> 90 90 <!--{assign var=disp_name value="`$arrTree[cnt].category_id`.`$arrTree[cnt].category_name`"}--> … … 96 96 <!--{/if}--> 97 97 <!--{$disp_name|sfCutString:20|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)</a> 98 <br> 98 <br> 99 99 <!--{if $arrTree[cnt].display == true}--> 100 100 <div id="f<!--{$arrTree[cnt].category_id}-->"> 101 101 <!--{else}--> 102 102 <div id="f<!--{$arrTree[cnt].category_id}-->" style="display:none"> 103 <!--{/if}--> 103 <!--{/if}--> 104 104 <!--{assign var=before_level value="`$arrTree[cnt].level`}--> 105 <!--{/section}--> 105 <!--{/section}--> 106 106 </td> 107 107 <!--▲画面左--> 108 109 <!--▼画面右--> 108 109 <!--▼画面右--> 110 110 <!--{if count($arrProductsList) > 0}--> 111 111 <td width="428" valign="top"> 112 112 113 113 <table width="428" border="0" cellspacing="0" cellpadding="0" summary=" "> 114 114 <tr><td class="fs12n"><!--{$tpl_linemax}-->件が該当しました。 </td></tr> … … 122 122 <tr><td height="10"></td></tr> 123 123 </table> 124 124 125 125 <table border="0" cellspacing="1" cellpadding="5" summary=" " bgcolor="#cccccc"> 126 126 <tr bgcolor="#f0f0f0" align="center" class="fs12n"> 127 127 <td width="27">順位</td> 128 <td width="1 10">商品コード</td>128 <td width="100">商品コード</td> 129 129 <td width="100">商品画像</td> 130 130 <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}--> 133 134 <!--{section name=cnt loop=$arrProductsList}--> 134 135 <tr bgcolor="#ffffff" align="left" class="fs12n"> 135 136 <!--{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`}--> 137 138 <td width="27" align="center"><!--{$rank}--></td> 138 <td width="1 10"><!--{$arrProductsList[cnt].product_code|escape|default:"-"}--></td>139 <td width="100" align="center">140 141 142 143 144 145 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}-->&width=65&height=65" alt="<!--{$arrProducts[cnt].name|escape}-->"> 148 </td> 149 <td width="130" align="center"> 149 150 <!--{$arrProductsList[cnt].name|escape}--> 150 151 </td> 151 152 <td width="120" align="center"> 152 <td width="130" align="center"> 153 153 <!--{* 移動 *}--> 154 154 <!--{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 /> 156 156 <!--{/if}--> 157 157 <!--{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> 159 159 <!--{/if}--> 160 160 <!--{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> 162 162 <!--{/if}--> 163 163 </td> … … 165 165 <!--{/section}--> 166 166 </table> 167 167 168 168 <table width="428" border="0" cellspacing="0" cellpadding="0" summary=" "> 169 169 <tr><td height="5"></td></tr> … … 177 177 <tr><td height="5"></td></tr> 178 178 </table> 179 </td> 179 </td> 180 180 <!--{else}--> 181 181 <td width="428" valign="top" class="fs12n">カテゴリを選択してください。</td> … … 203 203 </form> 204 204 </table> 205 <!--★★メインコンテンツ★★--> 205 <!--★★メインコンテンツ★★--> -
branches/version-2_4/data/class/pages/admin/products/LC_Page_Admin_Products_ProductRank.php
r16741 r17978 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.