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

Revision 20853, 4.8 KB checked in by nanasess, 13 years ago (diff)

#972 (リファクタリング開発:[管理画面]デザイン管理)

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