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

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