source: branches/version-2_5-dev/data/Smarty/templates/admin/design/header.tpl @ 20634

Revision 20634, 4.2 KB checked in by kotani, 12 years ago (diff)

#920 (デザイン管理でプレビューを押すとシステムエラー)

  • フッター登録部分のプレビューを削除
  • 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-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<!--{*
25
26XXX: ヘッダーとフッターでwrapの設定が違うのは疑問。それぞれの良し悪しはともかく、統一を。
27
28*}-->
29<div id="design" class="contents-main">
30    <!--{* ▼ヘッダー編集ここから *}-->
31    <h2>ヘッダー編集</h2>
32    <form name="form_header" id="form_header" method="post" action="?" >
33    <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
34    <input type="hidden" name="mode" value="" />
35    <input type="hidden" name="division" value="header" />
36    <input type="hidden" name="header_row" value="<!--{$header_row}-->" />
37    <input type="hidden" name="browser_type" value="" />
38    <input type="hidden" name="device_type_id" value="<!--{$device_type_id|h}-->" />
39
40        <textarea id="header-area" class="top" name="header" rows="<!--{$header_row}-->" wrap="off" style="width: 100%;"><!--{$header_data|smarty:nodefaults}--></textarea>
41        <div class="btn">
42            <a id="header-area-resize-btn" class="btn-normal" href="javascript:;" onclick="ChangeSize('#header-area-resize-btn', '#header-area', 50, 13); $('input[name=header_row]').val($('#header-area').attr('rows'));return false;"><span>拡大</span></a>
43        </div>
44
45        <div class="btn-area">
46                <ul>
47                    <li><a class="btn-action" href="javascript:;" name='subm' onclick="fnFormModeSubmit('form_header','regist','',''); return false;"><span class="btn-next">登録する</span></a></li>
48                </ul>
49        </div>
50
51    </form>
52    <!--{* ▲ヘッダー編集ここまで *}-->
53
54    <!--{* ▼フッター編集ここから *}-->
55    <h2>フッター編集</h2>
56    <form name="form_footer" id="form_footer" method="post" action="?" >
57    <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
58    <input type="hidden" name="mode" value="" />
59    <input type="hidden" name="division" value="footer" />
60    <input type="hidden" name="footer_row" value=<!--{$footer_row}--> />
61    <input type="hidden" name="browser_type" value="" />
62    <input type="hidden" name="device_type_id" value="<!--{$device_type_id|h}-->" />
63
64        <textarea id="footer-area" class="top" name="footer" rows="<!--{$footer_row}-->" style="width: 100%;"><!--{$footer_data|smarty:nodefaults}--></textarea>
65        <div class="btn">
66            <a id="footer-area-resize-btn" class="btn-normal" href="javascript:;" onclick="ChangeSize('#footer-area-resize-btn', '#footer-area', 50, 13); $('input[name=footer_row]').val($('#footer-area').attr('rows'));return false;"><span>拡大</span></a>
67        </div>
68
69        <div class="btn-area">
70                <ul>
71                    <li><a class="btn-action" href="javascript:;" name='subm' onclick="fnFormModeSubmit('form_footer','regist','',''); return false;"><span class="btn-next">登録する</span></a></li>
72                </ul>
73        </div>
74
75    </form>
76    <!--{* ▲フッター編集ここまで *}-->
77</div>
78<script type="text/javascript">
79    /* ブラウザの種類をセットする */
80    function lfnSetBrowser(form, item){
81        browser_type = 0;
82        if(navigator.userAgent.indexOf("MSIE") >= 0){
83            browser_type = 1;
84        }
85        else if(navigator.userAgent.indexOf("Gecko/") >= 0){
86            browser_type = 2;
87        }
88
89        document[form][item].value=browser_type;
90    }
91
92</script>
Note: See TracBrowser for help on using the repository browser.