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

Revision 20407, 6.6 KB checked in by kotani, 13 years ago (diff)

#812 (トランザクションIDの自動生成/自動検証), #1053 (transactionidが埋め込まれる前にクリックされるとエラー)

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