Ignore:
Timestamp:
2008/06/16 12:13:09 (16 years ago)
Author:
pineray
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/Smarty/templates/default/admin/products/product_rank.tpl

    r16582 r17351  
    33 * This file is part of EC-CUBE 
    44 * 
    5  * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved. 
     5 * Copyright(c) 2000-2008 LOCKON CO.,LTD. All Rights Reserved. 
    66 * 
    77 * http://www.lockon.co.jp/ 
     
    2222 */ 
    2323*}--> 
    24 <!--★★メインコンテンツ★★--> 
    25 <table width="878" border="0" cellspacing="0" cellpadding="0" summary=" "> 
    2624<form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->" enctype="multipart/form-data"> 
    27 <input type="hidden" name="mode" value="edit"> 
    28 <input type="hidden" name="parent_category_id" value="<!--{$arrForm.parent_category_id}-->"> 
    29 <input type="hidden" name="category_id" value="<!--{$arrForm.category_id}-->"> 
    30 <input type="hidden" name="product_id" value=""> 
    31 <input type="hidden" name="pageno" value="<!--{$tpl_pageno}-->"> 
    32     <tr valign="top"> 
    33         <td background="<!--{$TPL_DIR}-->img/contents/navi_bg.gif" height="402"> 
    34             <!--▼SUB NAVI--> 
    35             <!--{include file=$tpl_subnavi}--> 
    36             <!--▲SUB NAVI--> 
    37         </td> 
    38         <td class="mainbg" > 
    39         <table width="737" border="0" cellspacing="0" cellpadding="0" summary=" "> 
    40             <!--メインエリア--> 
    41             <tr> 
    42                 <td align="center"> 
    43                 <table width="706" border="0" cellspacing="0" cellpadding="0" summary=" "> 
     25<input type="hidden" name="mode" value="edit" /> 
     26<input type="hidden" name="parent_category_id" value="<!--{$arrForm.parent_category_id}-->" /> 
     27<input type="hidden" name="category_id" value="<!--{$arrForm.category_id}-->" /> 
     28<input type="hidden" name="product_id" value="" /> 
     29<input type="hidden" name="pageno" value="<!--{$tpl_pageno}-->" /> 
     30<div id="products" class="contents-main"> 
    4431 
    45                     <tr><td height="14"></td></tr> 
    46                     <tr> 
    47                         <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_top.jpg" width="706" height="14" alt=""></td> 
    48                     </tr> 
    49                     <tr> 
    50                         <td background="<!--{$TPL_DIR}-->img/contents/main_left.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td> 
    51                         <td bgcolor="#cccccc"> 
    52                          
    53                             <!--▼登録テーブルここから--> 
    54                             <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" "> 
    55                                 <tr> 
    56                                     <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_top.gif" width="678" height="7" alt=""></td> 
    57                                 </tr> 
    58                                 <tr> 
    59                                     <td background="<!--{$TPL_DIR}-->img/contents/contents_title_left_bg.gif"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_left.gif" width="22" height="12" alt=""></td> 
    60                                     <td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--コンテンツタイトル-->商品並び替え</span></td> 
    61                                     <td background="<!--{$TPL_DIR}-->img/contents/contents_title_right_bg.gif"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="18" height="1" alt=""></td> 
    62                                 </tr> 
    63                                 <tr> 
    64                                     <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_bottom.gif" width="678" height="7" alt=""></td> 
    65                                 </tr> 
    66                                 <tr> 
    67                                     <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td> 
    68                                 </tr> 
    69                             </table>     
    70                              
    71                             <table width="678" border="0" cellspacing="1" cellpadding="5" summary=" " bgcolor="#cccccc"> 
    72                      
    73                                 <tr bgcolor="#ffffff"> 
    74                                     <!--▼画面左--> 
    75                                     <td width="250" valign="top" class="fs12"> 
    76                                     <a href="<!--{$smarty.server.PHP_SELF|escape}-->">▼ホーム</a><br> 
    77                                     <!--{section name=cnt loop=$arrTree}--> 
    78                                         <!--{assign var=level value="`$arrTree[cnt].level`}--> 
    79                                          
    80                                         <!--{* 上の階層表示の時にdivを閉じる *}--> 
    81                                         <!--{assign var=close_cnt value="`$before_level-$level+1`}--> 
    82                                         <!--{if $close_cnt > 0}--> 
    83                                             <!--{section name=n loop=$close_cnt}--></div><!--{/section}--> 
    84                                         <!--{/if}--> 
    85                                                              
    86                                         <!--{* スペース繰り返し *}--> 
    87                                         <!--{section name=n loop=$level}-->  <!--{/section}--> 
    88                                          
    89                                         <!--{* カテゴリ名表示 *}--> 
    90                                         <!--{assign var=disp_name value="`$arrTree[cnt].category_id`.`$arrTree[cnt].category_name`"}--> 
    91                                         <a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnModeSubmit('tree', 'parent_category_id', <!--{$arrTree[cnt].category_id}-->); return false"> 
    92                                         <!--{if $arrForm.parent_category_id == $arrTree[cnt].category_id}--> 
    93                                             <img src="<!--{$smarty.const.URL_DIR}-->misc/openf.gif" border="0"> 
    94                                         <!--{else}--> 
    95                                             <img src="<!--{$smarty.const.URL_DIR}-->misc/closef.gif" border="0"> 
    96                                         <!--{/if}--> 
    97                                         <!--{$disp_name|sfCutString:20|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)</a> 
    98                                     <br>                     
    99                                         <!--{if $arrTree[cnt].display == true}--> 
    100                                             <div id="f<!--{$arrTree[cnt].category_id}-->"> 
    101                                         <!--{else}--> 
    102                                             <div id="f<!--{$arrTree[cnt].category_id}-->" style="display:none"> 
    103                                         <!--{/if}-->                 
    104                                         <!--{assign var=before_level value="`$arrTree[cnt].level`}--> 
    105                                     <!--{/section}-->        
    106                                     </td> 
    107                                     <!--▲画面左--> 
    108                                          
    109                                     <!--▼画面右-->              
    110                                     <!--{if count($arrProductsList) > 0}--> 
    111                                     <td width="428" valign="top"> 
    112                                                                      
    113                                     <table width="428" border="0" cellspacing="0" cellpadding="0" summary=" "> 
    114                                         <tr><td class="fs12n"><!--{$tpl_linemax}-->件が該当しました。    </td></tr> 
    115                                         <tr class="fs12"> 
    116                                             <td align="center"> 
    117                                             <!--▼ページナビ--> 
    118                                             <!--{$tpl_strnavi}--> 
    119                                             <!--▲ページナビ--> 
    120                                             </td> 
    121                                         </tr> 
    122                                         <tr><td height="10"></td></tr> 
    123                                     </table> 
    124                                                      
    125                                     <table border="0" cellspacing="1" cellpadding="5" summary=" " bgcolor="#cccccc"> 
    126                                         <tr bgcolor="#f0f0f0" align="center" class="fs12n"> 
    127                                             <td width="27">順位</td> 
    128                                             <td width="110">商品コード</td> 
    129                                             <td width="100">商品画像</td> 
    130                                             <td width="130">商品名</td> 
    131                                             <td width="120">移動</td> 
    132                                         </tr> 
    133                                         <!--{section name=cnt loop=$arrProductsList}--> 
    134                                         <tr bgcolor="#ffffff" align="left" class="fs12n"> 
    135                                             <!--{assign var=db_rank value="`$arrProductsList[cnt].rank`"}--> 
    136                                             <!--{assign var=rank value="`$tpl_linemax-$db_rank+1`"}--> 
    137                                             <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"> 
    149                                                 <!--{$arrProductsList[cnt].name|escape}--> 
    150                                             </td> 
    151                                              
    152                                             <td width="120" align="center"> 
    153                                             <!--{* 移動 *}--> 
    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 /> 
    156                                             <!--{/if}--> 
    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> 
    159                                             <!--{/if}--> 
    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> 
    162                                             <!--{/if}--> 
    163                                             </td> 
    164                                         </tr> 
    165                                         <!--{/section}--> 
    166                                     </table> 
    167                                      
    168                                     <table width="428" border="0" cellspacing="0" cellpadding="0" summary=" "> 
    169                                         <tr><td height="5"></td></tr> 
    170                                         <tr class="fs12"> 
    171                                             <td align="center"> 
    172                                             <!--▼ページナビ--> 
    173                                             <!--{$tpl_strnavi}--> 
    174                                             <!--▲ページナビ--> 
    175                                             </td> 
    176                                         </tr> 
    177                                         <tr><td height="5"></td></tr> 
    178                                     </table> 
    179                                     </td>        
    180                                     <!--{else}--> 
    181                                     <td width="428" valign="top" class="fs12n">カテゴリを選択してください。</td> 
    182                                     <!--{/if}--> 
    183                                     <!--▲画面右--> 
    184                                 </tr> 
    185                             </table> 
    186                             <!-- ▲登録テーブルここまで --> 
     32  <!--{* ▼画面左 *}--> 
     33  <div id="products-rank-left"> 
     34    <a href="<!--{$smarty.server.PHP_SELF|escape}-->">▼ホーム</a><br /> 
     35    <!--{section name=cnt loop=$arrTree}--> 
     36      <!--{assign var=level value="`$arrTree[cnt].level`}--> 
     37       
     38      <!--{* 上の階層表示の時にdivを閉じる *}--> 
     39      <!--{assign var=close_cnt value="`$before_level-$level+1`}--> 
     40      <!--{if $close_cnt > 0}--> 
     41        <!--{section name=n loop=$close_cnt}--></div><!--{/section}--> 
     42      <!--{/if}--> 
     43                 
     44      <!--{* スペース繰り返し *}--> 
     45      <!--{section name=n loop=$level}-->  <!--{/section}--> 
     46       
     47      <!--{* カテゴリ名表示 *}--> 
     48      <!--{assign var=disp_name value="`$arrTree[cnt].category_id`.`$arrTree[cnt].category_name`"}--> 
     49      <a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnModeSubmit('tree', 'parent_category_id', <!--{$arrTree[cnt].category_id}-->); return false"> 
     50      <!--{if $arrForm.parent_category_id == $arrTree[cnt].category_id}--> 
     51        <img src="<!--{$smarty.const.URL_DIR}-->misc/openf.gif"> 
     52      <!--{else}--> 
     53        <img src="<!--{$smarty.const.URL_DIR}-->misc/closef.gif"> 
     54      <!--{/if}--> 
     55      <!--{$disp_name|sfCutString:20|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)</a> 
     56    <br />           
     57      <!--{if $arrTree[cnt].display == true}--> 
     58        <div id="f<!--{$arrTree[cnt].category_id}-->"> 
     59      <!--{else}--> 
     60        <div id="f<!--{$arrTree[cnt].category_id}-->" style="display:none"> 
     61      <!--{/if}--> 
     62      <!--{if $smarty.section.cnt.last}--> 
     63        <!--{section name=n loop=$level}--></div><!--{/section}--> 
     64      <!--{/if}--> 
     65      <!--{assign var=before_level value="`$arrTree[cnt].level`}--> 
     66    <!--{/section}--> 
     67  </div> 
     68  <!--{* ▲画面左 *}--> 
    18769 
    188                         </td> 
    189                         <td background="<!--{$TPL_DIR}-->img/contents/main_right.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td> 
    190                     </tr> 
    191                     <tr> 
    192                         <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bottom.jpg" width="706" height="14" alt=""></td> 
    193                     </tr> 
    194                     <tr><td height="30"></td></tr> 
     70  <!--▼画面右--> 
     71  <div id="products-rank-right"> 
     72  <!--{if count($arrProductsList) > 0}--> 
     73                     
     74    <p><!--{$tpl_linemax}-->件が該当しました。</p> 
     75    <!--{* ▼ページナビ *}--> 
     76    <!--{$tpl_strnavi}--> 
     77    <!--{* ▲ページナビ *}--> 
     78             
     79    <table class="list"> 
     80      <tr> 
     81        <th>順位</th> 
     82        <th>商品コード</th> 
     83        <th>商品画像</th> 
     84        <th>商品名</th> 
     85        <th>移動</th> 
     86      </tr> 
     87      <!--{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}--> 
     99          <!--{/if}--> 
     100          <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&amp;width=65&amp;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> 
     119      <!--{/section}--> 
     120    </table> 
     121     
     122    <!--{* ▼ページナビ *}--> 
     123    <!--{$tpl_strnavi}--> 
     124    <!--{* ▲ページナビ *}--> 
     125  <!--{else}--> 
     126    <p>カテゴリを選択してください。</p> 
     127  <!--{/if}--> 
     128  </div> 
     129  <!--▲画面右--> 
    195130 
    196                 </table> 
    197                 </td> 
    198             </tr> 
    199             <!--メインエリア--> 
    200         </table> 
    201         </td> 
    202     </tr> 
    203 </form> 
    204 </table> 
    205 <!--★★メインコンテンツ★★-->      
     131</div> 
     132</form>     
Note: See TracChangeset for help on using the changeset viewer.