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

Revision 21537, 7.4 KB checked in by Seasoft, 12 years ago (diff)

#1613 (ソース整形・ソースコメントの改善)

  • 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-2011 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//]]></script>
32<form name="form1" id="form1" method="post" action="?" enctype="multipart/form-data">
33<input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
34<input type="hidden" name="mode" value="edit" />
35<input type="hidden" name="parent_category_id" value="<!--{$arrForm.parent_category_id|h}-->">
36<input type="hidden" name="category_id" value="<!--{$arrForm.category_id|h}-->">
37<input type="hidden" name="keySet" value="">
38<div id="products" class="contents-main">
39    <div class="btn">
40        <a class="btn-normal" href="javascript:;" onclick="fnModeSubmit('csv','',''); return false;">CSV ダウンロード</a>
41        <a class="btn-normal" href='../contents/csv.php?tpl_subno_csv=category'>CSV 出力項目設定</a>
42    </div>
43
44    <!--{* ▼画面左 *}-->
45    <div id="products-category-left">
46        <a href="?"><img src="<!--{$TPL_URLPATH}-->img/contents/folder_close.gif" alt="フォルダ">&nbsp;ホーム</a><br />
47        <!--{section name=cnt loop=$arrTree}-->
48            <!--{assign var=level value="`$arrTree[cnt].level`}-->
49
50            <!--{* 上の階層表示の時にdivを閉じる *}-->
51            <!--{assign var=close_cnt value="`$before_level-$level+1`"}-->
52            <!--{if $close_cnt > 0}-->
53                <!--{section name=n loop=$close_cnt}--></div><!--{/section}-->
54            <!--{/if}-->
55
56            <!--{* スペース繰り返し *}-->
57            <!--{section name=n loop=$level}-->  <!--{/section}-->
58
59            <!--{* カテゴリ名表示 *}-->
60            <!--{assign var=disp_name value="`$arrTree[cnt].category_id`.`$arrTree[cnt].category_name`"}-->
61            <!--{if $arrTree[cnt].level != $smarty.const.LEVEL_MAX}-->
62                <a href="?" onclick="fnModeSubmit('tree', 'parent_category_id', <!--{$arrTree[cnt].category_id}-->); return false;">
63                <!--{if $arrForm.parent_category_id == $arrTree[cnt].category_id}-->
64                    <img src="<!--{$TPL_URLPATH}-->img/contents/folder_open.gif" alt="フォルダ">
65                <!--{else}-->
66                    <img src="<!--{$TPL_URLPATH}-->img/contents/folder_close.gif" alt="フォルダ">
67                <!--{/if}-->
68                <!--{$disp_name|sfCutString:10:false|h}--></a><br />
69            <!--{else}-->
70                <img src="<!--{$TPL_URLPATH}-->img/contents/folder_close.gif" alt="フォルダ">
71                <!--{$disp_name|sfCutString:10:false|h}--></a><br />
72            <!--{/if}-->
73
74            <!--{if $arrTree[cnt].display == true}-->
75                <div id="f<!--{$arrTree[cnt].category_id}-->">
76            <!--{else}-->
77                <div id="f<!--{$arrTree[cnt].category_id}-->" style="display:none">
78            <!--{/if}-->
79
80            <!--{if $smarty.section.cnt.last}-->
81                <!--{section name=n loop=$level}--></div><!--{/section}-->
82            <!--{/if}-->
83
84            <!--{assign var=before_level value="`$arrTree[cnt].level`}-->
85        <!--{/section}-->
86    </div>
87    <!--{* ▲画面左 *}-->
88
89    <!--{* ▼画面右 *}-->
90    <div id="products-category-right">
91
92
93        <div class="now_dir">
94                <!--{if $arrErr.category_name}-->
95                <span class="attention"><!--{$arrErr.category_name}--></span>
96                <!--{/if}-->
97                <input type="text" name="category_name" value="<!--{$arrForm.category_name|h}-->" size="30" class="box30" maxlength="<!--{$smarty.const.STEXT_LEN}-->" />
98                <a class="btn-normal" href="javascript:;" onclick="fnModeSubmit('edit','',''); return false;"><span class="btn-next">登録</span></a><span class="attention">&nbsp;(上限<!--{$smarty.const.STEXT_LEN}-->文字)</span>
99        </div>
100
101        <h2><!--{* jQuery で挿入される *}--></h2>
102        <!--{if count($arrList) > 0}-->
103
104        <table class="list" id="categoryTable">
105            <col width="5%" />
106            <col width="60%" />
107            <col width="10%" />
108            <col width="10%" />
109            <col width="25%" />
110            <tr class="nodrop nodrag">
111                <th>ID</th>
112                <th>カテゴリ名</th>
113                <th class="edit">編集</th>
114                <th class="delete">削除</th>
115                <th>移動</th>
116            </tr>
117
118            <!--{section name=cnt loop=$arrList}-->
119            <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">
120                <td class="center"><!--{$arrList[cnt].category_id}--></td>
121                <td>
122                <!--{if $arrList[cnt].level != $smarty.const.LEVEL_MAX}-->
123                    <a href="?" onclick="fnModeSubmit('tree', 'parent_category_id', <!--{$arrList[cnt].category_id}-->); return false"><!--{$arrList[cnt].category_name|h}--></a>
124                <!--{else}-->
125                    <!--{$arrList[cnt].category_name|h}-->
126                <!--{/if}-->
127                </td>
128                <td class="center">
129                    <!--{if $arrForm.category_id != $arrList[cnt].category_id}-->
130                    <a href="?" onclick="fnModeSubmit('pre_edit', 'category_id', <!--{$arrList[cnt].category_id}-->); return false;">編集</a>
131                    <!--{else}-->
132                    編集中
133                    <!--{/if}-->
134                </td>
135                <td class="center">
136                    <a href="?" onclick="fnModeSubmit('delete', 'category_id', <!--{$arrList[cnt].category_id}-->); return false;">削除</a>
137                </td>
138                <td class="center">
139                <!--{* 移動 *}-->
140                <!--{if $smarty.section.cnt.iteration != 1}-->
141                <a href="?" onclick="fnModeSubmit('up','category_id', <!--{$arrList[cnt].category_id}-->); return false;">上へ</a>
142                <!--{/if}-->
143                <!--{if $smarty.section.cnt.iteration != $smarty.section.cnt.last}-->
144                <a href="?" onclick="fnModeSubmit('down','category_id', <!--{$arrList[cnt].category_id}-->); return false;">下へ</a>
145                <!--{/if}-->
146                </td>
147
148            </tr>
149            <!--{/section}-->
150        </table>
151        <!--{else}-->
152        <p>この階層には、カテゴリが登録されていません。</p>
153        <!--{/if}-->
154    </div>
155    <!--{* ▲画面右 *}-->
156
157</div>
158</form>
Note: See TracBrowser for help on using the repository browser.