source: branches/comu-ver2/data/Smarty/templates/default/admin/design/css.tpl @ 17112

Revision 17112, 7.5 KB checked in by pineray, 16 years ago (diff)

管理画面上でpackage内のCSSを編集可能に

  • Property svn:eol-style set to LF
  • Property svn:mime-type set to text/html; charset=UTF-8
Line 
1<!--{*
2/*
3 * This file is part of EC-CUBE
4 *
5 * Copyright(c) 2000-2007 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<table width="878" border="0" cellspacing="0" cellpadding="0" summary=" ">
26<form name="form_css" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->" >
27<input type="hidden" name="mode" value="">
28<input type="hidden" name="area_row" value=<!--{$area_row}-->>
29<input type="hidden" name="old_css_name" value="<!--{$old_css_name}-->" />
30    <tr valign="top">
31        <td background="<!--{$TPL_DIR}-->img/contents/navi_bg.gif" height="402">
32            <!--▼SUB NAVI-->
33            <!--{include file=$tpl_subnavi}-->
34            <!--▲SUB NAVI-->
35        </td>
36        <td class="mainbg">
37            <!--▼登録テーブルここから-->
38            <table width="737" border="0" cellspacing="0" cellpadding="0" summary=" ">
39                <!--メインエリア-->
40                <tr>
41                    <td align="center">
42                        <table width="706" border="0" cellspacing="0" cellpadding="0" summary=" ">
43                            <tr><td height="14"></td></tr>
44                            <tr>
45                                <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_top.jpg" width="706" height="14" alt=""></td>
46                            </tr>
47                            <tr>
48                                <td background="<!--{$TPL_DIR}-->img/contents/main_left.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td>
49                                <td bgcolor="#cccccc">
50                                <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
51                                    <tr>
52                                        <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_top.gif" width="678" height="7" alt=""></td>
53                                    </tr>
54                                    <tr>
55                                        <td background="<!--{$TPL_DIR}-->img/contents/contents_title_left_bg.gif"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_left.gif" width="22" height="12" alt=""></td>
56                                        <td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--コンテンツタイトル-->CSS編集</span></td>
57                                        <td background="<!--{$TPL_DIR}-->img/contents/contents_title_right_bg.gif"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="18" height="1" alt=""></td>
58                                    </tr>
59                                    <tr>
60                                        <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_bottom.gif" width="678" height="7" alt=""></td>
61                                    </tr>
62                                    <tr>
63                                        <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td>
64                                    </tr>
65                                </table>
66                               
67                                <!--▼CSS編集 ここから-->
68                                <table width="678" border="0" cellspacing="1" cellpadding="8" summary=" ">
69                                <tr class="fs12n">
70                                    <td bgcolor="#ffffff" align="left">
71                                        <!--{ if $arrErr.css_name != "" }--> <div align="center"> <span class="red12"><!--{$arrErr.css_name}--></span></div> <!--{/if}-->
72                                        CSSファイル名:<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="red"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span>
73                                    </td>
74                                </tr>
75                                    <tr class="fs12n">
76                                        <td bgcolor="#ffffff" align="center">
77                                            <textarea name="css" cols=90 rows=<!--{$area_row}--> align="left" wrap=off style="width: 650px;"><!--{$css_data}--></textarea>
78                                            <div align="right">
79                                            <input type="button" value="大きくする" onClick="ChangeSize(this, css, 50, 30, area_row)">
80                                            </div>
81                                        </td>
82                                    </tr>
83                                    <tr class="fs12n">
84                                        <td bgcolor="#f2f1ec" align="center">
85                                            <input type="image" onMouseover="chgImgImageSubmit('<!--{$TPL_DIR}-->img/contents/btn_regist_on.jpg',this)" onMouseout="chgImgImageSubmit('<!--{$TPL_DIR}-->img/contents/btn_regist.jpg',this)" onclick="fnFormModeSubmit('form_css','confirm','','');" src="<!--{$TPL_DIR}-->img/contents/btn_regist.jpg" width="123" height="24" alt="この内容で登録する" border="0" name="subm" >
86                                        </td>
87                                    </tr>
88                                </table>
89                                <!--▲CSS編集 ここまで-->
90
91                            <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
92                                <tr><td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td></tr>
93                            </table>
94
95                            <!--▼CSSファイル一覧 ここから-->
96                            <table width="678" border="0" cellspacing="1" cellpadding="5" summary=" ">
97                                <tr class="fs12n">
98                                    <td bgcolor="#f2f1ec" align="center" colspan=2 ><strong>編集可能CSSファイル</strong></td>
99                                </tr>
100                               
101                  <!--{if count($arrCSSList) > 0}-->
102                                <!--{foreach key=key item=item from=$arrCSSList}-->
103                                <tr class="fs12n" height=20>
104                                    <td align="center" width=600 bgcolor="<!--{if $item.css_name == $css_name}--><!--{$smarty.const.SELECT_RGB}--><!--{else}-->#ffffff<!--{/if}-->">
105                                        <a href="<!--{$smarty.server.PHP_SELF}-->?css_name=<!--{$item.css_name}-->"><!--{$item.file_name}--></a>
106                                    </td>
107                                    <td  align="center" width=140 bgcolor="<!--{if $item.css_name == $css_name}--><!--{$smarty.const.SELECT_RGB}--><!--{else}-->#ffffff<!--{/if}-->">
108                                        <input type="button" value="削除" name="del_<!--{$item.css_name}-->" onclick="fnFormModeSubmit('form_css','delete','css_name','<!--{$item.css_name}-->');"  />
109                                    </td>
110                                </tr>
111                                <!--{/foreach}-->
112                  <!--{else}-->
113                                <tr class="fs12n">
114                                    <td bgcolor="#ffffff" align="center" colspan=2 >CSSファイルが存在しません。</td>
115                                </tr>
116                  <!--{/if}-->
117
118                                <tr class="fs12n">
119                                    <td bgcolor="#f2f1ec" align="center" colspan=2>
120                                    <input type='button' value='新規CSS作成' name='subm' onclick="location.href='http://<!--{$smarty.server.HTTP_HOST}--><!--{$smarty.server.PHP_SELF|escape}-->'">
121                                    </td>
122                                </tr>
123                            </table>
124                            <!--▲CSSファイル一覧 ここまで-->
125
126                                </td>
127                                <td background="<!--{$TPL_DIR}-->img/contents/main_right.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td>
128                            </tr>
129                            <tr>
130                                <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bottom.jpg" width="706" height="14" alt=""></td>
131                            </tr>
132                            <tr><td height="30"></td></tr>
133                        </table>
134                    </td>
135                </tr>
136                <!--メインエリア-->
137            </table>
138            <!--▲登録テーブルここまで-->
139        </td>
140    </tr>
141</form>
142</table>
143<!--★★メインコンテンツ★★-->
144
145<script type="text/javascript">
146    function ChangeSize(button, TextArea, Max, Min, row_tmp){
147        if(TextArea.rows <= Min){
148            TextArea.rows=Max; button.value="小さくする"; row_tmp.value=Max;
149        }else{
150            TextArea.rows =Min; button.value="大きくする"; row_tmp.value=Min;
151        }
152    }
153</script>
Note: See TracBrowser for help on using the repository browser.