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

Revision 20860, 4.6 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_css" 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="area_row" value="<!--{$area_row|h}-->" />
28<input type="hidden" name="old_css_name" value="<!--{$old_css_name|h}-->" />
29<input type="hidden" name="device_type_id" value="<!--{$device_type_id|h}-->" />
30<div id="design" class="contents-main">
31
32    <!--{if $arrErr.err != ""}-->
33        <div class="message">
34            <span class="attention"><!--{$arrErr.err}--></span>
35        </div>
36    <!--{/if}-->
37
38    <!--▼CSS設定ここから-->
39    <table class="form">
40        <tr>
41            <th>CSSファイル名</th>
42            <td>
43                <!--{assign var=key value="css_name"}-->
44                <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="60" class="box60" />.css
45                <span class="attention"> (上限<!--{$arrForm[$key].length}-->文字)</span>
46                <!--{if $arrErr[$key] != ""}--> <div class="attention"><!--{$arrErr[$key]}--></div> <!--{/if}-->
47            </td>
48        </tr>
49        <tr>
50            <th>CSS内容</th>
51            <td>
52                <!--{assign var=key value="css_data"}-->
53                <textarea id="css" class="top" name="<!--{$key}-->" cols="90" rows=<!--{$area_row}--> align="left" style="width: 650px;"><!--{$arrForm[$key].value|h}--></textarea>
54                <input type="hidden" name="area_row" value="<!--{$area_row}-->" />
55                <div class="btn">
56                    <a id="resize-btn" class="btn-normal" href="javascript:;" onclick="ChangeSize('#resize-btn', '#css', 50, 30); return false;">拡大</a>
57                </div>
58            </td>
59        </tr>
60    </table>
61    <div class="btn-area">
62        <ul>
63            <li><a class="btn-action" href="javascript:;" onclick="fnFormModeSubmit('form_css','confirm','',''); return false;"><span class="btn-next">この内容で登録する</span></a></li>
64        </ul>
65    </div>
66    <!--▲CSS設定 ここまで-->
67
68    <!--▼CSSファイル一覧 ここから-->
69    <h2>編集可能CSSファイル</h2>
70    <div class="btn addnew">
71        <a class="btn-normal" href="?device_type_id=<!--{$device_type_id|h}-->"><span>CSSを新規入力</span></a>
72    </div>
73    <table class="list" id="design-css-list">
74        <tr>
75            <th class="name">ファイル名</th>
76            <th class="menu edit">編集</th>
77            <th class="action delete">削除</th>
78        </tr>
79        <!--{if count($arrCSSList) > 0}-->
80        <!--{foreach key=key item=item from=$arrCSSList}-->
81        <tr>
82            <td style="background:<!--{if $item.css_name == $css_name}--><!--{$smarty.const.SELECT_RGB}--><!--{else}-->#ffffff<!--{/if}-->;"><!--{$item.file_name|h}--></td>
83            <td class="center" style="background:<!--{if $item.css_name == $css_name}--><!--{$smarty.const.SELECT_RGB}--><!--{else}-->#ffffff<!--{/if}-->;">
84                <a href="?css_name=<!--{$item.css_name|h}-->&amp;device_type_id=<!--{$device_type_id|h}-->">編集</a>
85            </td>
86            <td class="center" style="background:<!--{if $item.css_name == $css_name}--><!--{$smarty.const.SELECT_RGB}--><!--{else}-->#ffffff<!--{/if}-->;">
87                <a href="javascript:;" onclick="fnFormModeSubmit('form_css','delete','css_name','<!--{$item.css_name|h}-->'); return false;">削除</a>
88            </td>
89        </tr>
90        <!--{/foreach}-->
91        <!--{else}-->
92        <tr>
93            <td colspan="3">CSSファイルが存在しません。</td>
94        </tr>
95        <!--{/if}-->
96    </table>
97    <!--▲CSSファイル一覧 ここまで-->
98
99</div>
100</form>
Note: See TracBrowser for help on using the repository browser.