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 | <script type="text/javascript" src="<!--{$TPL_URLPATH}-->js/breadcrumbs.js"></script> |
---|
25 | <script type="text/javascript">//<![CDATA[ |
---|
26 | $(function() { |
---|
27 | $('h2').breadcrumbs({ |
---|
28 | 'bread_crumbs': <!--{$tpl_bread_crumbs}--> |
---|
29 | }); |
---|
30 | }); |
---|
31 | //]]> |
---|
32 | </script> |
---|
33 | |
---|
34 | <form name="form1" id="form1" method="post" action="?" enctype="multipart/form-data"> |
---|
35 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
---|
36 | <input type="hidden" name="mode" value="edit" /> |
---|
37 | <input type="hidden" name="parent_category_id" value="<!--{$arrForm.parent_category_id|h}-->" /> |
---|
38 | <input type="hidden" name="category_id" value="<!--{$arrForm.category_id|h}-->" /> |
---|
39 | <input type="hidden" name="product_id" value="" /> |
---|
40 | <input type="hidden" name="pageno" value="<!--{$tpl_pageno|h}-->" /> |
---|
41 | <div id="products" class="contents-main"> |
---|
42 | |
---|
43 | <!--{* ▼画面左 *}--> |
---|
44 | <div id="products-rank-left"> |
---|
45 | <a href="?"><img src="<!--{$TPL_URLPATH}-->img/contents/folder_close.gif" alt="フォルダ"> ホーム</a><br /> |
---|
46 | <!--{section name=cnt loop=$arrTree}--> |
---|
47 | <!--{assign var=level value="`$arrTree[cnt].level`}--> |
---|
48 | |
---|
49 | <!--{* 上の階層表示の時にdivを閉じる *}--> |
---|
50 | <!--{assign var=close_cnt value="`$before_level-$level+1`}--> |
---|
51 | <!--{if $close_cnt > 0}--> |
---|
52 | <!--{section name=n loop=$close_cnt}--></div><!--{/section}--> |
---|
53 | <!--{/if}--> |
---|
54 | |
---|
55 | <!--{* スペース繰り返し *}--> |
---|
56 | <!--{section name=n loop=$level}--> <!--{/section}--> |
---|
57 | |
---|
58 | <!--{* カテゴリ名表示 *}--> |
---|
59 | <!--{assign var=disp_name value="`$arrTree[cnt].category_id`.`$arrTree[cnt].category_name`"}--> |
---|
60 | <a href="?" onclick="fnModeSubmit('tree', 'parent_category_id', <!--{$arrTree[cnt].category_id}-->); return false"> |
---|
61 | <!--{if $arrForm.parent_category_id == $arrTree[cnt].category_id}--> |
---|
62 | <img src="<!--{$TPL_URLPATH}-->img/contents/folder_open.gif" alt="フォルダ"> |
---|
63 | <!--{else}--> |
---|
64 | <img src="<!--{$TPL_URLPATH}-->img/contents/folder_close.gif" alt="フォルダ"> |
---|
65 | <!--{/if}--> |
---|
66 | <!--{$disp_name|sfCutString:20|h}-->(<!--{$arrTree[cnt].product_count|default:0}-->)</a> |
---|
67 | <br /> |
---|
68 | <!--{if $arrTree[cnt].display == true}--> |
---|
69 | <div id="f<!--{$arrTree[cnt].category_id}-->"> |
---|
70 | <!--{else}--> |
---|
71 | <div id="f<!--{$arrTree[cnt].category_id}-->" style="display:none"> |
---|
72 | <!--{/if}--> |
---|
73 | <!--{if $smarty.section.cnt.last}--> |
---|
74 | <!--{section name=n loop=$level}--></div><!--{/section}--> |
---|
75 | <!--{/if}--> |
---|
76 | <!--{assign var=before_level value="`$arrTree[cnt].level`}--> |
---|
77 | <!--{/section}--> |
---|
78 | </div> |
---|
79 | <!--{* ▲画面左 *}--> |
---|
80 | |
---|
81 | <!--▼画面右--> |
---|
82 | <div id="products-rank-right"> |
---|
83 | <h2><!--{* jQuery で挿入される *}--></h2> |
---|
84 | <!--{if count($arrProductsList) > 0}--> |
---|
85 | |
---|
86 | <p class="remark"><span class="attention"><!--{$tpl_linemax}-->件</span>が該当しました。</p> |
---|
87 | <div class="pager"> |
---|
88 | <ul> |
---|
89 | <!--{$tpl_strnavi}--> |
---|
90 | </ul> |
---|
91 | </div> |
---|
92 | |
---|
93 | <!--{if $smarty.const.ADMIN_MODE == '1'}--> |
---|
94 | <p class="right"><a class="btn-normal" href="javascript:;" onclick="fnModeSubmit('renumber', '', ''); return false;">内部順位再割り当て</a></p> |
---|
95 | <!--{/if}--> |
---|
96 | |
---|
97 | <table class="list" id="categoryTable"> |
---|
98 | <colgroup width="20%"> |
---|
99 | <colgroup width="47%"> |
---|
100 | <colgroup width="10%"> |
---|
101 | <colgroup width="7%"> |
---|
102 | <colgroup width="15%"> |
---|
103 | <tr class="nodrop nodrag"> |
---|
104 | <th>商品コード</th> |
---|
105 | <th>商品名</th> |
---|
106 | <th>商品画像</th> |
---|
107 | <th>順位</th> |
---|
108 | <th>移動</th> |
---|
109 | </tr> |
---|
110 | |
---|
111 | <!--{assign var=rank value=$tpl_start_row}--> |
---|
112 | <!--{section name=cnt loop=$arrProductsList}--> |
---|
113 | <tr> |
---|
114 | <td><!--{from_to from=$arrProductsList[cnt].product_code_min to=$arrProductsList[cnt].product_code_max separator="~<br />"}--></td> |
---|
115 | <td> |
---|
116 | <!--{$arrProductsList[cnt].name|h}--> |
---|
117 | </td> |
---|
118 | <td align="center"> |
---|
119 | <!--{* 商品画像 *}--> |
---|
120 | <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$arrProductsList[cnt].main_list_image|sfNoImageMainList|h}-->&width=65&height=65" alt="<!--{$arrProducts[cnt].name|h}-->"> |
---|
121 | </td> |
---|
122 | <!--{assign var=rank value=`$rank+1`}--> |
---|
123 | <td align="center"> |
---|
124 | <!--{$rank}--> |
---|
125 | <!--{if $arrProductsList[cnt].status == "2"}--><br />(非公開)<!--{/if}--> |
---|
126 | </td> |
---|
127 | <td align="center"> |
---|
128 | <!--{* 移動 *}--> |
---|
129 | <!--{if !(count($arrProductsList) == 1 && $rank == 1)}--> |
---|
130 | <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 /> |
---|
131 | <!--{/if}--> |
---|
132 | <!--{if !($smarty.section.cnt.first && $tpl_disppage eq 1)}--> |
---|
133 | <a href="?" onclick="fnModeSubmit('up','product_id', '<!--{$arrProductsList[cnt].product_id}-->'); return false;">上へ</a> |
---|
134 | <!--{/if}--> |
---|
135 | <!--{if !($smarty.section.cnt.last && $tpl_disppage eq $tpl_pagemax)}--> |
---|
136 | <a href="?" onclick="fnModeSubmit('down','product_id', '<!--{$arrProductsList[cnt].product_id}-->'); return false;">下へ</a> |
---|
137 | <!--{/if}--> |
---|
138 | </td> |
---|
139 | </tr> |
---|
140 | <!--{/section}--> |
---|
141 | </table> |
---|
142 | <!--{else}--> |
---|
143 | <p>カテゴリを選択してください。</p> |
---|
144 | <!--{/if}--> |
---|
145 | </div> |
---|
146 | <!--▲画面右--> |
---|
147 | |
---|
148 | </div> |
---|
149 | </form> |
---|