source: tmp/version-2_5-test/data/Smarty/templates/default/admin/design/header.tpl @ 18609

Revision 18609, 4.8 KB checked in by kajiwara, 14 years ago (diff)

正式版にナイトリービルド版をマージしてみるテスト

  • 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-2008 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.HTML_PATH`user_data/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    <textarea name="header" rows="<!--{$header_row}-->" wrap="off" style="width: 100%;"><!--{$header_data|smarty:nodefaults}--></textarea>
50    <div class="btn">
51      <button type="button" onClick="ChangeSize(this, header, 50, 13, header_row)"><span><!--{if $header_row > 13}-->小さくする<!--{else}-->大きくする<!--{/if}--></span></button>
52    </div>
53    <div class="btn">
54      <button type='button' name='subm' onclick="fnFormModeSubmit('form_header','confirm','','');"><span>登録</span></button>
55      <button type='button' name='preview' onclick="lfnSetBrowser('form_header', 'browser_type'); fnFormModeSubmit('form_header','preview','','');"><span>プレビュー</span></button>
56    </div>
57  </form>
58  <!--{* ▲ヘッダー編集ここまで *}-->
59
60  <!--{* ▼フッター編集ここから *}-->
61  <h2>フッター編集</h2>
62  <!--{ if $footer_prev == "on"}-->
63  <div id="design-footer-preview">
64    <!--{if $browser_type == 1 }-->
65      <div style="zoom:0.8"><!--{include file="`$smarty.const.HTML_PATH`/user_data/include/preview/footer.tpl"}--></div>
66    <!--{ else }-->
67      <span class="attention"><strong>プレビューはIEでのみ表示されます。</strong></span>
68    <!--{ /if }-->
69  </div>
70  <!--{ /if }-->
71
72  <form name="form_footer" id="form_footer" method="post" action="?" >
73  <input type="hidden" name="mode" value="" />
74  <input type="hidden" name="division" value="footer" />
75  <input type="hidden" name="footer_row" value=<!--{$footer_row}--> />
76  <input type="hidden" name="browser_type" value="" />
77    <textarea name="footer" rows="<!--{$footer_row}-->" style="width: 100%;"><!--{$footer_data|smarty:nodefaults}--></textarea>
78    <div align="right">
79      <button type="button" onClick="ChangeSize(this, footer, 50, 13, footer_row)"><span><!--{if $footer_row > 13}-->小さくする<!--{else}-->大きくする<!--{/if}--></span></button>
80    </div>
81    <div class="btn">
82      <button type='button' name='subm' onclick="fnFormModeSubmit('form_footer','confirm','','');"><span>登録</span></button>
83      <button type='button' name='preview' onclick="lfnSetBrowser('form_footer', 'browser_type'); fnFormModeSubmit('form_footer','preview','','');"><span>プレビュー</span></button>
84    </div>
85  </form>
86  <!--{* ▲フッター編集ここまで *}-->
87
88<script type="text/javascript">
89  /* テキストエリアの大きさを変更する */
90  function ChangeSize(button, TextArea, Max, Min, row_tmp){
91    if(TextArea.rows <= Min){
92      TextArea.rows=Max; button.value="小さくする"; row_tmp.value=Max;
93    }else{
94      TextArea.rows =Min; button.value="大きくする"; row_tmp.value=Min;
95    }
96  }
97 
98  /* ブラウザの種類をセットする */
99  function lfnSetBrowser(form, item){
100    browser_type = 0;
101    if(navigator.userAgent.indexOf("MSIE") >= 0){
102        browser_type = 1;
103    }
104    else if(navigator.userAgent.indexOf("Gecko/") >= 0){
105        browser_type = 2;
106    }
107   
108    document[form][item].value=browser_type;
109  }
110
111</script>
Note: See TracBrowser for help on using the repository browser.