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 | <div id="design" class="contents-main"> |
---|
29 | <h2>CSS編集</h2> |
---|
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 | <div class="btn right"> |
---|
45 | <button type="button" onClick="ChangeSize(this, css, 50, 30, area_row)"><span>大きくする</span></button> |
---|
46 | </div> |
---|
47 | </td> |
---|
48 | </tr> |
---|
49 | </table> |
---|
50 | <div class="btn"> |
---|
51 | <button type="submit" onclick="fnFormModeSubmit('form_css','confirm','','');"><span>この内容で登録する</span></button> |
---|
52 | </div> |
---|
53 | <!--▲CSS編集 ここまで--> |
---|
54 | |
---|
55 | <!--▼CSSファイル一覧 ここから--> |
---|
56 | <h2>編集可能CSSファイル</h2> |
---|
57 | <table class="list center" id="design-css-list"> |
---|
58 | <tr> |
---|
59 | <th class="name">ファイル名</th> |
---|
60 | <th class="action"> </th> |
---|
61 | </tr> |
---|
62 | <!--{if count($arrCSSList) > 0}--> |
---|
63 | <!--{foreach key=key item=item from=$arrCSSList}--> |
---|
64 | <tr> |
---|
65 | <td style="background:<!--{if $item.css_name == $css_name}--><!--{$smarty.const.SELECT_RGB}--><!--{else}-->#ffffff<!--{/if}-->;"> |
---|
66 | <a href="<!--{$smarty.server.PHP_SELF}-->?css_name=<!--{$item.css_name}-->"><!--{$item.file_name}--></a> |
---|
67 | </td> |
---|
68 | <td style="background:<!--{if $item.css_name == $css_name}--><!--{$smarty.const.SELECT_RGB}--><!--{else}-->#ffffff<!--{/if}-->;"> |
---|
69 | <button type="button" name="del_<!--{$item.css_name}-->" onclick="fnFormModeSubmit('form_css','delete','css_name','<!--{$item.css_name}-->');"><span>削除</span></button> |
---|
70 | </td> |
---|
71 | </tr> |
---|
72 | <!--{/foreach}--> |
---|
73 | <!--{else}--> |
---|
74 | <tr> |
---|
75 | <td colspan="2">CSSファイルが存在しません。</td> |
---|
76 | </tr> |
---|
77 | <!--{/if}--> |
---|
78 | </table> |
---|
79 | <div class="btn addnew"> |
---|
80 | <button type="button" onclick="location.href='http://<!--{$smarty.server.HTTP_HOST}--><!--{$smarty.server.PHP_SELF|escape}-->'"><span>CSSを新規入力</span></button> |
---|
81 | </div> |
---|
82 | <!--▲CSSファイル一覧 ここまで--> |
---|
83 | |
---|
84 | </div> |
---|
85 | </form> |
---|
86 | |
---|
87 | <script type="text/javascript"> |
---|
88 | function ChangeSize(button, TextArea, Max, Min, row_tmp){ |
---|
89 | if(TextArea.rows <= Min){ |
---|
90 | TextArea.rows=Max; button.value="小さくする"; row_tmp.value=Max; |
---|
91 | }else{ |
---|
92 | TextArea.rows =Min; button.value="大きくする"; row_tmp.value=Min; |
---|
93 | } |
---|
94 | } |
---|
95 | </script> |
---|