1 | <!--{* |
---|
2 | /* |
---|
3 | * This file is part of EC-CUBE |
---|
4 | * |
---|
5 | * Copyright(c) 2000-2012 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 | <form name="form_bloc" id="form_bloc" method="post" action="?" > |
---|
26 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
---|
27 | <input type="hidden" name="mode" value="" /> |
---|
28 | <input type="hidden" name="bloc_id" value="<!--{$bloc_id|h}-->" /> |
---|
29 | <input type="hidden" name="device_type_id" value="<!--{$device_type_id|h}-->" /> |
---|
30 | |
---|
31 | <div id="design" class="contents-main"> |
---|
32 | <!--{if $arrErr.err != ""}--> |
---|
33 | <div class="message"> |
---|
34 | <span class="attention"><!--{$arrErr.err}--></span> |
---|
35 | </div> |
---|
36 | <!--{/if}--> |
---|
37 | |
---|
38 | <!--{* ▼ブロック設定 *}--> |
---|
39 | <table> |
---|
40 | <tr> |
---|
41 | <th><!--{t string="tpl_Block name_01"}--></th> |
---|
42 | <td> |
---|
43 | <!--{assign var=key value="bloc_name"}--> |
---|
44 | <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="60" class="box60" /> |
---|
45 | <span class="attention"> <!--{t string="tpl_(T_ARG1 characters max)_01" T_ARG1=$arrForm[$key].length}--></span> |
---|
46 | <!--{if $arrErr[$key] != ""}--> <div class="attention"><!--{$arrErr[$key]}--></div> <!--{/if}--> |
---|
47 | </td> |
---|
48 | </tr> |
---|
49 | <tr> |
---|
50 | <th><!--{t string="tpl_File name_01"}--></th> |
---|
51 | <td> |
---|
52 | <!--{assign var=key value="filename"}--> |
---|
53 | <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="60" class="box60" />.tpl |
---|
54 | <span class="attention"> <!--{t string="tpl_(T_ARG1 characters max)_01" T_ARG1=$arrForm[$key].length}--></span> |
---|
55 | <!--{if $arrErr[$key] != ""}--> <div class="attention"><!--{$arrErr[$key]}--></div> <!--{/if}--> |
---|
56 | </td> |
---|
57 | </tr> |
---|
58 | <tr> |
---|
59 | <td colspan="2"> |
---|
60 | <!--{assign var=key value="bloc_html"}--> |
---|
61 | <textarea class="top" id="<!--{$key}-->" name="<!--{$key}-->" rows="<!--{$text_row}-->" style="width: 99%;"><!--{"\n"}--><!--{$arrForm[$key].value|smarty:nodefaults|h}--></textarea> |
---|
62 | <input type="hidden" name="html_area_row" value="<!--{$text_row}-->" /> |
---|
63 | <div> |
---|
64 | <a id="resize-btn" class="btn-normal" href="javascript:;" onclick="ChangeSize('#resize-btn', '#bloc_html', 50, 13); return false;"><!--{t string="tpl_Enlarge the image_01"}--></a> |
---|
65 | </div> |
---|
66 | </td> |
---|
67 | </tr> |
---|
68 | </table> |
---|
69 | <div class="btn-area"> |
---|
70 | <ul> |
---|
71 | <li><a class="btn-action" href="javascript:;" name='subm' onclick="fnFormModeSubmit('form_bloc','confirm','',''); return false;"><span class="btn-next"><!--{t string="tpl_Register_01"}--></span></a></li> |
---|
72 | </ul> |
---|
73 | </div> |
---|
74 | <!--{* ▲ブロック設定 *}--> |
---|
75 | |
---|
76 | <!--{* ▼ブロック一覧 *}--> |
---|
77 | <h2><!--{t string="tpl_Block that can be edited_01"}--></h2> |
---|
78 | <div class="btn addnew"> |
---|
79 | <a class="btn-normal" href="?device_type_id=<!--{$device_type_id|h}-->"><span><!--{t string="tpl_New block_01"}--></span></a> |
---|
80 | </div> |
---|
81 | <table class="list"> |
---|
82 | <tr> |
---|
83 | <th><!--{t string="tpl_Name_01"}--></th> |
---|
84 | <th class="edit"><!--{t string="tpl_Edit_01"}--></th> |
---|
85 | <th class="delete"><!--{t string="tpl_Remove_01"}--></th> |
---|
86 | </tr> |
---|
87 | <!--{foreach key=key item=item from=$arrBlocList}--> |
---|
88 | <tr style="background-color:<!--{if $item.bloc_id == $bloc_id}--><!--{$smarty.const.SELECT_RGB}--><!--{else}-->#ffffff<!--{/if}-->;"> |
---|
89 | <td><!--{$item.bloc_name}--></td> |
---|
90 | <td class="center"> |
---|
91 | <a href="?bloc_id=<!--{$item.bloc_id|h}-->&device_type_id=<!--{$device_type_id|h}-->" ><!--{t string="tpl_Edit_01"}--></a> |
---|
92 | </td> |
---|
93 | <td class="center"> |
---|
94 | <!--{if $item.deletable_flg == 1}--> |
---|
95 | <a href="javascript:;" onclick="fnFormModeSubmit('form_bloc','delete','bloc_id',<!--{$item.bloc_id|h}-->);"><!--{t string="tpl_Remove_01"}--></a> |
---|
96 | <input type="hidden" value="<!--{$item.bloc_id|h}-->" name="del_id<!--{$item.bloc_id|h}-->" /> |
---|
97 | <!--{/if}--> |
---|
98 | </td> |
---|
99 | </tr> |
---|
100 | <!--{/foreach}--> |
---|
101 | </table> |
---|
102 | <!--{* ▲ブロック一覧 *}--> |
---|
103 | </div> |
---|
104 | </form> |
---|