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="フォルダ"> ホーム</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 | <tr class="nodrop nodrag"> |
---|
116 | <th>商品コード</th> |
---|
117 | <th>商品名</th> |
---|
118 | <th>商品画像</th> |
---|
119 | <th>順位</th> |
---|
120 | <th>移動</th> |
---|
121 | </tr> |
---|
122 | |
---|
123 | <!--{assign var=rank value=$tpl_start_row}--> |
---|
124 | <!--{section name=cnt loop=$arrProductsList}--> |
---|
125 | <tr> |
---|
126 | <td><!--{from_to from=$arrProductsList[cnt].product_code_min to=$arrProductsList[cnt].product_code_max separator="~<br />"}--></td> |
---|
127 | <td> |
---|
128 | <!--{$arrProductsList[cnt].name|h}--> |
---|
129 | </td> |
---|
130 | <td align="center"> |
---|
131 | <!--{* 商品画像 *}--> |
---|
132 | <img src="<!--{$smarty.const.URL_PATH}-->resize_image.php?image=<!--{$arrProductsList[cnt].main_list_image|sfNoImageMainList|h}-->&width=65&height=65" alt="<!--{$arrProducts[cnt].name|h}-->"> |
---|
133 | </td> |
---|
134 | <!--{assign var=rank value=`$rank+1`}--> |
---|
135 | <td align="center"> |
---|
136 | <!--{$rank}--> |
---|
137 | <!--{if $arrProductsList[cnt].status == "2"}--><br />(非公開)<!--{/if}--> |
---|
138 | </td> |
---|
139 | <td align="center"> |
---|
140 | <!--{* 移動 *}--> |
---|
141 | <!--{if !(count($arrProductsList) == 1 && $rank == 1)}--> |
---|
142 | <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 /> |
---|
143 | <!--{/if}--> |
---|
144 | <!--{if !($smarty.section.cnt.first && $tpl_disppage eq 1) }--> |
---|
145 | <a href="?" onclick="fnModeSubmit('up','product_id', '<!--{$arrProductsList[cnt].product_id}-->'); return false;">上へ</a> |
---|
146 | <!--{/if}--> |
---|
147 | <!--{if !($smarty.section.cnt.last && $tpl_disppage eq $tpl_pagemax) }--> |
---|
148 | <a href="?" onclick="fnModeSubmit('down','product_id', '<!--{$arrProductsList[cnt].product_id}-->'); return false;">下へ</a> |
---|
149 | <!--{/if}--> |
---|
150 | </td> |
---|
151 | </tr> |
---|
152 | <!--{/section}--> |
---|
153 | </table> |
---|
154 | |
---|
155 | <!--{* ▼ページナビ *}--> |
---|
156 | <!--{$tpl_strnavi}--> |
---|
157 | <!--{* ▲ページナビ *}--> |
---|
158 | <!--{else}--> |
---|
159 | <p>カテゴリを選択してください。</p> |
---|
160 | <!--{/if}--> |
---|
161 | </div> |
---|
162 | <!--▲画面右--> |
---|
163 | |
---|
164 | </div> |
---|
165 | </form> |
---|