source: branches/version-2_5-dev/data/Smarty/templates/admin/basis/mail.tpl @ 19954

Revision 19954, 4.4 KB checked in by nanasess, 10 years ago (diff)

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

  • ボタンに return false を付与

#628(未使用処理・定義などの削除)

  • Smarty/templates/admin/sales を削除
  • 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<script type="text/javascript">
25<!--
26var flag = 0;
27
28function setFlag(){
29  flag = 1;
30}
31function checkFlagAndSubmit(){
32  if ( flag == 1 ){
33    if( confirm("内容が変更されています。続行すれば変更内容は破棄されます。宜しいでしょうか?") ){
34      fnSetvalAndSubmit( 'form1', 'mode', 'id_set' );
35    } else {
36      return false;
37    }
38  } else {
39    fnSetvalAndSubmit( 'form1', 'mode', 'id_set' );
40  }
41}
42
43//-->
44</script>
45
46
47<form name="form1" id="form1" method="post" action="?">
48<input type="hidden" name="mode" value="regist" />
49<div id="basis" class="contents-main">
50  <table>
51    <tr>
52      <th>テンプレート<span class="attention"> *</span></th>
53      <td>
54      <!--{assign var=key value="template_id"}-->
55      <!--{if $arrErr[$key]}-->
56      <span class="attention"><!--{$arrErr[$key]}--></span>
57      <!--{/if}-->
58      <select name="template_id" onChange="return checkFlagAndSubmit();" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
59      <option value="" selected="selected">選択してください</option>
60      <!--{html_options options=$arrMailTEMPLATE selected=$arrForm[$key]}-->
61      </select>
62      </td>
63    </tr>
64    <tr>
65      <th>メールタイトル<span class="attention"> *</span></th>
66      <td>
67      <!--{assign var=key value="subject"}-->
68      <!--{if $arrErr[$key]}-->
69      <span class="attention"><!--{$arrErr[$key]}--></span>
70      <!--{/if}-->
71      <input type="text" name="subject" value="<!--{$arrForm[$key]|h}-->" onChange="setFlag();" size="30" class="box30" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" />
72      </td>
73    </tr>
74    <tr>
75      <th>ヘッダー</th>
76      <td>
77      <!--{assign var=key value="header"}-->
78      <!--{if $arrErr[$key]}-->
79      <span class="attention"><!--{$arrErr[$key]}--></span>
80      <!--{/if}-->
81      <textarea name="header" cols="75" rows="12" class="area75" onChange="setFlag();" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"><!--{$arrForm[$key]|h}--></textarea><br />
82      <span class="attention"> (上限<!--{$smarty.const.LTEXT_LEN}-->文字)
83      </span>
84      <div>
85        <a class="btn-normal" href="javascript:;" onclick="fnCharCount('form1','header','cnt_header'); return false;"><span>文字数カウント</span></a>
86        <br />今までに入力したのは
87        <input type="text" name="cnt_header" size="4" class="box4" readonly = true style="text-align:right" />
88        文字です。
89      </div>
90      </td>
91    </tr>
92    <tr>
93      <th colspan="2" align="center">動的データ挿入部分</th>
94    </tr>
95    <tr>
96      <th>フッター</th>
97      <td>
98      <!--{assign var=key value="footer"}-->
99      <!--{if $arrErr[$key]}-->
100      <span class="attention"><!--{$arrErr[$key]}--></span>
101      <!--{/if}-->
102      <textarea name="footer" cols="75" rows="12" class="area75" onChange="setFlag();" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"><!--{$arrForm[$key]|h}--></textarea><br />
103      <span class="attention"> (上限<!--{$smarty.const.LTEXT_LEN}-->文字)</span>
104      <div>
105        <a class="btn-normal" href="javascript:;" onclick="fnCharCount('form1','footer','cnt_footer'); return false;"><span>文字数カウント</span></a>
106        <br />今までに入力したのは
107        <input type="text" name="cnt_footer" size="4" class="box4" readonly = true style="text-align:right" />
108        文字です。
109      </div>
110      </td>
111    </tr>
112  </table>
113
114  <div class="btn-area">
115    <ul>
116      <li><a class="btn-action" href="javascript:;" onclick="fnFormModeSubmit('form1', 'regist', '', ''); return false;"><span class="btn-next">この内容で登録する</span></a></li>
117    </ul>
118  </div>
119</div>
120</form>
121
Note: See TracBrowser for help on using the repository browser.