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

Revision 20407, 4.8 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<form name="form_bloc" id="form_bloc" method="post" action="?" >
25<input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
26<input type="hidden" name="mode" value="" />
27<input type="hidden" name="bloc_id" value="<!--{$bloc_id}-->" />
28<input type="hidden" name="device_type_id" value="<!--{$device_type_id|h}-->" />
29
30    <!--{* ▼ブロック設定 *}-->
31
32    <!--{if $arrBlocData.tpl_path != '' and $preview == on}-->
33    <h3>プレビュー:</h3>
34    <div id="design-bloc-preview">
35        <!--{include file=$arrBlocData.tpl_path}-->
36    </div>
37    <!--{/if}-->
38
39    <table>
40        <tr>
41            <th>ブロック名</th>
42            <td>
43                <input type="text" name="bloc_name" value="<!--{$arrBlocData.bloc_name|h}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" style="<!--{if $arrErr.bloc_name != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" size="60" class="box60" /><span class="attention"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span>
44                <!--{if $arrErr.bloc_name != ""}--> <div align="center"> <span class="attention"><!--{$arrErr.bloc_name}--></span></div> <!--{/if}-->
45            </td>
46        </tr>
47        <tr>
48            <th>ファイル名</th>
49            <td><input type="text" name="filename" value="<!--{$arrBlocData.filename|h}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" style="<!--{if $arrErr.filename != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" size="60" class="box60" />.tpl<span class="attention"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span>
50        <!--{if $arrErr.filename != ""}--> <div align="center"> <span class="attention"><!--{$arrErr.filename}--></span></div> <!--{/if}-->
51         </td>
52     </tr>
53     <tr>
54         <td colspan="2">
55             <textarea class="top" id="bloc_html" name="bloc_html" rows="<!--{$text_row}-->" style="width: 99%; height:80px"><!--{$arrBlocData.tpl_data|smarty:nodefaults}--></textarea>
56             <input type="hidden" name="html_area_row" value="<!--{$text_row}-->" />
57             <div>
58                 <a id="resize-btn" class="btn-normal" href="javascript:;" onclick="ChangeSize('#resize-btn', '#bloc_html', 50, 13); return false;">拡大</a>
59             </div>
60         </td>
61     </tr>
62 </table>
63    <div class="btn-area">
64        <ul>
65            <li><a class="btn-action" href="javascript:;" name='preview' onclick="fnFormModeSubmit('form_bloc','preview','',''); return false;"><span class="btn-prev">プレビュー</span></a></li>
66            <li><a class="btn-action" href="javascript:;" name='subm' onclick="fnFormModeSubmit('form_bloc','confirm','',''); return false;"><span class="btn-next">登録する</span></a></li>
67        </ul>
68    </div>
69    <!--{* ▲ブロック設定 *}-->
70
71    <!--{* ▼ブロック一覧 *}-->
72    <h2>編集可能ブロック</h2>
73    <div class="btn addnew">
74        <a class="btn-normal" href="?"><span>ブロックを新規入力</span></a>
75    </div>
76    <table class="list">
77        <tr>
78            <th>名称</th>
79            <th class="edit">編集</th>
80            <th class="delete">削除</th>
81        </tr>
82        <!--{foreach key=key item=item from=$arrBlocList}-->
83        <tr style="background-color:<!--{if $item.bloc_id == $bloc_id}--><!--{$smarty.const.SELECT_RGB}--><!--{else}-->#ffffff<!--{/if}-->;">
84            <td><!--{$item.bloc_name}--></td>
85            <td class="center">
86                <a href="?bloc_id=<!--{$item.bloc_id}-->&amp;device_type_id=<!--{$device_type_id}-->" >編集</a>
87            </td>
88            <td class="center">
89                <!--{if $item.deletable_flg == 1}-->
90                    <a href="javascript:;" onclick="fnFormModeSubmit('form_bloc','delete','bloc_id',this.name.substr(3));">削除</a>
91                    <input type="hidden" value="<!--{$item.bloc_id}-->" name="del_id<!--{$item.bloc_id}-->" />
92                <!--{/if}-->
93            </td>
94        </tr>
95        <!--{/foreach}-->
96    </table>
97    <!--{* ▲ブロック一覧 *}-->
98
99</form>
Note: See TracBrowser for help on using the repository browser.