source: branches/version-2_13-dev/data/Smarty/templates/admin/products/category.tpl @ 23066

Revision 23066, 6.0 KB checked in by pineray, 8 years ago (diff)

#2342 JavaScript?のグローバルな宣言を減らす
eccubeオブジェクト内の階層を減らす.

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id
  • 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-2013 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<script type="text/javascript" src="<!--{$TPL_URLPATH}-->js/breadcrumbs.js"></script>
26<script type="text/javascript">//<![CDATA[
27    $(function() {
28        $('h2').breadcrumbs({
29            'bread_crumbs': <!--{$tpl_bread_crumbs}-->
30        });
31    });
32//]]></script>
33<form name="form1" id="form1" method="post" action="?" enctype="multipart/form-data">
34    <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
35    <input type="hidden" name="mode" value="edit" />
36    <input type="hidden" name="parent_category_id" value="<!--{$arrForm.parent_category_id|h}-->" />
37    <input type="hidden" name="category_id" value="<!--{$arrForm.category_id|h}-->" />
38    <input type="hidden" name="keySet" value="" />
39    <div id="products" class="contents-main">
40        <div class="btn">
41            <a class="btn-normal" href="javascript:;" onclick="eccube.setModeAndSubmit('csv','',''); return false;">CSV ダウンロード</a>
42            <a class="btn-normal" href='../contents/csv.php?tpl_subno_csv=category'>CSV 出力項目設定</a>
43        </div>
44
45        <!--{* ▼画面左 *}-->
46        <div id="products-category-left">
47            <ul>
48                <li>
49                    <a href="?"><img src="<!--{$TPL_URLPATH}-->img/contents/folder_close.gif" alt="フォルダ" />&nbsp;ホーム</a>
50                    <!--{include file="`$smarty.const.TEMPLATE_ADMIN_REALDIR`products/category_tree_fork.tpl" children=$arrTree treeID="f0" display=1}-->
51                </li>
52            </ul>
53        </div>
54        <!--{* ▲画面左 *}-->
55
56        <!--{* ▼画面右 *}-->
57        <div id="products-category-right">
58
59
60            <div class="now_dir">
61                    <!--{if $arrErr.category_name}-->
62                    <span class="attention"><!--{$arrErr.category_name}--></span>
63                    <!--{/if}-->
64                    <input type="text" name="category_name" value="<!--{$arrForm.category_name|h}-->" size="30" class="box30" maxlength="<!--{$smarty.const.STEXT_LEN}-->" />
65                    <a class="btn-normal" href="javascript:;" onclick="eccube.setModeAndSubmit('edit','',''); return false;"><span class="btn-next">登録</span></a><span class="attention">&nbsp;(上限<!--{$smarty.const.STEXT_LEN}-->文字)</span>
66            </div>
67
68            <h2><!--{* jQuery で挿入される *}--></h2>
69            <!--{if count($arrList) > 0}-->
70
71            <table class="list" id="categoryTable">
72                <col width="5%" />
73                <col width="60%" />
74                <col width="10%" />
75                <col width="10%" />
76                <col width="25%" />
77                <tr class="nodrop nodrag">
78                    <th>ID</th>
79                    <th>カテゴリ名</th>
80                    <th class="edit">編集</th>
81                    <th class="delete">削除</th>
82                    <th>移動</th>
83                </tr>
84
85                <!--{section name=cnt loop=$arrList}-->
86                <tr id="<!--{$arrList[cnt].category_id}-->" style="background:<!--{if $arrForm.category_id != $arrList[cnt].category_id}-->#ffffff<!--{else}--><!--{$smarty.const.SELECT_RGB}--><!--{/if}-->;" align="left">
87                    <td class="center"><!--{$arrList[cnt].category_id}--></td>
88                    <td>
89                    <!--{if $arrList[cnt].level != $smarty.const.LEVEL_MAX}-->
90                        <a href="?" onclick="eccube.setModeAndSubmit('tree', 'parent_category_id', <!--{$arrList[cnt].category_id}-->); return false"><!--{$arrList[cnt].category_name|h}--></a>
91                    <!--{else}-->
92                        <!--{$arrList[cnt].category_name|h}-->
93                    <!--{/if}-->
94                    </td>
95                    <td class="center">
96                        <!--{if $arrForm.category_id != $arrList[cnt].category_id}-->
97                        <a href="?" onclick="eccube.setModeAndSubmit('pre_edit', 'category_id', <!--{$arrList[cnt].category_id}-->); return false;">編集</a>
98                        <!--{else}-->
99                        編集中
100                        <!--{/if}-->
101                    </td>
102                    <td class="center">
103                        <a href="?" onclick="eccube.setModeAndSubmit('delete', 'category_id', <!--{$arrList[cnt].category_id}-->); return false;">削除</a>
104                    </td>
105                    <td class="center">
106                    <!--{* 移動 *}-->
107                    <!--{if $smarty.section.cnt.iteration != 1}-->
108                    <a href="?" onclick="eccube.setModeAndSubmit('up','category_id', <!--{$arrList[cnt].category_id}-->); return false;">上へ</a>
109                    <!--{/if}-->
110                    <!--{if $smarty.section.cnt.iteration != $smarty.section.cnt.last}-->
111                    <a href="?" onclick="eccube.setModeAndSubmit('down','category_id', <!--{$arrList[cnt].category_id}-->); return false;">下へ</a>
112                    <!--{/if}-->
113                    </td>
114
115                </tr>
116                <!--{/section}-->
117            </table>
118            <!--{else}-->
119            <p>この階層には、カテゴリが登録されていません。</p>
120            <!--{/if}-->
121        </div>
122        <!--{* ▲画面右 *}-->
123
124    </div>
125</form>
Note: See TracBrowser for help on using the repository browser.