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