source: branches/comu-ver2/data/Smarty/templates/default/admin/products/product_rank.tpl @ 17351

Revision 17351, 5.7 KB checked in by pineray, 16 years ago (diff)
  • Property svn:eol-style set to LF
  • Property svn:mime-type set to text/html; charset=UTF-8
Line 
1<!--{*
2/*
3 * This file is part of EC-CUBE
4 *
5 * Copyright(c) 2000-2008 LOCKON CO.,LTD. All Rights Reserved.
6 *
7 * http://www.lockon.co.jp/
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22 */
23*}-->
24<form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->" enctype="multipart/form-data">
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">
31
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  <!--{* ▲画面左 *}-->
69
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  <!--▲画面右-->
130
131</div>
132</form>   
Note: See TracBrowser for help on using the repository browser.