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_css" method="post" action="?" > |
---|
25 | <input type="hidden" name="mode" value="" /> |
---|
26 | <input type="hidden" name="area_row" value="<!--{$area_row}-->" /> |
---|
27 | <input type="hidden" name="old_css_name" value="<!--{$old_css_name}-->" /> |
---|
28 | <input type="hidden" name="device_type_id" value="<!--{$device_type_id|escape}-->" /> |
---|
29 | <div id="design" class="contents-main"> |
---|
30 | |
---|
31 | <!--▼CSS設定ここから--> |
---|
32 | <table class="form"> |
---|
33 | <tr> |
---|
34 | <th>CSSファイル名</th> |
---|
35 | <td> |
---|
36 | <!--{ if $arrErr.css_name != "" }--><span class="attention"><!--{$arrErr.css_name}--></span><br /><!--{/if}--> |
---|
37 | <input type="text" name="css_name" value="<!--{$css_name}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" style="<!--{if $arrErr.css_name != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" size="60" class="box60" />.css<span class="attention"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span> |
---|
38 | </td> |
---|
39 | </tr> |
---|
40 | <tr> |
---|
41 | <th>CSS内容</th> |
---|
42 | <td> |
---|
43 | <textarea name="css" cols=90 rows=<!--{$area_row}--> align="left" wrap=off style="width: 650px;"><!--{$css_data}--></textarea> |
---|
44 | <input type="hidden" name="area_row" value="<!--{$area_row}-->" /> |
---|
45 | <div class="btn"> |
---|
46 | <a class="btn_normal" href="javascript:;" onclick="ChangeSize(this, css, 50, 30, area_row)">拡大</a> |
---|
47 | </div> |
---|
48 | </td> |
---|
49 | </tr> |
---|
50 | </table> |
---|
51 | <div class="btn"> |
---|
52 | <a class="btn_normal" href="javascript:;" onclick="fnFormModeSubmit('form_css','confirm','','');"><span>この内容で登録する</span></a> |
---|
53 | </div> |
---|
54 | <!--▲CSS設定 ここまで--> |
---|
55 | |
---|
56 | <!--▼CSSファイル一覧 ここから--> |
---|
57 | <h2>編集可能CSSファイル</h2> |
---|
58 | <div class="btn addnew"> |
---|
59 | <a class="btn_normal" href="<!--{$smarty.server.PHP_SELF|escape}-->"><span>CSSを新規入力</span></a> |
---|
60 | </div> |
---|
61 | <table class="list center" id="design-css-list"> |
---|
62 | <tr> |
---|
63 | <th class="name">ファイル名</th> |
---|
64 | <th class="menu">編集</th> |
---|
65 | <th class="action">削除</th> |
---|
66 | </tr> |
---|
67 | <!--{if count($arrCSSList) > 0}--> |
---|
68 | <!--{foreach key=key item=item from=$arrCSSList}--> |
---|
69 | <tr> |
---|
70 | <td><!--{$item.file_name}--></td> |
---|
71 | <td style="background:<!--{if $item.css_name == $css_name}--><!--{$smarty.const.SELECT_RGB}--><!--{else}-->#ffffff<!--{/if}-->;"> |
---|
72 | <a href="<!--{$smarty.server.PHP_SELF|escape}-->?css_name=<!--{$item.css_name}-->&device_type_id=<!--{$device_type_id}-->">編集</a> |
---|
73 | </td> |
---|
74 | <td style="background:<!--{if $item.css_name == $css_name}--><!--{$smarty.const.SELECT_RGB}--><!--{else}-->#ffffff<!--{/if}-->;"> |
---|
75 | <a href="javascript:;" onclick="fnFormModeSubmit('form_css','delete','css_name','<!--{$item.css_name}-->');">削除</a> |
---|
76 | </td> |
---|
77 | </tr> |
---|
78 | <!--{/foreach}--> |
---|
79 | <!--{else}--> |
---|
80 | <tr> |
---|
81 | <td colspan="3">CSSファイルが存在しません。</td> |
---|
82 | </tr> |
---|
83 | <!--{/if}--> |
---|
84 | </table> |
---|
85 | <!--▲CSSファイル一覧 ここまで--> |
---|
86 | |
---|
87 | </div> |
---|
88 | </form> |
---|