source: branches/version-2_5-dev/data/Smarty/templates/admin/products/product_rank.tpl @ 19972

Revision 19972, 6.8 KB checked in by Seasoft, 13 years ago (diff)

#834(パラメータの定数名に「URL」を含むにもかかわらず、パスのみのものがある)

  • パラメータ名の変更 URL_PATH → ROOT_URLPATH
  • Property svn:eol-style set to LF
  • Property svn:mime-type set to text/x-smarty-template; charset=UTF-8
Line 
1<!--{*
2/*
3 * This file is part of EC-CUBE
4 *
5 * Copyright(c) 2000-2010 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="?" 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="?"><img src="<!--{$TPL_DIR}-->img/contents/folder_close.gif" alt="フォルダ">&nbsp;ホーム</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="?" 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="<!--{$TPL_DIR}-->img/contents/folder_open.gif" alt="フォルダ">
52      <!--{else}-->
53        <img src="<!--{$TPL_DIR}-->img/contents/folder_close.gif" alt="フォルダ">
54      <!--{/if}-->
55      <!--{$disp_name|sfCutString:20|h}-->(<!--{$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    <h2><!--{$breadcrumbs}--></h2>
73  <!--{if count($arrProductsList) > 0}-->
74
75
76<script type="text/javascript">
77// カテゴリーテーブルのイニシャライズ
78$(document).ready(function() {
79    $("#categoryTable").tableDnD({
80        onDragClass: "movingHandle",
81        onDrop: function(table, row) {
82            var rows = table.tBodies[0].rows;
83            var keys = row.id;
84
85            for (var i = 0; i < rows.length; i++) {
86                if (row.id == rows[i].id) {
87                    keys += "-" + i;
88                    break;
89                }
90            }
91
92            fnModeSubmit('moveByDnD','keySet', keys);
93        },
94        dragHandle: "dragHandle"
95    });
96
97    $("#categoryTable tr").hover(function() {
98        $(this.cells[0]).addClass('activeHandle');
99    }, function() {
100        $(this.cells[0]).removeClass('activeHandle');
101    });
102});
103</script>
104
105    <p><span class="attention"><!--{$tpl_linemax}-->件</span>が該当しました。</p>
106    <!--{* ▼ページナビ *}-->
107    <!--{$tpl_strnavi}-->
108    <!--{* ▲ページナビ *}-->
109   
110    <!--{if $smarty.const.ADMIN_MODE == '1'}-->
111        <p class="right"><a class="btn-normal" href="javascript:;" onclick="fnModeSubmit('renumber', '', ''); return false;">内部順位再割り当て</a></p>
112    <!--{/if}-->
113   
114    <table class="list" id="categoryTable">
115        <colgroup width="20%">
116        <colgroup width="47%">
117        <colgroup width="10%">
118        <colgroup width="7%">
119        <colgroup width="15%">
120      <tr class="nodrop nodrag">
121        <th>商品コード</th>
122        <th>商品名</th>
123        <th>商品画像</th>
124        <th>順位</th>
125        <th>移動</th>
126      </tr>
127
128      <!--{assign var=rank value=$tpl_start_row}-->
129      <!--{section name=cnt loop=$arrProductsList}-->
130        <tr>
131          <td><!--{from_to from=$arrProductsList[cnt].product_code_min to=$arrProductsList[cnt].product_code_max separator="~<br />"}--></td>         
132          <td>
133            <!--{$arrProductsList[cnt].name|h}-->
134          </td>
135          <td align="center">
136            <!--{* 商品画像 *}-->
137            <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$arrProductsList[cnt].main_list_image|sfNoImageMainList|h}-->&amp;width=65&amp;height=65" alt="<!--{$arrProducts[cnt].name|h}-->">
138          </td>
139          <!--{assign var=rank value=`$rank+1`}-->
140          <td align="center">
141            <!--{$rank}-->
142            <!--{if $arrProductsList[cnt].status == "2"}--><br />(非公開)<!--{/if}-->
143          </td>
144          <td align="center">
145          <!--{* 移動 *}-->
146          <!--{if !(count($arrProductsList) == 1 && $rank == 1)}-->
147          <input type="text" name="pos-<!--{$arrProductsList[cnt].product_id}-->" size="3" class="box3" />番目へ<a href="?" onclick="fnModeSubmit('move','product_id', '<!--{$arrProductsList[cnt].product_id}-->'); return false;">移動</a><br />
148          <!--{/if}-->
149          <!--{if !($smarty.section.cnt.first && $tpl_disppage eq 1) }-->
150          <a href="?" onclick="fnModeSubmit('up','product_id', '<!--{$arrProductsList[cnt].product_id}-->'); return false;">上へ</a>
151          <!--{/if}-->
152          <!--{if !($smarty.section.cnt.last && $tpl_disppage eq $tpl_pagemax) }-->
153          <a href="?" onclick="fnModeSubmit('down','product_id', '<!--{$arrProductsList[cnt].product_id}-->'); return false;">下へ</a>
154          <!--{/if}-->
155          </td>
156        </tr>
157      <!--{/section}-->
158    </table>
159   
160    <!--{* ▼ページナビ *}-->
161    <!--{$tpl_strnavi}-->
162    <!--{* ▲ページナビ *}-->
163  <!--{else}-->
164    <p>カテゴリを選択してください。</p>
165  <!--{/if}-->
166  </div>
167  <!--▲画面右-->
168
169</div>
170</form>
Note: See TracBrowser for help on using the repository browser.