source: branches/version-2/data/Smarty/templates/default/admin/products/category.tpl @ 18007

Revision 18007, 13.6 KB checked in by kajiwara, 15 years ago (diff)

2.4.0 正式版のコミット。コミット内容の詳細はこちら(http://svn.ec-cube.net/open_trac/query?status=closed&milestone=EC-CUBE2.4.0

  • 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-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="0" cellpadding="0" summary=" " style="background-image: url(<!--{$TPL_DIR}-->img/contents/main_bar.jpg);">
70                                <tr>
71                                    <td width="105"><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></td>
72                                    <td width="573"><a href="../contents/csv.php?tpl_subno_csv=category"><span class="fs12n"> >> CSV出力項目設定 </span></a></td>
73                                </tr>
74                                <tr>
75                                    <td colspan="2"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="3" alt=""></td>
76                                </tr>
77                            </table>
78
79                            <table width="678" border="0" cellspacing="1" cellpadding="5" summary=" " bgcolor="#cccccc">
80                                <tr bgcolor="#ffffff">
81                                    <!--▼画面左-->
82                                    <td width="250" valign="top" class="fs12">
83                                    <a href="<!--{$smarty.server.PHP_SELF|escape}-->">▼ホーム</a><br>
84                                    <!--{section name=cnt loop=$arrTree}-->
85                                        <!--{assign var=level value="`$arrTree[cnt].level`}-->
86
87                                        <!--{* 上の階層表示の時にdivを閉じる *}-->
88                                        <!--{assign var=close_cnt value="`$before_level-$level+1`}-->
89                                        <!--{if $close_cnt > 0}-->
90                                            <!--{section name=n loop=$close_cnt}--></div><!--{/section}-->
91                                        <!--{/if}-->
92
93                                        <!--{* スペース繰り返し *}-->
94                                        <!--{section name=n loop=$level}-->  <!--{/section}-->
95
96                                        <!--{* カテゴリ名表示 *}-->
97                                        <!--{assign var=disp_name value="`$arrTree[cnt].category_id`.`$arrTree[cnt].category_name`"}-->
98                                        <!--{if $arrTree[cnt].level != $smarty.const.LEVEL_MAX}-->
99                                            <a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnModeSubmit('tree', 'parent_category_id', <!--{$arrTree[cnt].category_id}-->); return false;">
100                                            <!--{if $arrForm.parent_category_id == $arrTree[cnt].category_id}-->
101                                                <img src="<!--{$smarty.const.URL_DIR}-->misc/openf.gif" border="0">
102                                            <!--{else}-->
103                                                <img src="<!--{$smarty.const.URL_DIR}-->misc/closef.gif" border="0">
104                                            <!--{/if}-->
105                                            <!--{$disp_name|sfCutString:20|escape}--></a><br>
106                                        <!--{else}-->
107                                            <img src="<!--{$smarty.const.URL_DIR}-->misc/closef.gif" border="0">
108                                            <!--{$disp_name|sfCutString:20|escape}--></a><br>
109                                        <!--{/if}-->
110
111                                        <!--{if $arrTree[cnt].display == true}-->
112                                            <div id="f<!--{$arrTree[cnt].category_id}-->">
113                                        <!--{else}-->
114                                            <div id="f<!--{$arrTree[cnt].category_id}-->" style="display:none">
115                                        <!--{/if}-->
116
117                                        <!--{assign var=before_level value="`$arrTree[cnt].level`}-->
118                                    <!--{/section}-->
119
120                                    </td>
121
122                                    <!--▼画面右-->
123                                    <td width="428" valign="top">
124
125                                    <span class="red12"><!--{$arrErr.category_name}--></span>
126                                    <input type="text" name="category_name" value="<!--{$arrForm.category_name|escape}-->" size="30" class="box30" maxlength="<!--{$smarty.const.STEXT_LEN}-->"/>
127                                    <input type="submit" name="button" value="登録" onclick="fnModeSubmit('edit','','');"/><span class="red10"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span>
128                                    <table width="428" border="0" cellspacing="0" cellpadding="0" summary=" ">
129                                        <tr><td height="15"></td></tr>
130                                    </table>
131
132                                    <!--{if count($arrList) > 0}-->
133                                    <table border="0" cellspacing="1" cellpadding="5" summary=" " bgcolor="#cccccc">
134                                        <tr bgcolor="#f2f1ec" align="center" class="fs12n">
135                                            <td width="30">ID</td>
136                                            <td width="160">カテゴリ名</td>
137                                            <td width="60">編集</td>
138                                            <td width="60">削除</td>
139                                            <td width="60">移動</td>
140                                        </tr>
141                                        <!--{section name=cnt loop=$arrList}-->
142                                        <tr bgcolor="<!--{if $arrForm.category_id != $arrList[cnt].category_id}-->#ffffff<!--{else}--><!--{$smarty.const.SELECT_RGB}--><!--{/if}-->" align="left" class="fs12n">
143                                            <td><!--{$arrList[cnt].category_id}--></td>
144                                            <td>
145                                            <!--{if $arrList[cnt].level != $smarty.const.LEVEL_MAX}-->
146                                                <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>
147                                            <!--{else}-->
148                                                <!--{$arrList[cnt].category_name|escape}-->
149                                            <!--{/if}-->
150                                            <td align="center">
151                                                <!--{if $arrForm.category_id != $arrList[cnt].category_id}-->
152                                                <a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnModeSubmit('pre_edit', 'category_id', <!--{$arrList[cnt].category_id}-->); return false;" />編集</a>
153                                                <!--{else}-->
154                                                編集中
155                                                <!--{/if}-->
156                                            </td>
157                                            <td align="center">
158                                                <a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnModeSubmit('delete', 'category_id', <!--{$arrList[cnt].category_id}-->); return false;" />削除</a>
159                                            </td>
160                                            <td align="center">
161                                            <!--{* 移動 *}-->
162                                            <!--{if $smarty.section.cnt.iteration != 1}-->
163                                            <a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnModeSubmit('up','category_id', <!--{$arrList[cnt].category_id}-->); return false;">上へ</a>
164                                            <!--{/if}-->
165                                            <!--{if $smarty.section.cnt.iteration != $smarty.section.cnt.last}-->
166                                            <a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnModeSubmit('down','category_id', <!--{$arrList[cnt].category_id}-->); return false;">下へ</a>
167                                            <!--{/if}-->
168                                            </td>
169                                        </tr>
170                                        <!--{/section}-->
171                                    </table>
172
173                                    <!--{else}-->
174                                    <table border="0" cellspacing="0" cellpadding="0" summary=" ">
175                                        <tr>
176                                            <td class="fs12n">この階層には、カテゴリが登録されていません。</td>
177                                        </tr>
178                                    </table>
179                                    <!--{/if}-->
180                                    </td>
181                                </tr>
182                            </table>
183                            <!-- ▲登録テーブルここまで -->
184
185                        </td>
186                        <td background="<!--{$TPL_DIR}-->img/contents/main_right.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td>
187                    </tr>
188                    <tr>
189                        <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bottom.jpg" width="706" height="14" alt=""></td>
190                    </tr>
191                    <tr><td height="30"></td></tr>
192
193                </table>
194                </td>
195            </tr>
196            <!--メインエリア-->
197        </table>
198        </td>
199    </tr>
200</form>
201</table>
202<!--★★メインコンテンツ★★-->
Note: See TracBrowser for help on using the repository browser.