1 | <!--{* |
---|
2 | /* |
---|
3 | * This file is part of EC-CUBE |
---|
4 | * |
---|
5 | * Copyright(c) 2000-2007 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 | <!--★★メインコンテンツ★★--> |
---|
25 | <table width="878" border="0" cellspacing="0" cellpadding="0" summary=" "> |
---|
26 | <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 | <tr valign="top"> |
---|
31 | <td background="<!--{$TPL_DIR}-->img/contents/navi_bg.gif" height="402"> |
---|
32 | <!--▼SUB NAVI--> |
---|
33 | <!--{include file=$tpl_subnavi}--> |
---|
34 | <!--▲SUB NAVI--> |
---|
35 | </td> |
---|
36 | <td class="mainbg" > |
---|
37 | <table width="737" border="0" cellspacing="0" cellpadding="0" summary=" "> |
---|
38 | <!--メインエリア--> |
---|
39 | <tr> |
---|
40 | <td align="center"> |
---|
41 | <table width="706" border="0" cellspacing="0" cellpadding="0" summary=" "> |
---|
42 | |
---|
43 | <tr><td height="14"></td></tr> |
---|
44 | <tr> |
---|
45 | <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_top.jpg" width="706" height="14" alt=""></td> |
---|
46 | </tr> |
---|
47 | <tr> |
---|
48 | <td background="<!--{$TPL_DIR}-->img/contents/main_left.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td> |
---|
49 | <td bgcolor="#cccccc"> |
---|
50 | |
---|
51 | <!--▼登録テーブルここから--> |
---|
52 | <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" "> |
---|
53 | <tr> |
---|
54 | <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_top.gif" width="678" height="7" alt=""></td> |
---|
55 | </tr> |
---|
56 | <tr> |
---|
57 | <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> |
---|
58 | <td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--コンテンツタイトル-->カテゴリー設定(最大<!--{$smarty.const.LEVEL_MAX}-->階層まで)</span></td> |
---|
59 | <td background="<!--{$TPL_DIR}-->img/contents/contents_title_right_bg.gif"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="18" height="1" alt=""></td> |
---|
60 | </tr> |
---|
61 | <tr> |
---|
62 | <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_bottom.gif" width="678" height="7" alt=""></td> |
---|
63 | </tr> |
---|
64 | <tr> |
---|
65 | <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td> |
---|
66 | </tr> |
---|
67 | </table> |
---|
68 | |
---|
69 | <table width="678" border="0" cellspacing="1" cellpadding="5" summary=" " bgcolor="#cccccc"> |
---|
70 | <tr bgcolor="#ffffff"> |
---|
71 | <!--▼画面左--> |
---|
72 | <td width="250" valign="top" class="fs12"> |
---|
73 | <a href="#" onmouseover="chgImg('<!--{$TPL_DIR}-->img/contents/btn_csv_on.jpg','btn_csv');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/contents/btn_csv.jpg','btn_csv');" onclick="fnModeSubmit('csv','','');" ><img src="<!--{$TPL_DIR}-->img/contents/btn_csv.jpg" width="99" height="22" alt="CSV DOWNLOAD" border="0" name="btn_csv" id="btn_csv"></a><br /> |
---|
74 | <a href="<!--{$smarty.server.PHP_SELF|escape}-->">▼ホーム</a><br> |
---|
75 | <!--{section name=cnt loop=$arrTree}--> |
---|
76 | <!--{assign var=level value="`$arrTree[cnt].level`}--> |
---|
77 | |
---|
78 | <!--{* 上の階層表示の時にdivを閉じる *}--> |
---|
79 | <!--{assign var=close_cnt value="`$before_level-$level+1`}--> |
---|
80 | <!--{if $close_cnt > 0}--> |
---|
81 | <!--{section name=n loop=$close_cnt}--></div><!--{/section}--> |
---|
82 | <!--{/if}--> |
---|
83 | |
---|
84 | <!--{* スペース繰り返し *}--> |
---|
85 | <!--{section name=n loop=$level}--> <!--{/section}--> |
---|
86 | |
---|
87 | <!--{* カテゴリ名表示 *}--> |
---|
88 | <!--{assign var=disp_name value="`$arrTree[cnt].category_id`.`$arrTree[cnt].category_name`"}--> |
---|
89 | <!--{if $arrTree[cnt].level != $smarty.const.LEVEL_MAX}--> |
---|
90 | <a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnModeSubmit('tree', 'parent_category_id', <!--{$arrTree[cnt].category_id}-->); return false;"> |
---|
91 | <!--{if $arrForm.parent_category_id == $arrTree[cnt].category_id}--> |
---|
92 | <img src="<!--{$smarty.const.URL_DIR}-->misc/openf.gif" border="0"> |
---|
93 | <!--{else}--> |
---|
94 | <img src="<!--{$smarty.const.URL_DIR}-->misc/closef.gif" border="0"> |
---|
95 | <!--{/if}--> |
---|
96 | <!--{$disp_name|sfCutString:20|escape}--></a><br> |
---|
97 | <!--{else}--> |
---|
98 | <img src="<!--{$smarty.const.URL_DIR}-->misc/closef.gif" border="0"> |
---|
99 | <!--{$disp_name|sfCutString:20|escape}--></a><br> |
---|
100 | <!--{/if}--> |
---|
101 | |
---|
102 | <!--{if $arrTree[cnt].display == true}--> |
---|
103 | <div id="f<!--{$arrTree[cnt].category_id}-->"> |
---|
104 | <!--{else}--> |
---|
105 | <div id="f<!--{$arrTree[cnt].category_id}-->" style="display:none"> |
---|
106 | <!--{/if}--> |
---|
107 | |
---|
108 | <!--{assign var=before_level value="`$arrTree[cnt].level`}--> |
---|
109 | <!--{/section}--> |
---|
110 | |
---|
111 | </td> |
---|
112 | |
---|
113 | <!--▼画面右--> |
---|
114 | <td width="428" valign="top"> |
---|
115 | |
---|
116 | <span class="red12"><!--{$arrErr.category_name}--></span> |
---|
117 | <input type="text" name="category_name" value="<!--{$arrForm.category_name|escape}-->" size="30" class="box30" maxlength="<!--{$smarty.const.STEXT_LEN}-->"/> |
---|
118 | <input type="submit" name="button" value="登録"/><span class="red10"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span> |
---|
119 | <table width="428" border="0" cellspacing="0" cellpadding="0" summary=" "> |
---|
120 | <tr><td height="15"></td></tr> |
---|
121 | </table> |
---|
122 | |
---|
123 | <!--{if count($arrList) > 0}--> |
---|
124 | <table border="0" cellspacing="1" cellpadding="5" summary=" " bgcolor="#cccccc"> |
---|
125 | <tr bgcolor="#f2f1ec" align="center" class="fs12n"> |
---|
126 | <td width="30">ID</td> |
---|
127 | <td width="160">カテゴリ名</td> |
---|
128 | <td width="60">編集</td> |
---|
129 | <td width="60">削除</td> |
---|
130 | <td width="60">移動</td> |
---|
131 | </tr> |
---|
132 | <!--{section name=cnt loop=$arrList}--> |
---|
133 | <tr bgcolor="<!--{if $arrForm.category_id != $arrList[cnt].category_id}-->#ffffff<!--{else}--><!--{$smarty.const.SELECT_RGB}--><!--{/if}-->" align="left" class="fs12n"> |
---|
134 | <td><!--{$arrList[cnt].category_id}--></td> |
---|
135 | <td> |
---|
136 | <!--{if $arrList[cnt].level != $smarty.const.LEVEL_MAX}--> |
---|
137 | <a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnModeSubmit('tree', 'parent_category_id', <!--{$arrList[cnt].category_id}-->); return false"><!--{$arrList[cnt].category_name|escape}--></td> |
---|
138 | <!--{else}--> |
---|
139 | <!--{$arrList[cnt].category_name|escape}--> |
---|
140 | <!--{/if}--> |
---|
141 | <td align="center"> |
---|
142 | <!--{if $arrForm.category_id != $arrList[cnt].category_id}--> |
---|
143 | <a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnModeSubmit('pre_edit', 'category_id', <!--{$arrList[cnt].category_id}-->); return false;" />編集</a> |
---|
144 | <!--{else}--> |
---|
145 | 編集中 |
---|
146 | <!--{/if}--> |
---|
147 | </td> |
---|
148 | <td align="center"> |
---|
149 | <a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnModeSubmit('delete', 'category_id', <!--{$arrList[cnt].category_id}-->); return false;" />削除</a> |
---|
150 | </td> |
---|
151 | <td align="center"> |
---|
152 | <!--{* 移動 *}--> |
---|
153 | <!--{if $smarty.section.cnt.iteration != 1}--> |
---|
154 | <a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnModeSubmit('up','category_id', <!--{$arrList[cnt].category_id}-->); return false;">上へ</a> |
---|
155 | <!--{/if}--> |
---|
156 | <!--{if $smarty.section.cnt.iteration != $smarty.section.cnt.last}--> |
---|
157 | <a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnModeSubmit('down','category_id', <!--{$arrList[cnt].category_id}-->); return false;">下へ</a> |
---|
158 | <!--{/if}--> |
---|
159 | </td> |
---|
160 | </tr> |
---|
161 | <!--{/section}--> |
---|
162 | </table> |
---|
163 | |
---|
164 | <!--{else}--> |
---|
165 | <table border="0" cellspacing="0" cellpadding="0" summary=" "> |
---|
166 | <tr> |
---|
167 | <td class="fs12n">この階層には、カテゴリが登録されていません。</td> |
---|
168 | </tr> |
---|
169 | </table> |
---|
170 | <!--{/if}--> |
---|
171 | </td> |
---|
172 | </tr> |
---|
173 | </table> |
---|
174 | <!-- ▲登録テーブルここまで --> |
---|
175 | |
---|
176 | </td> |
---|
177 | <td background="<!--{$TPL_DIR}-->img/contents/main_right.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td> |
---|
178 | </tr> |
---|
179 | <tr> |
---|
180 | <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bottom.jpg" width="706" height="14" alt=""></td> |
---|
181 | </tr> |
---|
182 | <tr><td height="30"></td></tr> |
---|
183 | |
---|
184 | </table> |
---|
185 | </td> |
---|
186 | </tr> |
---|
187 | <!--メインエリア--> |
---|
188 | </table> |
---|
189 | </td> |
---|
190 | </tr> |
---|
191 | </form> |
---|
192 | </table> |
---|
193 | <!--★★メインコンテンツ★★--> |
---|