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

Revision 19965, 5.0 KB checked in by uemoto, 13 years ago (diff)

#382(管理画面XHTMLに変更)

  • 細部調整
  • Property svn:eol-style set to LF
  • 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  <!--{* プレビューここから *}-->
33  <!--{ if $header_prev == "on"}-->
34  <dic id="design-header-preview">
35    <!--{if $browser_type == 1 }-->
36      <div style="zoom:0.8"><!--{include file="`$smarty.const.USER_REALDIR`include/preview/header.tpl"}--></div>
37    <!--{ else }-->
38      <span class="attention"><strong>プレビューはIEでのみ表示されます。</strong></span>
39    <!--{ /if }-->
40  </div>
41  <!--{ /if }-->
42  <!--{* プレビューここまで *}-->
43   
44  <form name="form_header" id="form_header" method="post" action="?" >
45  <input type="hidden" name="mode" value="" />
46  <input type="hidden" name="division" value="header" />
47  <input type="hidden" name="header_row" value="<!--{$header_row}-->" />
48  <input type="hidden" name="browser_type" value="" />
49  <input type="hidden" name="device_type_id" value="<!--{$device_type_id|h}-->" />
50
51    <textarea id="header-area" class="top" name="header" rows="<!--{$header_row}-->" wrap="off" style="width: 100%;"><!--{$header_data|smarty:nodefaults}--></textarea>
52    <div class="btn">
53      <a id="header-area-resize-btn" class="btn-normal" href="javascript:;" onclick="ChangeSize('#header-area-resize-btn', '#header-area', 50, 13); return false;"><span>拡大</span></a>
54    </div>
55
56    <div class="btn-area">
57        <ul>
58          <li><a class="btn-action" href="javascript:;" name='preview' onclick="lfnSetBrowser('form_header', 'browser_type'); fnFormModeSubmit('form_header','preview','',''); return false;"><span class="btn-prev">プレビュー</span></a></li>
59          <li><a class="btn-action" href="javascript:;" name='subm' onclick="fnFormModeSubmit('form_header','confirm','',''); return false;"><span class="btn-next">登録する</span></a></li>
60        </ul>
61    </div>
62
63  </form>
64  <!--{* ▲ヘッダー編集ここまで *}-->
65
66  <!--{* ▼フッター編集ここから *}-->
67  <h2>フッター編集</h2>
68  <!--{ if $footer_prev == "on"}-->
69  <div id="design-footer-preview">
70    <!--{if $browser_type == 1 }-->
71      <div style="zoom:0.8"><!--{include file="`$smarty.const.USER_REALDIR`/include/preview/footer.tpl"}--></div>
72    <!--{ else }-->
73      <span class="attention"><strong>プレビューはIEでのみ表示されます。</strong></span>
74    <!--{ /if }-->
75  </div>
76  <!--{ /if }-->
77
78  <form name="form_footer" id="form_footer" method="post" action="?" >
79  <input type="hidden" name="mode" value="" />
80  <input type="hidden" name="division" value="footer" />
81  <input type="hidden" name="footer_row" value=<!--{$footer_row}--> />
82  <input type="hidden" name="browser_type" value="" />
83  <input type="hidden" name="device_type_id" value="<!--{$device_type_id|h}-->" />
84
85    <textarea id="footer-area" class="top" name="footer" rows="<!--{$footer_row}-->" style="width: 100%;"><!--{$footer_data|smarty:nodefaults}--></textarea>
86    <div class="btn">
87      <a id="footer-area-resize-btn" class="btn-normal" href="javascript:;" onclick="ChangeSize('#footer-area-resize-btn', '#footer-area', 50, 13); return false;"><span>拡大</span></a>
88    </div>
89
90    <div class="btn-area">
91        <ul>
92          <li><a class="btn-action" href="javascript:;" name='preview' onclick="lfnSetBrowser('form_footer', 'browser_type'); fnFormModeSubmit('form_footer','preview','',''); return false;"><span class="btn-prev">プレビュー</span></a></li>
93          <li><a class="btn-action" href="javascript:;" name='subm' onclick="fnFormModeSubmit('form_footer','confirm','',''); return false;"><span class="btn-next">登録する</span></a></li>
94        </ul>
95    </div>
96
97  </form>
98  <!--{* ▲フッター編集ここまで *}-->
99</div>
100<script type="text/javascript">
101  /* ブラウザの種類をセットする */
102  function lfnSetBrowser(form, item){
103    browser_type = 0;
104    if(navigator.userAgent.indexOf("MSIE") >= 0){
105        browser_type = 1;
106    }
107    else if(navigator.userAgent.indexOf("Gecko/") >= 0){
108        browser_type = 2;
109    }
110   
111    document[form][item].value=browser_type;
112  }
113
114</script>
Note: See TracBrowser for help on using the repository browser.